Skip to main content
QUICK REVIEW

[Paper Review] On the Variance of Unbiased Online Recurrent Optimization

Tim Cooijmans, James Martens|arXiv (Cornell University)|Feb 6, 2019
Machine Learning and ELMComputer Science26 references6 citations
TL;DR

This paper analyzes the variance of the Unbiased Online Recurrent Optimization (uoro) algorithm for online training of recurrent neural networks, proposing a novel matrix-based variance reduction technique that improves gradient estimation accuracy. The method reduces variance by optimizing the structure of random projections used in uoro, and establishes a theoretical link between uoro and the REINFORCE estimator with injected noise.

ABSTRACT

The recently proposed Unbiased Online Recurrent Optimization algorithm (UORO, arXiv:1702.05043) uses an unbiased approximation of RTRL to achieve fully online gradient-based learning in RNNs. In this work we analyze the variance of the gradient estimate computed by UORO, and propose several possible changes to the method which reduce this variance both in theory and practice. We also contribute significantly to the theoretical and intuitive understanding of UORO (and its existing variance reduction technique), and demonstrate a fundamental connection between its gradient estimate and the one that would be computed by REINFORCE if small amounts of noise were added to the RNN's hidden units.

Motivation & Objective

  • Address the challenge of high variance in gradient estimates for online recurrent learning, particularly in long or indefinite sequences.
  • Improve the efficiency and stability of the uoro algorithm, which provides unbiased online gradient estimation for RNNs.
  • Provide a deeper theoretical and intuitive understanding of uoro’s gradient estimation mechanism and its existing variance reduction method.
  • Explore connections between uoro and other policy gradient methods, particularly REINFORCE with perturbed hidden states.
  • Develop a framework for analyzing and minimizing variance in uoro-style gradient estimators under structural constraints.

Proposed method

  • Derive a novel, more intuitive formulation of the uoro algorithm using principles of automatic differentiation and credit assignment in RNNs.
  • Propose augmenting the scalar coefficients in uoro’s variance reduction with matrix-valued transformations to better capture gradient correlations.
  • Develop a theoretical framework to compute the total variance of accumulated uoro gradient estimates over time, enabling systematic analysis.
  • Derive an optimal variance-reduction matrix under structural constraints using a closed-form solution within the proposed framework.
  • Introduce a variant of uoro that exploits the rank-one structure of weight gradients, reducing variance by a factor proportional to the number of hidden units.
  • Establish a formal connection between uoro and the REINFORCE estimator when small noise is added to RNN hidden units, showing convergence under noise annealing.

Experimental results

Research questions

  • RQ1How does the variance of the uoro gradient estimator scale with sequence length, and what structural factors contribute to its instability?
  • RQ2Can the existing variance reduction technique in uoro be improved by replacing scalar coefficients with matrix-valued transformations?
  • RQ3What is the fundamental relationship between uoro and the REINFORCE policy gradient estimator when noise is injected into RNN hidden states?
  • RQ4How does the variance of uoro compare to that of standard backpropagation through time (BPTT) and real-time recurrent learning (RTRL) in practice?
  • RQ5Can the rank-one structure of RNN weight gradients be exploited to design a lower-variance variant of uoro without increasing computational cost unduly?

Key findings

  • The proposed matrix-based variance reduction technique significantly reduces gradient variance in uoro, both theoretically and empirically, by better capturing the covariance structure of the gradient estimates.
  • The variance of the uoro estimator is analytically linked to the REINFORCE estimator with injected noise, and under noise annealing, the REINFORCE estimator converges to the uoro estimator plus a zero-mean term with unbounded variance.
  • A variant of uoro that exploits the rank-one nature of weight gradients reduces variance by a factor on the order of the number of hidden units, at the cost of a similar increase in computation time.
  • The theoretical framework developed allows for precise computation of total variance in uoro-style estimators over time, enabling optimization of variance-reduction matrices under structural constraints.
  • Empirical evaluation confirms that the new variance reduction method improves training stability and convergence speed compared to the original uoro and baseline methods.
  • The analysis reveals that the scalar coefficients used in the original uoro variance reduction are suboptimal, and matrix extensions lead to better alignment with the true gradient structure.

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.