Teaching LLMs to See Graphs: Unifying Text and Structural Reasoning
On the map: LLM reasoning → Knowledge- and tool-augmented reasoning
Abstract (arXiv)
Applying Large Language Models (LLMs) to graph-structured data usually involves multi-step pipelines in which textual node attributes are compressed into single tokens and further processed by GNNs, discarding most of their semantic content. We introduce the Graph Transformer Language Model (GTLM), which enables a pretrained LLM to process graph topology natively and removes this bottleneck entirely. GTLM injects graph-aware attention biases directly into the LLM's attention modules, adding only 0.015% structure-related parameters relative to the base model. Training updates only the structural parameters together with a LoRA adapter on the base model. We prove that our bidirectional attention prefix is permutation-equivariant over nodes and that GTLM reduces exactly to the pretrained model when no graph is present. Having no global node ordering, GTLM shows no positional degradation and does not textitget lost in the middle: needle-in-a-graph accuracy stays flat from 1k to 64k tokens and 4x past the training length, while an identically trained flat-text baseline collapses. Comprehensive evaluations show that a GTLM matches or exceeds domain-specific state-of-the-art models on text-attributed graph benchmarks, GraphRAG on WebQSP, and molecular benchmarks, while meaningfully improving over strong baselines on GraphQA. We further show that GTLM's attention heads implicitly learn to simulate message passing, explaining its strength on algorithmic tasks. Together, these results suggest that a minimally adapted pretrained LLM can serve as a general backbone for graph learning.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 18 of its 53 references that are in the map. First posted on arXiv 11 May 2026.
Builds on
18 of 53 references.
Closest ancestors · 3
Same direction, newest first
- 2024Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generation28 Oct
- 2024GNN-RAG: Graph Neural Retrieval for Large Language Model Reasoning30 May
- 2023Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning2 Oct
Other references · 15
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2025Gemma 3 Technical Reportcited by 1,686
- 2017MoleculeNet: A Benchmark for Molecular Machine Learningcited by 1,037
- 2020Deep Graph Contrastive Representation Learningcited by 535
- 2024LLaGA: Large Language and Graph Assistantcited by 177
- 2023Graph Inductive Biases in Transformers without Message Passingcited by 150
- 2024Let Your Graph Do the Talking: Encoding Structured Data for LLMscited by 112
- 2025A Survey of Graph Transformers: Architectures, Theories and Applicationscited by 12
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Exploring Graph Learning Tasks with Pure LLMs: A Comprehensive Benchmark and Investigation
- 2026Formalizing and Mitigating Structural Distortion in LLM Attention for Graph Reasoning
- 2024GraphInstruct: Empowering Large Language Models with Graph Understanding and Reasoning Capability
- 2024GUNDAM: Aligning Large Language Models with Graph Understanding
- 2024GL-Fusion: Rethinking the Combination of Graph Neural Network and Large Language model
- 2023Large Language Models on Graphs: A Comprehensive Survey
- 2026Are Large Language Models Suitable for Graph Computation? Progress and Prospects
- 2024Can LLM Graph Reasoning Generalize beyond Pattern Memorization?