mlsanityData to 14 Oct 2026

SinkLoRA: Enhanced Efficiency and Chat Capabilities for Long-Context Large Language Models

arXiv 2406.05678 ↗First posted 9 Jun 2024cs.CLcited by 9

Not on the map. Why?

Abstract (arXiv)

Extending the functionality of the Transformer model to accommodate longer sequence lengths has become a critical challenge. This extension is crucial not only for improving tasks such as language translation and long-context processing but also for enabling novel applications like chatbots, code generation, and multimedia content creation. The primary obstacle is the self-attention mechanism, which scales quadratically with sequence length in terms of computation time and memory requirements. LongLoRA proposed shifted sparse attention (S(2)-Attn), effectively enabling context extension and leading to non-trivial computation savings with similar performance to fine-tuning with vanilla attention. However, LongLoRA is still not as efficient as vanilla attention, reaching only 39% of the perplexity improvement compared to full attention. This inefficiency is due to the cyclic shift applied within different attention head patterns, causing either chaos in the attention head structure or unnecessary information exchange between token groups. To address these issues, We propose SinkLoRA, which features better work partitioning. Specifically, (1) we developed SF-Attn with a segmentation and reassembly algorithm to proportionally return cyclically shifted groups of attention heads to their un-shifted state together with global attention of "sink attention tokens", achieving 92% of the perplexity improvement compared to full attention after fine tuning, and (2) applied a SOTA KV cache compression algorithm H2O to accelerate inference. Furthermore, We conducted supervised fine-tuning with SinkLoRA using a self collected LongAlpaca-plus dataset. All our code, models, datasets, and demos are available at urlhttps://github.com/Dexter-GT-86/SinkLoRA.

Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 30 of its 40 references that are in the map. First posted on arXiv 9 Jun 2024.

Builds on

30 of 40 references.

References · 30

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  4. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  5. 2020Longformer: The Long-Document Transformercited by 3,413
  6. 2023Mistral 7Bcited by 3,164
  7. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  8. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  9. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
  10. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
  11. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  12. 2020Reformer: The Efficient Transformercited by 1,668
18 more
  1. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  2. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  3. 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,031
  4. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
  5. 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 763
  6. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
  7. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
  8. 2023Instruction Tuning with GPT-4cited by 686
  9. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 474
  10. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 439
  11. 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 244
  12. 2022OPT-IML: Scaling Language Model Instruction Meta Learning through the Lens of Generalizationcited by 236
  13. 2023SparQ Attention: Bandwidth-Efficient LLM Inferencecited by 119
  14. 2024Can LLMs Master Math? Investigating Large Language Models on Math Stack Exchangecited by 22
  15. 2022LSG Attention: Extrapolation of pretrained Transformers to long sequencescited by 16
  16. 2024Zero-Shot RTL Code Generation with Attention Sink Augmented Large Language Modelscited by 5
  17. 2024Can LLMs substitute SQL? Comparing Resource Utilization of Querying LLMs versus Traditional Relational Databasescited by 2
  18. 2024Equipping Transformer with Random-Access Reading for Long-Context Understandingcited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 3; 2025: 4; 2026: 2.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Sliding Window Attention Training for Efficient Large Language Models
  2. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention
  3. 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormer
  4. 2025Training-free Context-adaptive Attention for Efficient Long Context Modeling
  5. 2024A Training-free Sub-quadratic Cost Transformer Model Serving Framework With Hierarchically Pruned Attention
  6. 2025Every Token Counts: Generalizing 16M Ultra-Long Context in Large Language Models
  7. 2026Sliding-window beats linear attention
  8. 2025Adamas: Hadamard Sparse Attention for Efficient Long-Context Inference