Abstract
Recent State Space Models (SSMs) such as S4, S5, and Mamba have shown remarkable computational benefits in long-range temporal dependency modeling. However, in many sequence modeling problems, the underlying process is inherently modular and it is of interest to have inductive biases that mimic this modular structure. In this paper, we introduce SlotSSMs, a novel framework for incorporating independent mechanisms into SSMs to preserve or encourage separation of information. Unlike conventional SSMs that maintain a monolithic state vector, SlotSSMs maintains the state as a collection of multiple vectors called slots. Crucially, the state transitions are performed independently per slot with sparse interactions across slots implemented via the bottleneck of self-attention. In experiments, we evaluate our model in object-centric learning, 3D visual reasoning, and long-context video understanding tasks, which involve modeling multiple objects and their long-range temporal dependencies. We find that our proposed design offers substantial performance gains over existing sequence modeling methods.
Introduction
The landscape of sequence modeling has been recently transformed by State Space Models (SSMs) like S4 and Mamba. These architectures provide a compelling alternative to Transformers by offering linear scaling with sequence length and constant-time inference, while maintaining the ability to capture long-range dependencies. However, a significant limitation remains: standard SSMs utilize a "monolithic" hidden state. This single vector must compress the entire history of a sequence into one representation.
In real-world scenarios, particularly in video and multi-agent environments, data is inherently modular. A scene consists of distinct objects—such as cars, pedestrians, or household items—that evolve according to their own dynamics and interact only sporadically. Forcing a model to entangle these independent entities into a single state vector can lead to poor generalization and difficulty in tracking individual components over long durations. While modular RNNs (like Recurrent Independent Mechanisms) attempted to address this, they suffer from sequential processing bottlenecks and vanishing gradients. SlotSSMs bridge this gap by combining the efficiency of SSMs with the modular inductive bias of object-centric learning.
The SlotSSM Architecture
SlotSSMs introduce modularity by restructuring the hidden state and the transition mechanism to better reflect the structure of the physical world.
1. Slot-Based State Representation
Instead of a single hidden state $h_t$, SlotSSMs maintain a collection of $K$ independent vectors, or "slots." Each slot is intended to represent a specific entity or part of the scene, allowing the model to track multiple objects in parallel.
2. Independent State Transitions
The core innovation lies in how these slots evolve over time. Each slot undergoes its own state transition independently using an SSM. Because the transition matrices are conditioned only on the information within a specific slot, the model prevents premature information leakage between entities. This independence ensures that the dynamics of one object do not unnecessarily interfere with another during the evolution step.
3. The Slot Mixer
To account for interactions—such as collisions or causal dependencies—the model interleaves independent SSM steps with a "Slot Mixer" layer. This layer employs a self-attention mechanism to facilitate sparse communication across slots. By using attention as a bottleneck, the model allows slots to exchange information only when necessary, preserving the modularity of the overall representation.
4. Object-Centric Learning (OC-SlotSSM)
For tasks requiring unsupervised object discovery, the authors propose OC-SlotSSM. This variant utilizes a specialized encoder with "inverted attention" (where the softmax is applied over queries rather than keys). This forces slots to compete for different regions of the input image, naturally encouraging the emergence of distinct object representations without explicit supervision.
Experimental Evaluation
The researchers evaluated SlotSSMs across a variety of benchmarks designed to test long-range reasoning and modularity.
Long-Context Reasoning: Blinking Color Balls
A new benchmark, "Blinking Color Balls," was introduced to test the limits of temporal modeling. In this task, models must track objects across 2,560 frames to count color assignments based on complex rules. SlotSSMs maintained high accuracy, whereas traditional single-state SSMs and modular RNNs failed to generalize or encountered memory failures due to the extreme sequence length.
3D Visual Reasoning: CATER
In the CATER dataset, models must track a "snitch" object that is frequently hidden under moving containers. In the "No Pre-train" setting, OC-SlotSSM achieved 61.58% Top-1 accuracy, a massive improvement over the Single State SSM (10.27%) and significantly outperforming the SlotTransformer (41.09%). This demonstrates that modularity is essential for complex spatial-temporal reasoning.
Object-Centric Decomposition: MOVi
On the MOVi-A and MOVi-B datasets, OC-SlotSSM outperformed established models like SAVi in both segmentation (measured by FG-ARI) and attribute prediction. The architecture showed greater stability and was less prone to "slot collapse," a common issue where multiple slots represent the same object or some slots remain empty.
Computational Efficiency
A key advantage of SlotSSMs is their scaling behavior. While Transformer-based modular models (like SlotTransformer) suffer from quadratic increases in memory and latency as sequence lengths grow, SlotSSMs maintain near-constant inference latency and linear memory scaling. This makes them uniquely suited for processing high-resolution, long-duration video sequences that are computationally prohibitive for Transformers.
Conclusion and Future Work
SlotSSMs represent a significant step forward in making efficient sequence models more robust and interpretable. By incorporating independent mechanisms, the model successfully captures the modular nature of the physical world while retaining the performance benefits of modern SSMs. While current results are focused on video, the framework is generalizable. Future research may explore applying SlotSSMs to other domains such as multi-agent reinforcement learning or large-scale structured text, where independent but interacting entities are equally prevalent.
Summary updated