Machine LearningWikiPaths

LLM Reasoning

Inducing System 2 thinking. From in-context learning and chain-of-thought to RLVR, GRPO pathology fixes, reinforcement pre-training, thinking budgets, and continuous latent reasoning.

Estimated time: ~150 min

Study this path with flashcards
14 cards
Study →
  1. Step 1
    GPT-3 showed that a 175B-parameter autoregressive Transformer can perform many tasks from natural-language instructions and a few demonstrations in the prompt, without gradient updates or task-specific fine-tuning. That result made in-context learning a central paradigm and showed that scale alone could unlock strong few-shot behavior.
  2. Step 2
    In-context learning is the ability of a model to adapt its behavior from instructions or examples placed in the prompt, without changing its weights. The model remains frozen; the adaptation happens within the forward pass through pattern recognition over the context.
  3. Step 3
    Chain of thought is a prompting strategy that elicits intermediate reasoning steps before the final answer. It often improves performance on multi-step tasks because the model can use the generated text as an external scratchpad rather than compressing all reasoning into one token prediction.
  4. Step 4
    Chain-of-thought monitorability is the safety claim that when a model needs explicit reasoning to complete a task, its written chain of thought can be monitored for harmful intent or deception. The key property is monitorability rather than perfect faithfulness: hiding the reasoning tends to become harder when the reasoning itself is load-bearing for success.
  5. Step 5
    Toolformer trains a language model to decide when to call external tools and what arguments to send without requiring human demonstrations of tool use. It keeps tool calls only when the returned result improves the continuation, making tool use a self-supervised learning signal.
  6. Step 6
    BFCL (Berkeley Function Calling Leaderboard, 2024) and τ-bench (2024) evaluate LLMs' ability to select, parameterise, and sequence API calls. BFCL is single-turn function-call accuracy; τ-bench is multi-turn dialogue in simulated customer-service environments with realistic state and policy constraints.
  7. Step 7
    Reasoning models in the o1 or R1 style are language models trained or prompted to spend extra inference compute on long multi-step reasoning before answering. Their key idea is that better reasoning can come not only from bigger models, but from better search, verification, and credit assignment at inference and post-training time.
  8. Step 8
    Test-time compute scaling improves a model by spending extra computation at inference time, for example through search, verification, reranking, or adaptive refinement, instead of only scaling pretraining. It is most useful on prompts where the base model already has some chance of success, because additional compute can then amplify that success more efficiently than a much larger one-shot model.
  9. Step 9
    Train a reasoning policy with pure RL signals from tasks whose answers are automatically verifiable — math (exact match), code (unit-test execution), proof (checker), chess (engine eval). No preference model needed. The method behind DeepSeek-R1-Zero and the o1-style long-CoT reasoning families.
  10. Step 10
    GRPO is a policy-optimization method that scores sampled responses relative to others in the same group, using those relative rewards to update the policy. Its appeal is that it can improve reasoning performance while avoiding some of the memory overhead of PPO-style critic training.
  11. Step 11
    Standard Group Relative Policy Optimization (GRPO) introduces length bias (dividing by response length |o_i| rewards verbose wrong answers and penalizes concise right ones), question-level difficulty bias (dividing by group standard deviation over-weights trivial or impossible prompts), and entropy collapse from symmetric clipping. Dr. GRPO and DAPO correct these pathologies via token-level loss normalization, decoupled asymmetric clipping (Clip-Higher), dynamic sampling of zero-variance groups, and removal of standard-deviation normalization.
  12. Step 12
    Reinforcement Pre-Training (RPT) reframes next-token prediction over general pre-training text as an online reinforcement learning problem with verifiable rewards. Before predicting the next token (or token span), the model generates an internal chain-of-thought trace and receives a binary exact-match reward against the ground-truth corpus continuation, turning every document in a pre-training corpus into a self-supervised RLVR environment.
  13. Step 13
    Frontier reasoning models expose an explicit or learned thinking budget that controls how many internal reasoning tokens are generated before the final response. Through length-conditioned RL rewards, budget-forcing tokens, and hybrid fast/thinking routing, a single model can operate along a continuous accuracy–latency Pareto frontier rather than running maximum-length chains of thought on trivial queries.
  14. Step 14
    Continuous latent-space reasoning replaces discrete natural-language chain-of-thought tokens with continuous hidden-state vectors fed directly back into the Transformer as input embeddings. Because each continuous thought is a high-dimensional vector rather than a one-hot vocabulary sample, it can represent a superposition of multiple candidate reasoning paths simultaneously, enabling breadth-first search in activation space with far fewer autoregressive steps.