Skip to content

Research Articles

Quantizer Calibration under Distribution Shift: Tight Resource Limits

Anika Iverford (Machine Learning Laboratory, Cairnwell Research Institute), Farah Brookvala (Machine Learning Laboratory, Thornmere Polytechnic), Selin Merevale (Machine Learning Laboratory, Cairnwell Research Institute)

Vol. 3 No. 1 (2019) · pp. 70–83 · Published 3 August 2019

Abstract

This synthetic study compares choosing activation clipping thresholds from separate calibration strata with a single threshold derived from pooled inputs in a reduced operating budget with the same input mix. Each configuration is evaluated on the same 180 cases. In the 45 stress cases, activation outliers must become more frequent after calibration; both configurations receive the same smaller allowance and cannot borrow capacity from later trials. A case counts as a pass only if it meets this criterion: quantized predictions must stay within the declared error tolerance on each stratum. The comparison holds the training and selection splits fixed across alternatives; evaluation cases are not reused for tuning. Compute or memory assigned to an alternative counts toward its budget even if training does not finish. Across the full set, 148 cases meet the criterion with the first configuration and 141 with the second. The stress cases account for 25 and 22 passes, respectively. The stress results should be read alongside the full-set results rather than treated as a general performance guarantee. The practical trade-off is that wider clipping intervals preserve outliers but allocate fewer levels to common values. The paired design makes the comparison interpretable within the fixture. It does not establish the size of the effect in an independent deployment.

Keywords: quantization, activation ranges, robustness, tight resource limits, synthetic evaluation

References

  1. Agustsson, E., et al. (2017). Soft-to-hard vector quantization for end-to-end learning compressible representations. Advances in Neural Information Processing Systems, 30, 1141–1151.
  2. André, F., Kermarrec, A.-M., & Le Scouarnec, N. (2015). Cache locality is not enough: High-performance nearest neighbor search with product quantization fast scan. Proceedings of the VLDB Endowment, 9(4), 288–299.
  3. Chen, B., et al. (2018). Detecting backdoor attacks on deep neural networks by activation clustering. arXiv:1811.03728.
  4. Davies, M., et al. (2018). Loihi: A neuromorphic manycore processor with on-chip learning. IEEE Micro, 38(1), 82–99. IEEE
  5. DeVries, T., & Taylor, G. W. (2018). Learning confidence for out-of-distribution detection in neural networks. arXiv:1802.04865.
  6. Donahue, J., Jia, Y., Vinyals, O., Hoffman, J., Zhang, N., Tzeng, E., & Darrell, T. (2014). DeCAF: A deep convolutional activation feature for generic visual recognition. Proceedings of the 31st International Conference on Machine Learning, PMLR 32(1), 647–655. Source
  7. Ge, T., He, K., Ke, Q., & Sun, J. (2013). Optimized product quantization for approximate nearest neighbor search. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2946–2953.
  8. Gong, Y., & Lazebnik, S. (2011). Iterative quantization: A Procrustean approach to learning binary codes. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 817–824.
  9. Hendrycks, D., & Dietterich, T. G. (2018). Benchmarking neural network robustness to common corruptions and surface variations. arXiv:1807.01697.
  10. Hendrycks, D., & Gimpel, K. (2016). A baseline for detecting misclassified and out-of-distribution examples in neural networks. arXiv:1610.02136.
  11. Ioffe, S., & Szegedy, C. (2015). Batch normalization: Accelerating deep network training by reducing internal covariate shift. Proceedings of the 32nd International Conference on Machine Learning, 448–456.
  12. Jacob, B., et al. (2018). Quantization and training of neural networks for efficient integer-arithmetic-only inference. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2704–2713.
  13. Jégou, H., Douze, M., & Schmid, C. (2011). Product quantization for nearest neighbor search. IEEE Transactions on Pattern Analysis and Machine Intelligence, 33(1), 117–128.
  14. Shrikumar, A., Greenside, P., & Kundaje, A. (2017). Learning important features through propagating activation differences. Proceedings of the 34th International Conference on Machine Learning, 3145–3153.