Research Articles
Quantizer Calibration under Distribution Shift: Clustered Exceptions
Edda Glenwick (Machine Learning Laboratory, Kestrelby Institute of Technology), Anika Valehart (Machine Learning Laboratory, Glenwick University), Soraya Havenford (Machine Learning Laboratory, Kestrelby Institute of Technology), Nadia Meadowick (Machine Learning Laboratory, Eastmarsh Institute for Applied Computing)
Vol. 1 No. 1 (2017) · pp. 110–121 · Published 25 October 2017
Abstract
We ask whether choosing activation clipping thresholds from separate calibration strata performs better than a single threshold derived from pooled inputs under a burst of exceptions concentrated in a short interval. The evaluation is synthetic. Each configuration is evaluated on the same 200 cases. In the 50 stress cases, activation outliers must become more frequent after calibration; the difficult conditions occur in contiguous runs rather than being spread across cases. 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. The first configuration passes 155 of 200 cases, versus 149 for the comparator. In the stress subset, the respective counts are 28 and 25 of 50. The alternative exceeds the comparator overall by 3.0 percentage points. The practical trade-off is that wider clipping intervals preserve outliers but allocate fewer levels to common values. A subsequent evaluation should set tolerances independently and repeat the comparison on workloads not used to select the configuration.
Keywords: quantization, activation ranges, robustness, clustered exceptions, synthetic evaluation
References
- 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.
- 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.
- 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
- 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.
- Furber, S. B., Galluppi, F., Temple, S., & Plana, L. A. (2014). The SpiNNaker project. Proceedings of the IEEE, 102(5), 652–665. DOI
- 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.
- 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.
- 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.
- 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
- Hendrycks, D., & Gimpel, K. (2016). A baseline for detecting misclassified and out-of-distribution examples in neural networks. arXiv:1610.02136.
- 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.
- 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.
- Larochelle, H., & Murray, I. (2011). The neural autoregressive distribution estimator. Proceedings of the 14th International Conference on Artificial Intelligence and Statistics, 29–37.
- Merolla, P. A., et al. (2014). A million spiking-neuron integrated circuit with a scalable communication network and interface. Science, 345(6197), 668–673. DOI
- Shafiee, A., et al. (2016). ISAAC: A convolutional neural network accelerator with in-situ analog arithmetic in crossbars. Proceedings of the 43rd Annual International Symposium on Computer Architecture, 14–26. DOI
