atlas

Research map / Architectures and efficiency / RNNs and normalization

Second-order forward-mode optimization of recurrent neural networks for neuroscience

NeurIPS 2024 · Architectures and efficiency › RNNs and normalization · approach: Efficient recurrent architectures · 1 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.

Proposes SOFO, a second-order optimizer that uses batched forward-mode AD to compute sketched Gauss-Newton updates in random subspaces, enabling constant-memory RNN training on neuroscience tasks.

Problem

Training vanilla RNNs as models of brain dynamics is hard: ill-conditioned loss surfaces, long time horizons exceed backpropagation memory, and GPU parallelism is underused; plausibility constraints rule out gated architectures.

Approach

SOFO reparameterizes the model in a random K-dimensional subspace each iteration and computes an exact sketched Generalized Gauss-Newton update using batched forward-mode JVPs, giving O(1) memory in time horizon and per-iteration cost close to first-order methods.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use SOFO instead of AdamVanilla RNN · Lorenz attractortraining lossHelped
Add second-order GGN preconditioning to the subspace update (ablation)SOFO · Lorenz attractortraining lossHelped
Use K=1 and omit second-order preconditioning (ablation)SOFO · Lorenz attractortraining lossHurt
Use SOFO instead of AdamVanilla RNN · Adaptive Kalman filtertraining loss: less than 200 training iterationsHelped
Use SOFO instead of FORCERNN · 3-bit flip-flopevaluation lossMixed
Train all network weights in the smaller 128-unit network (ablation)SOFO · 3-bit flip-floptest mean squared error: more than 15 times smallerHelped
Use SOFO instead of AdamStochastic vanilla RNN · Memory-guided single-reachtraining lossHelped
Use SOFO instead of AdamStochastic vanilla RNN · Memory-guided double-reachtraining lossHelped
Use SOFO instead of AdamRNN · One-shot classificationclassification accuracy: 90% ... in 150 training iterations, compared to 1500 iterations for AdamHelped
Increase the tangent count K (ablation)SOFO · Delayed addition (T=128)training lossHelped
Increase the number of neurons while keeping K fixed at 256 (ablation)SOFO · 3-bit flip-flopconvergence speed: 1000 to 8000Hurt
Train an MLP-Mixer on CIFAR-10 with SOFO instead of AdamMLP-Mixer · CIFAR-10evaluation accuracyNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Lorenz attractor (synthetic) linear dynamical system sessions (synthetic) 3-bit flip-flop (synthetic) single and double reaching task (simulated arm) delayed addition (synthetic) one-shot classification (synthetic) MNIST CIFAR-10

Benchmarks: Lorenz attractor sparse supervision adaptive Kalman filter 3-bit flip-flop memory-guided single and double reach delayed addition one-shot classification MNIST CIFAR-10

Metrics: training loss evaluation loss wallclock time per iteration GPU memory usage classification accuracy

Baselines: Adam FORCE Forward-gradient descent (FGD) first-order SOFO Kalman filter baseline

Builds on: Generalized Gauss-Newton forward-gradient descent FORCE real-time recurrent learning stochastic subspace descent

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