Diffusion Augmented Agents: A Framework for Efficient Exploration and Transfer Learning

Norman Di Palo, Leonard Hasenclever, Jan Humplik, Arunkumar Byravan

TL;DR

Diffusion Augmented Agents (DAAG) is a new framework that uses generative diffusion models to "re-write" an agent's past experiences, turning failed attempts or unrelated tasks into successful training data for new objectives. By combining Large Language Models (LLMs) for orchestration and Vision-Language Models (VLMs) for reward detection, DAAG significantly improves sample efficiency and transfer learning in embodied AI without requiring human supervision.

What Problem Does This Paper Address?

Reinforcement Learning (RL) for robots and embodied agents is notoriously data-hungry. In the real world, data is scarce because physical interaction is slow, and rewards are often "sparse"—meaning an agent might wander for hours without ever accidentally completing a complex task like "stack the red cube on the green one."

While techniques like Hindsight Experience Replay (HER) allow agents to learn from "failures" by relabeling them (e.g., "I didn't stack the red cube, but I did move it to the left, so let's learn from that"), these methods are limited by the physical reality of the recorded video. If you need to learn how to handle a green cup but your history only contains blue cups, standard relabeling fails. DAAG addresses this visual gap by using diffusion models to synthetically alter the environment and objects in past trajectories to match new goals.

Methods

The core of the framework is a process the authors call Hindsight Experience Augmentation (HEA). The system operates in a loop orchestrated by an LLM (Gemini Pro):

  1. Task Decomposition: The LLM breaks a high-level instruction into subgoals.
  2. Experience Extraction: The agent looks at its "lifelong buffer" of past experiences. A VLM (CLIP) identifies if any past trajectories achieved a subgoal.
  3. Diffusion Augmentation: If no direct match is found, the LLM determines if a past trajectory could match a subgoal if an object were different (e.g., swapping a blue cube for a red one).
  4. Consistent Video Generation: A specialized diffusion pipeline (based on Stable Diffusion 1.5 and ControlNet) modifies the video frames. To ensure the physics and appearance remain believable, they enforce geometrical consistency (using depth and edge maps) and temporal consistency (using fixed noise and temporal cross-attention).
  5. Reward Finetuning: These synthetic "successes" are used to finetune the VLM to act as a highly accurate, environment-specific reward detector.
Figure 2: An example of the Hindsight Experience Augmentation pipeline, with which new or past experience can be optionally modified and added to a new buffer.

Datasets

The authors evaluated DAAG across three simulated environments:

  • RGB Stacking: A robotic arm manipulation task involving stacking colored cubes.
  • Room: A navigation environment where an agent must find and place objects (e.g., an apple) on specific furniture (e.g., a gray chair).
  • Language Table: A non-prehensile manipulation task where a robot pushes blocks on a table.
  • Open X-Embodiment: Used to demonstrate the diffusion pipeline's capability on real-world robotic data.

Key Insights and Ideas

  • Visual Hindsight: The most powerful idea here is that we no longer need to wait for an agent to accidentally solve a task to start learning. We can take a trajectory where it successfully picked up a green block and "diffuse" it into a successful trajectory for a red block.
  • Consistency is Non-Negotiable: The authors highlight that standard image-to-image diffusion often creates flickering or warping that confuses RL agents. Their pipeline ensures that if a robot's gripper is holding a cup, that cup stays in the gripper across all frames and maintains its 3D pose.
  • Autonomous Lifelong Learning: Because the LLM handles the "reasoning" (deciding what to swap) and the VLM handles the "scoring" (detecting success), the entire pipeline can run without a human in the loop, making it ideal for agents that learn continuously over time.
Figure 4: An illustration of our diffusion pipeline, highlighting the geometrical and temporal consistency obtained by combining the methodologies in (Zhang et al., 2023) and (Khachatryan et al., 2023).

Key Results

  • Superior Reward Detection: Finetuning CLIP on DAAG-augmented data allowed it to detect rewards for novel, unseen tasks with much higher accuracy than zero-shot models, especially in tasks requiring precise geometric understanding.
  • Faster Learning: In the RGB Stacking and Room environments, DAAG reached high success rates significantly faster than baselines that didn't use HEA.
  • Zero-Shot Transfer: DAAG achieved strong "0-shot forward transfer." By repurposing data from Task A, the agent could often solve Task B immediately upon being asked, without further exploration.
  • Robustness: By using diffusion to change floor colors and wall textures (scene augmentation), the authors trained policies that were far more robust to visual distractors than those trained on raw data alone.

Limitations and Future Work

  • Computational Overhead: Generating high-quality, consistent video via diffusion is computationally expensive compared to simple text relabeling.
  • Model Dependencies: The framework's success is tied to the underlying capabilities of the foundation models. If the LLM makes a poor "swap" suggestion or the diffusion model introduces artifacts, the RL agent's performance could suffer.
  • Complexity of Swaps: Currently, the method focuses on object/attribute swaps. Future work could explore more complex structural changes to trajectories, such as altering the agent's own morphology or the fundamental physics of the environment.

Summary updated

BibTeX
@inproceedings{palo2024diffusion,
  author = {Norman Di Palo and Leonard Hasenclever and Jan Humplik and Arunkumar Byravan},
  title = {{Diffusion Augmented Agents: A Framework for Efficient Exploration and Transfer Learning}},
  booktitle = {CoLLAs},
  year = {2024},
}
Figure