paper-with-me

홈 › Papers

How does Transformer Learn Implicit Reasoning?

2025-05-29 · Jiaran Ye, Zijun Yao, Zhidian Huang, Liangming Pan, Jinxin Liu, Yushi Bai, Amy Xin, Liu Weichuan, Xiaoyin Che, Lei Hou, Juanzi Li

Recent work suggests that large language models (LLMs) can perform multi-hop reasoning implicitly -- producing correct answers without explicitly verbalizing intermediate steps -- but the underlying mechanisms remain poorly understood. In this paper, we study how such implicit reasoning emerges by training transformers from scratch in a controlled symbolic environment. Our analysis reveals a three-stage developmental trajectory: early memorization, followed by in-distribution generalization, and eventually cross-distribution generalization. We find that training with atomic triples is not necessary but accelerates learning, and that second-hop generalization relies on query-level exposure to specific compositional structures. To interpret these behaviors, we introduce two diagnostic tools: cross-query semantic patching, which identifies semantically reusable intermediate representations, and a cosine-based representational lens, which reveals that successful reasoning correlates with the cosine-base clustering in hidden space. This clustering phenomenon in turn provides a coherent explanation for the behavioral dynamics observed across training, linking representational structure to reasoning capability. These findings provide new insights into the interpretability of implicit multi-hop reasoning in LLMs, helping to clarify how complex reasoning processes unfold internally and offering pathways to enhance the transparency of such models.

📄 PDF Abstract BibTeX arXiv:2505.23653

Code (1)

jiaran-ye/implicitreasoning 공식 구현

Tasks

ClusteringDiagnosticMemorization

Similar Papers 제목 키워드 기반

Implicit Reasoning in Transformers is Reasoning through Shortcuts

2025-03-10 · Tianhe Lin, Jian Xie, Siyu Yuan, Deqing Yang

Test-time compute is emerging as a new paradigm for enhancing language models' complex multi-step reasoning capabilities, as demonstrated by the success of OpenAI's o1 and o3, as well as DeepSeek's R1. Compared to explic…

Mathematical Reasoning

How Does Unfaithful Reasoning Emerge from Autoregressive Training? A Study of Synthetic Experiments

2026-02-01 · Fuxin Wang, Amr Alazali, Yiqiao Zhong arxiv

Chain-of-thought (CoT) reasoning generated by large language models (LLMs) is often unfaithful: intermediate steps can be logically inconsistent or fail to reflect the causal relationship leading to the final answer. Des…

The Scaling Properties of Implicit Deductive Reasoning in Transformers

2026-05-05 · Enrico Vompa, Tanel Tammet arxiv

We investigate the scaling properties of implicit deductive reasoning over Horn clauses in depth-bounded Transformers. By systematically decorrelating provability from spurious features and enforcing algorithmic alignmen…

Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization

2024-05-23 · Boshi Wang, Xiang Yue, Yu Su, Huan Sun

We study whether transformers can learn to implicitly reason over parametric knowledge, a skill that even the most capable language models struggle with. Focusing on two representative reasoning types, composition and co…

Inferring Implicit Relations in Complex Questions with Language Models

2022-04-28 · Uri Katz, Mor Geva, Jonathan Berant

A prominent challenge for modern language understanding systems is the ability to answer implicit reasoning questions, where the required reasoning steps for answering the question are not mentioned in the text explicitl…

Implicit RelationsQuestion AnsweringRelation