paper-with-me

홈 › Papers

Understanding Transformer Reasoning Capabilities via Graph Algorithms

2024-05-28 · Clayton Sanford, Bahare Fatemi, Ethan Hall, Anton Tsitsulin, Mehran Kazemi, Jonathan Halcrow, Bryan Perozzi, Vahab Mirrokni

Which transformer scaling regimes are able to perfectly solve different classes of algorithmic problems? While tremendous empirical advances have been attained by transformer-based neural networks, a theoretical understanding of their algorithmic reasoning capabilities in realistic parameter regimes is lacking. We investigate this question in terms of the network's depth, width, and number of extra tokens for algorithm execution. Our novel representational hierarchy separates 9 algorithmic reasoning problems into classes solvable by transformers in different realistic parameter scaling regimes. We prove that logarithmic depth is necessary and sufficient for tasks like graph connectivity, while single-layer transformers with small embedding dimensions can solve contextual retrieval tasks. We also support our theoretical analysis with ample empirical evidence using the GraphQA benchmark. These results show that transformers excel at many graph reasoning tasks, even outperforming specialized graph neural networks.

📄 PDF Abstract BibTeX arXiv:2405.18512

Code (0)

등록된 구현이 없습니다.

Tasks

Retrieval

Similar Papers 제목 키워드 기반

Simulation of Graph Algorithms with Looped Transformers

2024-02-02 · Artur Back de Luca, Kimon Fountoulakis

The execution of graph algorithms using neural networks has recently attracted significant interest due to promising empirical progress. This motivates further understanding of how neural networks can replicate reasoning…

CipherBank: Exploring the Boundary of LLM Reasoning Capabilities through Cryptography Challenges

2025-04-27 · Yu Li, Qizhi Pei, Mengyuan Sun, Honglin Lin 외

Large language models (LLMs) have demonstrated remarkable capabilities, especially the recent advancements in reasoning, such as o1 and o3, pushing the boundaries of AI. Despite these impressive achievements in mathemati…

Unifying Language Agent Algorithms with Graph-based Orchestration Engine for Reproducible Agent Research

2025-05-30 · Qianqian Zhang, Jiajia Liao, Heting Ying, Yibo Ma 외

Language agents powered by large language models (LLMs) have demonstrated remarkable capabilities in understanding, reasoning, and executing complex tasks. However, developing robust agents presents significant challenge…

Mathematical Reasoning

Uncovering Graph Reasoning in Decoder-only Transformers with Circuit Tracing

2025-09-24 · Xinnan Dai, Chung-Hsiang Lo, Kai Guo, Shenglai Zeng 외 arxiv

Transformer-based LLMs demonstrate strong performance on graph reasoning tasks, yet their internal mechanisms remain underexplored. To uncover these reasoning process mechanisms in a fundamental and unified view, we set …

Neural Algorithmic Reasoning for Hypergraphs with Looped Transformers

2025-01-18 · Xiaoyu Li, YIngyu Liang, Jiangxuan Long, Zhenmei Shi 외

Looped Transformers have shown exceptional neural algorithmic reasoning capability in simulating traditional graph algorithms, but their application to more complex structures like hypergraphs remains underexplored. Hype…

Combinatorial Optimization