Pre-trained Text-to-Image Diffusion Models Are Versatile Representation Learners for Control

Gunshi Gupta, Karmesh Yadav, Yarin Gal, Dhruv Batra, Zsolt Kira, Cong Lu, Tim G. J. Rudner

Introduction

In the realm of Embodied AI, agents and robots interacting with the physical world require a profound understanding of their environment. This understanding must go beyond simple object recognition; an agent needs fine-grained spatial reasoning to know exactly where a handle is, how a drawer slides, or how to navigate a cluttered kitchen.

Currently, many researchers rely on contrastive vision-language models like CLIP as foundational feature extractors. While CLIP excels at high-level semantics—easily identifying that a "kettle" is in the frame—it often fails at the precise spatial reasoning required for robotic control. To bridge this gap, researchers typically train specialized, data-hungry models from scratch. This paper proposes a novel alternative: Stable Control Representations (SCR). By repurposing pre-trained text-to-image diffusion models (like Stable Diffusion) as feature extractors, the authors demonstrate that the rich, visuo-spatial internal representations developed for image generation can achieve state-of-the-art performance on complex robotic control tasks.

The Problem with Current Representations

The core issue with contrastive models like CLIP is their level of abstraction. They are trained to match text to images, which encourages learning broad semantic concepts but neglects the low-level geometric details necessary for manipulation and navigation.

Generative models, on the other hand, are forced to understand pixels, boundaries, and spatial relationships to synthesize coherent images. The researchers hypothesized that this pixel-level predictive capability (diffusion) forces the model to learn spatial relationships much more effectively than contrastive matching, making generative models a superior shortcut for "robotic brains."

Methodology: Stable Control Representations

To harness the power of generative models for control, the authors extract features from the internal layers of the Stable Diffusion (v1.5) U-Net. The SCR approach involves several key innovations:

  1. Feature Extraction: Rather than using the final generated image, the method extracts intermediate feature maps from the U-Net’s "mid" and "downsampling" blocks. These layers capture a crucial mix of high-level semantics and low-level geometric detail.
  2. Aggregation & Compression: Because these feature maps vary in resolution, they are bilinearly interpolated to a uniform size and passed through a learnable convolutional "compression layer." This reduces the dimensionality, making the data manageable for a downstream policy network.
  3. Domain Fine-Tuning (SCR-FT): To bridge the domain gap between internet-scale images and egocentric robot views, the model is fine-tuned on robotics datasets (such as EpicKitchens, Something-Something-v2, and Bridge-v2). This is done using the standard diffusion objective—simply teaching the model to generate robotics-related images.
  4. Attention Grounding (SCR-ATTN): For tasks requiring specific text instructions (e.g., "find the tomato"), the researchers extract cross-attention maps. These maps highlight exactly which pixels the model associates with specific words, providing a visual "heat map" to guide the robot's policy.
Overview of the Stable Control Representations (SCR) pipeline, evaluation suite, and overall performance comparison against baseline models.

Key Insights and Results

The researchers evaluated SCR across a diverse battery of benchmarks, including manipulation tasks (Meta-World, Franka-Kitchen) and navigation tasks (ImageNav, OVMM). The results highlight several critical insights:

  • State-of-the-Art on OVMM: The fine-tuned, attention-grounded model (SCR-FT-ATTN) achieved a 43.6% success rate on the notoriously difficult Open Vocabulary Mobile Manipulation (OVMM) benchmark. This surpasses the previous best model (VC-1 at 40.6%) and significantly outperforms CLIP (38.7%).
  • Superior Navigation and Manipulation: In the ImageNav task, SCR reached a 73.9% success rate, beating specialized models like VC-1 (70.3%) and MVP (68.1%). On Meta-World, SCR achieved a highly competitive 94.9% success rate, proving that a model originally built for generating digital art can be remarkably precise for robotics.
  • Generative Over Contrastive: The act of predicting pixels inherently builds better spatial awareness than text-image matching. Furthermore, adding a small amount of noise to the input image before extraction yielded the most robust features for control.
  • Task-Agnostic Alignment: Fine-tuning Stable Diffusion to generate "robot-like" images makes its internal features significantly more useful for control policies, without needing a robot-specific loss function.

Limitations and Future Work

While SCR presents a significant leap forward, it is not without limitations. Diffusion models are computationally heavy; an SCR forward pass is approximately 1.5x slower than a standard ViT-Large encoder, which could pose bottlenecks for real-time hardware with limited compute. Additionally, while the model handles simple object names well, it inherits the broader generative AI struggle with long-form, complex text guidance. Finally, the impressive results are currently limited to simulation. Validating these policies on physical, real-world robots remains the ultimate test for this promising approach to Embodied AI.

Summary updated

BibTeX
@inproceedings{gupta2024pre,
  author = {Gunshi Gupta and Karmesh Yadav and Yarin Gal and Dhruv Batra and Zsolt Kira and Cong Lu and Tim G. J. Rudner},
  title = {{Pre-trained Text-to-Image Diffusion Models Are Versatile Representation Learners for Control}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=KY07A73F3Y},
}
Figure