Manuscript Offprint

arXiv:2610.18575

Detecting Unreliable Classifications from Quantized Models

Ananya Kotla, Jorge T. Gomez

Abstract

Post-training INT8 quantization is typically validated by checking accuracy retention, which requires ground-truth labels often unavailable in low-resource clinical settings. We show a label-free alternative: comparing a model's own output before and after quantization. We compute cosine similarity between the FP32 and INT8 models' output probability vectors for each prediction, which requires only a single forward pass. This output-agreement similarity separates lower-accuracy predictions across four evaluated architectures (ResNet-50, VGG-16-BN, Wide ResNet-50, and ViT-B/16) under fixed-percentile splits, outperforming a confidence-only baseline for all four. These results show that quantized models can be compared to their baselines to assess their drift and determine whether they are well suited for clinical deployment.

1 Introduction

Model compression techniques such as quantization reduce memory requirements and energy consumption, allowing models to run on less capable hardware. This is especially relevant for edge deployment in low-resource settings, which are becoming further constrained by the rising cost of hardware [14][14] and the growing requirements of deep learning (DL) models. Clinical settings are commonly resource constrained, outside of highly specialized and high-tier hospitals, and commonly require using post-training quantization [8,11][8, 11].

However, while quantized models often perform at or below the baseline set by their non-quantized counterparts, especially strong quantization such as INT8 and INT4 [9], the size of this gap is often unknown and varies per model and setting. Understanding this gap is important for clinical deployment, but doing so usually requires labeled test data, which can be difficult to obtain for medical applications. Expert annotation are often required, which is expensive and time consuming, particularly for segmentation tasks, and such annotations are frequently unavailable in low-resource settings.

In this work, we show that for a mammography dataset [7] we can leverage the models own output before and after quantization to identify when the quantized model drifts too far from the non-quantized model leading to less reliable predictions. This can alleviate the need for annotated data and help clinicians understand if the quantized models meets their deployment needs without having to annotate any additional data.

Our contributions are: 1) Exploring the impact of quantization of three different convolution based models (ResNet-50, VGG-16-BN, and Wide ResNet-50) and a transformer based model (ViT-B/16) on the publicly available mammography dataset CBIS-DDSM for cancer detection 2) Using cosine similarity of the models output for failure case detection using the available test data, 3) Demonstration that this method works across different architectures, and seeds.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: AXIOM 2026: Foundations of Efficient Deep Learning.

References (12)