Diversity from human feedback

Ren-Jian Wang, Ke Xue, Yutong Wang, Peng Yang, Haobo Fu, Qiang Fu, Chao Qian

Abstract

Quality-Diversity (QD) optimization aims to find a set of high-quality and diverse solutions. However, defining a "behavior space" that captures meaningful diversity often requires manual expert engineering or unsupervised methods that may capture irrelevant features. We present Diversity from Human Feedback (DivHF), a framework that learns a behavior descriptor directly from human intuition. By querying relative preferences on triples of solutions, DivHF aligns the optimization process with human-perceived diversity. Our results on standard robotics benchmarks show that DivHF significantly outperforms unsupervised baselines and approaches the performance of expert-defined descriptors.

Introduction

In reinforcement learning and robotics, discovering a library of diverse, high-performing solutions is often more valuable than finding a single optimal one. This allows for robustness and adaptation—for example, a robot might need different walking gaits to navigate varying terrain or compensate for hardware failure. Quality-Diversity (QD) algorithms like MAP-Elites facilitate this search but rely on a predefined "behavior space" to measure how solutions differ.

Traditionally, these spaces are either hand-crafted by experts or learned via unsupervised methods like Autoencoders. Expert definitions are difficult to scale to complex tasks, while unsupervised methods often fail to capture the nuances of human-perceived diversity, focusing instead on reconstructing raw data signals that may contain irrelevant noise. DivHF addresses this gap by asking: Can we learn a behavior space directly from human intuition without requiring an expert to write down a formal definition?

Methods

DivHF breaks the problem of learning a behavior descriptor into three main steps:

  1. Querying Preferences: Instead of asking humans for absolute values, the system presents a triple of solutions $(x_1, x_2, x_3)$. The human identifies which pair is the "most similar" and which is the "most diverse." This comparative approach leverages innate human strengths in relative judgment.
  2. Learning the Descriptor: A neural network (typically a bidirectional LSTM followed by an MLP) maps raw trajectories into a latent behavior space. The model is optimized using a cross-entropy loss based on the Bradley-Terry model, ensuring that predicted similarity matches human feedback.
  3. Optimization: Once the behavior descriptor is learned, it is integrated into a standard QD algorithm, such as MAP-Elites. The algorithm then searches for solutions that fill this newly defined, human-aligned behavior space.
The DivHF framework overview, illustrating the iterative loop between solution evaluation, human preference querying, model training, and diversity optimization.

Results

The method was evaluated on the QDax suite, a standard benchmark for Quality-Diversity in JAX-based physics environments, including tasks like HalfCheetah-Uni and Humanoid-Uni. To simulate human feedback at scale, an "oracle" behavior space based on foot-contact frequencies was used to generate synthetic preferences.

DivHF demonstrated significant improvements over unsupervised baselines. In terms of Preference Accuracy, the model effectively ignored data noise to focus on features driving human perception. When used for optimization, DivHF achieved higher QD-Scores and Coverage in the oracle space compared to Autoencoders. In several environments, the performance of DivHF approached that of the expert-defined oracle itself.

Performance metrics across four environments. DivHF (red line) consistently achieves high QD-Scores and coverage, often approaching the Oracle (dashed line) and significantly outperforming unsupervised baselines like Autoencoders.

Furthermore, DivHF's use of the Bradley-Terry model for optimization proved more robust than concurrent methods like QDHF, which utilize a clipped margin loss.

Conclusion

DivHF provides a scalable framework for defining diversity in complex tasks by aligning algorithmic search with human intuition. While the current implementation requires a significant number of queries, it represents a major step toward removing the "expert-in-the-loop" bottleneck for QD optimization. Future work will focus on improving query efficiency and applying the framework to more complex domains, such as generating diverse outputs from Large Language Models.

Summary updated

BibTeX
@article{wang2023diversity,
  author = {Ren-Jian Wang and Ke Xue and Yutong Wang and Peng Yang and Haobo Fu and Qiang Fu and Chao Qian},
  title = {{Diversity from human feedback}},
  journal = {Frontiers of Computer Science},
  year = {2023},
}
Figure