KOSS: Kalman-Optimal Selective State Spaces for Long-Term Sequence Modeling
About
Recent selective state space models (SSMs), such as Mamba and Mamba-2, have demonstrated strong performance in sequence modeling owing to input-dependent selection mechanisms. However, these mechanisms lack theoretical grounding and cannot support context-aware selection from latent state dynamics. To address these limitations, we propose KOSS, a Kalman-optimal Selective State Space model that formulates selection as latent state uncertainty minimization. Derived from estimation theory, KOSS adopts a continuous-time latent update driven by a Kalman gain that dynamically modulates information propagation based on content and context, enabling a closed-loop, context-aware selectivity mechanism. To ensure stable computation and near-linear scalability, KOSS employs global spectral differentiation for frequency-domain derivative estimation, along with a segment-wise scan for hardware-efficient processing. On a selective copying task with distractors, KOSS achieves over 79\% accuracy while baselines drop below 20\%, demonstrating robust context-aware selection. Furthermore, across nine long-term forecasting benchmarks, KOSS reduces MSE by 2.92--36.23\% and consistently outperforms state-of-the-art models in both accuracy and stability. To assess real-world applicability, a case study on secondary surveillance radar (SSR) tracking confirms KOSS's robustness under irregular intervals and noisy conditions and demonstrates its effectiveness in real-world applications. Finally, supplementary experiments verify Kalman gain convergence and the frequency response of spectral differentiation, providing theoretical support for the proposed closed-loop design.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Multivariate long-term series forecasting | Weather (test) | MSE0.144 | 269 | |
| Multivariate long-term series forecasting | Traffic (test) | MSE0.224 | 219 | |
| Long-term forecasting | ETTm1 | MSE0.215 | 184 | |
| Long-term forecasting | ETTh1 | MSE0.298 | 179 | |
| Long-term forecasting | ETTm2 | MSE0.11 | 174 | |
| Multivariate long-term series forecasting | Electricity (test) | MSE0.121 | 166 | |
| Long-term forecasting | ETTh2 | MSE0.192 | 163 | |
| Multivariate long-term series forecasting | Exchange (test) | MSE0.121 | 145 | |
| Multivariate long-term time series forecasting | ILI (test) | MSE1.108 | 96 |