Behaviour Distillation

Andrei Lupu, Chris Lu, Jarek Liesen, Robert Tjarko Lange, Jakob Nicolaus Foerster

Introduction

In supervised learning, "dataset distillation" has become a powerful tool for condensing massive datasets into a handful of synthetic images that retain most of the original's training value. However, translating this success to Reinforcement Learning (RL) presents unique hurdles. First, there is no fixed dataset; agents must actively explore to find high-reward trajectories. Second, existing distillation methods usually assume access to an expert policy or a massive "ground truth" dataset to compress.

Behaviour Distillation introduces a way to condense the "knowledge" required for an expert RL policy into a tiny synthetic dataset of just a few state-action pairs. The goal is to "pre-solve" an environment by discovering and condensing the essential information needed for expert performance into a tiny, stationary, non-sequential synthetic dataset, without ever needing access to a pre-existing expert.

Methodology: HaDES

To achieve this, the authors introduce HaDES (Hallucinating Datasets with Evolution Strategies), which utilizes a bi-level optimization loop:

  • The Inner Loop: A "student" policy is trained using standard supervised learning (Behaviour Cloning) on a small synthetic dataset of state-action pairs.
  • The Outer Loop: Evolution Strategies (ES) are used to "hallucinate" (update) the values of those synthetic states and actions. The "fitness" of a dataset is determined by how well the student policy performs in the actual environment after being trained on it.

The paper highlights two variants of this approach:

  • HaDES-F (Fixed): Uses a single fixed policy initialization. It is highly efficient for neuroevolution (finding one great policy) but can overfit to that specific starting point.
  • HaDES-R (Randomized): Trains against a range of random initializations. This produces a more robust "Behaviour Floppy Disk"—a dataset capable of training almost any architecture to perform the task.

Key Insights and Interpretability

The concept of a "Behaviour Floppy Disk" proves remarkably efficient. In some cases, as few as four state-action pairs were enough to train an agent to competitive performance, suggesting that the essence of an expert policy is highly compressible. Furthermore, datasets evolved for a specific network width successfully trained policies of vastly different widths, proving the distilled knowledge captures the task itself rather than overfitting to a specific neural network architecture.

Because the datasets are so small, they are also highly interpretable. For example, in the Cartpole environment, the distilled dataset clearly demonstrates the core logic of the task: if the pole leans left, the corresponding action is to move left.

Visualizations of distilled synthetic states for Cartpole and Hopper environments.

The authors also demonstrated zero-shot multi-tasking. By simply merging synthetic datasets from two different tasks (like Hopper and Halfcheetah) and using zero-padding, they trained multi-task agents without any additional environment interaction.

Experimental Results

HaDES was evaluated across several challenging benchmarks, including Brax (continuous control tasks), MinAtar (symbolic Atari games), and standard supervised benchmarks (MNIST, FashionMNIST).

  • Performance: HaDES-F matched or outperformed direct neuroevolution (standard ES) in 8 out of 8 Brax environments.
  • Data Efficiency: The method produces datasets representing less than 1/100th of a single episode of data while still yielding expert-level agents.
  • Supervised State-of-the-Art: Despite being designed for RL, HaDES achieved SoTA results on the FashionMNIST distillation task (1 image per class), reaching 80.2% accuracy.
  • Memory Efficiency: By evolving a small dataset rather than the weights of a massive population of neural networks, HaDES significantly reduces the memory footprint of evolutionary training.

Limitations and Future Directions

Like most evolutionary methods, HaDES requires a large population and significant compute to run the outer loop. Additionally, the number of parameters in the synthetic dataset grows linearly with the number of points and the dimensionality of the observations, making it difficult to distill pixel-perfect environments like full Atari or CIFAR-10.

Future work may explore "factorized distillation"—using a generative model to represent the synthetic data—to scale to higher-dimensional inputs. These tiny datasets also hold potential for continual learning, acting as condensed "memories" to prevent catastrophic forgetting.

Summary updated

BibTeX
@inproceedings{lupu2024behaviour,
  author = {Andrei Lupu and Chris Lu and Jarek Liesen and Robert Tjarko Lange and Jakob Nicolaus Foerster},
  title = {{Behaviour Distillation}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
}
Figure