TL;DR
Mixreg is a simple yet powerful regularization technique that improves reinforcement learning (RL) generalization by training agents on convex combinations of observations and rewards from different environments. By encouraging the agent to learn smoother policies across a broader state space, it significantly reduces the performance gap between training and unseen testing environments on the challenging Procgen benchmark.
What Problem Does This Paper Address?
Deep RL agents are notorious for overfitting. An agent might become a master at a specific set of training levels but fail miserably when faced with a new level that has a different background or slightly altered layout. This "generalization gap" is a major hurdle for deploying RL in real-world applications like robotics or finance.
While data augmentation (like cropping or adding noise) is a standard fix in computer vision, the authors argue that common RL augmentations like "cutout" or "random convolution" only provide "local" perturbations. They wiggle the input slightly but don't fundamentally increase the diversity of the training data. As shown in Figure 1, these methods fail to bridge the vast empty spaces in the state feature space between different training environments.
Methods
Inspired by the success of mixup in supervised learning, the authors introduce mixreg (Mixture Regularization). Instead of training on individual observations, the agent trains on a mixture of two observations ($s_i, s_j$) sampled from different environments.
The core mechanism is linear interpolation:
- Observations: $\tilde{s} = \lambda s_i + (1 - \lambda)s_j$
- Supervision (Rewards/Values): $\tilde{y} = \lambda y_i + (1 - \lambda)y_j$
Here, $\lambda$ is a mixing coefficient drawn from a Beta distribution. Crucially, mixreg isn't just about mixing the images; it also interpolates the associated supervision signals, such as the reward or the estimated state value. This imposes a piece-wise linearity constraint, effectively forcing the agent to learn a "smoother" policy that behaves predictably even in the "hallucinated" states between known environments.
The authors demonstrate that mixreg is a general framework, providing specific implementations for both policy-based methods (like PPO) and value-based methods (like Rainbow).
Datasets
The researchers evaluated their method on the Procgen Benchmark, a suite of 16 procedurally generated environments designed specifically to measure RL generalization.
- Training: Agents were typically trained on a limited set of 500 levels.
- Testing: Performance was measured by "zero-shot" evaluation on an infinite stream of unseen levels.
- Focus: The study highlighted 6 games with particularly large generalization gaps: Caveflyer, Climber, Dodgeball, Fruitbot, Jumper, and Starpilot.
Key Insights and Ideas
- Global vs. Local Diversity: Standard augmentations are like adding a bit of fog to a picture; mixreg is like blending two different landscapes. This "global" interpolation covers the state space much more effectively.
- The Necessity of Target Mixing: A key finding is that mixing observations alone isn't enough. Without also interpolating the rewards/values, the agent receives inconsistent signals for the mixed states, which can actually hurt performance. Mixing the targets is what enables the learning of smoother value functions.
- Policy Smoothness: By calculating the empirical Lipschitz constant, the authors proved that mixreg leads to smoother policies. As visualized in Figure 2, the learned value functions for mixreg are significantly less "jagged" than the baseline, making them more robust to visual changes in new levels.
- Better Representations: Fine-tuning experiments revealed that mixreg helps the agent learn more adaptable internal representations. When moved to new environments, agents pre-trained with mixreg adapted much faster than those trained with standard PPO.
Key Results
- Superior Generalization: Mixreg outperformed well-established baselines (including L2 regularization, batch normalization, and various data augmentations) by a large margin across the Procgen suite.
- Sample Efficiency: In many games, mixreg reached the same testing performance as the PPO baseline while using significantly fewer training levels.
- Robustness to Model Size: The benefits of mixreg held true even as the underlying neural network (IMPALA architecture) was scaled up in width, showing it is a robust addition to the RL toolkit.
Limitations and Future Work
While highly effective on Procgen, the authors note that the effectiveness of mixreg has primarily been verified in the game domain. It remains to be seen how it performs in domains with different data modalities, such as high-frequency financial data or continuous robotic control.
Furthermore, the current approach uses simple linear interpolation. The authors suggest that future work could explore more flexible and expressive mixing schemes for observations and supervisions to further push the boundaries of RL generalization.
Summary updated