AutoQD: Automatic Discovery of Diverse Behaviors with Quality-Diversity Optimization

Saeed Hedayatian, Stefanos Nikolaidis

Introduction

In the field of Quality-Diversity (QD) optimization, the goal isn't just to find one "best" solution, but a whole gallery of high-performing solutions that act differently—for instance, a robot that can walk, hop, or crawl to reach its destination. Traditionally, this requires researchers to define Behavior Descriptors (BDs), which are manual features like "foot contact time" or "center of mass height."

This manual approach has three major flaws: it requires deep domain expertise, it introduces human bias (the AI only explores variations the human thought to define), and it becomes nearly impossible to scale as tasks get more complex.

AutoQD is a new framework that automates the discovery of diverse, high-performing behaviors in reinforcement learning without requiring humans to hand-craft these behavior descriptors. By embedding policy occupancy measures into a theoretically grounded vector space, the algorithm learns to distinguish between behaviors naturally, enabling more robust and open-ended learning.

Methods: How AutoQD Works

AutoQD treats a policy's behavior as its occupancy measure—essentially a statistical map of all the state-action pairs the agent visits. If two policies have the same occupancy measure, they are behaviorally identical. To make these measures useful for optimization, the authors employ several clever techniques:

  • Random Fourier Features (RFF): The framework uses RFFs to embed complex occupancy measures into a finite-dimensional vector space. Crucially, the authors prove that the Euclidean distance between these embeddings approximates the Maximum Mean Discrepancy (MMD), a standard metric for comparing probability distributions.
  • Calibrated Weighted PCA (cwPCA): Since QD algorithms work best in low-dimensional spaces (usually 2D-4D), AutoQD projects the high-dimensional RFF embeddings using a specialized version of PCA. This projection is "weighted" by policy fitness, ensuring the algorithm focuses on variations among successful strategies rather than different ways to fail.
  • Iterative Refinement: The behavior space isn't static. AutoQD periodically updates its projection as it discovers new policies, "stretching" the behavior map to accommodate newly found novelties.
  • CMA-MAE Integration: The system uses CMA-MAE (a state-of-the-art blackbox QD optimizer) as its engine to evolve the population of policies.
AutoQD Architecture

Key Insights and Theoretical Grounding

The core insight of AutoQD is that by embedding the occupancy measure, you capture the essence of behavior without needing to know what the robot looks like or what the specific task is.

The authors provide a formal proof (Theorem 1) showing that as you increase the number of trajectories and embedding dimensions, the approximation error of their behavior distance decays exponentially. Furthermore, unlike previous "unsupervised" methods (like Aurora) that use autoencoders to learn behavior from raw states, AutoQD’s RFF-based descriptors are remarkably stable. They show much lower variance across different rollouts of the same policy, making the optimization process much less "noisy."

Key Results

The researchers evaluated AutoQD on six standard continuous control benchmarks from the Gymnasium and MuJoCo libraries (Ant, HalfCheetah, Hopper, Swimmer, Walker2d, and BipedalWalker).

  • Outperforming Hand-Crafted Descriptors: In 4 out of 6 environments (Ant, Hopper, Swimmer, BipedalWalker), AutoQD achieved higher Ground-Truth QD scores than the "RegularQD" baseline, which relied on human-designed features.
  • Superior Adaptability: The researchers created "Adaptation" benchmarks by modifying the physics of the BipedalWalker environment (scaling friction and mass). When the environment's physics changed, the diverse population discovered by AutoQD contained significantly more "survivor" policies that could still function compared to all other baselines.
Adaptability to Physics Changes
  • Qualitative Diversity: Visual analysis showed AutoQD discovering distinct gaits—like "tip-toeing," "sliding," and "smooth hopping"—entirely on its own, without any human prompting.

Limitations and Future Work

While powerful, AutoQD has a few limitations. In highly stochastic environments, estimating the occupancy measure accurately might require many more trajectories, potentially hurting sample efficiency. Additionally, the authors currently project behaviors down to 4 dimensions; for extremely complex tasks, this low-dimensional bottleneck might be too restrictive to capture all meaningful nuances.

The "similarity" between states is also currently determined by a fixed kernel bandwidth. Making this bandwidth adaptive could help the agent distinguish between very similar behaviors later in training. Future directions include integrating AutoQD with gradient-based QD methods (like PGA-ME) and extending the framework to handle raw pixel or image observations.

Summary updated

BibTeX
@inproceedings{hedayatian2026autoqd,
  author = {Saeed Hedayatian and Stefanos Nikolaidis},
  title = {{AutoQD: Automatic Discovery of Diverse Behaviors with Quality-Diversity Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=FNnJIf4ymV},
}
Figure