Multiplierless and Sparse Machine Learning based on Margin Propagation Networks

Nazreen Pallikkavaliyaveetil, Nazreen P. M., Shantanu Chakrabartty, Chetan Singh ThakurarXiv 2019

Introduction

Modern machine learning architectures are fundamentally built upon Matrix-Vector Multiplications (MVMs). While highly effective, these operations are computationally expensive and energy-intensive, posing a significant barrier for deployment on battery-constrained Internet-of-Things (IoT) and edge devices. The energy gap is stark: an 8-bit integer multiplication consumes approximately $0.2 pJ$, whereas an addition requires only $0.03 pJ$. This paper proposes a radical hardware-software codesign that replaces the underlying mathematical primitives of machine learning with simpler, more energy-efficient operations, effectively eliminating the "multiplication tax."

The Margin Propagation (MP) Framework

The core of this research is the Margin Propagation (MP) framework. It rethinks how neural networks process information by mapping traditional arithmetic operations into hardware-friendly alternatives. Specifically, standard multiplications are replaced by additions, and additions are transformed into a dynamic Rectified Linear Unit (ReLU) operation.

The MP framework maps multiplications to additions and uses Boolean predicates for weight updates.

As illustrated in the framework overview, the system approximates the standard error gradient update. In traditional backpropagation, updating a weight $w$ requires a multiplication of the input $x$ and the gradient. In MP networks, this is simplified to a Boolean predicate: $\Delta w \sim (w + x > z)$. This transformation eliminates the need for multipliers during both the inference and training phases, significantly lowering the energy floor of the hardware.

Dynamic Thresholding and Sparsity

A key component of the MP framework is the calculation of a dynamic threshold, $z$. Unlike static activation functions, $z$ is computed through a recursive "reverse water-filling" procedure. This ensures that the sum of input scores exceeding the threshold meets a specific constraint, $\gamma$.

The reverse water-filling algorithm determines the dynamic threshold $z$ to satisfy constraints.

This mechanism, combined with an $L_1$ cost function, naturally induces sparsity within the network. During training, many connections are effectively pruned as their values fall below the threshold, reducing both memory requirements and power consumption. The authors found that the parameter $\gamma$ is critical; implementing a "$\gamma$-annealing" schedule during training helps the model avoid local minima and maintain representational power.

Experimental Results

The researchers evaluated MP-based versions of Linear Perceptrons, Multi-Layer Perceptrons (MLPs), and Support Vector Machines (SVMs) across several benchmarks:

  • Synthetic Benchmarks: The MP-MLP successfully solved the non-linearly separable XOR problem with a test accuracy of 97%.
  • UCI Datasets: On real-world classification tasks such as Activity Recognition (AReM) and the Wisconsin Breast Cancer diagnostic dataset, MP networks achieved parity with traditional models. For instance, the MP-MLP reached 98% accuracy on the Breast Cancer dataset, matching or slightly exceeding conventional MLP performance (97%).
  • Quantization Robustness: The framework demonstrates stability when using fixed-point mathematics. While performance degrades at extremely low precision (below 4 bits), the networks remain robust and accurate within the 4-bit to 9-bit precision range, making them highly suitable for low-power digital hardware.

Conclusion

Margin Propagation Networks offer a promising path toward ultra-low-power machine learning. By replacing energy-hungry multiplications with simple additions and thresholding, the MP framework significantly reduces the computational complexity of both training and inference. The inherent sparsity and robustness to quantization further solidify its potential for the next generation of intelligent edge devices. Future work will explore scaling these principles to deeper architectures to address more complex computer vision and signal processing tasks.

Summary updated

BibTeX
@misc{pallikkavaliyaveetil2019multiplierless,
  author = {Nazreen Pallikkavaliyaveetil and Nazreen P. M. and Shantanu Chakrabartty and Chetan Singh Thakur},
  title = {{Multiplierless and Sparse Machine Learning based on Margin Propagation Networks}},
  year = {2019},
  eprint = {1910.02304},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.02304},
}
Figure