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 110

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.

Does alignment training modify underlying model representations or just output compliance? How do training data properties affect model generalization and robustness? How can evaluation systems stay reliable and resistant to AI-driven gaming? When do complex LLM tasks benefit from external verification or structured scaffolding? Do single-axis benchmarks adequately measure deployment-ready agent capability? How does compressing or distilling information affect model learning and generalization? Why does fine-tuning for specific tasks degrade broader reasoning capability? How does training data produce emergent misalignment in base models? Do fine-tuning methods modify core model capabilities or just outputs? Can prompting inject new knowledge into models or only activate existing capabilities? Do language models rely on encoded knowledge or primarily on surface patterns? How does reinforcement learning discover and optimize reasoning strategies versus supervised training? Can recursive latent-state computation outperform model scale and hierarchy? Do LLMs lack causal understanding needed for accurate prediction? Can iterative DPO serve as a tractable proxy for online RL? Why does model self-revision increase confidence in incorrect answers? Do reasoning improvements prevent models from abstaining when needed? Do language models learn genuine understanding or just surface patterns? How do symbolic and semantic approaches combine in LLM reasoning? Do small language models have fundamentally different scaling properties than large ones? What causes models to fail in specialized domains versus generally? Why do AI agents struggle to generalize and improve reliably? Does reinforcement learning create fundamentally new reasoning or optimize existing capabilities? Does extended thinking consistently improve reasoning model performance? How should recommendation systems balance competing signals and objectives? Can recurrence enable transformers to solve problems beyond fixed-depth limitations? Does RLHF training optimize perceived quality over practical accuracy? How do reward signal structures affect whether models learn true reasoning? What limits reinforcement learning for reasoning's ability to expand model capability? What biases affect LLM judges and how can they be reduced? When do thinking tokens stop improving reasoning performance? Why do LLMs succeed at generation but struggle with evaluation? When does general reasoning transfer to specialized domains versus requiring domain-specific knowledge?

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 · 110 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