Angular Networks: Low-Bit Learning from Randomized Similarity Estimators

Ali Ahmed, Saeid Pourmand, Rehan Farooq, Muhammad Awais, Alireza AghasiNeurIPS 2026

TL;DR

Shrinking neural networks down to 1-bit or 2-bit precision usually breaks training because standard Euclidean dot products are fragile when aggressively rounded. Angular Networks sidestep this numerical trap by reframing neural computation around directions rather than magnitudes. By combining classical high-dimensional geometry with randomized binary sketches, the authors train ultra-low-bit Vision Transformers, ResNets, and BERT models stably—no hacky gradient workarounds required.

What Problem Does This Paper Address?

Modern deep learning runs on massive matrix multiplications in floating-point precision, guzzling memory and energy. Quantizing weights and activations down to just 1 or 2 bits is an obvious fix, but doing so—especially inside Transformer attention layers—causes severe performance drops and optimization chaos.

Because rounding functions have zero derivatives almost everywhere, backpropagation hits a wall. Researchers usually patch this with Straight-Through Estimators (STEs), which essentially pretend quantization didn’t happen during the backward pass.

The authors argue the real bottleneck isn't just numerical rounding—it's geometric. Standard layers live in Euclidean space, tightly coupling vector length (magnitude) and direction. Yet in high dimensions, data naturally concentrates onto a thin spherical shell where norms barely vary and almost all meaningful information lives in the angles between vectors.

Figure 1: Spherical-shell concentration of random data. For low-dimensional visu- alization, each point preserves its original norm, while its 3D direction is obtained using principal component analysis.

If angles hold the signal, trying to force low-bit numbers to preserve exact Euclidean dot products is fighting against geometry.

Methods

Instead of quantizing standard linear layers, the authors build Angular Layers based on a classical mathematical gem called Grothendieck’s identity. This identity shows that if you project two unit vectors onto random directions and take only their binary signs ($+1$ or $-1$), the correlation of those signs directly estimates the angle between the original vectors via an $\arcsin$ function.

This enables a clean decoupling between forward execution and backward learning, optimized via the Grothendieck Gradient Method (GGM):

  1. Forward Pass (Discrete & Cheap): Normalize inputs and weights, project them onto a random Gaussian or Rademacher ($\pm 1$) matrix, quantize them (e.g., to 1-bit signs), and take their inner product. This acts as a fast Monte Carlo estimator of an angular kernel.
  2. Backward Pass (Smooth & Exact): Rather than differentiating through the step-function quantizer, GGM computes gradients directly with respect to the smooth, continuous $\arcsin$ angular geometry—yielding what the authors call the G-Gradient.
Figure 2: Angular Layer: low-bit random features estimate KB(ρ) in forward pass, while exact cosine geometry provides the backward signal, avoiding differentiation through the quantized estimator. 3 Practical Anatomy of GGM

While STE produces stiff, axis-aligned updates tied to coordinate thresholds, GGM couples all coordinates together to smoothly rotate weight vectors toward better angular alignment. It also naturally extends beyond 1-bit to ternary (1.58-bit) and multi-bit setups, and the random projection matrix doesn't even need to be stored—it can be regenerated on the fly from a single random seed.

Example optimization trajectories showing GGM smoothly rotating weights along the angular geometry, contrasted against jagged, coordinate-wise STE updates.

Datasets

To prove this is a general geometric principle rather than a benchmark-specific trick, the authors evaluate across three domains (introducing no new datasets):

  • Vision: CIFAR-10, TinyImageNet, and ImageNet-1K.
  • Natural Language Processing: SST-2 and QNLI (from the GLUE benchmark).
  • Medical Time-Series: PTB-XL and ADFTD.

Key Insights and Ideas

  • Exact Discrete Recovery from Smooth Proxies: Remarkably, the authors prove that in a one-layer planted binary model, driving the continuous G-Gradient close to zero mathematically guarantees exact recovery of the underlying discrete binary solution, thanks to a natural separation margin in binary space.
  • Unbiased Gradients vs. Heuristics: Unlike STEs, which inject biased heuristic gradients, the G-Gradient is an unbiased estimator of the smooth angular loss gradient under Gaussian projections. Quantization becomes controlled Monte Carlo noise rather than catastrophic rounding error.
  • Resampling as Landscape Exploration: Periodically resampling the random projection matrix during training causes brief loss spikes, which act much like noise in Langevin dynamics—bumping the optimizer out of poor local basins into better solutions.
  • Projection Expansion Beats Network Widening: Increasing the number of random projections ($N = \nu p$) boosts accuracy far more effectively than simply making a standard STE network wider.

Key Results

Across modalities, GGM consistently outperforms standard binarization baselines:

  • Controlled CIFAR-10 ViT: At 1-bit weights/activations, GGM reaches 86.51% top-1 accuracy (and 89.46% when doubling projections, $\nu=2$), beating six controlled STE baselines (the strongest, AdaBin+G, hit 79.39%). Moving to ternary (1.58-bit) with $\nu=2$ hits 91.92%, nearly matching full precision (92.49%).
  • ImageNet-1K ViTs (all 72 projections quantized): 1-bit GGM achieves 66.83% vs. 46.47% for an LSQ-style baseline (+20.36 points). At 2-bit, GGM reaches 76.13% (vs. 79.34% full precision).
  • CNNs on ImageNet-1K: 1-bit ResNet-18 and ResNet-34 hit 66.39% and 70.92% ($\nu=2.0$), outperforming strong single-stage 1-bit priors like AdaBin and ReCU.
  • NLP & Time-Series: On QNLI, 1-bit GGM reaches 86.24% vs. BiBERT’s 72.6%. On PTB-XL and ADFTD medical time-series, 1-bit GGM (73.08% and 53.39%) slightly edges out the 32-bit full-precision baseline.

Limitations and Future Work

  • Theoretical Scope: The rigorous convergence and exact recovery guarantees are currently proven only for single-layer linear models; extending this math to attention mechanisms, residual connections, and deep compositional networks remains an open theoretical challenge.
  • Untested Architectures & Scale: While hybrid CNN-Transformer designs specialized for binarization (like BHViT) achieve slightly higher raw binary accuracy on ImageNet, GGM hasn't yet been tested on those backbones. Scaling Angular Nets up to massive foundation models—such as large language and multimodal models—is the clear next frontier (with further limitations noted as deferred to Appendix M).

Summary updated

Abstract

We propose a new framework for low-precision neural networks based on angular geometry and randomized low-bit estimators. Rather than approximating Euclidean linear operations under limited precision, we reinterpret neural computation in terms of directional similarity and construct quantized random-feature estimators of cosine interactions. Our approach introduces \textit{Angular Layers}, which replace standard linear transformations with low-bit projections that estimate angular similarity in the forward pass, while gradients are computed with respect to the underlying continuous cosine geometry. This decoupling enables stable optimization without straight-through estimators or heuristic surrogate gradients, even under aggressive quantization of both weights and activations. On the theory side, we introduce \emph{G-Gradient} as a gradient proxy for angular layers and show that, in a one-layer planted model, a sufficiently small \emph{G}-gradient can guarantee exact recovery of a target binary solution. We further prove uniform approximation and convergence guarantees that provide a rigorous path from tractable continuous optimization to exact recovery in the original discrete model. Empirically, we instantiate these ideas in \textit{Angular Nets}, including low-precision variants of ResNet, Vision Transformers, and BERT-style encoders, and obtain strong performance across vision and language tasks at substantially reduced precision. Overall, our results suggest that preserving angular structure provides a principled foundation for low-bit deep learning.
BibTeX
@inproceedings{ahmed2026angular,
  author = {Ali Ahmed and Saeid Pourmand and Rehan Farooq and Muhammad Awais and Alireza Aghasi},
  title = {{Angular Networks: Low-Bit Learning from Randomized Similarity Estimators}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ArO2Yj6xnL},
}
Figure