TRANSMISSION // 2509.23103v3

A Hadamard Transform Helps Neural Networks Avoid Some Multiplications

Source published

A preprint tests a transformed-feature operator in image-classification networks. Reported arithmetic savings are model estimates, not measurements of speed or energy on hardware.

AI-generated conceptual illustration for A Hadamard Transform Helps Neural Networks Avoid Some Multiplications
AI-generated conceptual illustration; not documentary evidence.

Convolutional neural networks use multiplication-heavy operations, which can pose challenges for efficient hardware. This study tests whether a Walsh–Hadamard transform can help multiplication-avoiding operators work better in selected layers of image-classification networks.

Why rethink multiplication?

Convolutional neural networks process images through layers of calculations, many involving multiplying weights by input values and adding the results. Compute-in-memory (CIM) systems aim to reduce data movement by carrying out calculations within or near memory. But conventional neural-network layers still rely heavily on multiplication.

One alternative replaces ordinary multiplication with simpler operations involving signs and magnitudes. Replacing conventional operations too broadly, however, can reduce accuracy. Emadeldeen Hamdan and colleagues investigate whether this limitation may depend not just on avoiding multiplication, but also on the representation the operator uses.

A change of representation

Their proposed method, Hadamard Transform-assisted multiplication-avoiding (HMA), first applies a Walsh–Hadamard transform (WHT) to spatial features in each image channel. The transform reorganizes feature values and can be computed using additions and subtractions. HMA then applies learnable spectral weighting and uses multiplication-avoiding arithmetic to mix information across channels. An inverse transform returns the features to their original spatial form.

HMA is not entirely multiplication-free: its learned spectral weighting still uses conventional multiplications. The authors therefore describe it as multiplication-avoiding rather than multiplication-free.

To explore where HMA might fit, the researchers built a diagnostic network with conventional and HMA operations in eligible layers. A learned gate set the relative contribution of the two alternatives at each layer. They used the resulting gate pattern to select one operator per layer in a hybrid network. That network was trained with knowledge distillation: its objective combined a loss on labeled examples with a loss comparing the teacher’s and student’s predictions. The conventional teacher was used during training, not inference.

Experiments tested ResNet-18, ResNet-50, and MobileNetV2 on CIFAR-10, CIFAR-100, and Tiny-ImageNet. The paper reports results averaged over three random seeds. Its comparisons include ablations intended to examine the contributions of the representation, operator selection, and distillation.

What the experiments found

In the ResNet-18 gate analysis, intermediate convolutional layers leaned more toward HMA, while the earliest layers and final classifier retained more conventional computation. This observation guided the hybrid design. For ResNet-50 and MobileNetV2, the researchers transferred the routing pattern from the ResNet-18 analysis rather than independently discovering a gate pattern for each backbone.

On CIFAR-10, the distilled hybrid ResNet-18 achieved 91.2% accuracy, compared with 90.4% for the conventional baseline. For that comparison, the paper reports 68.25% fewer parameters, 85.71% fewer conventional multiply–accumulate operations, and 85.54% fewer general multiplications. These are model and arithmetic-count estimates, not measurements of device speed or energy use.

Across the three architectures and three datasets, the authors report that HMA with distillation matched or improved the corresponding conventional models in accuracy. In a CIFAR-10 ablation using the same routing and distillation setup, HMA reached 91.2%, while multiplication-avoiding mixing without the Hadamard representation reached 78.1%. The selected HMA hybrid reached 77.6% when trained without distillation. These comparisons support the authors’ interpretation that representation and training approach matter in these experiments, but they do not establish that the same effects will hold in other settings.

What remains uncertain

The findings suggest a possible design strategy for these image-classification models: retain conventional computation in some layers and test a Hadamard-domain alternative in others. But the paper’s operation counts do not show how much faster or more energy-efficient HMA would be on a real CIM chip. The authors state that their estimates do not model memory movement, latency, energy, or hardware-specific overhead.

The evidence is limited to the tested network architectures, image datasets, and training setup. The results do not establish performance on other tasks or devices, and the reported accuracy comparisons do not imply complexity reductions for every model and dataset. Independent replication and direct hardware evaluation would be useful next steps; these are not experiments reported in the paper.

This source is an arXiv preprint, and the supplied material does not establish its peer-review status. Its benchmark findings should be read as research results awaiting further scrutiny, not as proof of practical hardware gains. The central question remains whether the modeled arithmetic changes translate into benefits on actual devices.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.