SinkLoRA: Enhanced Efficiency and Chat Capabilities for Long-Context Large Language Models
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
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2023Mistral 7Bcited by 3,164
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Reformer: The Efficient Transformercited by 1,668
18 more
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,031
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 763
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2023Instruction Tuning with GPT-4cited by 686
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 474
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 439
- 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 244
- 2022OPT-IML: Scaling Language Model Instruction Meta Learning through the Lens of Generalizationcited by 236
- 2023SparQ Attention: Bandwidth-Efficient LLM Inferencecited by 119
- 2024Can LLMs Master Math? Investigating Large Language Models on Math Stack Exchangecited by 22
- 2022LSG Attention: Extrapolation of pretrained Transformers to long sequencescited by 16
- 2024Zero-Shot RTL Code Generation with Attention Sink Augmented Large Language Modelscited by 5
- 2024Can LLMs substitute SQL? Comparing Resource Utilization of Querying LLMs versus Traditional Relational Databasescited by 2
- 2024Equipping Transformer with Random-Access Reading for Long-Context Understandingcited by 1
Built on by
Citing papers per year: 2024: 3; 2025: 4; 2026: 2.
9 papers.
- 2025A Survey of Context Engineering for Large Language Modelscited by 126
- 2024A Survey on LoRA of Large Language Modelscited by 67
- 2024Low-Rank Adaptation for Foundation Models: A Comprehensive Reviewcited by 37
- 2025Tensor Product Attention Is All You Needcited by 31
- 2026Attention Sink in Transformers: A Survey on Utilization, Interpretation, and Mitigationcited by 11
- 2024LOGO -- Long cOntext aliGnment via efficient preference Optimizationcited by 9
- 2025SAS: Simulated Attention Scorecited by 4
- 2025QKV Projections Require a Fraction of Their Memorycited by 2
- 2026LESSViT: Robust Hyperspectral Representation Learning under Spectral Configuration Shiftcited by 0
- 2026LESSViT: Robust Hyperspectral Representation Learning under Spectral Configuration Shift18 May 2026
- 2026Attention Sink in Transformers: A Survey on Utilization, Interpretation, and Mitigation11 Apr 2026
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025
- 2025SAS: Simulated Attention Score10 Jul 2025
- 2025QKV Projections Require a Fraction of Their Memory3 Jun 2025
- 2025Tensor Product Attention Is All You Need11 Jan 2025
- 2024Low-Rank Adaptation for Foundation Models: A Comprehensive Review31 Dec 2024
- 2024LOGO -- Long cOntext aliGnment via efficient preference Optimization24 Oct 2024
- 2024A Survey on LoRA of Large Language Models8 Jul 2024
Similar, not cited
Close in wording, no citation either way
- 2025Sliding Window Attention Training for Efficient Large Language Models
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention
- 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormer
- 2025Training-free Context-adaptive Attention for Efficient Long Context Modeling
- 2024A Training-free Sub-quadratic Cost Transformer Model Serving Framework With Hierarchically Pruned Attention
- 2025Every Token Counts: Generalizing 16M Ultra-Long Context in Large Language Models
- 2026Sliding-window beats linear attention
- 2025Adamas: Hadamard Sparse Attention for Efficient Long-Context Inference