TIDES: Implicit Time-Awareness in Selective State Space Models

Taylan Soydan, Miguel Anibal Bessa, Dirk Mohr, Rui BarreiraNeurIPS 2026

TL;DR

Real-world data—like hospital vitals, telescope observations, or wearable sensor pings—rarely arrives on a neat, uniform schedule. Current State Space Models (SSMs) force an uncomfortable choice: you can either handle irregular timestamps naturally (like S5) or dynamically adapt to the content of each token (like Mamba), but not both. TIDES resolves this standoff by separating the physics of time from the expressivity of the model, giving sequence models native time-awareness without sacrificing their context-sensitive smarts.

What Problem Does This Paper Address?

Imagine reading a patient's medical chart. Knowing what was measured matters, but knowing how much time passed between measurements—ten minutes versus ten days—is critical to understanding the underlying biology.

State Space Models (SSMs) began life as continuous-time physical equations ($\dot{x} = Ax + Bu$) discretized using the actual elapsed time $\Delta$ between observations. Models like S5 keep this physical $\Delta$ intact, so irregular time gaps reshape the model's memory naturally. The catch? S5 is Linear Time-Invariant (LTI)—its core transition rules are static, meaning identical inputs always trigger identical updates regardless of context.

Mamba fixed this rigidity by making the step size $\tilde{\Delta}$ (along with input/output projections $B$ and $C$) a learned function of the input token. That unlocked massive expressivity for language modeling, where words sit on a uniform grid. However, hijacking $\tilde{\Delta}$ turned a physical clock into an abstract, content-dependent gate ($\tilde{\Delta} \neq \Delta$). If you feed Mamba irregular real-world timestamps as an extra input feature, it has to learn what "time" means from scratch—and if test-time sampling speeds up or slows down outside the training range, the model breaks.

Figure 1: Where input-dependence lives in each architecture. S5 keeps all parameters static. Mamba makes B, C, and ˜∆input-dependent, which collapses ˜∆from a physical sampling interval into a learned function of the input. TIDES instead places input-dependence on Λ, B, and C, while leaving ˜∆≡∆as the physical timestep, recovering selectivity without sacrificing irregular-time semantics.

Methods

The authors introduce TIDES (Time-Implicit Decay and Eigenvalue Selectivity), built on a clean architectural truce: leave the discretization step $\tilde{\Delta}$ alone so it strictly equals the physical time gap $\Delta$, and move Mamba-style input-dependence onto the continuous-time state matrix $\Lambda$ instead.

In diagonal SSMs like S5, $\Lambda$ contains complex eigenvalues ($\lambda$). Each eigenvalue has two parts:

  • The real part, $\text{Re}(\lambda)$, controls the decay rate (how fast a memory mode fades). TIDES makes this input-dependent, allowing the model to "forget faster" at an event boundary or "hold longer" for important signals.
  • The imaginary part, $\text{Im}(\lambda)$, sets the oscillation frequency. TIDES keeps this static—changing oscillation frequencies every token would scramble the model's dynamical basis.
Figure 2: Information flow through S5, Mamba, and TIDES architectures. Λ, B, and C are static in S5, while Mamba makes B, C, and ˜∆input-dependent. TIDES recovers implicit use of ∆.

Input/output projections $B$ and $C$ also remain input-dependent, using a low-rank factorization to prevent parameter bloat. To keep training stable when eigenvalues shift dynamically at every step, TIDES initializes its projection biases to S5's well-conditioned HiPPO values (with zero-initialized weights so training starts smoothly), applies RMSNorm before discretization, and constrains $\text{Re}(\Lambda)$ to stay strictly negative. Crucially, the whole setup remains compatible with fast parallel scans.

Datasets

  • Fading Flash (Newly Introduced): A compact, synthetic diagnostic benchmark designed to isolate expressivity versus time-extrapolation. A row of 40 detectors divided into three different decay-rate zones is hit by sparse flashes; models must predict the fading glow while tested across unseen global clock speeds ($\Delta$).
  • Standard & Irregular Benchmarks:
  • UEA Multivariate Archive (6 time-series classification datasets, plus a "Random Drop" variant on EigenWorms to test extreme irregular subsampling).
  • Physiome-ODE (50 irregular biophysical forecasting datasets).
  • 8 Natively Irregular Real-World Datasets spanning astronomy (MACHO, ASAS-SN variable stars), satellite agriculture (TimeSen2Crop, EuroCropsML), neuromorphic event cameras/audio (SHD, SSC, DVS128), and asynchronous weather stations (USHCN).

Key Insights and Ideas

  • Keep expressivity and discretization separate: Conflating content-filtering with the time step (like Mamba) destroys out-of-distribution time extrapolation. Keeping $\Delta$ purely analytical in the discretization rule gives the model selective implicit time-awareness—it reacts properly to time gaps without ever seeing timestamps in its input features or positional encodings.
  • Selectivity belongs on decay rates, not frequencies: Ablations show that making oscillation frequencies $\text{Im}(\Lambda)$ input-dependent actually hurts accuracy. Modulating how fast memory fades ($\text{Re}(\Lambda)$) alongside $B$ and $C$ is what drives performance.
  • Orthogonal failure modes exposed: On Fading Flash and random-drop tests, S5 stays completely flat across unseen time scales $\Delta$ but hits an expressivity ceiling. Mamba nails the training distribution, but when 90% of tokens are dropped at test time (creating huge $\Delta$ gaps), Mamba, Mamba-2, and Mamba-3 collapse from ~70% accuracy down to ~40–60%, while TIDES holds steady at ~74%.

Key Results

  • UEA Classification: TIDES achieves the highest mean accuracy (66.1% vs. Mamba-3's 64.7%) and best average rank (3.00 vs. 4.17), proving it also excels on regular grids.
  • Physiome-ODE Regression: TIDES takes the #1 overall average rank (2.40) across 50 datasets, tying the top continuous-time baseline (LinODEnet, rank 2.62) on total wins (16/50).
  • Natively Irregular Data: TIDES matches or beats domain-specific state-of-the-art baselines on 6 of 8 datasets, setting new bests on TimeSen2Crop (89.80% OA), EuroCropsML (80.26%), USHCN climate forecasting (0.147 MSE), and SHD/SSC neuromorphic benchmarks.

Limitations and Future Work

  • Limitations: TIDES is not evaluated on language modeling or massive regular-grid tasks, so it isn't pitched as a drop-in Mamba replacement for LLMs. It introduces extra hyperparameters to tune (low-rank $r$, projector depths, $\Lambda$ reparameterizations) and currently relies on a generic PyTorch parallel scan rather than custom hardware-aware CUDA kernels. Furthermore, the argument against dynamic $\text{Im}(\Lambda)$ is intuitive and empirical rather than formally proven.
  • Future Work: Because $\Delta$ retains true physical meaning, TIDES could power anytime forecasting (querying arbitrary future horizons without retraining), active sampling (deciding when to take a costly clinical or scientific measurement next), or modeling sequences indexed by other physical continuums, like spatial arc length along a trajectory.

Summary updated

Abstract

Selective state space models (SSMs), such as Mamba, achieve strong per-token expressivity by making the time discretization step $\Tilde{\Delta}$ a learned function of the input. However, in doing so, $\Tilde{\Delta}$ no longer equals the physical time gap $\Delta$ between consecutive observations, limiting the ability of these models to handle irregular time series. Continuous time SSMs, such as S5, keep $\Tilde{\Delta}\equiv\Delta$ and therefore handle irregular timestamps natively, but their dynamics remain linear time invariant (LTI), limiting per token expressivity. We propose \textbf{TIDES}, a selective SSM variant that reconciles selective and continuous architectures by moving input dependence off the step size and onto the diagonal state matrix. As a result, $\Tilde{\Delta}\equiv\Delta$ as in S5, allowing the model to handle irregular timestamps natively without sacrificing the per-token expressivity that makes selective SSMs effective. We show this on a novel \emph{Fading Flash} experimental benchmark, a compact controlled diagnostic for sequence models that jointly tests input dependence and extrapolation to out-of-distribution $\Delta$ values, and isolates the distinct failure modes of current state-of-the-art architectures that TIDES avoids by construction. On large-scale benchmarks, TIDES sets the new best average rank on UEA time series classification and the Physiome ODE regression benchmark, and matches or exceeds the reference baseline model on 6 of 8 natively irregular datasets from astronomy, agriculture, neuromorphic sensing, and climate events. Code available at: \url{https://github.com/TaylanSoydan/TIDES}.
BibTeX
@inproceedings{soydan2026tides,
  author = {Taylan Soydan and Miguel Anibal Bessa and Dirk Mohr and Rui Barreira},
  title = {{TIDES: Implicit Time-Awareness in Selective State Space Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=h8MZDdLCLA},
}
Figure