atlas

Research map / Large language models / Language, safety and interpretability

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

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: In-context learning analysis · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces Lifelong ICL, a setting where long-context LMs must handle a stream of classification tasks via in-context learning, and Task Haystack, a NIAH-style suite with a pass-rate metric that benchmarks 14 long-context LMs and diagnoses their failures.

Problem

Existing long-context evaluations (NIAH, key-value retrieval) mostly test shallow copying and do not measure whether models use long contexts of evolving tasks for in-context learning.

Approach

Treat a stream of classification tasks' demonstrations as one long prompt and call a model "passing" when its accuracy with the full Lifelong ICL prompt is not significantly worse than single-task ICL with only the relevant task's demonstrations, measured by a paired t-test across few-shot samples and permutations.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replay the test task's ICL demonstrations immediately before testing (ablation)Mistral-7B and FILM-7B · Task Haystack controlled analysis, 16 tasks, 4-shotaccuracy: +1.6% for Mistral-7B; +2.9% for FILM-7BHelped
Prepend irrelevant long text (ablation)Mistral-7B and FILM-7B · Task Haystack controlled analysisaccuracyHurt
Repeat the relevant ICL prompt to make the input longer (ablation)Mistral-7B and FILM-7B · Task Haystack controlled analysis, 16 tasks, 4-shotaccuracy: -1.3% for Mistral-7B; -3.1% for FILM-7BHurt
Remove the test task's instruction and ICL examples from the lifelong prompt (ablation)Mistral-7B and FILM-7B · Task Haystack controlled analysis, 16 tasks, 4-shotaccuracy: -3.3% for Mistral-7B; -4.1% for FILM-7BHurt
Paraphrase task instructions at test time (ablation)Mistral-7B and FILM-7B · Task Haystack controlled analysisaccuracyHurt
Repeat ICL examples multiple times (ablation)Mistral-7B and FILM-7B · Single-task multi-epoch ICLaccuracyMixed
Shuffle examples between repeated ICL demonstrations (ablation)Mistral-7B and FILM-7B · Single-task multi-epoch ICLaccuracyHelped
Repeat ICL examples more than 8 times (ablation)Mistral-7B and FILM-7B · Single-task multi-epoch ICLaccuracyHurt
Interleave examples from multiple tasks rather than keeping task examples groupedMistral-7B and FILM-7B · Task Haystack, 16 tasks, 4-shotaccuracy: 74.8 -> 72.1 for Mistral-7B; 75.4 -> 74.7 for FILM-7BHurt
Use the instruct version instead of the base versionLlama-3.1-70B · Task Haystack, 16 tasks, 4-shotpass rate: 83.8 -> 72.5Hurt

Surprising findings

Limitations

Experimental setup

Datasets: 64 HuggingFace classification datasets (e.g., boolq, dbpedia14, emo, sst2, mnli)

Benchmarks: Task Haystack (Scale-Shot, Scale-Task) original NIAH

Metrics: pass rate accuracy (S-acc, L-acc)

Baselines: Single-task ICL Gemini-1.5-Flash GPT-3.5-Turbo Llama-3.1-70B FILM-7B Mistral-7B

Builds on: needle-in-a-haystack rank classification many-shot in-context learning

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy