Habitats: A Framework for Open-Ended Evolution of Agent Objectives
Organizations: Google DeepMind, Montréal, Canada
Abstract
Designing what an agent should optimize can be as difficult as optimizing the agent itself. Existing language-model-based reward-generation methods typically refine objectives for predefined tasks and couple the decision of what to explore with the synthesis of how to implement it, potentially narrowing the resulting behavioral repertoire. We introduce Habitats, a framework for open-ended evolution of executable agent objectives. Habitats maintains a population of reward-policy pairs and evaluates every policy under every population reward, producing a cross-fitness matrix that exposes self-mastery, transfer, and functional diversity. A population-level Planner uses this information to select parent rewards and issue targeted mutation directives, while a separate Mutator translates those directives into validated reward programs. We evaluate Habitats in a discrete Card Sandbox and three continuous-control environments (Cart-Pole, Hopper, and Cheetah) against Independent Generation and Direct Mutation baselines. Across four environments and three random seeds, Habitats achieves the highest macro-averaged final Specialist Quality and Behavioral Diversity, with final diversity reaching 1.8x that of Direct Mutation and 2.5x that of Independent Generation. Finally, across ten downstream objectives unseen during evolution, frozen Habitats policy libraries achieve higher paired win rates than size-matched Direct Mutation and Independent Generation libraries at 10,000 adaptation episodes, while also surpassing task-specific policies trained from scratch for 20,000 episodes. These results suggest that separating population-level planning from reward synthesis enables the discovery of diverse, learnable, and reusable behaviors.
Figures & tables
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Property | Card Sandbox | Cart-Pole | Hopper | Cheetah |
|---|---|---|---|---|
| Observation space | Discrete | Continuous | Continuous | Continuous |
| Action space | Discrete, | Continuous | Continuous | Continuous |
| Policy optimization | Tabular Q-learning | PPO | PPO | PPO |
| Train episode horizon | ||||
| Initial population | ||||
| Generations |
| Hyperparameter | Card Sandbox | Continuous control |
|---|---|---|
| Policy optimizer | Tabular Q-learning | PPO (Brax/JAX) |
| Learning rate | Cart-Pole/Cheetah: ; Hopper: | |
| Discount factor | ||
| Exploration or clipping | -greedy, decay | PPO clip ratio |
| Training budget per new policy | episodes | environment steps |
| Evaluation rollouts | episodes | episodes |
| Environment | Method | Mean SQ | Final SQ | Mean BD | Final BD |
|---|---|---|---|---|---|
| Card Sandbox | Independent Generation | ||||
| Direct Mutation | |||||
| Habitats | |||||
| Cart-Pole | Independent Generation | ||||
| Direct Mutation | |||||
| Habitats |
| Environment | Method | Final GC | |
|---|---|---|---|
| Card Sandbox | Independent Generation | ||
| Direct Mutation | |||
| Habitats | |||
| Cart-Pole | Independent Generation | ||
| Direct Mutation | |||
| Habitats |
| Task | Objective |
|---|---|
| Ascending Sort | Play cards in non-decreasing order. |
| Descending Sort | Play cards in non-increasing order. |
| Triplet Matching | Construct groups of three cards with matching values. |
| Target Sum | Select cards whose cumulative value reaches a specified target. |
| High-Card Maximization | Maximize the cumulative value of the cards played. |
| Low-Card Minimization | Preferentially play cards with the smallest available values. |
| Habitats meta-policy | Scratch | |||||
|---|---|---|---|---|---|---|
| Downstream task | 1k | 2k | 5k | 10k | 20k | 20k |
| Ascending Sort | ||||||
| Descending Sort | ||||||
| Triplet Matching | ||||||
| Target Sum | ||||||
| High-Card Maximization | ||||||
| Direct Mutation meta-policy | Scratch | |||||
|---|---|---|---|---|---|---|
| Downstream task | 1k | 2k | 5k | 10k | 20k | 20k |
| Ascending Sort | ||||||
| Descending Sort | ||||||
| Triplet Matching | ||||||
| Target Sum | ||||||
| High-Card Maximization | ||||||
| Independent Generation meta-policy | Scratch | |||||
|---|---|---|---|---|---|---|
| Downstream task | 1k | 2k | 5k | 10k | 20k | 20k |
| Ascending Sort | ||||||
| Descending Sort | ||||||
| Triplet Matching | ||||||
| Target Sum | ||||||
| High-Card Maximization | ||||||
| Hyperparameter | Cartpole | Cheetah | Hopper |
|---|---|---|---|
| Policy optimizer | PPO (Brax / JAX) | ||
| Learning rate | |||
| Discount factor | |||
| Exploration or clipping | PPO clip ratio | ||
| Training budget per new policy | steps | steps | steps |
| Evaluation rollouts | episodes | episodes | episodes |
| Backbone | Mean SQ | Final SQ | Mean BD | Final BD |
|---|---|---|---|---|
| Gemini 3.5 Flash | ||||
| Gemini 3.8 Flash | ||||
| Gemini 4 Argon |
Reward Design for RL
Reward design for reinforcement learning studies how to specify, learn, and adapt signals that guide agents toward intended behavior.
See all 294 papers