atlas

Research map / Architectures and efficiency / RNNs and normalization

Recurrent neural networks: vanishing and exploding gradients are not the end of the story

NeurIPS 2024 · Architectures and efficiency › RNNs and normalization · approach: RNN training dynamics and gradients · 18 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that RNNs suffer from a "curse of memory": as memory lengthens, hidden states and gradients become increasingly sensitive to parameter changes even without exploding gradients, and that eigenvalue reparametrization, input normalization, and diagonal recurrence (as in LRU/SSMs/GRU) mitigate it.

Problem

Gradient-based learning of recurrent networks is hard for long memories; solving vanishing/exploding gradients may not suffice because parameter sensitivity of hidden states grows as memory lengthens even when dynamics are stable.

Approach

Identifies the 'curse of memory': as the recurrent eigenvalue approaches the unit circle, the sensitivity of hidden states and their gradients to recurrent parameters diverges, even with stable dynamics. Shows that input normalization and eigenvalue reparametrization (plus diagonal recurrence) keep these quantities bounded, explaining why deep SSMs and gated RNNs train better.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use an LRU instead of a fully connected linear RNNLinear recurrent teacher-student task · Teacher-student task with long memoriesteacher-behavior replicationHelped
Make the recurrent weight matrix block diagonal (ablation)Linear RNN teacher-student task · Teacher-student task, ν₀=0.99teacher-behavior replicationHelped
Convert 2×2 recurrent blocks and their input and output weights to complex numbers (ablation)Block-diagonal linear RNN · Teacher-student task, ν₀=0.99teacher-behavior replicationNo clear effect
Add input normalization and exponential eigenvalue parametrization (ablation)Complex block-diagonal linear RNN · Teacher-student task, ν₀=0.99teacher-behavior replicationNo clear effect
Use a complex diagonal recurrent parametrization instead of fully connected connectivityLinear RNN trained with Adam · Teacher-student task, ν₀=0.99learning speedHelped
Use Adam rather than non-adaptive stochastic gradient descentComplex diagonal linear RNN · Teacher-student tasklearning stabilityHelped
Use a more concentrated eigenvalue distributionComplex-valued diagonal network · Teacher-student taskteacher-behavior replicationHurt
Increase the number of hidden neuronsComplex diagonal recurrent network · Teacher-student taskeffectiveness of adaptive learning ratesHurt
Use LRU input normalization and eigenvalue parametrizationComplex diagonal recurrent layer · Deep recurrent network initializationgradient magnitude across characteristic time scalesHelped
Use a GRU with Chrono initializationDeep recurrent network · Next-token prediction initializationgradient magnitude across characteristic time scalesHelped
Add layer normalization (ablation)Complex diagonal RNN · Deep recurrent network initializationgradient magnitudeHelped
Replace LRU input normalization and eigenvalue parametrization with layer normalization (ablation)Complex diagonal RNN · Deep recurrent network initializationlearning signal for the smallest eigenvaluesHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic teacher-student linear RNN data natural language sentences for next-token prediction

Benchmarks: synthetic teacher-student task next-token prediction on natural language

Metrics: second moment of hidden states gradient second moment loss Hessian eigenspectrum effective learning rate

Baselines: linear RNN (fully connected) LRU S4 GRU LSTM

Builds on: LRU S4 Chrono initialization Mamba

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy