mlsanityData to 14 Oct 2026

FocuSFT: Bilevel Optimization for Dilution-Aware Long-Context Fine-Tuning

arXiv 2605.09932 ↗First posted 11 May 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models can now process increasingly long inputs, yet their ability to effectively use information spread across long contexts remains limited. We trace this gap to how attention budget is spent during supervised fine-tuning (SFT) on long sequences: positional biases and attention sinks cause the model to allocate most of its attention to positionally privileged tokens rather than semantically relevant content. This training-time attention dilution (the starvation of content tokens in the attention distribution) weakens the gradient signal, limiting the model's ability to learn robust long-context capabilities. We introduce FocuSFT, a bilevel optimization framework that addresses this problem at training time. An inner loop adapts lightweight fast-weight parameters on the training context to form a parametric memory that concentrates attention on relevant content, and the outer loop performs SFT conditioned on this sharpened representation. Both loops apply bidirectional attention over context tokens while preserving causal masking for responses, reducing the causal asymmetry that gives rise to attention sinks and aligning inner-outer behavior. On BABILong, FocuSFT improves accuracy by up to +14pp across 4K--32K context lengths; on RULER, it raises CWE aggregation from 72.9% to 81.1% at 16K; and on GPQA with agentic tool use, it yields a 24% relative gain in pass@1. Attention analysis shows that FocuSFT reduces attention sink mass by 529× and triples context engagement during training. Code: https://github.com/JarvisPei/FocuSFT

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 34 of its 41 references that are in the map. First posted on arXiv 11 May 2026.

Builds on

34 of 41 references.

References · 34

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  3. 2024Qwen2.5 Technical Reportcited by 4,942
  4. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
  5. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  6. 2020Longformer: The Long-Document Transformercited by 3,413
  7. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  8. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  9. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
  10. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  11. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  12. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
22 more
  1. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  2. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  3. 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,031
  4. 2018On First-Order Meta-Learning Algorithmscited by 1,018
  5. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
  6. 2019Meta-Learning with Implicit Gradientscited by 525
  7. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
  8. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
  9. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 313
  10. 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 244
  11. 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 215
  12. 2016Using Fast Weights to Attend to the Recent Pastcited by 170
  13. 2023Scaling Laws of RoPE-based Extrapolationcited by 125
  14. 2024LongAlign: A Recipe for Long Context Alignment of Large Language Modelscited by 106
  15. 2024Found in the Middle: Calibrating Positional Attention Bias Improves Long Context Utilizationcited by 101
  16. 2024MEMORYLLM: Towards Self-Updatable Large Language Modelscited by 93
  17. 2025End-to-End Test-Time Training for Long Contextcited by 62
  18. 2024ScaleBiO: Scalable Bilevel Optimization for LLM Data Reweightingcited by 37
  19. 2025Demystifying Reinforcement Learning in Agentic Reasoningcited by 33
  20. 2022Meta-Learning Fast Weight Language Modelscited by 21
  21. 2025Let's (not) just put things in Context: Test-Time Training for Long-Context LLMscited by 18
  22. 2025SCOPE: Prompt Evolution for Enhancing Agent Effectivenesscited by 18

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Training-free Context-adaptive Attention for Efficient Long Context Modeling
  2. 2025Mechanistic Fine-tuning for In-context Learning
  3. 2025DAM: Dynamic Attention Mask for Long-Context Large Language Model Inference Acceleration
  4. 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
  5. 2026Titan-Llama: Retrofitting Pre-trained LLMs with External Neural Memory Modules
  6. 2026Dynamic Positional Attention Modulation for Parameter-Efficient Fine-Tuning of Large Language Models
  7. 2025ZeroTuning: Unlocking the Initial Token's Power to Enhance Large Language Models Without Training
  8. 2024HFT: Half Fine-Tuning for Large Language Models