Abstract
The standard backpropagation (BP) algorithm is inherently sequential, requiring $O(L)$ time to compute gradients for a network with $L$ layers. This sequentiality creates a fundamental bottleneck in training efficiency as models grow deeper and sequences grow longer. We present Highway-BP, an iterative algorithm that breaks this chain by leveraging the residual connections ubiquitous in modern architectures. By decomposing layers into expensive computational blocks and efficient residual paths, Highway-BP enables parallel gradient propagation via parallel prefix scans. Our evaluation across computer vision and natural language processing tasks demonstrates that Highway-BP can achieve up to 3.5x speedups in recurrent architectures and maintain high accuracy in deep ResNets and Transformers with only a few iterations.
1. Introduction
While modern deep learning has successfully parallelized the forward pass of neural networks—most notably in the Transformer architecture—the backward pass remains stubbornly sequential. In standard backpropagation, the gradient for layer $i$ cannot be computed until the gradient for layer $i+1$ is finalized. This $O(L)$ dependency limits the potential for hardware acceleration in ultra-deep models or long-sequence recurrent networks.
Previous attempts to parallelize the backward pass, such as "forward-only" methods or exact parallel BP, often suffer from significant performance degradation or prohibitive memory requirements (e.g., storing full Jacobian matrices). Highway-BP addresses these challenges by exploiting the "highways" of information flow—the residual connections—already present in architectures like ResNets, Transformers, and LSTMs.
2. Methodology: The Highway-BP Algorithm
The core innovation of Highway-BP is the decomposition of each layer $f_i$ into two distinct components: an expensive block ($g_i$), which contains heavy operations like convolutions or self-attention, and a cheap residual path ($r_i$), which typically represents an identity mapping or simple scaling.
2.1 Iterative Gradient Approximation
Instead of a single sequential pass, Highway-BP employs an iterative process to refine gradient estimates. In each iteration $k$, the algorithm performs two primary steps:
- Parallel Block BP: Gradient estimates are propagated through every expensive block ($g_i$) in the network simultaneously. Because these computations are independent of other layers' current-iteration results, they can be fully parallelized.
- Highway Propagation: The resulting signals are accumulated along the residual "highway." This step utilizes a parallel prefix scan, a classic algorithmic technique that computes cumulative sums in $O(\log L)$ time rather than $O(L)$.
By repeating these steps, the algorithm progressively converges toward the exact gradient. A key finding of this work is that the exact gradient is not required for effective learning; a few iterations ($k=1$ to $5$) often suffice to provide a high-quality update signal.
3. Theoretical Intuition
Highway-BP is grounded in the observation that residual networks behave like an ensemble of shallower networks. Mathematically, a $k$-iteration estimate in Highway-BP represents the sum of all gradient paths that pass through at most $k$ expensive blocks. Since paths through fewer expensive blocks often carry the most critical learning signals—especially during the early stages of training—Highway-BP prioritizes the most influential components of the gradient.
4. Experimental Evaluation
The authors evaluated Highway-BP across diverse benchmarks to test its versatility and scaling properties.
4.1 Computer Vision
On CIFAR10 and ImageNet32 using ResNet architectures (ResNet32, 56, and 110), Highway-BP demonstrated remarkable robustness. For ResNet110, which contains 54 skip-connections, the algorithm matched standard BP accuracy using only 4 iterations. Notably, even a $k=0$ baseline (propagating only through the residual path) achieved approximately 85% accuracy on CIFAR10, suggesting that the residual highway alone carries significant structural information.
4.2 Language Modeling and NLI
In experiments with GPT-2 on Wikitext103 and RoBERTa fine-tuning on MNLI, Highway-BP maintained stable convergence. While lower iteration counts ($k$) resulted in slightly higher final perplexity in GPT-2, the training remained smooth, offering a tunable trade-off between computational speed and model performance.
4.3 Recurrent Neural Networks (RNNs)
The most significant speedups were observed in RNNs, where the sequential bottleneck of Backpropagation Through Time (BPTT) is most acute. Highway-BP achieved speedups between 2x and 3.5x compared to standard BPTT, particularly on tasks involving long-range dependencies like pixel-level CIFAR10 classification.
5. Discussion and Limitations
While Highway-BP offers a path toward faster training, it introduces new considerations for practitioners:
- Stability in Transformers: Transformers occasionally exhibit a "cancel" effect where the residual signal is suppressed. To mitigate this, the authors introduced a hyperparameter $\gamma$ to balance the block and residual paths, which requires minimal tuning.
- Implementation Overhead: To realize theoretical speedups on modern hardware, optimized CUDA kernels for parallel prefix scans are necessary. Additionally, while the memory overhead is negligible compared to activation storage, it does require maintaining a few extra tensors per layer.
6. Conclusion
Highway-BP represents a significant advancement in addressing the sequential bottleneck of neural network training. By treating gradient propagation as an iterative process optimized for residual architectures, it enables a new degree of parallelism. This approach is particularly promising for the next generation of ultra-deep models and long-context sequence processing, where traditional backpropagation becomes a limiting factor.
Summary updated