Skip to main content
QUICK REVIEW

[Paper Review] Training recurrent networks online without backtracking

Yann Ollivier, Tallec, Corentin|arXiv (Cornell University)|Jul 28, 2015
Neural Networks and ApplicationsComputer Science5 references26 citations
TL;DR

The paper introduces NoBackTrack, a scalable online training algorithm for recurrent networks that avoids backpropagation through time by maintaining an unbiased, memoryless estimate of the gradient using a stochastic rank-one approximation of the full parameter gradient. The method achieves linear scaling with model size and outperforms truncated BPTT in long-sequence tasks by enabling efficient, real-time learning without gradient backtracking.

ABSTRACT

We introduce the "NoBackTrack" algorithm to train the parameters of dynamical systems such as recurrent neural networks. This algorithm works in an online, memoryless setting, thus requiring no backpropagation through time, and is scalable, avoiding the large computational and memory cost of maintaining the full gradient of the current state with respect to the parameters. The algorithm essentially maintains, at each time, a single search direction in parameter space. The evolution of this search direction is partly stochastic and is constructed in such a way to provide, at every time, an unbiased random estimate of the gradient of the loss function with respect to the parameters. Because the gradient estimate is unbiased, on average over time the parameter is updated as it should. The resulting gradient estimate can then be fed to a lightweight Kalman-like filter to yield an improved algorithm. For recurrent neural networks, the resulting algorithms scale linearly with the number of parameters. Small-scale experiments confirm the suitability of the approach, showing that the stochastic approximation of the gradient introduced in the algorithm is not detrimental to learning. In particular, the Kalman-like version of NoBackTrack is superior to backpropagation through time (BPTT) when the time span of dependencies in the data is longer than the truncation span for BPTT.

Motivation & Objective

  • To address the computational and memory overhead of backpropagation through time (BPTT) in recurrent networks by enabling online, memoryless training.
  • To eliminate the need to store past states and gradients by replacing full backpropagation with a stochastic, unbiased gradient approximation.
  • To develop a scalable alternative to RTRL that avoids maintaining the full Jacobian matrix $ G(t) = \partial h(t)/\partial \theta $, which is prohibitively expensive for large models.
  • To enable efficient online learning in dynamical systems by maintaining only a single search direction in parameter space.
  • To integrate the gradient estimate into a Kalman-like filter for improved parameter updates, with invariance to parameter reparameterization.

Proposed method

  • Proposes a rank-one stochastic approximation $ \tilde{G}(t) $ of the full gradient $ G(t) = \partial h(t)/\partial \theta $, constructed as $ \tilde{G}(t) = \bar{v}\bar{w}^\top + \sum_i e_i w_i^\top $, where vectors are randomly sampled to preserve unbiasedness.
  • Ensures $ \mathbb{E}[\tilde{G}(t)] = G(t) $ at every time step, guaranteeing that the expected parameter update matches the true gradient direction.
  • Uses a Kalman-like filtering mechanism to update parameters $ \theta $, with variance-minimizing scaling factors $ \rho $ derived from Mahalanobis norms based on estimated covariances.
  • Employs diagonal approximations of inverse covariance matrices $ J_\theta^{-1} $ and $ J_h $ to maintain computational efficiency while preserving reparameterization invariance.
  • Computes optimal scaling factors $ \bar{\rho} $ and $ \rho_i $ using norms derived from $ J_\theta^{-1} $ and $ J_h $, approximated via $ \tilde{G} J_\theta^{-1} \tilde{G}^\top $, ensuring low-rank variance minimization.
  • Introduces regularization in denominators to prevent numerical overflow during inversion and division steps in the scaling computation.

Experimental results

Research questions

  • RQ1Can an unbiased, memoryless gradient estimate be constructed for recurrent networks without backtracking through time?
  • RQ2Does a stochastic rank-one approximation of the full gradient $ G(t) $ maintain sufficient accuracy for effective online learning?
  • RQ3Can the Kalman-like filtering framework be adapted to use such an approximate gradient while preserving convergence and invariance properties?
  • RQ4How does the NoBackTrack algorithm compare in performance to truncated BPTT when dependencies span longer time horizons than the truncation window?
  • RQ5Can the method achieve linear scaling with model size while avoiding the $ \mathcal{O}(n^2) $ complexity of BPTT and the $ \mathcal{O}(n m) $ storage cost of RTRL?

Key findings

  • The NoBackTrack algorithm provides an unbiased estimate of the full gradient $ G(t) $, ensuring that the expected parameter update aligns with the true gradient direction.
  • The method scales linearly with the number of parameters, making it feasible for large recurrent networks where BPTT and RTRL are computationally prohibitive.
  • Small-scale experiments confirm that the stochastic gradient approximation does not impair learning performance, with convergence behavior comparable to full BPTT.
  • The Kalman-like version of NoBackTrack outperforms truncated BPTT when the time span of dependencies exceeds the truncation window used in BPTT.
  • The use of Mahalanobis norms derived from estimated covariances enables reparameterization-invariant scaling, improving robustness and stability of the gradient estimate.
  • The algorithm maintains computational efficiency through diagonal approximations of inverse covariance matrices, avoiding full matrix storage and inversion.

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.