Understanding Reasoning Ability of Language Models From the Perspective of Reasoning Paths Aggregation
Xinyi Wang, Alfonso Amayuelas, Kexun Zhang, Liangming Pan, Wenhu Chen,, William Yang Wang

TL;DR
This paper proposes a new perspective on understanding language models' reasoning by viewing their reasoning as aggregation of random walk paths on knowledge and reasoning graphs, revealing insights into their emergent reasoning capabilities.
Contribution
It formalizes reasoning paths as random walks on graphs and demonstrates how this perspective explains LM reasoning, improving multi-step reasoning through path augmentation.
Findings
Random walk path probabilities explain LM reasoning behavior.
Augmenting reasoning paths enhances multi-step reasoning performance.
Analysis shows training influences the distribution of reasoning paths.
Abstract
Pre-trained language models (LMs) are able to perform complex reasoning without explicit fine-tuning. To understand how pre-training with a next-token prediction objective contributes to the emergence of such reasoning capability, we propose that we can view an LM as deriving new conclusions by aggregating indirect reasoning paths seen at pre-training time. We found this perspective effective in two important cases of reasoning: logic reasoning with knowledge graphs (KGs) and chain-of-thought (CoT) reasoning. More specifically, we formalize the reasoning paths as random walk paths on the knowledge/reasoning graphs. Analyses of learned LM distributions suggest that a weighted sum of relevant random walk path probabilities is a reasonable way to explain how LMs reason. Experiments and analysis on multiple KG and CoT datasets reveal the effect of training on random walk paths and suggest…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques
