Continuity Laws for Sequential Models

Annan Yu, Dongwei Lyu, N. Benjamin Erichson

TL;DR

While State-Space Models (SSMs) are celebrated for their continuous-time mathematical foundations, this paper reveals that not all SSMs behave continuously in practice. The authors formalize "temporal continuity" for both models and datasets, demonstrating that linear SSMs (like S4) maintain stable continuous behavior, whereas selective SSMs (like Mamba/S6) behave more like discrete token processors. Leveraging this insight, they introduce a stage-wise training strategy that dramatically accelerates training on continuous tasks by starting with low-resolution data.

What Problem Does This Paper Address?

In sequential modeling, architectures are often judged purely by benchmark performance, leaving a poor understanding of why a model works or when it might fail. State-Space Models (SSMs) like S4, S5, and Mamba (S6) are derived from continuous-time differential equations, leading to the widespread assumption that they possess an inherent inductive bias for continuous-time data (such as time series or physical systems).

However, the authors point out a critical gap: these models must be discretized to process digital data. Does a continuous-time mathematical origin actually guarantee continuous behavior after discretization? Furthermore, how can we rigorously quantify whether a dataset itself is "continuous" or "discrete" to ensure a proper model-task fit?

Methods

The authors tackle these questions through a mix of new theoretical frameworks, data metrics, and optimization algorithms:

  1. Model Continuity via Temporal Refinement: The authors formalize model continuity as convergence under finer sampling. A model is continuous if its discrete predictions approach a stable underlying continuous trajectory as the sampling step size ($\tau$) approaches zero. Assessing model continuity through temporal refinement
  2. Theoretical Convergence Analysis: They prove that while both S4 and S6 converge at a linear rate under temporal refinement, their error prefactors differ fundamentally. S4's error depends strictly on fixed system parameters and input smoothness. In contrast, S6's error is highly sensitive to input amplitude and its own selective gating mechanism, causing its continuity to break down under large inputs or sharp dynamics.
  3. Task Continuity Metric ($\mu_t$): They introduce a data-driven metric that quantifies a dataset's temporal structure by measuring how much nearby elements in a sequence resemble one another compared to elements that are far apart.
  4. Stage-Wise Training via Temporal Subsampling: Capitalizing on S4's stable continuity, they propose an acceleration algorithm. The model is initially trained on heavily subsampled (low-resolution) data, and the resolution is progressively refined throughout training stages, scaling the step size parameter ($\Delta$) accordingly.
Assessing model continuity through temporal refinement

Datasets

The paper evaluates its findings on two main sets of benchmarks:

  • Synthetic Dynamical Systems: Trajectories simulated from four distinct physical systems: a linear system (damped harmonic oscillator), a nonlinear system (Van der Pol oscillator), a stochastic system (Ornstein–Uhlenbeck process), and a chaotic system (forced Duffing oscillator).
  • Long-Range Arena (LRA): A standard benchmark suite featuring six tasks with varying structures: ListOps, Retrieval, Text, Image, Pathfinder, and PathX.

Key Insights and Ideas

  • Continuous Origin $\neq$ Continuous Behavior: Gating and input-dependent selectivity (the core innovation of Mamba/S6) introduce a "weak" continuity bias. S6 behaves more like a discrete token-interaction model (like a Transformer) than a continuous dynamical system.
  • The Principle of Model–Task Fit: There is a clear alignment between a model's continuity and the task's nature. Strong continuous models (S4/S5) excel at tasks with high temporal continuity (e.g., physical simulations, pixel-level images), while weak continuous models (Mamba, Transformers) are naturally better suited for discrete symbolic tasks like language. Continuity as a principle for model-task fit
  • Information Inheritance: Because continuous models are stable across resolutions, they can learn coarse, low-frequency patterns from low-resolution data and seamlessly transfer that knowledge when shifted to high-resolution data. This acts as an implicit regularizer.
Continuity as a principle for model-task fit

Key Results

  • S6 Discontinuity Empirical Proof: In numerical experiments, scaling the input amplitude caused the relative maximum error of S6 to explode, whereas S4 remained perfectly stable. Furthermore, shifting the resolution or discretization rule at inference time severely degraded S6's performance on dynamical systems, while S4 remained robust.
  • Task Mapping: The authors' $\mu_t$ metric successfully placed LRA datasets on a spectrum from discrete to continuous. As tasks moved from discrete (ListOps, Text) to highly continuous (Image, PathX), S4 steadily overtook Mamba and Transformers in performance.
  • Training Acceleration: The stage-wise training method achieved equal or superior final accuracy on 5 out of 6 LRA tasks while drastically reducing wall-clock training time. On highly continuous tasks like PathX and Pathfinder, the time-accuracy curve stayed significantly above standard training. Test accuracy vs cumulative training time on LRA tasks
Test accuracy vs cumulative training time on LRA tasks

Limitations and Future Work

  • Scope of Theory: The theoretical guarantees for continuity are currently limited to SSM-like architectures. Extending similar proofs to Transformers or hybrid architectures remains an open challenge.
  • Interaction with Other Biases: The paper isolates continuity, but in practice, it interacts with other inductive biases (like recency or frequency biases). A unified theory is still needed.
  • Deep Theoretical Causality: While the empirical alignment between task continuity and model performance is clear, a rigorous mathematical explanation for why continuous models learn continuous tasks more efficiently is left for future research.

Summary updated

BibTeX
@inproceedings{yu2026continuity,
  author = {Annan Yu and Dongwei Lyu and N. Benjamin Erichson},
  title = {{Continuity Laws for Sequential Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=oQ3dzYdHDJ},
}
Figure