mlsanityData to 14 Oct 2026

Stress-Testing Long-Context Language Models with Lifelong ICL and Task Haystack

arXiv 2407.16695 ↗First posted 23 Jul 2024cs.CL cs.AI cs.LGcited by 19

Not on the map. Why?

Abstract (arXiv)

We introduce Lifelong ICL, a problem setting that challenges long-context language models (LMs) to learn a sequence of language tasks through in-context learning (ICL). We further introduce Task Haystack, an evaluation suite dedicated to assessing and diagnosing how long-context LMs utilizes contexts in Lifelong ICL. When given a task instruction and test inputs, long-context LMs are expected to leverage the relevant demonstrations in the Lifelong ICL prompt, avoid distraction and interference from other tasks, and achieve test accuracies that are not significantly worse than those of the Single-task ICL baseline. Task Haystack draws inspiration from the widely-adopted "needle-in-a-haystack" (NIAH) evaluation, but presents distinct new challenges. It requires models (1) to utilize the contexts at a deeper level, rather than resorting to simple copying and pasting; (2) to navigate through long streams of evolving topics and tasks, proxying the complexities and dynamism of contexts in real-world scenarios. Additionally, Task Haystack inherits the controllability of NIAH, providing model developers with tools and visualizations to identify model vulnerabilities effectively. We benchmark 14 long-context LMs using Task Haystack, finding that frontier models like GPT-4o still struggle with the setting, failing on 15% of cases on average. Most open-weight models further lack behind by a large margin, with failure rates reaching up to 61%. In our controlled analysis, we identify factors such as distraction and recency bias as contributors to these failure cases. Further, performance declines when task instructions are paraphrased at test time or when ICL demonstrations are repeated excessively, raising concerns about the robustness, instruction understanding, and true context utilization of long-context LMs.

Key facts. Cited by 19 papers in the map (data through 14 Oct 2026). Builds on 75 of its 113 references that are in the map. First posted on arXiv 23 Jul 2024.

Builds on

75 of 113 references.

References · 75

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  3. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  4. 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  6. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  8. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  9. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  10. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
  11. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  12. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
38 more
  1. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
  2. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  3. 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,375
  4. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  5. 2018Neural Network Acceptability Judgmentscited by 958
  6. 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
  7. 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 860
  8. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 841
  9. 2024WildChat: 1M ChatGPT Interaction Logs in the Wildcited by 629
  10. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
  11. 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 434
  12. 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 372
  13. 2017"Liar, Liar Pants on Fire": A New Benchmark Dataset for Fake News Detectioncited by 363
  14. 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 336
  15. 2018Multi-Task Identification of Entities, Relations, and Coreference for Scientific Knowledge Graph Constructioncited by 322
  16. 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 314
  17. 2013Good Debt or Bad Debt: Detecting Semantic Orientations in Economic Textscited by 310
  18. 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
  19. 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 236
  20. 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 234
  21. 2021Get Your Vitamin C! Robust Fact Verification with Contrastive Evidencecited by 225
  22. 2020Explainable Automated Fact-Checking for Public Health Claimscited by 211
  23. 2024Many-Shot In-Context Learningcited by 206
  24. 2018Hate Speech Dataset from a White Supremacy Forumcited by 198
  25. 2024World Model on Million-Length Video And Language With Blockwise RingAttentioncited by 198
  26. 2020CLIMATE-FEVER: A Dataset for Verification of Real-World Climate Claimscited by 196
  27. 2019Episodic Memory in Lifelong Language Learningcited by 188
  28. 2024Data Engineering for Scaling Language Models to 128K Contextcited by 186
  29. 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 176
  30. 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
  31. 2022Fine-tuned Language Models are Continual Learnerscited by 156
  32. 2020Continual Lifelong Learning in Natural Language Processing: A Surveycited by 152
  33. 2024Same Task, More Tokens: the Impact of Input Length on the Reasoning Performance of Large Language Modelscited by 152
  34. 2022MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languagescited by 146
  35. 2021A Token-level Reference-free Hallucination Detection Benchmark for Free-form Text Generationcited by 138
  36. 2021An Empirical Investigation of the Role of Pre-training in Lifelong Learningcited by 134
  37. 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
  38. 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 128

50 most cited of 75 All 75 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 2; 2025: 12; 2026: 5.

19 papers.

Sort:

By area:

  1. 2025Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scalecited by 178
  2. 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 125
  3. 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 47
  4. 2025LongProc: Benchmarking Long-Context Language Models on Long Procedural Generationcited by 29
  5. 2025One ruler to measure them all: Benchmarking multilingual long-context language modelscited by 19
  6. 2025Continual Learning for Generative AI: From LLMs to MLLMs and Beyondcited by 12
  7. 2025AbsenceBench: Language Models Can't Tell What's Missingcited by 9
  8. 2025Long Context Scaling: Divide and Conquer via Multi-Agent Question-driven Collaborationcited by 7
  9. 2025A Controllable Examination for Long-Context Language Modelscited by 7
  10. 2025PERK: Long-Context Reasoning as Test-Time Learningcited by 4
  11. 2024Retrieval Or Holistic Understanding? Dolce: Differentiate Our Long Context Evaluation Taskscited by 3
  12. 2025Flora: Effortless Context Construction to Arbitrary Length and Scalecited by 2
7 more
  1. 2026Beyond Reward Engineering: A Data Recipe for Long-Context Reinforcement Learningcited by 1
  2. 2025The Rarity Blind Spot: A Framework for Evaluating Statistical Reasoning in LLMscited by 0
  3. 2025On the Sensitivity of Instruction-tuned LLMs to Harmful Sentences in Long Inputscited by 0
  4. 2026LiFT: How to Enable In-Context Learning for Longitudinal Modellingcited by 0
  5. 2026Dense Contexts Are Hard Contexts: Lexical Density Limits Effective Context in LLMscited by 0
  6. 2026Out of Sight: Compression-Aware Content Protection against Agentic Crawlerscited by 0
  7. 2026RoPE is Dead, Long Live RoPE: Towards Scalable Data-aware Positional Encodingscited by 0