TL;DR
AdderNets (ANNs) offer a path to energy-efficient AI by replacing power-hungry multiplications with cheap additions, but they have historically suffered from training instability. This paper introduces Adaptive Weight Normalization (AWN) to stabilize training and reveals a surprising "superpower": when properly normalized, AdderNets are inherently more robust to adversarial attacks than traditional CNNs—even without specialized adversarial training.
What Problem Does This Paper Address?
Deep Convolutional Neural Networks (DCNNs) are the gold standard for computer vision, but their reliance on massive amounts of floating-point multiplications makes them difficult to deploy on low-power edge devices. AdderNets were proposed as a solution, using $\ell_1$-distance (additions) instead of cross-correlation (multiplications) to measure feature similarity.
However, AdderNets have two major "stability" problems:
- Optimization Turbulence: Unlike CNNs, ANN test accuracy fluctuates wildly during training.
- Statistical Divergence: ANN weights follow a high-variance Laplace distribution, whereas CNN weights are typically low-variance Gaussian. This discrepancy makes it hard to apply standard training tricks or transfer ANNs to complex tasks like object detection.
Methods
The authors tackle these issues through a combination of mathematical analysis and architectural refinement:
- Variance Analysis: They provide a formal study of how variance propagates through an adder layer. They prove that the large variance in ANN weights is the primary culprit behind the unstable "running mean" and "variance" in Batch Normalization (BN) layers, which leads to the jittery test curves.
- Adaptive Weight Normalization (AWN): To rein in the weights without destroying the model's ability to learn, the authors propose AWN. While standard "Weight Standardization" forces weights into a strict mean-0, variance-1 box (which hurts ANN performance), AWN introduces trainable scaling ($\nu$) and shift ($\upsilon$) parameters. This allows the network to adaptively find the optimal weight distribution for each channel.
- Robust Inference Strategy: The authors identify that the $\ell_1$-distance used in ANNs has a unique property: adversarial perturbations often manifest as simple sign flips ($\pm \delta$). They propose a modified inference strategy that uses the running mean in BN layers to effectively "cancel out" this adversarial noise.
Datasets
The researchers evaluated their approach across several standard benchmarks:
- CIFAR-10: Used for image classification and extensive adversarial robustness testing (ResNet-20 and ResNet-32).
- ImageNet: Used to observe weight and activation statistics in larger-scale models (ResNet-18).
- PASCAL VOC (2007 + 2012): Used to test the stability and performance of AdderNets on object detection tasks.
Key Insights and Ideas
- The "Noise Cancellation" Effect: In a CNN, an adversarial perturbation is multiplied by weights, which can amplify the error. In an ANN, the $\ell_1$ similarity means perturbations across different channels tend to have different signs. When summed, these perturbations often eliminate each other.
- Stability is the Key to Detection: Previous AdderNets struggled with object detection. By stabilizing the weight distributions via AWN, the authors show that ANNs can finally be effectively trained for more complex "neck and head" architectures used in detection (like FPNs).
- Weight Magnitude Matters: In addition-based networks, the absolute magnitude of weights is highly sensitive. AWN's trainable parameters are crucial because they allow the model to explore a wider "weight space" than rigid standardization would allow.
Key Results
- Adversarial Dominance: Without any adversarial training, an AWN-equipped AdderNet (ResNet-32) achieved 59.74% accuracy under PGD attacks on CIFAR-10. For context, standard CNNs and vanilla AdderNets drop to nearly 0% accuracy under the same attacks.
- Object Detection Boost: On the PASCAL VOC benchmark, the proposed approach improved the Mean Average Precision (mAP) by 2.7 points over vanilla AdderNets (69.4 vs 66.7), bringing them much closer to CNN performance (69.3).
- Smoother Training: The test loss curves for AWN-AdderNets showed significantly less vibration, behaving much more like stable, traditional CNNs.
Limitations and Future Work
While the paper demonstrates a massive leap in robustness and stability, a few areas remain open:
- Hardware Realization: The energy savings of AdderNets are theoretical until implemented on specialized hardware (ASICs/FPGAs) that can natively exploit addition-only logic.
- Adaptive Attacks: The adversarial robustness was tested against standard attacks (PGD, FGSM, etc.). Future work might investigate if an attacker specifically targeting the $\ell_1$ structure of ANNs could bypass these defenses.
- Scaling to Larger Models: While ResNet-18/32 results are promising, testing AWN on massive architectures (like Transformers or very deep ResNets) would be the next logical step.
Summary updated