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 109

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.

Is model misalignment inherent to base models or induced by alignment procedures? What causes foundation models to develop task heuristics instead of understanding? How does explicit structure improve LLM reasoning on complex tasks? How do benchmark scores relate to real-world task completion? How can parameter sparsity improve interpretability while maintaining model capability? Do language models learn underlying linguistic structure or merely surface patterns? How does model scale affect fine-tuning and downstream task performance? Does prompting inject new knowledge into models or activate existing knowledge? Do language models truly understand their encoded knowledge or merely retrieve patterns? Does reinforcement learning create new reasoning capabilities or refine existing ones? Does evolutionary optimization at test time improve model performance effectively? Does reasoning fine-tuning trade off other critical model abilities? How do pretraining data composition and task diversity shape reasoning? How faithfully does iterative DPO approximate online RL? What prevents or enables error accumulation in self-training systems? Does training data format shape reasoning more than domain content? Why doesn't LLM knowledge translate to improved reasoning outputs? What are the trade-offs between memory capacity and continuous task learning? Can AI agents learn to improve performance from experience? How do different post-training structures affect learning outcomes? What actually drives chain-of-thought performance gains in reasoning tasks? What explains the gap between LLM semantic understanding and production? How can recommendation systems balance individual and population-level goals? How do transformer circuits and attention mechanisms enable or limit reasoning? Should reward models emphasize process understanding or only final outcomes? What training data structures and signals produce robust learning across distributions? How do different reward signals affect model reasoning and calibration differently? How do mechanistic features and representations drive model behavior? What determines how neural networks organize their internal knowledge representations? What systematic biases do LLM judges exhibit in evaluation? What determines when personalization helps versus harms model behavior? When do additional thinking tokens stop improving reasoning performance? Does preference-optimized training sacrifice accuracy and calibration for perceived 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 · 100 in 2-hop network ·medium 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