Abstract
Convolutional Neural Networks (CNNs) have achieved remarkable success in computer vision but are computationally expensive due to the massive number of floating-point multiplications required. This paper explores AdderNet, an architecture that replaces standard cross-correlation with $\ell_1$-norm distance to eliminate multiplications in convolutional layers. By introducing a full-precision gradient trick and adaptive learning rate scaling, AdderNet overcomes optimization challenges inherent in non-differentiable distance metrics. Experimental results on ImageNet demonstrate that AdderNet achieves 74.9% Top-1 accuracy, nearly matching standard ResNet-50 performance while offering a path toward high-efficiency AI on resource-constrained hardware.
Introduction
The proliferation of deep learning has been driven by massive computational power, primarily in the form of GPUs optimized for high-throughput matrix multiplication. However, the energy demands of these operations pose a significant barrier to deploying state-of-the-art models on mobile and edge devices. While previous research has explored Binary Neural Networks (BNNs) to reduce complexity, they often suffer from substantial accuracy degradation. AdderNet proposes a middle ground: replacing multiplications with additions, which are significantly cheaper in hardware, without the binary constraint.
Methodology
In a standard CNN, the output of a convolutional layer is the cross-correlation between the input and the filter. AdderNet replaces this with the negative $\ell_1$-norm distance:
$$Y = -|X - W|$$
This operation measures similarity through distance rather than dot products. Since subtraction can be implemented via addition using complement code, the entire operation is effectively multiplication-free. To ensure the activations remain in a range suitable for ReLU, Batch Normalization (BN) is utilized to shift and scale the outputs.
Optimization: Overcoming the Gradient Challenge
Training AdderNets is challenging because standard $\ell_1$ gradients are discrete sign functions, which are difficult for high-dimensional optimization. To solve this, the authors use a "full-precision gradient" trick during backpropagation, calculating the gradient as if an $\ell_2$-norm were used. This provides a smoother optimization landscape.
Furthermore, because the variance of adder outputs differs from standard CNNs, the authors propose Adaptive Learning Rate Scaling (ALR). ALR adjusts the learning rate for each layer based on the ratio of weight norms to gradient norms, ensuring balanced updates across the network.
Feature and Weight Analysis
The shift from cosine similarity to $\ell_1$ distance changes the underlying geometry of the learned features. In standard CNNs, features are typically separated by their angles. In contrast, AdderNet features tend to cluster around class centers in a distance-based manifold.
Analysis of the trained weights reveals that AdderNet naturally follows a Laplace distribution, which is consistent with the prior of $\ell_1$-norm regularization, whereas standard CNN weights typically follow a Gaussian distribution.
Experimental Results
AdderNet's performance was validated across several benchmarks:
- ImageNet: Using a ResNet-50 backbone, AdderNet achieved 74.9% Top-1 accuracy, trailing the standard baseline (76.2%) by only 1.3% while vastly outperforming BNNs (55.8%).
- CIFAR-10: On a ResNet-20, AdderNet reached 91.84% accuracy, nearly matching the 92.25% of the standard CNN.
- Efficiency: On hardware like the VIA Nano CPU, where float multiplication latency is double that of addition, AdderNet models like LeNet-5 show significant theoretical latency reductions.
Conclusion
AdderNet proves that multiplications are not strictly necessary for high-performance deep learning. While current software and hardware are biased toward matrix multiplication, the development of dedicated adder-based hardware (ASICs/FPGAs) could unlock significant energy savings for the next generation of AI on the edge.
Summary updated