State Soup: In-Context Skill Learning, Retrieval and Mixing
Not on the map. Why?
Abstract (arXiv)
A new breed of gated-linear recurrent neural networks has reached state-of-the-art performance on a range of sequence modeling problems. Such models naturally handle long sequences efficiently, as the cost of processing a new input is independent of sequence length. Here, we explore another advantage of these stateful sequence models, inspired by the success of model merging through parameter interpolation. Building on parallels between fine-tuning and in-context learning, we investigate whether we can treat internal states as task vectors that can be stored, retrieved, and then linearly combined, exploiting the linearity of recurrence. We study this form of fast model merging on Mamba-2.8b, a pretrained recurrent model, and present preliminary evidence that simple linear state interpolation methods suffice to improve next-token perplexity as well as downstream in-context learning task performance.
Key facts. Cited by 3 papers in the map (data through 13 Oct 2026). Builds on 18 of its 25 references that are in the map. First posted on arXiv 12 Jun 2024.
Builds on
18 of 25 references.
References · 18
- 2017Attention Is All You Needcited by 60,106
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,549
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,221
- 2020Scaling Laws for Neural Language Modelscited by 6,494
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,658
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,467
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,440
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,384
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
- 2022Simplified State Space Layers for Sequence Modelingcited by 781
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 400
6 more
- 2023In-Context Learning Creates Task Vectorscited by 305
- 2023Function Vectors in Large Language Modelscited by 299
- 2023Rewarded soups: towards Pareto-optimal alignment by interpolating weights fine-tuned on diverse rewardscited by 240
- 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 233
- 2024Many-Shot In-Context Learningcited by 205
- 2020Neural networks with late-phase weightscited by 29
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
- 2026Structured Memory for Edge Language Models: Persistent Context and Corpus Retrieval via O(1) SSM State Injection3 Aug 2026
- 2026S0 Tuning: Zero-Overhead Adaptation of Hybrid Recurrent-Attention Models1 Apr 2026
- 2025PICASO: Permutation-Invariant Context Composition with State Space Models24 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2026On the Importance of Gating: Memorization vs. In-Context Learning in State Space Models
- 2026Multi-Mixer Models: Flexible Sequence Modeling with Shared Representations
- 2025Understanding and Improving Length Generalization in Recurrent Models
- 2025StateX: Enhancing RNN Recall via Post-training State Expansion
- 2024Birdie: Advancing State Space Models with Reward-Driven Objectives and Curricula
- 2023State space models can express n-gram languages
- 2025Revisiting associative recall in modern recurrent models
- 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchors