SeRpEnt: Selective Resampling for Expressive State Space Models

Stefano Rando, Luca Romani, Matteo Migliarini, Luca Franco, Denis Gudovskiy +1 more
1/20/2025
cs.LGcs.CV

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

State Space Models (SSMs) have recently enjoyed a rise to prominence in the field of deep learning for sequence modeling, especially as an alternative to Transformers. Their success stems from avoiding two well-known drawbacks of attention-based models: quadratic complexity with respect to the sequence length and inability to model long-range dependencies. The SSM variant Mamba has demonstrated performance comparable to Transformers without any form of attention, thanks to the use of a selective mechanism for the state parameters. Selectivity, however, is only evaluated empirically and the reasons of its effectiveness remain unclear. In this work, we show how selectivity is related to the sequence processing. Our analysis shows that selective time intervals in Mamba act as linear approximators of information. Then, we propose our SeRpEnt architecture, a SSM that further exploits selectivity to compress sequences in an information-aware fashion. It employs a resampling mechanism that aggregates elements based on their information content. Our empirical results in the Long Range Arena benchmark and other language modeling tasks show benefits of the SeRpEnt's resampling mechanism.

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. 1 weaker match is hidden by default — 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{rando2025serpent,
  title  = {SeRpEnt: Selective Resampling for Expressive State Space Models},
  author = {Stefano Rando and Luca Romani and Matteo Migliarini and Luca Franco and Denis Gudovskiy and Fabio Galasso},
  year   = {2025},
  eprint = {2501.11729},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.11729v1}
}

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

Discussion