Skip to main content
QUICK REVIEW

[Paper Review] Optimal Kronecker-Sum Approximation of Real Time Recurrent Learning

Frederik Benzing, Marcelo Matheus Gauy|arXiv (Cornell University)|Feb 11, 2019
Machine Learning in HealthcareComputer Science5 citations
TL;DR

This paper introduces Optimal Kronecker-Sum Approximation (OK), a novel, low-variance approximation of Real Time Recurrent Learning (RTRL) that achieves theoretically optimal performance within a class of Kronecker-based RTRL approximations. OK matches TBPTT performance on the Penn TreeBank benchmark and outperforms it on a synthetic memorization task, demonstrating empirically negligible noise and effective online learning.

ABSTRACT

One of the central goals of Recurrent Neural Networks (RNNs) is to learn long-term dependencies in sequential data. Nevertheless, the most popular training method, Truncated Backpropagation through Time (TBPTT), categorically forbids learning dependencies beyond the truncation horizon. In contrast, the online training algorithm Real Time Recurrent Learning (RTRL) provides untruncated gradients, with the disadvantage of impractically large computational costs. Recently published approaches reduce these costs by providing noisy approximations of RTRL. We present a new approximation algorithm of RTRL, Optimal Kronecker-Sum Approximation (OK). We prove that OK is optimal for a class of approximations of RTRL, which includes all approaches published so far. Additionally, we show that OK has empirically negligible noise: Unlike previous algorithms it matches TBPTT in a real world task (character-level Penn TreeBank) and can exploit online parameter updates to outperform TBPTT in a synthetic string memorization task. Code availiable on github.

Motivation & Objective

  • Address the high computational cost and noise in existing RTRL approximations while preserving untruncated gradient computation.
  • Develop a theoretically optimal approximation method for RTRL that minimizes variance within a class of Kronecker-sum-based approximations.
  • Demonstrate that the proposed method enables effective online training with performance matching or exceeding TBPTT on real-world and synthetic tasks.
  • Explore the theoretical limits of unbiased, low-rank Kronecker-factor approximations for RTRL gradients.
  • Investigate the feasibility of constructing a practical, memory- and runtime-efficient RTRL alternative applicable to standard RNNs, LSTMs, and RHNs.

Proposed method

  • Propose a new approximation of the RTRL gradient using a sum of Kronecker products of low-rank matrices, enabling efficient computation.
  • Introduce a novel online update procedure for the Kronecker factors that ensures minimum achievable variance among unbiased approximations.
  • Leverage the Eckart-Young theorem to construct optimal low-rank approximations of the gradient matrix, minimizing Frobenius norm error.
  • Design a variant, Kronecker-Triple-Product (KTP), to match TBPTT's computational cost per batch element while maintaining low memory usage.
  • Implement and analyze both OK and KTP using theoretical variance bounds and empirical comparisons on benchmark tasks.
  • Use variance analysis and gradient approximation quality metrics to validate the low noise of OK across different network sizes and training stages.

Experimental results

Research questions

  • RQ1Can a Kronecker-sum-based approximation of RTRL gradients be constructed with provably minimal variance among unbiased approximations?
  • RQ2Does the proposed Optimal Kronecker-Sum (OK) approximation achieve performance comparable to TBPTT on real-world sequential modeling tasks?
  • RQ3Can OK exploit online parameter updates to outperform TBPTT in tasks requiring long-term dependency learning?
  • RQ4How well can the true RTRL gradient be approximated by a low-rank Kronecker-sum structure throughout training?
  • RQ5What is the trade-off between computational efficiency and approximation noise in the proposed KTP variant compared to OK?

Key findings

  • OK achieves empirically negligible noise, matching TBPTT performance on the character-level Penn TreeBank benchmark, a significant improvement over previous noisy approximations.
  • OK outperforms TBPTT on a synthetic string memorization task by effectively utilizing online parameter updates, demonstrating superior learning of long-term dependencies.
  • Variance analysis shows that OK maintains low noise even for larger network sizes, with the approximation error decaying slowly compared to KF-RTRL-AVG.
  • The biased version of OK (16-B-OK) performs nearly as well as the unbiased 16-U-OK, indicating that the true gradient can be well-approximated by a sum of 16 Kronecker factors.
  • The proposed method is theoretically optimal within its class, minimizing variance among unbiased Kronecker-sum approximations of the RTRL gradient.
  • KTP achieves TBPTT-level runtime and memory usage per batch element but exhibits higher noise, limiting its performance on longer sequences compared to OK.

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.