mlsanityData to 14 Oct 2026

Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Models

arXiv 2506.07334 ↗First posted 9 Jun 2025cs.LGcited by 6

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

  1. 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion26 May

Other references · 64

  1. 2017Attention Is All You Needcited by 60,361
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  3. 2023GPT-4 Technical Reportcited by 18,396
  4. 2024The Llama 3 Herd of Modelscited by 14,715
  5. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  6. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  7. 2020Scaling Laws for Neural Language Modelscited by 6,586
  8. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  9. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  10. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  11. 2023Qwen Technical Reportcited by 3,344
  12. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
38 more
  1. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  2. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
  3. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
  4. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  5. 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,163
  6. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  7. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
  8. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  9. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
  10. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
  11. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  12. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  13. 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
  14. 2017The NarrativeQA Reading Comprehension Challengecited by 597
  15. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 379
  16. 2023JudgeLM: Fine-tuned Large Language Models are Scalable Judgescited by 367
  17. 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 354
  18. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
  19. 2023Large Language Models are Zero-Shot Rankers for Recommender Systemscited by 309
  20. 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 268
  21. 2024MultiHop-RAG: Benchmarking Retrieval-Augmented Generation for Multi-Hop Queriescited by 257
  22. 2023GraphGPT: Graph Instruction Tuning for Large Language Modelscited by 226
  23. 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 215
  24. 2024LLaGA: Large Language and Graph Assistantcited by 181
  25. 2023Talk like a Graph: Encoding Graphs for Large Language Modelscited by 176
  26. 2022A Survey on Retrieval-Augmented Text Generationcited by 158
  27. 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 150
  28. 2021Node Feature Extraction by Self-Supervised Multi-scale Neighborhood Predictioncited by 138
  29. 2024Let Your Graph Do the Talking: Encoding Structured Data for LLMscited by 118
  30. 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 90
  31. 2024ZeroG: Investigating Cross-dataset Zero-shot Transferability in Graphscited by 85
  32. 2024Long-Context Language Modeling with Parallel Context Encodingcited by 84
  33. 2022Parallel Context Windows for Large Language Modelscited by 81
  34. 2024LV-Eval: A Balanced Long-Context Benchmark with 5 Length Levels Up to 256Kcited by 81
  35. 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encodingcited by 72
  36. 2024Eliminating Position Bias of Language Models: A Mechanistic Approachcited by 65
  37. 2024LLMs as Zero-shot Graph Learners: Alignment of GNN Representations with LLM Token Embeddingscited by 61
  38. 2025On the Emergence of Position Bias in Transformerscited by 59

50 most cited of 64 All 64 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 5.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Weak-to-Strong GraphRAG: Aligning Weak Retrievers with Large Language Models for Graph-based Retrieval Augmented Generation
  2. 2025Graph-based Approaches and Functionalities in Retrieval-Augmented Generation: A Comprehensive Survey
  3. 2024Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generation
  4. 2025GRIL: Knowledge Graph Retrieval-Integrated Learning with Large Language Models
  5. 2025Are Large Language Models In-Context Graph Learners?
  6. 2026Use Graph When It Needs: Efficiently and Adaptively Integrating Retrieval-Augmented Generation with Graphs
  7. 2024GUNDAM: Aligning Large Language Models with Graph Understanding
  8. 2025Inference Scaled GraphRAG: Improving Multi Hop Question Answering on Knowledge Graphs