Adjoint-Functions and Temporal Learning Algorithms in Neural Networks

Nikzad Benny Toomarian, Jacob BarhenNeurIPS 1990

In 1991, researchers at JPL and Caltech published a foundational paper addressing a critical bottleneck in artificial intelligence: the efficiency of training recurrent neural networks (RNNs) for temporal tasks. By leveraging adjoint operators, the authors derived a novel method to calculate gradients forward in time. This breakthrough avoided the massive memory overhead of backpropagation-through-time (BPTT) and the prohibitive computational cost of forward sensitivity methods, paving the way for real-time, hardware-compatible learning.

The Challenge of Temporal Learning

In the early 1990s, training neural networks to handle time-dependent sequences—such as speech recognition or continuous time-series prediction—was severely limited by the methods available for gradient computation. Researchers generally had to choose between two flawed approaches:

  1. Forward Sensitivity Equations (FSE): This method tracks how every parameter (e.g., synaptic weights) affects every neuron over time. While straightforward to implement, it is computationally expensive, scaling at $O(N^4)$ for $N$ neurons. This made it far too slow for large networks.
  2. Backpropagation Through Time (BPTT): This approach runs the network forward, stores its entire history of states, and then runs an "adjoint" calculation backward. While computationally faster at $O(N^2)$, it requires massive amounts of memory to store the network's history. Because memory requirements scale linearly with the sequence length, BPTT was impractical for long sequences or on-chip hardware implementation.

The authors sought a "holy grail" for RNN training: a method as computationally efficient as backward adjoint methods, but capable of running entirely forward in time with minimal memory requirements.

Methodology: The Adjoint System of Equations

The authors formalized the neural network as a system of coupled nonlinear differential equations designed to minimize an energy functional (the error over time). To optimize this system efficiently, they introduced a new paradigm based on Adjoint Sensitivity Equations (ASE).

The key mathematical innovation was the introduction of an auxiliary adjoint system. Typically, adjoint equations are "final value problems"—they require the network's state at the end of a time interval to begin calculating backward. The authors broke this "backward barrier" by deriving a method to determine the necessary initial conditions for these adjoint equations.

By solving this auxiliary system to handle the time-boundary conditions, the adjoint equations could be integrated simultaneously—and forward in time—with the neural activation dynamics. This leveraged the inherent power of adjoint operators, which can compute the sensitivity of a single output (the error) with respect to all parameters simultaneously, rather than perturbing each parameter one by one.

Key Results: Complexity and Efficiency

The introduction of the ASE yielded significant theoretical improvements in both speed and memory, making it highly suitable for real-world applications:

  • Computational Complexity: The proposed method scales at $O(N^3 L)$, where $N$ is the number of neurons and $L$ is the number of time steps. While slightly slower than backward-in-time adjoints ($O(N^2 L)$), it is a dramatic improvement over the intractable $O(N^4 L)$ scaling of Forward Sensitivity Equations.
  • Memory Efficiency: The storage requirement is reduced to just $O(N^2)$. By only requiring the current weights and states, the algorithm completely bypasses the $O(N^2 L)$ memory footprint of BPTT, decoupling memory usage from the length of the training sequence.
  • Simultaneity and Hardware Compatibility: Because the algorithm is purely forward-in-time, it allows the network to "learn while it thinks." The sensitivity equations are solved concomitantly with the neural dynamics, making the algorithm uniquely suited for real-time applications and direct implementation in VLSI (Very Large Scale Integration) hardware.

Limitations and Future Directions

As a rigorous mathematical derivation, this specific publication focuses entirely on theory and lacks empirical datasets or numerical simulations (the authors noted that benchmarks were relegated to a companion paper).

Furthermore, the derivation relies on a first-order finite difference approximation for its numerical implementation. In highly chaotic or sensitive dynamical systems, higher-order schemes might be necessary, which would inherently increase the algorithm's complexity. Finally, the model assumes that system parameters (like weights) are independent, a condition that may not hold true in all specialized or constrained neural architectures.

Summary updated

BibTeX
@inproceedings{toomarian1990adjoint,
  author = {Nikzad Benny Toomarian and Jacob Barhen},
  title = {{Adjoint-Functions and Temporal Learning Algorithms in Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1990},
}
Figure