AI
Hadamard Transform Could Slash Neural Network Multiplications While Boosting Accuracy
Researchers find that strategically replacing multiplication in certain network layers with Hadamard transform-based operators cuts computation costs while maintaining or improving accuracy.
Neural networks typically rely heavily on multiplication operations, making them power-hungry and difficult to run on specialized compute-in-memory hardware. A new study explores whether this dependence is truly necessary, proposing a hybrid approach that replaces multiplication in select layers while keeping it where it matters most.
The Core Problem#
Removing multiplication from neural networks promises significant gains for hardware accelerators and energy-constrained devices, but the straightforward approach—simply swapping out all multiplications for simpler operations—tends to degrade accuracy. The question becomes: is this performance loss inherent to avoiding multiplication, or does it stem from how the data is represented when multiplication is removed?
A Hybrid Solution Using Hadamard Transforms#
The researchers introduced Hadamard Transform-assisted (HMA) operators that combine Walsh–Hadamard transform-based features with multiplication-avoiding channel mixing. Rather than committing entirely to either approach, they employed a gated strategy where both conventional and HMA operators compete at each layer through learned coefficients. This allowed the network itself to decide where multiplication remains valuable and where it can be safely replaced.
Testing on ResNet-18 revealed an intriguing pattern: intermediate convolutional layers favored HMA operators, while the earliest layers and the final classifier relied more on conventional multiplication. This insight guided the construction of a compact hybrid network trained using knowledge distillation from a conventional teacher model.
Results Across Benchmarks#
On CIFAR-10, the resulting ResNet-18 student network achieved 91.2% accuracy—actually exceeding the conventional baseline's 90.4%—while dramatically reducing computational burden:
- 68.25% fewer parameters
- 85.71% fewer conventional multiply-accumulate operations (MACs)
- 85.54% fewer general multiplications overall
The approach proved consistent across different architectures and datasets. When tested on ResNet-18, ResNet-50, and MobileNetV2 across CIFAR-10, CIFAR-100, and Tiny-ImageNet, HMA networks with knowledge distillation matched or surpassed the performance of conventional models.

