Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Models
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Modern large language models (LLMs) are inherently auto-regressive, requiring input to be serialized into flat sequences regardless of their structural dependencies. This serialization hinders the model's ability to leverage structural inductive biases, especially in tasks such as retrieval-augmented generation (RAG) and reasoning on data with native graph structures, where inter-segment dependencies are crucial. We introduce Graph-KV with the potential to overcome this limitation. Graph-KV leverages the KV-cache of text segments as condensed representations and governs their interaction through structural inductive biases. In this framework, 'target' segments selectively attend only to the KV-caches of their designated 'source' segments, rather than all preceding segments in a serialized sequence. This approach induces a graph-structured block mask, sparsifying attention and enabling a message-passing-like step within the LLM. Furthermore, strategically allocated positional encodings for source and target segments reduce positional bias and context window consumption. We evaluate Graph-KV across three scenarios: (1) seven RAG benchmarks spanning direct inference, multi-hop reasoning, and long-document understanding; (2) Arxiv-QA, a novel academic paper QA task with full-text scientific papers structured as citation ego-graphs; and (3) paper topic classification within a citation network. By effectively reducing positional bias and harnessing structural inductive biases, Graph-KV substantially outperforms baselines, including standard costly sequential encoding, across various settings. Code and the Graph-KV data are publicly available.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 65 of its 75 references that are in the map. First posted on arXiv 9 Jun 2025.
Builds on
65 of 75 references.
Closest ancestors · 1
Same direction, newest first
Other references · 64
- 2017Attention Is All You Needcited by 60,361
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Qwen Technical Reportcited by 3,344
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
38 more
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,163
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
- 2017The NarrativeQA Reading Comprehension Challengecited by 597
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 379
- 2023JudgeLM: Fine-tuned Large Language Models are Scalable Judgescited by 367
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 354
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
- 2023Large Language Models are Zero-Shot Rankers for Recommender Systemscited by 309
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 268
- 2024MultiHop-RAG: Benchmarking Retrieval-Augmented Generation for Multi-Hop Queriescited by 257
- 2023GraphGPT: Graph Instruction Tuning for Large Language Modelscited by 226
- 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 215
- 2024LLaGA: Large Language and Graph Assistantcited by 181
- 2023Talk like a Graph: Encoding Graphs for Large Language Modelscited by 176
- 2022A Survey on Retrieval-Augmented Text Generationcited by 158
- 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 150
- 2021Node Feature Extraction by Self-Supervised Multi-scale Neighborhood Predictioncited by 138
- 2024Let Your Graph Do the Talking: Encoding Structured Data for LLMscited by 118
- 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 90
- 2024ZeroG: Investigating Cross-dataset Zero-shot Transferability in Graphscited by 85
- 2024Long-Context Language Modeling with Parallel Context Encodingcited by 84
- 2022Parallel Context Windows for Large Language Modelscited by 81
- 2024LV-Eval: A Balanced Long-Context Benchmark with 5 Length Levels Up to 256Kcited by 81
- 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encodingcited by 72
- 2024Eliminating Position Bias of Language Models: A Mechanistic Approachcited by 65
- 2024LLMs as Zero-shot Graph Learners: Alignment of GNN Representations with LLM Token Embeddingscited by 61
- 2025On the Emergence of Position Bias in Transformerscited by 59
50 most cited of 64 All 64 (JSON)
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2026Rethinking the Value of Multi-Agent Workflow: A Strong Single Agent Baselinecited by 22
- 2026STEP-LLM: Generating CAD STEP Models from Natural Language with Large Language Modelscited by 1
- 2025Struc-EMB: The Potential of Structure-Aware Encoding in Language Embeddingscited by 0
- 2026UGID: Unified Graph Isomorphism for Debiasing Large Language Modelscited by 0
- 2026SLASH the Sink: Sharpening Structural Attention Inside LLMscited by 0
- 2026Towards Direct Latent-Space Synthesis for Parallel Branches in LLM-Agent Workflowscited by 0
- 2026Towards Direct Latent-Space Synthesis for Parallel Branches in LLM-Agent Workflows12 Jun 2026
- 2026SLASH the Sink: Sharpening Structural Attention Inside LLMs11 May 2026
- 2026UGID: Unified Graph Isomorphism for Debiasing Large Language Models19 Mar 2026
- 2026STEP-LLM: Generating CAD STEP Models from Natural Language with Large Language Models19 Jan 2026
- 2026Rethinking the Value of Multi-Agent Workflow: A Strong Single Agent Baseline18 Jan 2026
- 2025Struc-EMB: The Potential of Structure-Aware Encoding in Language Embeddings9 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025Weak-to-Strong GraphRAG: Aligning Weak Retrievers with Large Language Models for Graph-based Retrieval Augmented Generation
- 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
- 2025GRIL: Knowledge Graph Retrieval-Integrated Learning with Large Language Models
- 2025Are Large Language Models In-Context Graph Learners?
- 2026Use Graph When It Needs: Efficiently and Adaptively Integrating Retrieval-Augmented Generation with Graphs
- 2024GUNDAM: Aligning Large Language Models with Graph Understanding
- 2025Inference Scaled GraphRAG: Improving Multi Hop Question Answering on Knowledge Graphs