Are Large Language Models In-Context Graph Learners?
On the map: LLM reasoning → Knowledge- and tool-augmented reasoning
Abstract (arXiv)
Large language models (LLMs) have demonstrated remarkable in-context reasoning capabilities across a wide range of tasks, particularly with unstructured inputs such as language or images. However, LLMs struggle to handle structured data, such as graphs, due to their lack of understanding of non-Euclidean structures. As a result, without additional fine-tuning, their performance significantly lags behind that of graph neural networks (GNNs) in graph learning tasks. In this paper, we show that learning on graph data can be conceptualized as a retrieval-augmented generation (RAG) process, where specific instances (e.g., nodes or edges) act as queries, and the graph itself serves as the retrieved context. Building on this insight, we propose a series of RAG frameworks to enhance the in-context learning capabilities of LLMs for graph learning tasks. Comprehensive evaluations demonstrate that our proposed RAG frameworks significantly improve LLM performance on graph-based tasks, particularly in scenarios where a pretrained LLM must be used without modification or accessed via an API.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 4 of its 58 references that are in the map. First posted on arXiv 19 Feb 2025.
Builds on
4 of 58 references.
References · 4
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,163
- 2024DeepSeek-V3 Technical Reportcited by 811
- 2020A Survey of Adversarial Learning on Graphscited by 42
Built on by
Citing papers per year: 2025: 4; 2026: 8.
12 papers.
- 2026Graph is a Substrate Across Data Modalitiescited by 14
- 2025Are Large Language Models Good Temporal Graph Learners?cited by 3
- 2026Higher-Order Knowledge Representations for Agentic Scientific Reasoningcited by 3
- 2025Node-as-Agent: Graph Agentic Networkcited by 2
- 2025Self-Exploring Language Models for Explainable Link Forecasting on Temporal Graphs via Reinforcement Learningcited by 1
- 2025GRIP: In-Parameter Graph Reasoning through Fine-Tuning Large Language Modelscited by 1
- 2026Colorful Talks with Graphs: Human-Interpretable Graph Encodings for Large Language Modelscited by 1
- 2026Beyond One-Size-Fits-All: Adaptive Subgraph Denoising for Zero-Shot Graph Learning with Large Language Modelscited by 1
- 2026Riemannian Geometry Speaks Louder Than Words: From Graph Foundation Model to Next-Generation Graph Intelligencecited by 1
- 2026Rethinking Efficient Graph Coarsening via a Non-Selfishness Principlecited by 1
- 2026Improving LLM Reasoning with Homophily-aware Structural and Semantic Text-Attributed Graph Compressioncited by 0
- 2026Training Graph Foundation Models on The Web Graphcited by 0
- 2026Training Graph Foundation Models on The Web Graph25 Sep 2026
- 2026Rethinking Efficient Graph Coarsening via a Non-Selfishness Principle13 May 2026
- 2026Riemannian Geometry Speaks Louder Than Words: From Graph Foundation Model to Next-Generation Graph Intelligence23 Mar 2026
- 2026Beyond One-Size-Fits-All: Adaptive Subgraph Denoising for Zero-Shot Graph Learning with Large Language Models3 Mar 2026
- 2026Colorful Talks with Graphs: Human-Interpretable Graph Encodings for Large Language Models11 Feb 2026
- 2026Graph is a Substrate Across Data Modalities29 Jan 2026
- 2026Improving LLM Reasoning with Homophily-aware Structural and Semantic Text-Attributed Graph Compression13 Jan 2026
- 2026Higher-Order Knowledge Representations for Agentic Scientific Reasoning8 Jan 2026
- 2025GRIP: In-Parameter Graph Reasoning through Fine-Tuning Large Language Models6 Nov 2025
- 2025Self-Exploring Language Models for Explainable Link Forecasting on Temporal Graphs via Reinforcement Learning31 Aug 2025
- 2025Node-as-Agent: Graph Agentic Network1 Aug 2025
- 2025Are Large Language Models Good Temporal Graph Learners?3 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2025GRIL: Knowledge Graph Retrieval-Integrated Learning with Large Language Models
- 2025Graph-based Approaches and Functionalities in Retrieval-Augmented Generation: A Comprehensive Survey
- 2024Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generation
- 2025GFM-RAG: Graph Foundation Model for Retrieval Augmented Generation
- 2024Think-on-Graph 2.0: Deep and Faithful Large Language Model Reasoning with Knowledge-guided Retrieval Augmented Generation
- 2026Use Graph When It Needs: Efficiently and Adaptively Integrating Retrieval-Augmented Generation with Graphs
- 2024RAGraph: A General Retrieval-Augmented Graph Learning Framework
- 2025Weak-to-Strong GraphRAG: Aligning Weak Retrievers with Large Language Models for Graph-based Retrieval Augmented Generation