Abstract
Sequential Attend, Infer, Repeat (SQAIR) is a deep generative model that learns to discover, track, and predict the motion of multiple objects in video sequences entirely without human supervision. By imbuing the model with a structural "inductive bias" for temporal consistency, it outperforms previous static models and can even "imagine" future frames of moving objects.
Introduction
Identifying and tracking objects is a cornerstone of human intelligence. We naturally expect objects to persist over time, move along trajectories, and maintain their appearance. However, teaching machines to do this usually requires massive amounts of labeled data, such as thousands of hours of video with hand-drawn bounding boxes.
Previous unsupervised models like Attend, Infer, Repeat (AIR) could "look" at a static image and decompose it into individual objects. However, AIR had no sense of time. If two objects overlapped, AIR would often mistake them for a single object. If an object was partially out of frame, AIR would fail to recognize it. The authors of SQAIR sought to bridge this gap by creating a model that understands that the objects it sees in one frame are likely the same ones it saw in the previous frame.
Methods
SQAIR extends the original AIR framework into a sequential state-space model. The architecture is built around two main phases that occur at every time step:
- Propagation (PROP): The model looks at the objects it identified in the previous frame and uses a Temporal RNN to predict their new locations and appearances. Crucially, it also uses a Relation RNN to let objects "talk" to each other, which helps the model handle occlusions (when one object blocks another).
- Discovery (DISC): After accounting for existing objects, the model looks for new objects that might have entered the frame. This is essentially the original AIR mechanism, but it is conditioned on the PROP phase so the model doesn't "re-discover" an object it is already tracking.
The model is trained as an Importance-Weighted Autoencoder (IWAE). It learns by trying to reconstruct the video frames it sees. To do this efficiently, it must learn meaningful latent variables that represent an object's "what" (appearance), "where" (location), and "presence" (is it still there?).
Key Insights and Ideas
- Temporal Consistency as an Inductive Bias: The core insight is that you don't need labels if you have the right structure. By forcing the model to explain a video as a set of persisting objects, the model must learn to track them to minimize its reconstruction error.
- Explaining Away via Memory: Because the Discovery phase knows what the Propagation phase has already found, it can "explain away" those pixels. This prevents the model from double-counting objects.
- Handling Occlusion: Static models fail when objects overlap. SQAIR succeeds because it has a "memory" of the objects' trajectories. If two digits cross paths, SQAIR knows there are two distinct entities because it saw them as separate entities a split second before.
- Zero-Shot Prediction: Even though SQAIR wasn't explicitly trained to predict the future, its generative nature allows it to "extrapolate." By simply running the Propagation phase forward without new image input, it can simulate where objects will move next.
Datasets and Key Results
The researchers evaluated SQAIR on three main benchmarks: Moving multi-MNIST, a harder multi-MNIST (where digits appear/disappear), and DukeMTMC (real-world pedestrian CCTV data pre-processed with background subtraction).
- Accuracy: On the moving MNIST dataset, SQAIR achieved an object counting accuracy of over 99%, significantly higher than the original AIR (~90%).
- Likelihood: SQAIR achieved much higher marginal log-likelihoods compared to baselines like the Variational Recurrent Neural Network (VRNN), meaning it is a much better model of the underlying data distribution.
- Downstream Utility: Latent variables learned by SQAIR were much more useful for secondary tasks. For example, a simple classifier trained on SQAIR's latent features could sum the digits in a frame with 99.9% accuracy, whereas features from other models led to much lower performance.
- Real-World Tracking: SQAIR successfully learned to track pedestrians in CCTV footage without any bounding box labels, even when people walked close to each other.
Limitations and Future Work
While powerful, SQAIR has some notable limitations:
- Simple Backgrounds: The model currently struggles with complex, dynamic backgrounds. It works best when the background is static or can be subtracted.
- Additive Composition: The model assumes that objects are added together to form an image. This doesn't perfectly capture how light and shadows work in the real world.
- Computational Complexity: The inference process is complex and scales linearly with the number of objects, which might make it slow for very crowded scenes.
Future directions suggested by the authors include moving toward autoregressive modeling for higher-fidelity image generation and improving how the model handles complex occlusions where one object completely hides another for a long duration.
Summary updated