Efficient Graph Understanding with LLMs via Structured Context Injection
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have shown strong capabilities in solving problems across domains, including graph-related tasks traditionally addressed by symbolic or algorithmic methods. In this work, we present a framework for structured context injection, where task-specific information is systematically embedded in the input to guide LLMs in solving a wide range of graph problems. Our method does not require fine-tuning of LLMs, making it cost-efficient and lightweight. We observe that certain graph reasoning tasks remain challenging for LLMs unless they are mapped to conceptually grounded representations. However, achieving such mappings through fine-tuning or repeated multi-step querying can be expensive and inefficient. Our approach offers a practical alternative by injecting structured context directly into the input, enabling the LLM to implicitly align the task with grounded conceptual spaces. We evaluate the approach on multiple graph tasks using both lightweight and large models, highlighting the trade-offs between accuracy and computational cost. The results demonstrate consistent performance improvements, showing that structured input context can rival or surpass more complex approaches. Our findings underscore the value of structured context injection as an effective and scalable strategy for graph understanding with LLMs.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 15 of its 23 references that are in the map. First posted on arXiv 31 Aug 2025.
Builds on
15 of 23 references.
References · 15
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoningcited by 331
- 2023Exploring the Potential of Large Language Models (LLMs) in Learning on Graphscited by 271
- 2020Transformers as Soft Reasoners over Languagecited by 265
- 2023Can Language Models Solve Graph Problems in Natural Language?cited by 249
- 2023Language is All a Graph Needscited by 219
- 2024Accessing GPT-4 level Mathematical Olympiad Solutions via Monte Carlo Tree Self-refine with LLaMa-3 8Bcited by 156
- 2024Let Your Graph Do the Talking: Encoding Structured Data for LLMscited by 112
- 2022CREPE: Open-Domain Question Answering with False Presuppositionscited by 70
- 2021ExplaGraphs: An Explanation Graph Generation Task for Structured Commonsense Reasoningcited by 58
3 more
Built on by
Citing papers per year: 2026: 1.
1 paper.