Skip to main content
QUICK REVIEW

[Paper Review] Learning Gradient Descent: Better Generalization and Longer Horizons

Kaifeng Lv, Shunhua Jiang|arXiv (Cornell University)|Mar 10, 2017
Machine Learning and AlgorithmsComputer Science21 references39 citations
TL;DR

This paper proposes RNNprop, a learnable optimizer based on recurrent neural networks that outperforms traditional and state-of-the-art learning-to-learn optimizers by incorporating two key training tricks: Random Scaling and combining the loss with convex functions. Trained on a simple MLP, RNNprop generalizes to deeper networks, longer training horizons (up to thousands of steps), and diverse architectures like CNNs and LSTMs, achieving performance comparable or superior to Adam and Adagrad.

ABSTRACT

Training deep neural networks is a highly nontrivial task, involving carefully selecting appropriate training algorithms, scheduling step sizes and tuning other hyperparameters. Trying different combinations can be quite labor-intensive and time consuming. Recently, researchers have tried to use deep learning algorithms to exploit the landscape of the loss function of the training problem of interest, and learn how to optimize over it in an automatic way. In this paper, we propose a new learning-to-learn model and some useful and practical tricks. Our optimizer outperforms generic, hand-crafted optimization algorithms and state-of-the-art learning-to-learn optimizers by DeepMind in many tasks. We demonstrate the effectiveness of our algorithms on a number of tasks, including deep MLPs, CNNs, and simple LSTMs.

Motivation & Objective

  • To address the challenge of manual hyperparameter tuning and algorithm selection in training deep neural networks.
  • To improve generalization of meta-learned optimizers across different architectures and activation functions.
  • To extend the effective training horizon of learned optimizers beyond 100 steps, enabling stable optimization over thousands of steps.
  • To develop practical training techniques that enhance the robustness and adaptability of RNN-based optimizers.
  • To demonstrate that a single learned optimizer can effectively train diverse models including MLPs, CNNs, and LSTMs without retraining.

Proposed method

  • The optimizer is implemented as an RNN (specifically, an LSTM-based model) that takes gradients of the optimizee as input and outputs parameter updates.
  • The model is trained using a meta-learning objective: minimizing the final loss of a 100-step training process on a base MLP with sigmoid activation.
  • Random Scaling is applied during training: the parameters of the optimizee are randomly scaled to improve generalization to unseen architectures and activation functions.
  • A convex regularization term is added to the loss function during RNN training to accelerate convergence and stabilize optimization.
  • The final optimizer, RNNprop, is evaluated on a range of tasks including deeper MLPs, CNNs, and LSTMs with varying architectures and datasets.
  • The method is compared against DMoptimizer, Adam, Adagrad, and other baselines across multiple benchmarks and hyperparameter settings.

Experimental results

Research questions

  • RQ1Can a learned optimizer generalize to deeper or wider MLPs with different activation functions, such as ReLU, after being trained on a simple MLP?
  • RQ2Can a meta-learned optimizer maintain performance over significantly longer training horizons (e.g., thousands of steps) when trained only on 100-step tasks?
  • RQ3How effective are the proposed training tricks—Random Scaling and convex loss combination—in improving the generalization and training stability of the RNN-based optimizer?
  • RQ4Does the learned optimizer RNNprop achieve performance comparable or superior to hand-crafted optimizers like Adam and Adagrad across diverse architectures and datasets?
  • RQ5To what extent does the structure of the optimizee (e.g., CNNs, LSTMs) affect the generalization capability of the meta-learned optimizer?

Key findings

  • RNNprop successfully trains a ReLU-activated MLP for 1000 steps with a final loss of 0.30, outperforming DMoptimizer (26.43) and matching or beating Adam and Adagrad.
  • On a 2-layer LSTM with small noise (N(0,0.01)), RNNprop achieved a final loss of 0.36, outperforming Adam (0.39) and Adagrad (0.50).
  • When trained on a 100-step MLP, RNNprop generalized to train a 4-layer CNN on MNIST for over 1000 steps with comparable performance to Adam.
  • The Random Scaling trick was the most effective: removing it caused a significant drop in performance on ReLU-activated MLPs, while the convex loss combination helped accelerate training.
  • RNNprop achieved a final loss of 0.30 on a 15k-iteration training run for the base MLP, while the version without convex combination reached 0.33, confirming the benefit of the regularization trick.
  • On a 2-layer LSTM, RNNprop achieved a loss of 0.28, significantly outperforming DMoptimizer (5.06) and Adam (0.44).

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.