Reasoning as Meta-Learning: An Optimization Perspective to Decipher Long CoT Reasoning in LLMs

Junnan Liu, Hongwei Liu, Linchen Xiao, Shudong Liu, Taolin Zhang, Zihan Ma, Songyang Zhang, Kai ChenOpenReview 2026 · Submission to ICLR 2026 · Rejected

This paper introduces RAML (Reasoning as Meta-Learning), a framework that conceptualizes Large Language Model (LLM) reasoning as an optimization process. By treating Chain-of-Thought (CoT) trajectories as "pseudo-gradient descent" updates to a model's internal state, the authors provide a theoretical and empirical bridge between how models "think" at test-time and the established field of meta-learning.

TL;DR

The authors propose that LLM reasoning is actually a form of meta-learning, where reasoning trajectories act as "inner-loop" optimization steps that adapt the model to a specific question. This perspective explains why longer reasoning chains improve performance and reveals that "aha moments" in models correspond to escaping local minima in a mathematical loss landscape.

What Problem Does This Paper Address?

While models like OpenAI’s o1 and DeepSeek-R1 have shown that "thinking" longer (Long-CoT) leads to massive performance gains, the internal mechanics of why this works remain opaque. We know that scaling test-time compute helps, but we lack a formal framework to describe how these intermediate tokens actually change the model's ability to find the right answer.

The authors identify a "gap" in research: we have empirical success in long-reasoning, but we don't fully understand the fundamental role of these trajectories. They aim to move beyond seeing CoT as just "text" and instead view it as a dynamic adaptation of the model's parameters.

Methods

The core of the paper is the RAML framework, which maps reasoning onto the two-loop structure of meta-learning:

  1. The Inner Loop (Reasoning): When a model generates a reasoning trajectory ($t$), each token acts as a "pseudo-gradient update." Mathematically, the authors prove (Proposition 2.1) that a Transformer attending to its own reasoning tokens is functionally equivalent to a smaller model whose weights have been updated via gradient descent.
  2. The Outer Loop (Training): During Supervised Fine-Tuning (SFT) or Reinforcement Learning (RL), the model is trained to be a better "meta-optimizer." It learns a "meta-initialization"—a set of base weights that can quickly adapt to any new, unseen question through the right reasoning path.

The authors use Loss Landscape Visualization to track the model's confidence. By calculating the negative log-probability of the correct answer at every step of the reasoning chain, they can literally "see" the model getting closer to the solution as it "thinks."

Datasets

The study utilizes several high-difficulty benchmarks to validate the RAML framework:

  • Training: They used Open Reasoner Zero, a dataset of ~39k mathematical problems, with synthetic trajectories generated by Qwen2.5-Math-72B and DeepSeek-R1-Distill-Qwen-14B.
  • Evaluation (Math): AIME24, MATH500 (Level 5 questions), and LiveMathBench-Hard.
  • Generalization (Cross-Domain): To see if "math reasoning" translates to other fields, they tested on GPQA (graduate-level science) and LiveCodeBench (programming).

Key Insights and Ideas

  • Reasoning as Optimization: Every token in a CoT is a step toward the "optimum" (the correct answer). Longer trajectories aren't just "more words"; they are more optimization steps, which explains why they lead to higher accuracy.
  • The "Aha Moment" is Real: The authors found that reflection tokens like "Wait" or "Alternatively" correspond to sharp drops in the loss landscape. From an optimization lens, these tokens help the model escape "saddle points" (areas where it's stuck) to find a better parameter space.
  • SFT vs. RL Roles: SFT acts like an "oracle optimizer," providing stable, high-quality paths. RL provides "exploration," allowing the model to find even better paths than those in the training data. The best results come from using SFT to "cold start" the model before letting RL explore.
  • Efficiency and "Optimal Paths": The authors show that many long reasoning chains are redundant. By summarizing these chains into "optimal paths," they could maintain high performance while significantly reducing the number of tokens used.

Key Results

  • The Power of the Cold Start: Models trained with "Zero-GRPO" (RL from scratch) performed well, but adding an SFT "Cold Start" led to massive gains. On the AIME24 benchmark, the Pass@8 score jumped from 27.37% to 35.87% (a 31% relative improvement).
  • Scaling Trajectories: Performance improves as you increase the number of training trajectories per question. This mirrors meta-learning findings where a larger "support set" leads to better generalization.
  • Cross-Domain Generalization: Models trained only on math reasoning showed improved performance on science (GPQA) and coding (LiveCodeBench), suggesting that the "meta-features" of reasoning are universal across domains.

Limitations and Future Work

  • Theoretical Approximations: The mathematical proof for pseudo-gradients relies on certain linear approximations. The authors admit that finding a precise, non-approximate analytical solution is still an open problem.
  • Domain Specificity: The experiments were primarily focused on mathematics. While they showed some generalization to science and code, the optimization behavior might differ in more subjective or linguistic tasks.
  • Self-Generation Mystery: Unlike standard meta-learning where the "support set" is given, LLMs generate their own reasoning paths. The authors suggest future work should investigate how models learn to generate these effective "update steps" in the first place.
  • Multimodal Reasoning: The current study is text-only. Exploring how reasoning trajectories work in vision-language models is a suggested next step.

Summary updated

BibTeX
@misc{liu2026reasoning,
  author = {Junnan Liu and Hongwei Liu and Linchen Xiao and Shudong Liu and Taolin Zhang and Zihan Ma and Songyang Zhang and Kai Chen},
  title = {{Reasoning as Meta-Learning: An Optimization Perspective to Decipher Long CoT Reasoning in LLMs}},
  year = {2026},
  url = {https://openreview.net/forum?id=gEynjflkUq},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure