Mimetic Initialization Helps State Space Models Learn to Recall

Asher Trockman, Hrayr Harutyunyan, J. Zico Kolter, Sanjiv Kumar, Srinadh Bhojanapalli
10/14/2024
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

Recent work has shown that state space models such as Mamba are significantly worse than Transformers on recall-based tasks due to the fact that their state size is constant with respect to their input sequence length. But in practice, state space models have fairly large state sizes, and we conjecture that they should be able to perform much better at these tasks than previously reported. We investigate whether their poor copying and recall performance could be due in part to training difficulties rather than fundamental capacity constraints. Based on observations of their "attention" maps, we propose a structured initialization technique that allows state space layers to more readily mimic attention. Across a variety of architecture settings, our initialization makes it substantially easier for Mamba to learn to copy and do associative recall from scratch.

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!

Cite this paper

@article{trockman2024mimetic,
  title  = {Mimetic Initialization Helps State Space Models Learn to Recall},
  author = {Asher Trockman and Hrayr Harutyunyan and J. Zico Kolter and Sanjiv Kumar and Srinadh Bhojanapalli},
  year   = {2024},
  eprint = {2410.11135},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.11135v1}
}

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/2410.11135.svg)](https://codeofpaper.com/paper/2410.11135)

Discussion