mlsanityData to 14 Oct 2026

LoCoCo: Dropping In Convolutions for Long Context Compression

arXiv 2406.05317 ↗First posted 8 Jun 2024cs.LG cs.CLcited by 19

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

This paper tackles the memory hurdle of processing long context sequences in Large Language Models (LLMs), by presenting a novel approach, Dropping In Convolutions for Long Context Compression (LoCoCo). LoCoCo employs only a fixed-size Key-Value (KV) cache, and can enhance efficiency in both inference and fine-tuning stages. Diverging from prior methods that selectively drop KV pairs based on heuristics, LoCoCo leverages a data-driven adaptive fusion technique, blending previous KV pairs with incoming tokens to minimize the loss of contextual information and ensure accurate attention modeling. This token integration is achieved through injecting one-dimensional convolutional kernels that dynamically calculate mixing weights for each KV cache slot. Designed for broad compatibility with existing LLM frameworks, LoCoCo allows for straightforward "drop-in" integration without needing architectural modifications, while incurring minimal tuning overhead. Experiments demonstrate that LoCoCo maintains consistently outstanding performance across various context lengths and can achieve a high context compression rate during both inference and fine-tuning phases. During inference, we successfully compressed up to 3482 tokens into a 128-size KV cache, while retaining comparable performance to the full sequence - an accuracy improvement of up to 0.2791 compared to baselines at the same cache size. During post-training tuning, we also effectively extended the context length from 4K to 32K using a KV cache of fixed size 512, achieving performance similar to fine-tuning with entire sequences.

Key facts. Cited by 19 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 52 of its 59 references that are in the map. First posted on arXiv 8 Jun 2024.

Builds on

52 of 59 references.

Closest ancestors · 1

Same direction, newest first

  1. 2023SparQ Attention: Bandwidth-Efficient LLM Inference8 Dec

Other references · 51

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  6. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  7. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  8. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  9. 2020Longformer: The Long-Document Transformercited by 3,413
  10. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
  11. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  12. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
38 more
  1. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  2. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  3. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  4. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  5. 2020Reformer: The Efficient Transformercited by 1,668
  6. 2020Rethinking Attention with Performerscited by 1,601
  7. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  8. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  9. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  10. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
  11. 2014Convolutional Neural Networks for Sentence Classificationcited by 1,127
  12. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  13. 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,031
  14. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
  15. 2020Efficient Transformers: A Surveycited by 790
  16. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
  17. 2016Language Modeling with Gated Convolutional Networkscited by 702
  18. 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 608
  19. 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 605
  20. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
  21. 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
  22. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
  23. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
  24. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 453
  25. 2022On the Parameterization and Initialization of Diagonal State Space Modelscited by 424
  26. 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
  27. 2022Diagonal State Spaces are as Effective as Structured State Spacescited by 350
  28. 2023Effective Long-Context Scaling of Foundation Modelscited by 303
  29. 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 213
  30. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
  31. 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
  32. 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 136
  33. 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
  34. 2020Evaluating Factuality in Generation with Dependency-level Entailmentcited by 122
  35. 2023Evaluating Open-Domain Question Answering in the Era of Large Language Modelscited by 111
  36. 2023PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Trainingcited by 111
  37. 2023Laughing Hyena Distillery: Extracting Compact Recurrences From Convolutionscited by 24
  38. 2024Extending LLMs' Context Window with 100 Samplescited by 21

50 most cited of 51 All 51 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 5; 2025: 9; 2026: 5.

19 papers.

Sort:

By area:

  1. 2024D2O: Dynamic Discriminative Operations for Efficient Long-Context Inference of Large Language Modelscited by 31
  2. 2024ParallelSpec: Parallel Drafter for Efficient Speculative Decodingcited by 22
  3. 2024A Tighter Complexity Analysis of SparseGPTcited by 19
  4. 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
  5. 2024Locret: Enhancing Eviction in Long-Context LLM Inference with Trained Retaining Heads on Consumer-Grade Devicescited by 15
  6. 2025Long Context In-Context Compression by Getting to the Gist of Gistingcited by 13
  7. 2025Kinetics: Rethinking Test-Time Scaling Lawscited by 12
  8. 2025FAEDKV: Infinite-Window Fourier Transform for Unbiased KV Cache Compressioncited by 11
  9. 2025AdmTree: Compressing Lengthy Context with Adaptive Semantic Treescited by 8
  10. 2025FreqKV: Key-Value Compression in Frequency Domain for Context Window Extensioncited by 7
  11. 2025Rethinking Addressing in Language Models via Contexualized Equivariant Positional Encodingcited by 4
  12. 2025Cost-Optimal Grouped-Query Attention for Long-Context Modelingcited by 4
7 more
  1. 2025APB: Accelerating Distributed Long-Context Inference by Passing Compressed Context Blocks across GPUscited by 3
  2. 2026Multi-Head Low-Rank Attentioncited by 2
  3. 2025High-Layer Attention Pruning with Rescalingcited by 1
  4. 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agentscited by 1
  5. 2026Meta-Soft: Leveraging Composable Meta-Tokens for Context-Preserving KV Cache Compressioncited by 0
  6. 2026The Optimization Landscape of Learning Compacted Context Modelscited by 0
  7. 2026Evaluating Compressed Memory: Dependence, Utility, and Content Benefitcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compression
  2. 2024Recurrent Context Compression: Efficiently Expanding the Context Window of LLM
  3. 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inference
  4. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs
  5. 2024A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contexts
  6. 2026CompressKV: Semantic-Retrieval-Guided KV-Cache Compression for Resource-Efficient Long-Context LLM Inference
  7. 2024Compressing KV Cache for Long-Context LLM Inference with Inter-Layer Attention Similarity
  8. 2026Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference