State Soup: In-Context Skill Learning, Retrieval and Mixing

Maciej Pióro, Maciej Wołczyk, Razvan Pascanu, Johannes von Oswald, João Sacramento
6/12/2024
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{piro2024state,
  title  = {State Soup: In-Context Skill Learning, Retrieval and Mixing},
  author = {Maciej Pióro and Maciej Wołczyk and Razvan Pascanu and Johannes von Oswald and João Sacramento},
  year   = {2024},
  eprint = {2406.08423},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.08423v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.08423.svg)](https://codeofpaper.com/paper/2406.08423)

Discussion