Abstract
AlignNet is an unsupervised module designed to solve the "entity alignment" problem—tracking individual objects across video frames without any ground-truth labels. By combining a dynamics-predicting LSTM with a permutation-predicting Transformer, the model maintains consistent object identities even through complex collisions and long-term occlusions.
Introduction
In recent years, unsupervised segmentation models like MONet have become remarkably good at breaking down a single image into its component objects, or "entities." However, these models are typically "frame-blind." If a red ball is labeled "Entity 0" in the first frame, the model might arbitrarily label it "Entity 5" in the next. This lack of temporal consistency—the alignment problem—makes it nearly impossible for an agent to learn how objects move (dynamics) or to plan future actions.
Most current researchers bypass this by using "privileged information" (ground-truth labels) or by calculating losses in pixel space, which is computationally expensive and ignores the semantic richness of object-level representations. AlignNet introduces a differentiable, unsupervised framework to keep these entity labels consistent over time.
Methods
The AlignNet architecture consists of two primary components designed to bridge the temporal gap between frames:
- The Dynamics Model (LSTM): This component looks at the history of aligned objects and predicts where they should be in the next time-step. It essentially estimates the "delta" or change in an object's representation.
- The Permutation Model (Transformer): This takes the predicted states from the dynamics model and the new, unaligned observations from the current frame. It uses a Transformer to compare them and outputs a similarity matrix.
- The Sinkhorn Operator: To make the matching process searchable by a neural network, the authors use the Sinkhorn algorithm. This turns the similarity matrix into a "soft" permutation matrix, allowing the entire system to be trained via standard backpropagation.
The authors also developed Memory AlignNet, which replaces simple frame-to-frame tracking with a slot-wise object memory. This allows the model to handle "partial observability"—situations where objects disappear behind walls or leave the camera's field of view and later return.
Key Insights and Results
A profound insight of this work is that visual features alone are insufficient for tracking. If two identical objects cross paths, a model looking only at pixels will get confused. AlignNet uses its internal "physics engine" (the LSTM) to realize that an object moving in a certain direction should continue that trajectory, effectively using motion to resolve visual ambiguity.
AlignNet consistently outperformed the traditional Hungarian algorithm baseline across several environments:
- SpriteWorld: Achieved 100% accuracy on tasks involving collisions of identical objects, whereas the baseline dropped to 96.4%.
- Physical Concepts: Achieved 100% accuracy in tracking objects through short-term occlusion (e.g., rolling behind pillars).
- Unity Room: In an "agent turning" task with 58 object classes, Memory AlignNet reached 96% accuracy, significantly outperforming the Hungarian algorithm's 81%.
Limitations and Future Work
While AlignNet is a significant step forward, it faces challenges in extremely crowded scenes where multiple identical objects collide simultaneously with similar trajectories. Additionally, the model requires careful entropy regularization to prevent it from settling on "soft" (blurry) assignments during training. Future directions include integrating AlignNet into downstream reinforcement learning tasks and improving dynamics models to handle more complex physical interactions like containment.
Summary updated