TL;DR
Modern sequence models like Mamba are remarkably fast, but when watching a video, they store memory at fixed pixels—meaning a moving object leaves a fractured, smeared trail across their internal state. Flow-SSM fixes this by upgrading Mamba’s memory to ride along with moving objects across multiple spatial and velocity scales. The result is a mathematically grounded, motion-aware architecture that excels at everything from video prediction to storm forecasting without blowing up parameter counts.
What Problem Does This Paper Address?
Imagine watching a car drive across the street, but you’re only allowed to look through a tiny, stationary pinhole. You’d see a flash of bumper, then a door, then a wheel, and then empty asphalt.
That is essentially what happens inside selective State Space Models (SSMs) like Mamba when they process spatiotemporal data (like video or weather radar). Standard SSMs update their recurrent memory at fixed spatial coordinates. When an object moves, its features get accumulated across disconnected locations over time rather than in the object’s own moving reference frame.
While recent "flow-equivariant" recurrent networks (like FERNN) began addressing this by tracking moving reference frames, they operate at a single, flat resolution. Real-world physics isn't flat: a hurricane has a massive, slow-moving macro-rotation alongside chaotic, fast-evolving local rainbands. A flat grid of all possible positions and velocities is far too rigid and computationally wasteful to capture multi-scale reality.
Methods
The authors introduce two architectures: Flow-SSM and its multi-scale big brother, Hierarchical Flow-SSM.
Here is how they upgrade standard Mamba:
- Lifting to Moving Reference Frames (New): Instead of keeping hidden states just at spatial positions $g$, Flow-SSM "lifts" the memory into a product space of positions and candidate velocities (or rotation generators), $\nu$. Each $\nu$-branch acts like a camera panning at a specific speed.
- Transported Recurrence (New): Before Mamba’s standard input-dependent selective gates ($\bar{A}_t, \bar{B}_t$) update the memory, the hidden state in each branch is spatially shifted along its assigned velocity trajectory. Meanwhile, the selective gates themselves are computed using group-equivariant networks and shared across velocity branches.
- Hierarchical Quotient Spaces (New): To avoid tracking pixel-precise velocities on coarse grids, Hierarchical Flow-SSM pairs spatial resolutions with matching velocity bins using group quotients. Coarse grids track broad velocity buckets; fine grids resolve local residual motion.
- Equivariant Cross-Scale Messaging (New): Different scales talk to each other via specialized mathematical "intertwiners"—ensuring that passing information from a coarse storm tracker to a fine local grid doesn't break motion alignment.
Datasets
The authors test their models progressively from clean, synthetic toy physics to messy real-world dynamics (no new datasets are introduced, though existing ones are augmented):
- Moving & Rotating MNIST: Two digits translating or rotating at constant speeds to test exact geometric tracking.
- KTH Action Recognition (with induced motion): Human action clips augmented with artificial camera panning to test out-of-distribution velocity generalization.
- UCF-101: Wild, unconstrained natural videos featuring non-rigid human motion and complex backgrounds.
- SEVIR Weather Nowcasting: A large-scale radar dataset tracking Vertically Integrated Liquid (VIL) to forecast storm precipitation.
Key Insights and Ideas
- Tracking trajectories gives you symmetry for free: By accumulating memory along candidate paths, Flow-SSM achieves flow equivariance. If an input video suddenly pans faster, the internal memory doesn't distort—it cleanly shifts intact to the corresponding relative-velocity branch.
- Graceful degradation via distributed hypotheses: Probing the KTH model revealed something fascinating: when researchers artificially deleted the exact ground-truth velocity branch inside Flow-SSM, its accuracy stayed surprisingly high (52.0% vs. FERNN's 20.4%). Rather than putting all its eggs in one velocity basket, Flow-SSM distributes predictive evidence smoothly across neighboring motion branches.
- Resolution matching is mathematically necessary: You shouldn't pair a coarse spatial grid with fine, 1-pixel velocity differences—trajectories in the same coarse pixel would drift apart unpredictably. Formalizing "admissible scale pairs" via group quotients gives a clean rulebook for building multi-scale physics trackers.
Key Results
Across the board, aligning Mamba's memory with motion pays off:
- MNIST: On 10-to-50 frame long-horizon forecasting, Flow-SSM nearly halves the MSE compared to FERNN on both Moving MNIST ($1.5 \times 10^{-4}$ vs. $2.7 \times 10^{-4}$) and Rotating MNIST ($4.7 \times 10^{-4}$ vs. $9.4 \times 10^{-4}$).
- KTH Actions: When trained on slow camera pans and tested on faster ones ($V_1 \to V_2$), Flow-SSM hits 69.7% accuracy, crushing plain Mamba (47.7%) and FERNN (54.0%) with the exact same ~0.53M parameter budget.
- UCF-101: Even when natural motion doesn't neatly fit predefined constant velocities, Flow-SSM boosts PSNR by +1.19 dB overall—and +1.69 dB on high-motion clips—over Mamba.
- SEVIR Storms: Hierarchical Flow-SSM achieves the best precipitation forecasting scores across all settings (e.g., reaching 0.652 CSI74 vs. Mamba's 0.597 and flat Flow-SSM's 0.638), proving the value of multi-scale hierarchy while adding virtually zero extra parameters over the flat version (1.340M vs. 1.333M).
Limitations and Future Work
- Memory scaling & boundary cutoffs: Memory and compute scale linearly with the number of discrete velocity branches you choose to track. Furthermore, truncating velocities to a finite set introduces boundary errors if an object moves faster than your fastest branch.
- Constant-velocity assumption: The mathematical formulation assumes locally constant velocities; it doesn't explicitly model acceleration, non-rigid deformation, or splitting/merging objects.
- Future directions: Because motion shifts act as simple translations along the velocity axis, the authors suggest compressing the velocity space using Fourier (band-limited) representations. They also point toward steerable continuous flow generators and custom CUDA kernels to preserve Mamba's signature hardware speed.
Summary updated