scimeatlas

Research map / Architectures and efficiency / Attention and transformers

Efficient Many-Shot In-Context Learning with Dynamic Block-Sparse Attention

Emily Xiao, Chin-Jou Li, Yilin Zhang, Graham Neubig, Amanda Bertsch

ACL 2025Architectures and efficiency › Attention and transformersapproach: Sparse attention for long-context LLMsopen problems in this approach12 citations (OpenAlex)

Carnegie Mellon University

Read the paperPlace an idea next to itCheck your own paper ↗

11measured effects
7improved
1no clear effect
3hurt

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
keep local attention to previous blocks in addition to the sink during encoding (ablation)DBSA block-sparse encoding · 5 classification datasets, Llama-2 30kaverage accuracy: 0.27 -> 0.82Improved
add an attention sink block to self-only block encoding (ablation)block-sparse encoding · 5 classification datasets, Llama-2 30kaverage accuracy: 0.09 -> 0.27Improved
sparse sink+prev+self encoding instead of full attention (ablation)DBSA · 5 classification datasets, Llama-2 30kaverage accuracy: 0.84 -> 0.82Hurt
use block-level instead of example-level demonstration selection with sparse KV reuse (ablation)DBSA · 30k Llama-2, 10% retrieval ratioaccuracy: 0.79 -> 0.79 (gap to standard inference 0.03 -> 0.00)Improved
swap 10% of examples between BM25 clusters to add diversity within blocks (ablation)clustered block grouping · 5 classification datasets, Llama-2 30kaverage accuracy: 0.764 -> 0.810Improved
group blocks by BM25 clustering instead of randomly (ablation)DBSA · 5 classification datasets, Llama-2 30kaverage accuracy: 0.827 -> 0.764Hurt
reverse the order of cached blocks at inference (ablation)DBSA · 5 classification datasets, Llama-2 30kaverage accuracy: 0.834 -> 0.794Hurt
reorder cached blocks from low to high relevance (ablation)DBSA · 5 classification datasets, Llama-2 30kaverage accuracy: 0.834 -> 0.835No clear effect
use DBSA instead of cached fixed ICL for inferenceLlama-2-7B, 30k context · relative inference latencylatency relative to RetICL: 0.51x -> 0.22xImproved
use DBSA instead of LoRA finetuning at 90kLlama-3.1-8B · 5 classification datasets, 90k contextaverage accuracy: 0.83 -> 0.90Improved
finetune on all training data instead of the 90k demonstration pool (ablation)LoRA finetuning, Llama-3.1-8B · 5 classification datasetsaverage accuracy: 0.832 -> 0.904Improved

Open problems in sparse attention for long-context LLMs

Which attention can a long-context model drop without losing the answer?

All 4 open problems and what was already tried →

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