Research map / Architectures and efficiency / Attention and transformers
Long-Context Demonstration Selection Using State Space Models
Ziniu Zhang, Zhenshuo Zhang, Ruoxuan Xiong, Gene Cooperman, Hongyang R. Zhang
Northeastern University · Emory University
Read the paperPlace an idea next to itCheck your own paper ↗
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 changed | Where | Measured | Effect |
|---|---|---|---|
| select with SSM-based Algorithm instead of BRIDGE | Qwen-3B · 5 datasets (avg) | accuracy (%): +6.48% average | Improved |
| add SSM acceleration to existing selection pipelines | Qwen-3B · 5 datasets (avg) | accuracy (%): -0.22% average | No clear effect |
| add SSM acceleration to BRIDGE | Qwen-3B · SST-2 | accuracy (%): 89.9 -> 89.9 | No clear effect |
| SSM acceleration of full inference vs Dense | Qwen-3B · MMLU | FLOPs: 6.53e15 -> 3.49e13 | Improved |
| our method vs BSA | Qwen-3B · MMLU/Modular Addition/GSM8K | relative error and FLOPs: -2.17% error; -35.5% FLOPs | Improved |
| extend context to 1000 demonstrations without fine-tuning | SSM trained on 50 demonstrations · all datasets | relative output error: error below 1.8% | No clear effect |
| increase number of tokens n_v from 2 to 32 (ablation) | SSM selection · SST-2 | output MSE: 0.027 -> 0.003 | Improved |
| increase n_v from 16 to 32 (ablation) | SSM selection · SST-2 | output MSE: 0.006 -> 0.003 | No clear effect |
| increase HiPPO state dimension beyond 512 (ablation) | SSM · SST-2 | test loss | No clear effect |
| transfer SSM from source task | SSM · cross-task pairs | relative error: 65% fewer GPU hours; error below 1.0% | Improved |
| sample more subsets for ensemble (ablation) | randomized affinity estimator · linear functions | affinity score gap D1 vs D2: 10 subsets 0.22 vs 0.21; 50 subsets 0.55 vs 0.52 | Improved |
Open problems in state space and recurrent sequence models
Do state space and recurrent models keep their efficiency and recall at large scale and long context?
- Experiments stop at small models, around 1.3B parameters or less. · 24 papers state it
- Theory covers simplified models, not the architectures used in practice. · 13 papers state it
- Kernels are naive or unoptimized, so speed gains are not realized. · 10 papers state it
Closest papers by meaning
- Comparative Analysis of Demonstration Selection Algorithms for In-Context Learning in Large Language Models (Student Abstract) (AAAI 2025 · similarity 0.91)
- Auto-regressive In-context Demonstration Selection (ICML 2026 · similarity 0.90)
- Linear-Time Demonstration Selection for In-Context Learning via Gradient Estimation (EMNLP 2025 · similarity 0.90)
- Revisiting Demonstration Selection Strategies in In-Context Learning (ACL 2024 · similarity 0.90)
- Large Language Models are Demonstration Pre-Selectors for Themselves (ICML 2025 · similarity 0.90)
- Mixture of Demonstrations for In-Context Learning (NeurIPS 2024 · similarity 0.89)
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.