Oscillations Make Neural Networks Robust to Quantization

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Wenshøj, Jonathan, Pepin, Bob, Selvan, Raghavendra
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911309906313216
author Wenshøj, Jonathan
Pepin, Bob
Selvan, Raghavendra
author_facet Wenshøj, Jonathan
Pepin, Bob
Selvan, Raghavendra
contents We challenge the prevailing view that weight oscillations observed during Quantization Aware Training (QAT) are merely undesirable side-effects and argue instead that they are an essential part of QAT. We show in a univariate linear model that QAT results in an additional loss term that causes oscillations by pushing weights away from their nearest quantization level. Based on the mechanism from the analysis, we then derive a regularizer that induces oscillations in the weights of neural networks during training. Our empirical results on ResNet-18 and Tiny Vision Transformer, evaluated on CIFAR-10 and Tiny ImageNet datasets, demonstrate across a range of quantization levels that training with oscillations followed by post-training quantization (PTQ) is sufficient to recover the performance of QAT in most cases. With this work we provide further insight into the dynamics of QAT and contribute a novel insight into explaining the role of oscillations in QAT which until now have been considered to have a primarily negative effect on quantization.
format Preprint
id arxiv_https___arxiv_org_abs_2502_00490
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Oscillations Make Neural Networks Robust to Quantization
Wenshøj, Jonathan
Pepin, Bob
Selvan, Raghavendra
Machine Learning
We challenge the prevailing view that weight oscillations observed during Quantization Aware Training (QAT) are merely undesirable side-effects and argue instead that they are an essential part of QAT. We show in a univariate linear model that QAT results in an additional loss term that causes oscillations by pushing weights away from their nearest quantization level. Based on the mechanism from the analysis, we then derive a regularizer that induces oscillations in the weights of neural networks during training. Our empirical results on ResNet-18 and Tiny Vision Transformer, evaluated on CIFAR-10 and Tiny ImageNet datasets, demonstrate across a range of quantization levels that training with oscillations followed by post-training quantization (PTQ) is sufficient to recover the performance of QAT in most cases. With this work we provide further insight into the dynamics of QAT and contribute a novel insight into explaining the role of oscillations in QAT which until now have been considered to have a primarily negative effect on quantization.
title Oscillations Make Neural Networks Robust to Quantization
topic Machine Learning
url https://arxiv.org/abs/2502.00490