Introduction
Optimizing parameters in systems that "unroll" over time—such as Recurrent Neural Networks (RNNs) or meta-learning frameworks—presents unique challenges. These unrolled computation graphs often exhibit chaotic loss landscapes where standard backpropagation fails due to discontinuities and local minima. To manage memory and computational costs, practitioners frequently resort to truncated unrolls. However, this introduces a "truncation dilemma": standard truncation leads to biased gradient estimates, while existing unbiased methods, such as Persistent Evolution Strategies (PES), suffer from variance that explodes as the number of truncations increases.
This paper introduces ES-Single, an evolution strategies-based algorithm designed to provide unbiased gradient estimates with significantly lower variance. By reusing a single fixed perturbation for each particle throughout a training trajectory, ES-Single offers a simpler and more stable alternative for optimizing long-horizon tasks.
Methodology: The ES-Single Approach
Evolution Strategies (ES) typically estimate gradients by perturbing parameters with random noise and observing the resulting change in the objective function. In the context of unrolled graphs, the challenge lies in how these perturbations are managed across truncated steps.
The Innovation: Single Perturbation Reuse
The core innovation of ES-Single is its treatment of noise. Unlike PES, which samples new perturbations at every truncation step and accumulates them, ES-Single samples a single perturbation per particle at the very beginning of the inner optimization problem. This fixed perturbation is re-applied at every partial unroll throughout the entire trajectory.
Theoretical and Algorithmic Benefits
- Unbiasedness: Mathematically, ES-Single is equivalent to "Full-Unroll ES," ensuring the gradient estimate remains unbiased under standard assumptions.
- Constant Variance: A critical advantage of ES-Single is that its variance remains constant regardless of the number of truncations. This contrasts sharply with PES, where variance grows linearly with the number of unrolls, often making it unusable for long sequences.
- Gray-Box Optimization: ES-Single functions as a "gray-box" method. It leverages the iterative structure of the inner loop to allow for frequent parameter updates during the unroll, rather than waiting for the completion of the entire trajectory.
- Implementation Simplicity: By eliminating the need for perturbation accumulators and frequent re-sampling, ES-Single is more memory-efficient and easier to implement than its predecessors.
Experimental Evaluation
The researchers evaluated ES-Single across a broad spectrum of tasks to test its robustness and scaling properties:
- Synthetic Benchmarks: Influence Balancing and 2D chaotic regression.
- Language Modeling: Variance analysis on the Penn TreeBank (PTB) dataset.
- Image Classification: Hyperparameter optimization for MLPs and ResNets on MNIST, FashionMNIST, and CIFAR-10.
- Algorithmic Tasks: An LSTM Copy Task requiring the model to repeat long binary strings.
- Reinforcement Learning: The MuJoCo Swimmer-v2 environment.
Key Results
The empirical results demonstrate that ES-Single consistently outperforms or matches state-of-the-art methods while maintaining greater stability.
Stability and Variance
In LSTM training experiments, ES-Single exhibited substantially lower and more stable variance compared to PES. While PES's variance increased with the number of unrolls, ES-Single's variance remained flat. This stability allowed ES-Single to converge in scenarios where PES "exploded," particularly when using higher learning rates in learned optimizer tasks.
Scaling to Long Horizons
On the LSTM Copy Task, ES-Single successfully learned to process sequences significantly longer than those manageable by vanilla truncated ES or PES. This suggests that ES-Single is better suited for tasks with very long temporal dependencies where gradient signal traditionally degrades.
Efficiency in Meta-Learning
When applied to tuning 29 hyperparameters simultaneously for a FashionMNIST model, ES-Single reached lower validation losses faster than random search, vanilla ES, or PES. Its ability to update parameters online without losing theoretical guarantees provides a significant speed advantage in meta-learning contexts.
Limitations and Future Directions
Despite its advantages, ES-Single has limitations that warrant further study:
- Hysteresis: Updating parameters while a system is active means the current state is influenced by previous parameter versions. While "breakstep" training can mitigate this, it remains a factor in performance.
- Quadratic Assumptions: The proof for ES-Single’s unbiasedness assumes a quadratic loss function, which may not perfectly reflect complex, real-world loss surfaces.
- High-Dimensionality: Like all ES methods, ES-Single faces challenges in extremely high-dimensional spaces (millions of parameters) due to the $O(P)$ scaling of variance relative to dimensionality $P$.
- RL Exploration: While promising, the application of ES-Single to Reinforcement Learning exploration remains an open area for future research.
Conclusion
ES-Single represents a significant step forward in gradient estimation for unrolled computation graphs. By simplifying the perturbation mechanism, it achieves a rare combination of unbiasedness, low variance, and computational efficiency. Its success across synthetic, algorithmic, and meta-learning tasks positions it as a robust tool for optimizing complex, chaotic, and long-horizon systems.
Summary updated