WaLRUS: Wavelets for Long range Representation Using State Space Methods

Hossein Babaei, Mel White, Sina Alemohammad, Richard BaraniukNeurIPS 2025

State-Space Models (SSMs) like S4 and Mamba have taken the machine learning world by storm, offering a compelling alternative to Transformers for processing long sequences. But even these "new kids on the block" have a blind spot: they struggle with signals that change abruptly or have highly localized features. A new paper from researchers at Rice University introduces WaLRUS (Wavelets for Long-range Representation Using SSMs), a method that swaps out traditional smooth polynomial bases for the multi-resolution power of wavelets.

TL;DR

WaLRUS integrates wavelet frames into State-Space Models to significantly improve how they represent non-smooth and transient signals. By moving beyond the standard polynomial bases used in models like HiPPO, WaLRUS achieves higher reconstruction accuracy and better numerical stability, especially for data with sharp "spikes" or rapid transitions.

What Problem Does This Paper Address?

Most modern SSMs rely on a framework called HiPPO (High-order Polynomial Projection Operators). HiPPO works by projecting an incoming stream of data onto a set of orthogonal polynomials (like Legendre or Fourier bases).

Comparison of signal reconstruction showing WaLRUS capturing sharp spikes better than HiPPO Legendre and Fourier.

While this is mathematically elegant and works well for smooth, periodic signals, it has a major drawback: localization. Polynomials are global functions; a change in one part of the signal affects the entire representation. When dealing with "spiky" data—like audio transients, seismic shifts, or medical sensor blips—polynomial-based SSMs tend to "smear" these sharp features, losing fine-grained detail. Furthermore, some of these traditional bases are difficult to parallelize or update efficiently in an online setting.

Methods

The authors build WaLRUS on top of the SaFARi framework, which allows SSMs to use arbitrary "frames" (sets of functions that can be redundant or non-orthogonal) instead of just simple bases.

The "Secret Sauce": Daubechies Wavelets WaLRUS specifically employs Daubechies-22 wavelets. Unlike polynomials, wavelets have "compact support," meaning they are only non-zero over a small interval. This allows them to "zoom in" on local features without being distracted by the rest of the signal.

Daubechies-22 wavelet frame and the resulting A matrices for Scaled and Translated WaLRUS variants.

The paper instantiates two versions of the model:

  1. Scaled-WaLRUS (WaveS): Compresses the entire history of a signal into a fixed-size state vector.
  2. Translated-WaLRUS (WaveT): Uses a sliding window to focus on the most recent history.

Crucially, the authors demonstrate that WaLRUS is stably diagonalizable. This is a technical win that allows the model to be implemented using efficient convolutions, reducing computational complexity to $O(L)$ for a sequence of length $L$, or even $O(\log L)$ with parallelization.

Datasets

The researchers put WaLRUS to the test against Legendre and Fourier-based SSMs across several benchmarks:

  • M4 Forecasting Competition: A massive set of 100,000 real-world univariate time series from finance, industry, and demographics.
  • Speech Commands: A dataset of short audio clips of spoken English words, testing the model's ability to handle audio transients.
  • Wavelet Benchmark Collection: A synthetic suite designed to stress-test edge cases, including "Bumps," "Blocks," "Spikes," and "Piecewise Polynomials."

Key Insights and Ideas

  • Wavelets Beat Polynomials at the Edges: Visualizing the "kernels" (how the model weights history) showed that traditional HiPPO models have "dead zones" at the start and end of their sliding windows. WaLRUS kernels match the "ideal" window much more closely, capturing high-frequency info that others miss.
  • Redundancy is a Strength: WaLRUS uses redundant frames (where there are more basis functions than dimensions). While this sounds inefficient, it actually provides better robustness to noise and improved numerical stability.
  • Multi-resolution is Natural for Data: Because wavelets operate at multiple scales simultaneously, WaLRUS can represent a slow-moving trend and a sudden sharp spike in the same state vector more effectively than a Fourier transform could.

Key Results

  • Dominant Accuracy: In the M4 forecasting task, the wavelet-based variant (WaveS) produced the lowest Mean Squared Error (MSE) in 99.53% of tests compared to Legendre and Fourier bases.
  • Perfect Peak Detection: In synthetic "Spikes" and "Bumps" tests, Scaled-WaLRUS missed 0% of peaks, whereas the Legendre-based model missed 2.5%.
  • Timing Precision: WaLRUS showed significantly lower "average displacement" errors, meaning it doesn't just know a spike happened; it knows exactly when it happened.
  • Stability: Unlike Legendre-based SSMs, which can be numerically finicky to diagonalize, WaLRUS was experimentally observed to be consistently stable, making it a more reliable "drop-in" component for larger neural networks.

Limitations and Future Work

The authors are transparent about a few hurdles:

  • Differentiability Requirements: The current framework requires the wavelet functions to be differentiable. This means simple "step-function" wavelets like Haar wavelets can't be used yet.
  • Hyperparameter Tuning: Choosing the "optimal" number of scales and the amount of overlap between wavelets is currently an empirical process and varies by application.
  • Integration into Deep Learning: This paper focuses on the representation power of WaLRUS as a standalone tool. The next logical step—which the authors suggest is coming—is replacing the SSM layers in models like Mamba with WaLRUS layers to see how it improves end-to-end training on tasks like language modeling or video analysis.

Paper Citation: Babaei, H., White, M., Alemohammad, S., & Baraniuk, R. G. (2025). WaLRUS: Wavelets for Long-range Representation Using SSMs. 39th Conference on Neural Information Processing Systems (NeurIPS 2025).

Summary updated

BibTeX
@inproceedings{babaei2025walrus,
  author = {Hossein Babaei and Mel White and Sina Alemohammad and Richard Baraniuk},
  title = {{WaLRUS: Wavelets for Long range Representation Using State Space Methods}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=4lH9MOuGfy},
}
Figure