Skip to content

Research Articles

Quantizer Calibration under Distribution Shift: Uneven Workloads

Nerea Fallowby (Machine Learning Laboratory, Thornmere Polytechnic), Elena Bellwarden (Machine Learning Laboratory, Ravenmere Technical University), Zoya Belmere (Machine Learning Laboratory, Ivermere University), Farah Belmere (Machine Learning Laboratory, Eastmarsh Institute for Applied Computing)

Vol. 2 No. 1 (2018) · pp. 80–90 · Published 25 May 2018

Abstract

This synthetic study compares choosing activation clipping thresholds from separate calibration strata with a single threshold derived from pooled inputs in a workload with many common cases and a small set of recurring high-cost cases. Each configuration is evaluated on the same 256 cases. In the 64 stress cases, activation outliers must become more frequent after calibration; the rare cases are assessed separately so that the dominant group does not hide their behavior. 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, 170 cases meet the criterion with the first configuration and 173 with the second. The stress cases account for 30 and 33 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, uneven workloads, 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. Arpit, D., Zhou, Y., Kota, B. U., & Govindaraju, V. (2016). Normalization propagation: A parametric technique for removing internal covariate shift in deep networks. Proceedings of the 33rd International Conference on Machine Learning, 1168–1176.
  4. Carlini, N., & Wagner, D. (2017). Towards evaluating the robustness of neural networks. Proceedings of the 2017 IEEE Symposium on Security and Privacy, 39–57.
  5. 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
  6. Fukushima, K. (1980). Neocognitron: A self-organizing neural network model for a mechanism of pattern recognition unaffected by shift in position. Biological Cybernetics, 36(4), 193–202.
  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. Guo, C., Pleiss, G., Sun, Y., & Weinberger, K. Q. (2017). On calibration of modern neural networks. Proceedings of the 34th International Conference on Machine Learning, 1321–1330.
  10. Guo, R., Kumar, S., Choromanski, K., & Simcha, D. (2016). Quantization based fast inner product search. Proceedings of the 19th International Conference on Artificial Intelligence and Statistics, 482–490.
  11. Han, S., Mao, H., & Dally, W. J. (2016). Deep compression: Compressing deep neural networks with pruning, trained quantization and Huffman coding. International Conference on Learning Representations. Source
  12. Hendrycks, D., & Gimpel, K. (2016). A baseline for detecting misclassified and out-of-distribution examples in neural networks. arXiv:1610.02136.
  13. 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.
  14. Larochelle, H., & Murray, I. (2011). The neural autoregressive distribution estimator. Proceedings of the 14th International Conference on Artificial Intelligence and Statistics, 29–37.
  15. Liang, S., Li, Y., & Srikant, R. (2017). Enhancing the reliability of out-of-distribution image detection in neural networks. arXiv:1706.02690.
  16. 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.