Back to search

University of Toronto

Learning Efficient Datatypes for Deep Neural Network Training and Inference

Abstract

dc:description.abstract

Neural networks can maintain state-of-the-art accuracy using smaller datatypes and fewer training samples. However, finding the best datatype configuration and determining unnecessary samples, without sacrificing accuracy, remains an unresolved challenge. Current approaches depend on user-driven trial and error, which is both time-consuming and energy-intensive. I propose methods to improve the execution time and energy efficiency of neural networks while maintaining accuracy by automatically: 1) learning optimal datatypes for both inference and training at any granularity, and 2) identifying which training samples can be safely skipped. My methods eliminate the need for user-directed datatype selection by making datatype bitlengths differentiable and using a novel regularizer that penalizes larger datatypes. This allows gradient descent to jointly optimize both accuracy and datatype selection. Additionally, the regularizer is adaptable to various goals, such as minimizing operation count or memory footprint in activation- or weight-heavy scenarios. BitPruning optimizes inference by extending uniform quantization into the continuous domain by interpolating between the nearest integer bitlengths. On ImageNet, BitPruning achieves average bitlength of 3.76 and 4.36 bits for ResNet18 and MobileNetV2, respectively, while staying within 0.5% of baseline accuracy. For training acceleration, Quantum Integer introduces a stochastic bitlength approach to uniform quantization, minimizing overhead. Using ResNet18 on ImageNet, Quantum Integer achieves an average training memory footprint of 5.19 bits and an inference footprint of 5.08 bits, with only a 0.7% deviation from baseline accuracy. Quantum Mantissa and Quantum Exponent optimize floating-point datatypes by learning minimal mantissa and exponent bitlengths. They can accelerate training and produce a model that will also be efficient for inference. These methods demonstrate that many tensors can function effectively with just 1 to 2 mantissa bits and 3 to 4 exponent bits. On ResNet18 with ImageNet, they achieve an average training memory footprint of 5.46 bits, while maintaining a 0.4% accuracy drop, and a broader reduction to 6.75 bits across various networks and tasks. I also present DeadHorse, a training workload reduction technique. It leverages forward pass byproducts to identify samples that can be safely skipped during backpropagation, thus reducing the training workload by up to 25% without any loss in accuracy.

Degree

thesis:*
Department dc:contributor.department
Electrical and Computer Engineering
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Nikolic, Milos
Advisor dc:contributor.advisor
  • Moshovos, Andreas

Subjects

dc:subject × 6

Rights

dc:rights
Statement dc:rights
  • Attribution-NonCommercial-ShareAlike 4.0 International

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/1807/144915

Chain of custody

source
Harvested from
University of Toronto
Base URL
utoronto.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Nikolic, Milos. Learning Efficient Datatypes for Deep Neural Network Training and Inference. 2025. https://hdl.handle.net/1807/144915