Introduction
Modern deep learning models, particularly Convolutional Neural Networks (CNNs), are computationally intensive due to their reliance on billions of floating-point multiplications. While high-end hardware can manage these operations, the energy and silicon area required for multiplication are significantly higher than for addition. This disparity poses a major challenge for deploying state-of-the-art models on resource-constrained edge devices like smartphones and wearables.
Adder Neural Networks (AdderNets) address this bottleneck by replacing the standard cross-correlation operation with a similarity measure based on the $\ell_1$-norm distance. By utilizing addition and subtraction (implemented via complement code), AdderNets eliminate the need for multiplications in convolutional layers while maintaining high accuracy and theoretical expressive power.
Methodology
The fundamental shift in AdderNets is the redefinition of the convolution operation. Instead of a dot product, the output $Y$ is calculated as the negative Manhattan distance between the filter $F$ and the input $X$: $$Y = -|X - F|$$
Optimization Challenges and Solutions
Transitioning to an $\ell_1$-based architecture introduces several optimization hurdles:
- Gradient Stability: The derivative of the absolute value is a sign function, which can lead to unstable "signSGD" behavior. The authors mitigate this by using an $L_2$ to $L_1$ training strategy, where the network initially trains with smoother $L_2$ gradients, gradually decaying the power $p$ from 2 to 1.
- Adaptive Learning Rate Scaling: Due to the nature of the $\ell_1$ distance, the variance of outputs differs significantly from standard CNNs. Gradients often become extremely small after Batch Normalization, hindering convergence.
As shown in the table above, the gradient magnitudes in AdderNets are orders of magnitude smaller than in CNNs. To compensate, the authors implemented a layer-wise adaptive learning rate that normalizes updates based on the filter magnitudes in each specific layer.
Theoretical Foundation
The authors provide a mathematical proof that AdderNets are universal function approximators. Both single-hidden-layer and width-bounded deep AdderNets can approximate any continuous function with an approximation bound of $O(1/n)$, placing them on the same theoretical footing as traditional multiplication-based networks.
Geometry of Features
A key insight of this work is how the change in distance metric alters the internal representation of data. In standard CNNs, features are typically distinguished by their angular similarity, appearing as rays from the origin. In contrast, AdderNet features tend to cluster around class centers due to the $\ell_1$ distance metric.
This geometric shift demonstrates that while the optimization landscape changes, the network remains highly capable of learning discriminative features that separate classes effectively.
Experimental Results
AdderNets were evaluated on benchmarks ranging from MNIST to ImageNet, achieving performance remarkably close to traditional CNNs while vastly outperforming binary alternatives:
- ImageNet (ResNet-50): AdderNet achieved 75.7% Top-1 accuracy, nearly matching the 76.2% of a standard CNN and significantly exceeding the 55.8% reached by Binary Neural Networks (BNNs).
- Efficiency: On compatible hardware, floating-point additions can have half the latency of multiplications. On MNIST, AdderNet achieved 99.4% accuracy with a theoretical latency reduction of approximately 35%.
Conclusion
AdderNets represent a significant step toward energy-efficient deep learning. While Batch Normalization still requires minimal multiplications, the bulk of the computation is now multiplication-free. Future work will focus on developing dedicated hardware (ASICs or FPGAs) to fully realize the speedups offered by $\ell_1$ distance calculations and further simplifying the training pipeline for broader adoption.
Summary updated