G-Net: A Provably Easy Construction of High-Accuracy Random Binary Neural Networks
Alireza Aghasi, Nicholas Marshall, Saeid Pourmand, Wyatt Whiting
TL;DR
The paper tackles constructing high-accuracy random binary neural networks by leveraging hyperdimensional computing and a novel random sign embedding. It builds G-Nets, floating-point networks whose layers can be embedded into binary hypervectors using φ(x)=sign($ nd{G}x$) and Grothendieck's identity, yielding EHD G-Nets with provable concentration-based guarantees. The authors provide non-asymptotic, layer- and network-level consistency bounds, extend the theory to Rademacher embeddings, and demonstrate strong empirical performance on MNIST, CIFAR-10, and other tasks, often surpassing prior HDC models and approaching real-valued CNN performance. The work also analyzes hardware costs, robustness to bit flips, and positions EHD G-Nets as a practical, theory-backed path toward robust binary/quantized deep learning suitable for edge hardware.
Abstract
We propose a novel randomized algorithm for constructing binary neural networks with tunable accuracy. This approach is motivated by hyperdimensional computing (HDC), which is a brain-inspired paradigm that leverages high-dimensional vector representations, offering efficient hardware implementation and robustness to model corruptions. Unlike traditional low-precision methods that use quantization, we consider binary embeddings of data as points in the hypercube equipped with the Hamming distance. We propose a novel family of floating-point neural networks, G-Nets, which are general enough to mimic standard network layers. Each floating-point G-Net has a randomized binary embedding, an embedded hyperdimensional (EHD) G-Net, that retains the accuracy of its floating-point counterparts, with theoretical guarantees, due to the concentration of measure. Empirically, our binary models match convolutional neural network accuracies and outperform prior HDC models by large margins, for example, we achieve almost 30\% higher accuracy on CIFAR-10 compared to prior HDC models. G-Nets are a theoretically justified bridge between neural networks and randomized binary neural networks, opening a new direction for constructing robust binary/quantized deep learning models. Our implementation is available at https://github.com/GNet2025/GNet.
