Stress-Testing Long-Context Language Models with Lifelong ICL and Task Haystack
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
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
38 more
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,375
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2018Neural Network Acceptability Judgmentscited by 958
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 860
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 841
- 2024WildChat: 1M ChatGPT Interaction Logs in the Wildcited by 629
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
- 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 434
- 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 372
- 2017"Liar, Liar Pants on Fire": A New Benchmark Dataset for Fake News Detectioncited by 363
- 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 336
- 2018Multi-Task Identification of Entities, Relations, and Coreference for Scientific Knowledge Graph Constructioncited by 322
- 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 314
- 2013Good Debt or Bad Debt: Detecting Semantic Orientations in Economic Textscited by 310
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
- 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 236
- 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 234
- 2021Get Your Vitamin C! Robust Fact Verification with Contrastive Evidencecited by 225
- 2020Explainable Automated Fact-Checking for Public Health Claimscited by 211
- 2024Many-Shot In-Context Learningcited by 206
- 2018Hate Speech Dataset from a White Supremacy Forumcited by 198
- 2024World Model on Million-Length Video And Language With Blockwise RingAttentioncited by 198
- 2020CLIMATE-FEVER: A Dataset for Verification of Real-World Climate Claimscited by 196
- 2019Episodic Memory in Lifelong Language Learningcited by 188
- 2024Data Engineering for Scaling Language Models to 128K Contextcited by 186
- 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 176
- 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
- 2022Fine-tuned Language Models are Continual Learnerscited by 156
- 2020Continual Lifelong Learning in Natural Language Processing: A Surveycited by 152
- 2024Same Task, More Tokens: the Impact of Input Length on the Reasoning Performance of Large Language Modelscited by 152
- 2022MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languagescited by 146
- 2021A Token-level Reference-free Hallucination Detection Benchmark for Free-form Text Generationcited by 138
- 2021An Empirical Investigation of the Role of Pre-training in Lifelong Learningcited by 134
- 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 128
50 most cited of 75 All 75 (JSON)
Built on by
Citing papers per year: 2024: 2; 2025: 12; 2026: 5.
19 papers.
Sort:
By area:
- 2025Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scalecited by 178
- 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 125
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 47
- 2025LongProc: Benchmarking Long-Context Language Models on Long Procedural Generationcited by 29
- 2025One ruler to measure them all: Benchmarking multilingual long-context language modelscited by 19
- 2025Continual Learning for Generative AI: From LLMs to MLLMs and Beyondcited by 12
- 2025AbsenceBench: Language Models Can't Tell What's Missingcited by 9
- 2025Long Context Scaling: Divide and Conquer via Multi-Agent Question-driven Collaborationcited by 7
- 2025A Controllable Examination for Long-Context Language Modelscited by 7
- 2025PERK: Long-Context Reasoning as Test-Time Learningcited by 4
- 2024Retrieval Or Holistic Understanding? Dolce: Differentiate Our Long Context Evaluation Taskscited by 3
- 2025Flora: Effortless Context Construction to Arbitrary Length and Scalecited by 2
7 more
- 2026Beyond Reward Engineering: A Data Recipe for Long-Context Reinforcement Learningcited by 1
- 2025The Rarity Blind Spot: A Framework for Evaluating Statistical Reasoning in LLMscited by 0
- 2025On the Sensitivity of Instruction-tuned LLMs to Harmful Sentences in Long Inputscited by 0
- 2026LiFT: How to Enable In-Context Learning for Longitudinal Modellingcited by 0
- 2026Dense Contexts Are Hard Contexts: Lexical Density Limits Effective Context in LLMscited by 0
- 2026Out of Sight: Compression-Aware Content Protection against Agentic Crawlerscited by 0
- 2026RoPE is Dead, Long Live RoPE: Towards Scalable Data-aware Positional Encodingscited by 0
- 2026RoPE is Dead, Long Live RoPE: Towards Scalable Data-aware Positional Encodings28 Sep 2026
- 2026Out of Sight: Compression-Aware Content Protection against Agentic Crawlers9 Jul 2026
- 2026Beyond Reward Engineering: A Data Recipe for Long-Context Reinforcement Learning17 Jun 2026
- 2026Dense Contexts Are Hard Contexts: Lexical Density Limits Effective Context in LLMs4 Jun 2026
- 2026LiFT: How to Enable In-Context Learning for Longitudinal Modelling25 Mar 2026
- 2025On the Sensitivity of Instruction-tuned LLMs to Harmful Sentences in Long Inputs7 Oct 2025
- 2025The Rarity Blind Spot: A Framework for Evaluating Statistical Reasoning in LLMs29 Aug 2025
- 2025Flora: Effortless Context Construction to Arbitrary Length and Scale26 Jul 2025
- 2025PERK: Long-Context Reasoning as Test-Time Learning8 Jul 2025
- 2025Continual Learning for Generative AI: From LLMs to MLLMs and Beyond16 Jun 2025
- 2025AbsenceBench: Language Models Can't Tell What's Missing13 Jun 2025
- 2025A Controllable Examination for Long-Context Language Models3 Jun 2025
7 more
- 2025Long Context Scaling: Divide and Conquer via Multi-Agent Question-driven Collaboration27 May 2025
- 2025Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scale19 Apr 2025
- 2025One ruler to measure them all: Benchmarking multilingual long-context language models3 Mar 2025
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategy30 Jan 2025
- 2025LongProc: Benchmarking Long-Context Language Models on Long Procedural Generation9 Jan 2025
- 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughly3 Oct 2024
- 2024Retrieval Or Holistic Understanding? Dolce: Differentiate Our Long Context Evaluation Tasks10 Sep 2024
- 2025Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scalecited by 178
- 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 125
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 47
- 2025LongProc: Benchmarking Long-Context Language Models on Long Procedural Generationcited by 29
- 2025One ruler to measure them all: Benchmarking multilingual long-context language modelscited by 19
- 2025Continual Learning for Generative AI: From LLMs to MLLMs and Beyondcited by 12
- 2025AbsenceBench: Language Models Can't Tell What's Missingcited by 9
- 2025A Controllable Examination for Long-Context Language Modelscited by 7
- 2024Retrieval Or Holistic Understanding? Dolce: Differentiate Our Long Context Evaluation Taskscited by 3
- 2025Flora: Effortless Context Construction to Arbitrary Length and Scalecited by 2
- 2025On the Sensitivity of Instruction-tuned LLMs to Harmful Sentences in Long Inputscited by 0
- 2026LiFT: How to Enable In-Context Learning for Longitudinal Modellingcited by 0
12 most cited of 14 All 14 (JSON)
- 2026RoPE is Dead, Long Live RoPE: Towards Scalable Data-aware Positional Encodings28 Sep 2026
- 2026Dense Contexts Are Hard Contexts: Lexical Density Limits Effective Context in LLMs4 Jun 2026
- 2026LiFT: How to Enable In-Context Learning for Longitudinal Modelling25 Mar 2026
- 2025On the Sensitivity of Instruction-tuned LLMs to Harmful Sentences in Long Inputs7 Oct 2025
- 2025Flora: Effortless Context Construction to Arbitrary Length and Scale26 Jul 2025
- 2025Continual Learning for Generative AI: From LLMs to MLLMs and Beyond16 Jun 2025
- 2025AbsenceBench: Language Models Can't Tell What's Missing13 Jun 2025
- 2025A Controllable Examination for Long-Context Language Models3 Jun 2025
- 2025Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scale19 Apr 2025
- 2025One ruler to measure them all: Benchmarking multilingual long-context language models3 Mar 2025
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategy30 Jan 2025
- 2025LongProc: Benchmarking Long-Context Language Models on Long Procedural Generation9 Jan 2025
12 newest of 14 All 14 (JSON)