Abstract
Experience replay plays a crucial role in improving the sample efficiency of deep reinforcement learning agents. Recent advances in experience replay propose using Mixup to further enhance sample efficiency. However, global Mixup can generate "off-manifold" transitions—synthetic data representing physically impossible scenarios—that can impede learning. This paper introduces Neighborhood Mixup Experience Replay (NMER), which performs convex interpolation only between a transition and its nearest neighbors in state-action space, ensuring synthetic data respects the local geometry of the environment's dynamics.
Introduction
Deep Reinforcement Learning (DRL) is notoriously data-hungry, often requiring millions of interactions to reach proficiency. This sample inefficiency is a major barrier to real-world applications where data generation is expensive or risky. While experience replay buffers mitigate this by reusing past transitions, they are limited to the specific data points collected. Data augmentation techniques like Mixup have been proposed to fill the gaps between samples, but interpolating between distant points often creates unrealistic transitions that confuse the agent.
Methodology: Neighborhood Mixup Experience Replay (NMER)
NMER addresses the limitations of global interpolation by applying Mixup locally. The algorithm relies on a locally linear approximation of the transition manifold, assuming that points close together in state-action space share similar dynamics.
The NMER process involves two primary steps:
- Buffer Update: As new transitions are added, the algorithm standardizes features and updates a nearest-neighbor data structure.
- Sampling and Interpolation: When sampling a training batch, NMER selects a transition, identifies its $k$-nearest neighbors, and performs convex linear interpolation: $x_{interp} = \lambda x_1 + (1 - \lambda) x_2$.
By restricting interpolation to "vicinal" points, NMER ensures that synthetic transitions remain "on-manifold" and physically plausible, as illustrated in the figure above.
Experimental Evaluation
The researchers evaluated NMER using the OpenAI Gym MuJoCo suite, a standard benchmark for continuous control including environments like Ant, HalfCheetah, and Humanoid. These environments provide a robust test for generalization across varying physical dynamics.
Key Results
NMER demonstrated substantial improvements over baseline replay buffers and state-of-the-art methods. On average, NMER improved sample efficiency by 94% for TD3 and 29% for SAC compared to vanilla uniform replay buffers.
As shown in the results table, NMER consistently outperformed other interpolation methods such as Continuous Transition (CT) and Prioritized Experience Replay (PER). In complex environments like Ant and HalfCheetah, TD3 equipped with NMER even outperformed ensemble-based algorithms like SUNRISE, despite NMER's significantly lower implementation complexity.
Discussion and Limitations
While NMER provides a powerful "plug-and-play" module for off-policy algorithms, it relies on the assumption of local linearity. In systems with highly non-linear or discontinuous dynamics (e.g., hard collisions), this approximation may fail. Future work may explore more sophisticated proximity representations, such as Mahalanobis distance, or advanced interpolation mechanisms like Gaussian Process Regression to further refine the generation of on-manifold synthetic data.
Summary updated