Few-Shot Task Learning through Inverse Generative Modeling

Aviv Netanyahu, Yilun Du, Antonia Bronars, Jyothish Pari, Joshua B. Tenenbaum, Tianmin Shu, Pulkit Agrawal

Abstract

Few-Shot Task Learning through Inverse Generative Modeling (FTL-IGM) addresses the challenge of teaching agents novel task concepts from minimal demonstrations. By leveraging a frozen, pretrained conditional diffusion model, the framework optimizes a latent concept representation to match provided demonstrations. This approach enables robust performance in unseen environments and facilitates the zero-shot composition of learned skills with existing behaviors.

Introduction

In robotics and artificial intelligence, acquiring new skills typically necessitates extensive datasets or computationally intensive reinforcement learning. Traditional few-shot learning methods, such as Behavior Cloning (BC), often suffer from covariate shift, failing when initial states deviate from demonstrations. Conversely, Inverse Reinforcement Learning (IRL) is computationally expensive due to the need for policy retraining for every new task. FTL-IGM proposes a paradigm shift: treating task learning as an inverse problem within a generative framework.

Methodology

The FTL-IGM framework operates in two distinct phases: pretraining and inverse modeling.

  1. Pretraining: A conditional diffusion model is trained on a diverse dataset of trajectories paired with concept embeddings (e.g., T5 text embeddings). This phase establishes a strong prior over physically plausible motions and goal-oriented behaviors.
  2. Inverse Modeling: When presented with 3–5 demonstrations of a novel task, the model weights are frozen. Instead of updating the model's parameters, backpropagation is used to optimize a new latent concept representation ($\tilde{c}$). A key finding was that optimizing a composition of two latent concept vectors significantly outperformed learning just one, allowing the model to capture complex nuances.
The FTL-IGM framework: (Left) Pretraining a conditional diffusion model on trajectories and concepts. (Right) Inverse modeling to find a new latent concept from demonstrations while keeping the model weights frozen.

This generative approach allows for compositional properties. Optimized concepts can be mathematically combined with known concepts to generate hybrid behaviors without additional training.

Experimental Evaluation

The authors evaluated FTL-IGM across five diverse domains:

  • Object Rearrangement: Spatial relations between 2D shapes (e.g., "A is diagonal to B").
  • AGENT: Goal-oriented navigation where the agent identifies a target based on color and shape.
  • MoCap (Human Motion): Learning complex actions like "jumping jacks" or "breaststroke" from the CMU Motion Capture Database.
  • Autonomous Driving: Navigating "roundabout" scenarios in the HighwayEnv simulator.
  • Real-World Manipulation: A Franka Research 3 robot learning to push objects onto elevated surfaces.

Results

FTL-IGM consistently outperformed standard Behavior Cloning (BC) and Variational Autoencoder (VAE) baselines across all metrics. In the AGENT navigation task, it achieved 73.3% accuracy on novel concepts, compared to 26.7% for BC. In object rearrangement, FTL-IGM reached 75% accuracy on unseen compositions of relations.

Example of human motion capture (MoCap) used to evaluate the model's ability to learn complex physical actions from a few demonstrations.

In human motion tasks, a user study confirmed that FTL-IGM's generations were recognizable 80% of the time, whereas baselines often produced degenerate motions. In autonomous driving, the model successfully learned to navigate roundabouts with a 24% success rate, whereas in-context learning failed completely. Key insights include the model's ability to stay within the learned data manifold, as evidenced by t-SNE visualizations of the optimized concepts.

Conclusion

FTL-IGM demonstrates a powerful method for few-shot learning by inverting generative priors. While inference speed remains a challenge due to the iterative nature of diffusion models, the framework's ability to compose skills and generalize to novel tasks marks a significant step forward. Future work will focus on improving real-time performance and establishing theoretical bounds on representable concepts.

Summary updated

BibTeX
@inproceedings{netanyahu2024few,
  author = {Aviv Netanyahu and Yilun Du and Antonia Bronars and Jyothish Pari and Joshua B. Tenenbaum and Tianmin Shu and Pulkit Agrawal},
  title = {{Few-Shot Task Learning through Inverse Generative Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=atIE6Npr5A},
}
Figure