SYNTHESIS NOTE
Topics›Reasoning Architectures›this note

Do fine-tuned language models actually learn optimization procedures?

Can RL fine-tuning teach LLMs to solve constraint-optimization problems through genuine reasoning, or does it merely sharpen pattern-matching? Testing on out-of-distribution variants reveals the mechanism.

Synthesis note · 2026-05-18 · sourced from Reasoning Architectures

The constraint-optimization study uses a clean diagnostic to separate procedure from pattern: an N-case test set (in-distribution power-grid topologies) and an N-1 test set (the same problems with one element removed, putting them out of distribution while keeping the structure recognizable). A model running the actual procedure should perform comparably on both. A model running pattern-match should perform worse on N-1.

Even under GRPO and constraint-satisfaction-reward training, models degrade markedly on N-1. The conclusion is that RL on outcome-based rewards does not install the missing procedure — it sharpens the template-matching strategy along the in-distribution axis. The model gets better at recognizing patterns it has seen and worse, relatively, at adapting to perturbed structure.

This is methodologically important because it provides a probe that other reasoning evaluations lack. Most benchmarks cannot distinguish "the model solved this" from "the model recognized this." The N / N-1 comparison forces the distinction by holding the problem class fixed while perturbing the instance. The drop is the memorization signature.

For practitioners, the diagnostic generalizes. Wherever a deployment cares whether a model is computing or recalling — clinical reasoning, legal-statute reasoning, scientific problem-solving — building an "N-1" counterpart of the canonical test set is a cheap way to surface memorization. The structure-shift probe is more informative than headline accuracy on the canonical set.

Inquiring lines that read this note 117

This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.

Should AI alignment prioritize individual preferences, collective norms, or roles? What determines whether models prioritize training knowledge over retrieved context? What gap exists between benchmark scores and genuine language model capabilities? How do architectural constraints limit monolithic LLM performance on complex tasks? Do benchmark evaluations accurately represent what AI systems can do? How do parameter-efficient methods maintain performance while reducing training cost? What tradeoffs emerge between instruction following and other model capabilities? How does reward-seeking behavior lead to emergent model misalignment? Does alignment training genuinely modify model behavior or only outputs? What are the fundamental limits of prompting in creating new model capabilities? Can RL enable genuinely new reasoning or just optimize existing capabilities? How does evolutionary search at inference time compare to other test-time methods? What tradeoffs emerge from fine-tuning models for extended reasoning? What conversational capabilities does preference optimization sacrifice for alignment? How do supervised fine-tuning and reinforcement learning compare in preserving reasoning quality? Why does model self-revision amplify confidence in incorrect answers? How do training data, curriculum, and scale affect capability development? Do language models learn genuine linguistic structure or just surface patterns? How do LLMs perform reasoning effectively despite gaps between process and output? Do language models learn true linguistic principles or just surface patterns? What are the distinctive characteristics of language models at different scales? Why does iterative refinement amplify reasoning errors instead of correcting them? What conditions and architecture enable effective agent ecosystems? Does extended thinking consistently improve accuracy or exhibit diminishing returns? Why do LLM recommenders underperform simpler collaborative filtering approaches? What persistent memory architectures best support learning across sessions? How should reinforcement learning training be optimized for language models? Can looped computation enable reasoning beyond fixed transformer depth? How does task-specific training affect model generalization and capability transfer? How important is reward engineering relative to pretraining for reasoning? Can neural networks achieve compositionality without explicit mechanisms? What systematic biases affect LLM judges and their evaluation outcomes? How can personalization improve language model behavior without harm? Does RLHF training compromise truthfulness in pursuit of user satisfaction? Why are open models competitive with closed models in practice? Can visual rendering-based rewards effectively improve code and layout quality?

Related concepts in this collection 3

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
12 direct connections · 118 in 2-hop network ·dense cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

N-1 out-of-distribution tests reveal that RL fine-tuned LLMs still rely on memorization for optimization problems