This paper, presented at ICML 2019, offers a compelling alternative to the ubiquitous backpropagation algorithm. By rethinking neural network training as a coordination problem between layers rather than a sequential chain of derivatives, the authors open new doors for parallelization, biological plausibility, and non-differentiable architectures.
The Core Idea
The authors propose a novel online (stochastic) training framework for deep networks that replaces backpropagation with Alternating Minimization (AM). By introducing auxiliary variables for layer activations, they decouple the network's layers. This enables parallel weight updates and provides the first theoretical convergence guarantees for AM in a stochastic setting.
The Problem with Backpropagation
For decades, backpropagation (BP) has been the workhorse of deep learning. However, BP has several fundamental flaws:
- Vanishing/Exploding Gradients: The chain rule can cause signals to disappear or blow up in deep or recurrent networks.
- Sequential Bottleneck: You cannot update the weights of early layers until you have finished the backward pass through all subsequent layers.
- Differentiability: BP requires every part of the network to be differentiable, making it difficult to use with discrete or "spiky" activations.
- Biological Implausibility: Real brains do not appear to use a global error feedback signal that perfectly mirrors the forward pass.
While "auxiliary variable" methods—which break the objective function into smaller, local sub-problems—existed previously, they were almost exclusively offline (batch) methods. Consequently, they couldn't scale to massive datasets like ImageNet or handle online scenarios like reinforcement learning.
Alternating Minimization (AM) Framework
The core idea is to treat the activations of each layer as auxiliary variables (called "codes"). Instead of forcing a layer's output to be exactly the result of a weight transformation, the authors relax the constraint. They add a penalty term to the loss function that encourages the codes to stay close to the weight transformations.
Training proceeds via Alternating Minimization:
- Forward Pass: Compute initial activations.
- Code Update (Backward): Adjust the auxiliary variables (codes) to better satisfy both the final loss and the local layer constraints.
- Weight Update: Update the weights to better map the inputs to these new, optimized codes.
The paper introduces two specific algorithms:
- AM-Adam: Uses the popular Adam optimizer to perform the weight updates.
- AM-mem: A memory-based approach that accumulates "co-activation" statistics (covariance matrices) over time. This allows the model to update weights based on a summary of all previous samples without storing them, potentially helping mitigate catastrophic forgetting.
Key Insights
- Breaking the Chain: By using auxiliary variables, the global optimization problem is decomposed into local sub-problems. Once the codes are updated, the weights for every layer can be updated simultaneously in parallel.
- Theoretical Milestone: This paper provides the first general theoretical convergence guarantees for alternating minimization in a stochastic (mini-batch) setting, proving an error decay rate of $O((1/t)^{3/2} + 1/t)$.
- Handling the "Spikes": Because the method doesn't rely on the chain rule, it handles non-differentiable activations (like binary sign functions) much more naturally than standard BP or Straight-Through Estimators.
Key Results
The authors evaluated their approach across standard vision tasks (MNIST, CIFAR-10), large-scale datasets (HIGGS), recurrent networks, and non-differentiable binary networks.
- Competitive Performance: As shown above, AM-Adam matched or slightly exceeded the performance of standard SGD and Adam on MNIST and CIFAR-10.
- Superior Scalability: On the 10.5M sample HIGGS dataset, AM-Adam reached a 0.64 accuracy benchmark significantly faster than Taylor’s offline ADMM method, requiring less than 0.01% of the data to hit target accuracy.
- Binary Success: In networks with non-differentiable binary activations, AM-Adam reached a 0.2 error rate in under 20 epochs, while Difference Target Propagation took nearly 200 epochs to reach the same mark.
- RNN Compatibility: The method successfully trained Elman RNNs on sequential data, matching Adam's performance while outperforming standard SGD.
Limitations and Future Work
- Hyperparameter Sensitivity: Like many relaxation methods, AM requires tuning a penalty weight ($\mu$). While the authors used an adaptive schedule, finding the optimal schedule for new architectures remains a challenge.
- Asymptotic Gains: While AM-Adam often starts faster than BP-based methods, its long-term asymptotic performance is generally similar to Adam rather than significantly better.
- Continual Learning: The authors suggest that AM-mem is a promising candidate for lifelong learning, but note that more extensive empirical work is needed to fully explore this potential.
Summary updated