Memory-Efficient Integer-Only Training of Deep Neural Networks

Hazem Hesham Yousef Shalby, Fabrizio Pittorino, Manuel RoveriarXiv 2026

TL;DR

This paper introduces a fully integer-only training framework that stores all tensors (weights, gradients, activations, and optimizer states) in INT8 and performs all operations using integer arithmetic. By eliminating the need for floating-point hardware and reducing training memory by roughly 4x, this approach enables competitive deep learning on resource-constrained devices like microcontrollers and specialized accelerators.

What Problem Does This Paper Address?

Training modern deep neural networks (DNNs) is incredibly resource-intensive. While "low-precision" training (like FP16 or FP8) has become standard, these methods almost always keep a "master copy" of weights or optimizer states in 32-bit floating-point (FP32) to maintain accuracy. This creates a memory bottleneck: even if the math is fast, the persistent state still requires significant storage.

Furthermore, many edge platforms, such as microcontrollers or in-memory compute substrates, lack floating-point units (FPUs) entirely. To enable on-device learning in these environments, we need a way to train that is truly integer-only from start to finish, without falling back to floating-point for weight updates or nonlinear functions.

Methods

The core of the proposed framework is a mantissa-exponent representation. Every tensor is stored as a pair $(C, e)$, where $C$ is a signed INT8 mantissa and $e$ is a shared power-of-two exponent. This allows the actual math to happen on integers while the scale is tracked exactly through exponent addition.

Key technical innovations include:

  • Five Composable Primitives: The authors define integer-only versions of products, sums, division-by-constant, nonlinear functions (via Look-Up Tables or LUTs), and weight updates. These can be combined to build standard layers like Convolutions, Batch/Layer Norm, Softmax, and GELU.
  • Compaction with Stochastic Rounding: After accumulating results in INT32, values are shifted back to INT8. Crucially, the authors use stochastic rounding for right shifts, which prevents small gradient updates from being systematically zeroed out—a common failure mode in integer training.
  • Per-Group Velocity: To handle the wide range of gradient magnitudes across different channels, the optimizer maintains independent exponents for groups of parameters. This prevents "large" channels from drowning out the precision of "small" ones in the shared exponent.
  • Reactive Rescaling: After each update, weight mantissas are automatically rescaled to stay within the optimal INT8 range, avoiding both overflow and under-utilization.
Overview of the integer-only layer and weight update mechanisms.

Datasets

The framework was evaluated on standard computer vision benchmarks:

  • CIFAR-10 and CIFAR-100: For initial validation on CNNs and Vision Transformers.
  • ImageNet: To demonstrate scalability to large-scale datasets. The models tested include various CNNs (ResNet-18/34/50/101, MobileNetV2) and Vision Transformers (ViT-Ti, ViT-B).

Key Insights and Ideas

  • The "Master Weight" Myth: This paper challenges the long-held belief that FP32 master weights are strictly necessary for training. By using per-group velocity and stochastic rounding, INT8 is sufficient even for the optimizer state.
  • Memory is the Real Prize: While integer math is faster and more energy-efficient, the 4x reduction in training memory is arguably more impactful for scaling. It allows training larger models or larger batches on existing hardware.
  • Stochastic Rounding is Non-Negotiable: The authors found a 5.4% accuracy gap on CIFAR-10 when using deterministic vs. stochastic rounding, highlighting its critical role in preserving the "signal" of small gradients.
  • Generality: Unlike previous "quasi-integer" methods that struggled with Transformers or Batch Normalization, this framework successfully handles complex layers entirely in the integer domain using efficient LUTs.

Key Results

The results show that integer-only training can achieve near-FP32 performance:

  • ResNet-50 on ImageNet: Achieved 76.4% top-1 accuracy, just 0.3% shy of the FP32 baseline (76.7%), while using only 5.20 GB of memory compared to 20.82 GB for FP32.
  • Vision Transformers: Successfully fine-tuned ViT-B on CIFAR-10 to 96.1% accuracy (vs. 99.1% float), marking the first time a ViT has been trained in a fully integer-only pipeline.
  • Memory Efficiency: Across all configurations, the method consistently delivered a ~4x reduction in the total training memory footprint.

Limitations and Future Work

  • Optimizer Support: Currently, the framework only supports SGD with momentum. Extending this to adaptive optimizers like Adam is a major next step, as they require integer-only implementations of square roots and divisions for bias correction.
  • Scaling Schemes: The use of power-of-two exponents is efficient but could be replaced by richer, learned scaling schemes to further narrow the accuracy gap on sensitive architectures like MobileNetV2.
  • LLMs: The authors suggest that applying this framework to Large Language Model (LLM) training and parameter-efficient fine-tuning (e.g., LoRA) is a natural and promising next step, given the massive memory requirements of those models.

Summary updated

BibTeX
@misc{shalby2026memory,
  author = {Hazem Hesham Yousef Shalby and Fabrizio Pittorino and Manuel Roveri},
  title = {{Memory-Efficient Integer-Only Training of Deep Neural Networks}},
  year = {2026},
  eprint = {2610.16298},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.16298},
}
Figure