arXivPreprintOpen accesscs.AI

Not All Thinking is Created Equal: Latent Reasoning Discovers a Recurrent Search Algorithm for Depth Generalization

Huzi Cheng, Zhewei Zhang

Computational

Key points

From the paper's conclusion
  • Five variants of GPTNeoX were trained and compared on an extended multi-hop reasoning task.
  • Latent variants generalized better than vanilla, CoT, and Pause Token models.
  • A recurrent search circuit in the bottleneck latent model supports a forward-search algorithm.

Abstract

Large Language Models can perform multi-step reasoning and improve task performance through different forms of intermediate computation, from token-based traces to computation carried out in latent space. However, a question remains open: do these different forms of thinking rely on the same underlying mechanism? To address this, we train and compare five variants of the same GPTNeoX backbone from scratch on an extended multi-hop reasoning task (ProsQA-Ext): a vanilla model, a Chain-of-Thought (CoT) model, a Pause Token model, and two latent-reasoning models that are optimized end-to-end without intermediate reasoning traces. We find that, strong in-distribution (ID) performance does not guarantee depth generalization. Vanilla, CoT, and Pause Token models solve ID problems well, but rely largely on local graph features and generalize poorly to out-of-distribution (OOD) problems with longer hops. In contrast, latent variants generalize better and show internal dynamics consistent with forward reachability propagation on the graph. Causal interventions and circuit analysis localize this computation to a sparse recurrent search circuit in the bottleneck latent model: an attention head retrieves graph relations, an MLP and the residual stream update the reachability state across recurrent steps, while multiple attention heads together then do the candidate matching. Together, these results show that different thinking mechanisms can learn distinct computational solutions, even at similar ID performance. In this setting, latent recurrence supports a reusable forward-search algorithm that generalizes beyond the training depth.

Read the paper

Discussion · 1

Science Skim's AI key points, plus readers' public thoughts

Science SkimAI key points
Pinned
  • Five variants of GPTNeoX were trained and compared on an extended multi-hop reasoning task.
  • Latent variants generalized better than vanilla, CoT, and Pause Token models.
  • A recurrent search circuit in the bottleneck latent model supports a forward-search algorithm.

Readers' thoughts

No reader thoughts yet.

Related papers