Cycle Consistency Driven Object Discovery

Aniket Didolkar, Anirudh Goyal, Yoshua Bengio

Introduction

A fundamental challenge in computer vision is enabling artificial intelligence to perceive the world as a structured collection of discrete objects rather than a monolithic grid of pixels. While humans effortlessly identify cars, trees, and tools, deep learning models often struggle to segment scenes without explicit supervision. Slot-based models represent a promising direction, attempting to partition visual information into abstract "slots" or "object files."

However, these models frequently rely on reconstruction loss—re-drawing the image from latent slots—which can lead to "shortcuts" where the model reconstructs pixels without truly understanding object boundaries. Furthermore, the downstream utility of these representations in complex tasks like reinforcement learning (RL) has remained inconsistent. This paper introduces a novel way to help AI models "see" the world as a collection of distinct objects by enforcing cycle consistency between visual features and abstract slots.

Methodology: Cycle Consistency as a Topological Constraint

To address existing limitations, the authors propose two new cycle consistency objectives that act as a topological constraint on the model's latent space. By treating the relationship between features and slots as a bipartite graph, these constraints ensure that paths through the latent space are reversible.

Overview of the Slot Attention architecture integrated with Slot-Feature-Slot (SFS) and Feature-Slot-Feature (FSF) consistency losses.

Slot-Feature-Slot (SFS) Consistency

SFS consistency ensures that if the model moves from a specific slot to the visual features it represents and then back to the slot space, it must return to the original slot. This "uniqueness" constraint prevents multiple slots from "fighting" over the same visual features, effectively forcing the model to assign distinct objects to distinct slots.

Feature-Slot-Feature (FSF) Consistency

Conversely, FSF consistency dictates that starting from a visual feature (e.g., a pixel-level representation), moving to its assigned slot, and returning to the feature space should land the model back on features belonging to the same object. This ensures that the slot representation captures the coherent identity of the underlying visual data.

Implementation Stability

A critical component for training stability is the use of an Exponential Moving Average (EMA) encoder. In unsupervised settings, features and slots can change rapidly, creating a "moving target" problem. The EMA encoder provides a stable reference for features, allowing the cycle consistency losses to provide meaningful gradients. This approach is architecture-agnostic and can be integrated into existing frameworks like Slot Attention, SLATE, or DINOSAUR without requiring pre-trained, frozen backbones.

Experimental Evaluation

The proposed method was evaluated across a diverse set of benchmarks, ranging from synthetic object discovery to real-world segmentation and downstream reinforcement learning:

  • Synthetic Discovery: ObjectsRoom, Shapestacks, and ClevrTex (including "Camouflage" versions).
  • Video/Motion: MOVi-C and MOVi-E.
  • Real-World Data: COCO and ScanNet datasets.
  • Downstream RL: 13 Atari games (using a Decision Transformer) and the "Causal World" robotic manipulation environment.

Key Results and Insights

The addition of cycle consistency significantly improved both segmentation quality and task performance. On the ClevrTex dataset, the model improved the Adjusted Rand Index (FG-ARI) from 0.62 to 0.72. In real-world scenarios, it outperformed the state-of-the-art BO-Slate model on the COCO dataset across precision and recall metrics.

Qualitative comparison of object reconstruction and generation in the Causal World robotic environment, showing the impact of cyclic consistency.

More importantly, the object-centric representations proved highly effective for RL agents. In Atari benchmarks, the cycle-consistency-enhanced model outperformed baselines in 10 out of 13 games. In robotic manipulation tasks, agents achieved a substantially higher success rate in reaching targets, suggesting that cycle consistency provides a more efficient "language" for understanding environmental dynamics.

Conclusion and Future Work

Cycle consistency acts as a powerful "glue," anchoring abstract slots to concrete visual features. While reconstruction loss focuses on what is in a scene, cycle consistency clarifies where specific information belongs. Despite these gains, the authors note that defining what constitutes an "object" remains an open question in unsupervised learning—for instance, deciding whether a car should be treated as a single entity or a collection of parts. Future research will explore applying these representations to higher-level reasoning tasks such as Visual Question Answering (VQA) and image captioning.

Summary updated

BibTeX
@inproceedings{didolkar2024cycle,
  author = {Aniket Didolkar and Anirudh Goyal and Yoshua Bengio},
  title = {{Cycle Consistency Driven Object Discovery}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=f1xnBr4WD6},
}
Figure