On Generalization Across Environments In Multi-Objective Reinforcement Learning

Jayden Teoh, Pradeep Varakantham, Peter Vamplew

Abstract

This paper bridges the gap between two critical areas of AI: Multi-Objective Reinforcement Learning (MORL) and generalization. We introduce a formal framework for evaluating how agents handle conflicting goals across diverse environments, a new benchmark called MORL-Generalization, and a scale-invariant metric, the Normalized Hypervolume Generalization Ratio (NHGR). Our evaluation reveals that current state-of-the-art algorithms struggle significantly to generalize in complex, multi-objective scenarios.

Introduction

In real-world applications, autonomous systems rarely pursue a single goal. For instance, an autonomous vehicle must simultaneously optimize for speed, safety, and fuel efficiency. While significant progress has been made in generalization—the ability to perform well in novel situations—most research assumes a single scalar reward. Conversely, Multi-Objective RL research typically assumes a static environment.

Generalization in a multi-objective context is fundamentally more challenging. An agent must learn a Pareto set—a collection of optimal trade-offs—that remains robust across varying environmental contexts, such as different weather conditions or terrain types. This paper provides the first formal framework to define and measure the intersection of multi-objectivity and environmental variety.

Methods and Metrics

The authors propose several foundational tools to formalize this problem space:

  • MOC-MDP (Multi-Objective Contextual MDP): A mathematical framework where environments are defined by "contexts" (e.g., gravity, friction, or map layout) that vary between episodes.
  • NHGR (Normalized Hypervolume Generalization Ratio): Traditional metrics like Hypervolume are often biased toward environments with larger reward scales. NHGR addresses this by comparing an agent’s performance in a specific context against the optimal possible performance for that exact context, providing a fair, scale-invariant measure of generalization.
The NHGR metric compares agent performance (hatched) against the optimal Pareto front (shaded) in a scale-invariant way.
  • Algorithmic Evaluation: Eight state-of-the-art MORL algorithms (including GPI-LS, CAPQL, and MORL/D) were tested using Domain Randomization, where environment parameters are shuffled during training to discourage memorization and encourage the learning of generalizable features.

The MORL-Generalization Benchmark

The study introduces the MORL-Generalization benchmark, adapting several standard RL environments to include rich parameter variations:

  1. MO-LunarLander: Features 7D parameters including gravity and wind.
  2. MuJoCo Robotics (Hopper, Cheetah, Humanoid): Tasks involving varying body masses, joint damping, and floor friction.
  3. MO-LavaGrid: A navigation task with diverse handcrafted layouts and varying goal weights.
  4. MO-SuperMarioBros: Tests generalization across 32 distinct game stages.
The MO-LavaGrid environment features diverse handcrafted layouts to test generalization across navigation tasks.

Key Insights and Results

Performance Gaps and Complexity

Even top-performing algorithms fell short of the optimal generalization target (NHGR = 1.0). In MO-LunarLander, the leading algorithm (GPI-LS) achieved an NHGR of only 0.66. As complexity increased in tasks like MO-Humanoid, performance dropped further, with scores ranging between 0.28 and 0.41. In MO-SuperMarioBros, agents exhibited "negligible" generalization to unseen stages, indicating they were memorizing level-specific sequences rather than acquiring general skills.

The "Maximax" Failure Mode

A critical flaw was identified in current MORL Pareto archives: they tend to retain policies that perform exceptionally well in "easy" (high-reward) environments while discarding those optimal for "hard" (low-reward) environments. This bias leads to poor generalization across the full spectrum of environmental difficulty.

Advantages of Multi-Objective Learning

Interestingly, MORL agents often outperformed single-objective agents even on the single-objective's own reward function. By treating goals independently, MORL agents maintained a more diverse and adaptable set of behaviors compared to the rigid nature of engineered scalar rewards.

Conclusion and Future Work

The benchmark highlights significant limitations in current MORL algorithms regarding environmental adaptation. Future research should focus on developing "context-aware" Pareto archives that preserve policies essential for difficult environments. Additionally, the authors suggest moving toward GPU-based simulators to alleviate the computational bottlenecks of current CPU-based physics simulations.

Summary updated

BibTeX
@inproceedings{teoh2025generalization,
  author = {Jayden Teoh and Pradeep Varakantham and Peter Vamplew},
  title = {{On Generalization Across Environments In Multi-Objective Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=tuEP424UQ5},
}
Figure