TL;DR
This paper presents a systematic evaluation of whether representation learning (RepL) actually helps imitation learning (IL). The authors find that while RepL methods outperform basic behavioral cloning, they offer surprisingly little benefit over a well-tuned baseline that simply uses image augmentations—a finding that challenges the current trend of applying complex self-supervised objectives to every robotics task.
What Problem Does This Paper Address?
Imitation learning is notoriously data-hungry. To learn a robust policy, an agent typically needs a vast number of expert demonstrations to cover the variety of situations it might encounter. However, expert data is expensive and difficult to collect.
In fields like Computer Vision and NLP, researchers have successfully used "auxiliary representation learning" (like predicting the next word or identifying if two images are versions of the same photo) to reduce the need for labeled data. Naturally, researchers have started applying these same techniques to IL. But does it actually work? This paper, titled Empirical Investigation of Representation Learning for Imitation (EIRLI), seeks to provide a rigorous, large-scale answer to that question.
Methods
The authors developed a modular framework to deconstruct RepL algorithms into their core components:
- Target Selection: Choosing what the model should predict (e.g., the current frame, a future frame, or the action taken).
- Loss Type: The mathematical objective (e.g., Reconstruction like VAEs, or Contrastive like SimCLR).
- Augmentation: How the input data is perturbed (e.g., cropping, rotating, or color jittering).
- Training Regime: Whether the representation is learned beforehand (Pretraining) or alongside the imitation task (Joint training).
They tested five representative RepL algorithms—Temporal CPC, SimCLR, VAE, Dynamics, and Inverse Dynamics—against two base imitation algorithms: Behavioral Cloning (BC) and Generative Adversarial Imitation Learning (GAIL).
Datasets
The study evaluates these methods across ten tasks from three distinct benchmark suites:
- DeepMind Control Suite (DMC): Standard continuous control tasks (Cheetah, Finger, Reacher).
- Procgen: Challenging environments with high visual variety (CoinRun, Fruitbot, etc.).
- MAGICAL: A benchmark specifically designed to test generalization in imitation learning.
Unlike standard vision datasets, these environments require the agent to map visual states to specific actions, often with very small demo sets (e.g., only 5 demos for MAGICAL).
Key Insights and Ideas
- The "Augmentation is All You Need" Effect: The most striking finding is that simple image augmentation (like random shifts) provides a massive performance boost. Once you have a well-tuned augmentation pipeline, adding complex RepL objectives often yields diminishing or zero returns.
- Salience Mismatch: In image classification (like STL-10), the "label" (e.g., "bird") is often tied to the most visually salient part of the image. In IL, the "action" is often determined by tiny, fine-grained cues (like the exact angle of a robot's finger) while the most salient visual features might be the background.
- Actions vs. Values: Using t-SNE visualizations, the authors found that RepL-learned embeddings cluster much better by expected return (value) than by expert action. This suggests that current RepL methods might be better suited for learning what a good state looks like (reward/value functions) rather than what to do (policy learning).
Key Results
- Augmentation Dominance: In environments like reacher-easy and Fruitbot, adding augmentations to basic BC increased rewards by over 150%.
- RepL Performance: While RepL methods generally outperformed "Vanilla BC" (BC without augmentations), they rarely beat "BC with Augmentations."
- Joint Training vs. Pretraining: Joint training (using RepL as an auxiliary loss) showed more consistent, though still modest, benefits in DMC tasks compared to pretraining.
- Qualitative Saliency: Saliency maps revealed that SimCLR-pretrained encoders often attend to the background in complex environments like CoinRun, which explains why they fail to capture the foreground features necessary for precise control.
Limitations and Future Work
The authors acknowledge that their study focused primarily on Behavioral Cloning, which only learns a policy. They hypothesize that RepL might be more effective for Inverse Reinforcement Learning (IRL) or algorithms that learn value functions (like Q-learning), as their embeddings seem to capture "value" information more naturally than "action" information.
Future work should investigate RepL algorithms that are specifically designed to ignore irrelevant background salient features and focus on the fine-grained local cues that drive decision-making. The authors have released their modular codebase at github.com/HumanCompatibleAI/eirli to help the community explore these directions.
Summary updated