Introduction
Quality-Diversity (QD) optimization aims to discover a library of high-performing solutions that exhibit diverse behaviors, such as a robot learning multiple ways to walk or climb. Traditionally, this requires human experts to hand-craft Behavior Descriptors (BDs)—specific features like "foot contact time" that define how behaviors differ. This reliance on manual engineering creates a bottleneck: if a designer misses a key behavioral dimension, the algorithm will never explore it.
AutoQD addresses this by providing a theoretically grounded framework to automatically discover these descriptors. By mathematically embedding a policy’s state-action visitation patterns into a low-dimensional space, AutoQD enables algorithms to autonomously identify behavioral differences and optimize for both diversity and quality.
The AutoQD Framework
The core innovation of AutoQD is the use of occupancy measures—distributions that describe how frequently a policy visits specific state-action pairs. Because a policy is uniquely defined by its occupancy measure, comparing these distributions is a principled way to measure behavioral diversity.
To implement this efficiently, AutoQD employs several key techniques:
- Maximum Mean Discrepancy (MMD) & Random Fourier Features (RFF): MMD measures the distance between distributions. To avoid the high computational cost of direct MMD calculation, AutoQD uses RFFs to map occupancy measures into a finite-dimensional vector space where Euclidean distance approximates MMD.
- Calibrated Weighted PCA (cwPCA): High-dimensional embeddings are compressed into a 4D behavior descriptor using a specialized PCA. Crucially, this PCA is weighted by policy fitness (reward), forcing the algorithm to focus on variations among successful policies rather than wasting diversity on failing ones.
- Iterative Refinement: The algorithm periodically updates the PCA projection as new behaviors are discovered, refining its map of the behavior space over time.
Experimental Evaluation
AutoQD was evaluated on six standard continuous control benchmarks from the Gymnasium and MuJoCo suites: Ant, HalfCheetah, Hopper, Swimmer, Walker2d, and BipedalWalker. These environments require complex coordination for effective locomotion and serve as rigorous tests for behavior discovery.
Key Results
AutoQD was compared against five baselines, including "RegularQD" (using human-expert descriptors) and "Aurora" (a leading unsupervised method).
As shown in the results table, AutoQD outperformed all unsupervised baselines in terms of the Ground-Truth QD Score in four out of six environments. Notably, it often surpassed the performance of human-designed descriptors. Qualitative analysis revealed that AutoQD discovered unique gaits—such as "tip-toeing" in Walker2d or "sliding" in HalfCheetah—without any prior human instruction on what those behaviors might look like.
Robustness and Stability
A significant advantage of AutoQD is its stability. Unlike autoencoder-based methods that can be sensitive to environmental noise, AutoQD’s descriptors are more consistent because they average over entire trajectories. In transfer experiments where the physics of the BipedalWalker (mass and friction) were altered, AutoQD’s population demonstrated significantly higher adaptability than the baselines, maintaining a diverse set of viable policies under new conditions.
Conclusion and Future Work
AutoQD provides a mathematically sound foundation for unsupervised behavior discovery in reinforcement learning. While the current implementation is highly effective, future work will focus on improving sample efficiency in stochastic environments and integrating AutoQD with gradient-based QD algorithms like PGA-ME to further accelerate the discovery process.
Summary updated