Introduction
Deep Reinforcement Learning (RL) is notoriously sensitive to hyperparameters such as learning rates, batch sizes, and discount factors. Finding an optimal configuration often requires manual tuning or expensive automated searches like Grid Search or Bayesian Optimization, which necessitate hundreds of parallel runs.
Existing online tuning methods frequently treat this challenge as a "stateless bandit" task, seeking the best parameters for the current moment without considering the broader training context. However, training is a trajectory; the hyperparameters needed to escape a local optimum early in training differ significantly from those required for fine-tuning near convergence. Episodic Policy Gradient Training (EPGT) addresses this by modeling the training process as a Hyper-RL problem, where the "state" is the current condition of the neural network itself.
The EPGT Framework
EPGT introduces a nested Markov Decision Process (MDP) where a "hyper-agent" manages the primary RL-agent. The framework consists of several key components:
- Hyper-State ($s^\psi$): The context of training is represented by the model’s current parameters ($\theta$) and recent gradients ($\nabla\theta$). These high-dimensional tensors are compressed into a low-dimensional embedding using a Variational Autoencoder (VAE).
- Hyper-Action ($a^\psi$): The hyper-agent selects a set of hyperparameters from a discrete search space.
- Hyper-Reward ($r^\psi$): The reward is the actual return ($G$) achieved by the RL-agent in the environment using the selected parameters.
- Episodic Memory: To ensure rapid adaptation, EPGT utilizes a k-Nearest Neighbor (kNN) episodic memory. This allows the agent to instantly recall and apply hyperparameters that were successful in similar past training states.
Experimental Results
The authors evaluated EPGT across standard RL benchmarks, including continuous control tasks (MountainCar, BipedalWalker), MuJoCo robotics simulations (HalfCheetah, Hopper, Ant), and Atari 2600 games.
Performance and Efficiency
In MuJoCo tasks, EPGT significantly improved the performance of Proximal Policy Optimization (PPO). On the HalfCheetah benchmark, EPGT outperformed both fixed-parameter baselines and sophisticated parallel search methods like PB2. Unlike Population-Based Training (PBT), which requires running many agents in parallel, EPGT achieves superior results in a single training run.
Key Insights
- Contextual Clustering: Training states (parameters and gradients) tend to cluster together, validating the use of kNN-based memory to retrieve context-specific hyperparameters.
- Non-Parametric Advantage: Parametric models often struggle with the low-sample nature of meta-tasks. Episodic memory’s "fast learning" capability is uniquely suited for optimizing training configurations on-the-fly.
- Computational Speed: EPGT is computationally efficient, running only slightly slower than a standard RL agent while remaining orders of magnitude faster than population-based methods.
Conclusion and Future Work
EPGT demonstrates that hyperparameter tuning can be effectively framed as a reinforcement learning problem using episodic memory. While the system introduces its own meta-parameters, such as memory size and VAE bottleneck dimensions, these remain robust across different tasks. Future research may extend this framework to more complex hyperparameter types and neural architecture search (NAS), further automating the development of high-performance RL agents.
Summary updated