Abstract
Traditional neural network training relies heavily on backpropagation and the chain rule, which face challenges such as vanishing gradients, sequential bottlenecks, and difficulties with non-differentiable components. This paper introduces a novel online training framework based on Alternating Minimization (AM) with auxiliary variables. By decomposing the global optimization problem into local subproblems, the proposed AM-Adam algorithm achieves performance competitive with standard optimizers like Adam and SGD while offering the first theoretical convergence guarantees for AM in a stochastic setting and superior handling of non-differentiable architectures.
Introduction
Backpropagation has been the undisputed king of neural network training for decades. However, its reliance on the chain rule creates a "backward lock," where layer updates must occur sequentially. This leads to vanishing or exploding gradients and limits parallelization across network depth. Furthermore, backpropagation struggles with non-differentiable functions, such as discrete sign functions used in quantized or biologically inspired models.
To address these limitations, researchers from NYU, IBM, and MIT propose an online approach to Alternating Minimization (AM). By introducing auxiliary variables (or "codes") to represent layer activations, the training objective is reformulated into local, manageable subproblems that can theoretically be solved in parallel.
Methods: Online Alternating Minimization
The core methodology involves treating layer activations as independent auxiliary variables rather than direct functions of the previous layer. The global loss function is augmented with a penalty term that encourages these codes to align with the actual layer transformations.
The training process alternates between two steps:
- Code Update: Weights are fixed, and auxiliary variables are adjusted to better satisfy the network's logic and the final output.
- Weight Update: Auxiliary variables are fixed, allowing weights for each layer to be updated independently of other layers.
The authors introduce two primary algorithms:
- AM-Adam: A stochastic update method that uses an Adam-like approach for local subproblems and is as memory-efficient as standard SGD.
- AM-mem: A variant incorporating "co-activation memory" matrices to store historical information, which may help mitigate catastrophic forgetting in continual learning.
Datasets and Evaluation
The framework was evaluated across a diverse set of benchmarks to prove its versatility:
- MNIST & CIFAR-10: Standard image classification tasks for fully-connected and convolutional (LeNet-5) architectures.
- HIGGS: A massive high-energy physics dataset (10.5M samples) used to demonstrate scalability to "big data."
- Sequential MNIST: Used for testing the method on Recurrent Neural Networks (RNNs).
Key Results
The AM-Adam algorithm demonstrated performance comparable to state-of-the-art optimizers. On MNIST, it achieved approximately 98% accuracy, matching the performance of Adam and SGD while showing rapid convergence in early training stages.
On the CIFAR-10 dataset, AM-Adam also showed competitive final accuracy, proving its effectiveness on more complex image data compared to previous offline auxiliary-variable methods.
Beyond standard benchmarks, the method showed significant advantages in specialized scenarios:
- Scalability: On the 10.5M-sample HIGGS dataset, AM-Adam reached target benchmarks significantly faster than previous offline methods like Taylor's ADMM.
- Non-Differentiable Networks: In networks using binary sign activations, AM-Adam reached a 0.2 error rate in less than 20 epochs, whereas Difference Target Propagation (DTP) required nearly 200 epochs.
Conclusion and Future Work
Online Alternating Minimization presents a viable alternative to backpropagation, particularly for non-differentiable or biologically inspired architectures. While current implementations are sequential, the theoretical framework paves the way for true layer-wise parallelization. Future research will focus on optimizing hyperparameter schedules and realizing the full potential of parallel weight updates on specialized hardware.
Summary updated