mlsanityData to 14 Oct 2026

Every Token Counts: Generalizing 16M Ultra-Long Context in Large Language Models

arXiv 2511.23319 ↗First posted 28 Nov 2025cs.CL cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

This work explores the challenge of building ``Machines that Can Remember'', framing long-term memory as the problem of efficient ultra-long context modeling. We argue that this requires three key properties: sparsity, random-access flexibility, and length generalization. To address ultra-long-context modeling, we leverage Hierarchical Sparse Attention (HSA), a novel attention mechanism that satisfies all three properties. We integrate HSA into Transformers to build HSA-UltraLong, which is an 8B-parameter MoE model trained on over 8 trillion tokens and is rigorously evaluated on different tasks with in-domain and out-of-domain context lengths to demonstrate its capability in handling ultra-long contexts. Results show that our model performs comparably to full-attention baselines on in-domain lengths while achieving over 90% accuracy on most in-context retrieval tasks with contexts up to 16M. This report outlines our experimental insights and open problems, contributing a foundation for future research in ultra-long context modeling.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 48 of its 52 references that are in the map. First posted on arXiv 28 Nov 2025.

Builds on

48 of 52 references.

References · 48

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2023GPT-4 Technical Reportcited by 18,396
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  6. 2025Qwen3 Technical Reportcited by 8,820
  7. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  8. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  9. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  10. 2024Qwen2.5 Technical Reportcited by 4,942
  11. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  12. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
36 more
  1. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  2. 2023Let's Verify Step by Stepcited by 3,789
  3. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  4. 2020Longformer: The Long-Document Transformercited by 3,413
  5. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  6. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  7. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
  8. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  9. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  10. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  11. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,228
  12. 2024OlympiadBench: A Challenging Benchmark for Promoting AGI with Olympiad-Level Bilingual Multimodal Scientific Problemscited by 1,136
  13. 2023AGIEval: A Human-Centric Benchmark for Evaluating Foundation Modelscited by 716
  14. 2023C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Modelscited by 708
  15. 2023Scaling Vision Transformers to 22 Billion Parameterscited by 694
  16. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
  17. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
  18. 2023CMMLU: Measuring massive multitask language understanding in Chinesecited by 449
  19. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
  20. 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 300
  21. 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 215
  22. 2024Auxiliary-Loss-Free Load Balancing Strategy for Mixture-of-Expertscited by 205
  23. 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 198
  24. 2023Small-scale proxies for large-scale Transformer training instabilitiescited by 183
  25. 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 144
  26. 2023CMATH: Can Your Language Model Pass Chinese Elementary School Math Test?cited by 90
  27. 2021Think you have Solved Direct-Answer Question Answering? Try ARC-DA, the Direct-Answer AI2 Reasoning Challengecited by 80
  28. 2024Layer-Condensed KV Cache for Efficient Inference of Large Language Modelscited by 59
  29. 2024Sparser is Faster and Less is More: Efficient Sparse Attention for Long-Range Transformerscited by 52
  30. 2025TileLang: A Composable Tiled Programming Model for AI Systemscited by 43
  31. 2025Every Activation Boosted: Scaling General Reasoner to 1 Trillion Open Language Foundationcited by 34
  32. 2023Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrievalcited by 20
  33. 2024Efficient Length-Generalizable Attention via Causal Retrieval for Long-Context Language Modelingcited by 9
  34. 2025Hardware-aligned Hierarchical Sparse Attention for Efficient Long-term Memory Accesscited by 9
  35. 2025Grove MoE: Towards Efficient and Superior MoE LLMs with Adjugate Expertscited by 9
  36. 2025Understanding and Improving Length Generalization in Hierarchical Sparse Attention Modelscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
  2. 2025Training-free Context-adaptive Attention for Efficient Long Context Modeling
  3. 2025Infinite Retrieval: Attention Enhanced LLMs in Long-Context Processing
  4. 2025Overcoming Long-Context Limitations of State-Space Models via Context-Dependent Sparse Attention
  5. 2025Long-Context Modeling with Dynamic Hierarchical Sparse Attention for Memory-Constrained LLM Inference
  6. 2026Context Memorization for Efficient Long Context Generation
  7. 2026Learning When to Attend: Conditional Memory Access for Long-Context LLMs
  8. 2025Adamas: Hadamard Sparse Attention for Efficient Long-Context Inference