Skip to main content
QUICK REVIEW

[Paper Review] Unbiased Gradient Estimation in Unrolled Computation Graphs with Persistent Evolution Strategies

Paul Vicol, Luke Metz|arXiv (Cornell University)|Dec 27, 2021
Machine Learning and Data ClassificationComputer Science7 citations
TL;DR

This paper introduces Persistent Evolution Strategies (PES), a method for unbiased gradient estimation in unrolled computation graphs using truncated backpropagation. By accumulating perturbations across partial unrolls instead of restarting them, PES eliminates truncation bias while maintaining low memory usage, low variance, and rapid updates—enabling effective hyperparameter tuning and learned optimizer training.

ABSTRACT

Unrolled computation graphs arise in many scenarios, including training RNNs, tuning hyperparameters through unrolled optimization, and training learned optimizers. Current approaches to optimizing parameters in such computation graphs suffer from high variance gradients, bias, slow updates, or large memory usage. We introduce a method called Persistent Evolution Strategies (PES), which divides the computation graph into a series of truncated unrolls, and performs an evolution strategies-based update step after each unroll. PES eliminates bias from these truncations by accumulating correction terms over the entire sequence of unrolls. PES allows for rapid parameter updates, has low memory usage, is unbiased, and has reasonable variance characteristics. We experimentally demonstrate the advantages of PES compared to several other methods for gradient estimation on synthetic tasks, and show its applicability to training learned optimizers and tuning hyperparameters.

Motivation & Objective

  • Address the high bias introduced by truncated backpropagation in unrolled computation graphs, which limits performance in meta-learning and hyperparameter optimization.
  • Overcome the limitations of existing methods like TBPTT (biased gradients), RTRL (high memory/compute), and standard ES (high variance in truncated settings).
  • Develop a gradient estimation method that is unbiased, memory-efficient, and suitable for real-time, online parameter updates in sequential models.
  • Enable effective training of learned optimizers and hyperparameter tuning by providing a stable, scalable gradient estimation mechanism.
  • Provide a theoretically grounded, practical alternative to backpropagation with reduced computational and memory overhead in unrolled systems.

Proposed method

  • PES divides the unrolled computation graph into short, fixed-length segments (truncated unrolls) and applies evolution strategies (ES) after each segment.
  • Instead of resetting perturbations at each unroll, PES accumulates them over time, which enables unbiased gradient estimation despite truncation.
  • The method uses antithetic sampling to reduce gradient variance, generating symmetric perturbations (positive and negative) to improve statistical efficiency.
  • PES computes the gradient estimate as the average of perturbation-weighted losses across all particles, with correction terms accumulated over time.
  • A variance reduction technique is introduced that combines PES with the analytic gradient from the most recent unroll, improving convergence speed.
  • The approach is implemented efficiently using JAX’s JIT compilation and vectorization, enabling high parallelism and low memory footprint.

Experimental results

Research questions

  • RQ1Can we achieve unbiased gradient estimation in unrolled computation graphs without incurring the memory and computational costs of full backpropagation?
  • RQ2Does accumulating perturbations across truncated unrolls eliminate the bias inherent in standard truncated backpropagation methods like TBPTT?
  • RQ3Can PES maintain low gradient variance while enabling rapid, online parameter updates in sequential models?
  • RQ4How does PES compare to existing methods (e.g., TBPTT, RTRL, standard ES) in terms of convergence speed, stability, and memory usage for hyperparameter tuning and learned optimizer training?
  • RQ5Can PES be effectively applied to non-differentiable or pathological loss landscapes common in meta-optimization and hyperparameter search?

Key findings

  • PES provides an unbiased estimate of the gradient for a smoothed version of the loss, and is exactly unbiased for quadratic losses.
  • The method achieves significantly lower gradient variance than standard evolution strategies in truncated settings, especially when combined with the analytic gradient from the most recent unroll.
  • In hyperparameter tuning tasks, PES converges faster and more stably than TBPTT and standard ES, with comparable or better final performance.
  • PES enables effective meta-training of learned optimizers, demonstrating stable and efficient optimization of inner-loop hyperparameters.
  • The approach scales well to continuous control tasks, showing robust performance in policy learning with unrolled optimization objectives.
  • Empirical results confirm that PES maintains low memory usage and enables frequent parameter updates, making it suitable for real-time and online learning scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.