Reproduce “Long-Context Demonstration Selection Using State Space Models” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Ziniu Zhang, Zhenshuo Zhang, Ruoxuan Xiong, Gene Cooperman, Hongyang R. Zhang
The authors introduce a method for selecting demonstrations using grouped state-space models (SSMs) to compress long prefixes into key-value states for a transformer. It scores sampled subsets by validation loss, avoiding repeated processing of full prefixes. In five tasks with Qwen-3B, it improves accuracy over BRIDGE by 6.48% on average and reduces measured FLOPs 14.2×; these results are not wall-clock measurements.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.