Skip to content

Research Articles

Calibration after Neural Model Transfer: Heterogeneous Partitions

Idris Eastmarsh (Machine Learning Laboratory, Pinewick School of Engineering), Dario Faldenwood (Machine Learning Laboratory, Ravenmere Technical University), Dario Cairnwell (Machine Learning Laboratory, Ivermere University)

Vol. 5 No. 1 (2021) · pp. 157–168 · Published 11 September 2021

Abstract

This synthetic study compares fitting a temperature on a separate validation partition with using the original confidence scores in a collection of partitions with different input and resource profiles. Each configuration is evaluated on the same 180 cases. In the 45 stress cases, the test distribution must shift away from the calibration split; held-out partitions are selected before configuration so that tuning cannot target their particular failure cases. A case counts as a pass only if it meets this criterion: the upper confidence bins must meet the specified calibration tolerance without changing the predicted label. 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 comparator passes 130 of 180 cases and the alternative passes 138. For the 45 stress cases alone, the counts are 25 and 35, respectively. The aggregate count does not establish that the alternative is preferable at every operating point. The practical trade-off is that temperature scaling cannot correct systematic classification errors. The result describes the chosen case mix. Before applying the finding, a follow-up benchmark would need to vary the share of difficult cases without relaxing the acceptance criteria.

Keywords: calibration, transfer learning, confidence, heterogeneous partitions, synthetic evaluation

References

  1. Desai, S., & Durrett, G. (2020). Calibration of pre-trained transformers. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, 295–302.
  2. Gulshan, V., et al. (2016). Development and validation of a deep learning algorithm for detection of diabetic retinopathy in retinal fundus photographs. JAMA, 316(22), 2402–2410. DOI
  3. 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.
  4. Hein, M., Andriushchenko, M., & Bitterwolf, J. (2019). Why ReLU networks yield high-confidence predictions far away from the training data and how to mitigate the problem. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 41–50.
  5. Houlsby, N., et al. (2019). Parameter-efficient transfer learning for NLP. Proceedings of the 36th International Conference on Machine Learning, 2790–2799.
  6. Lauscher, A., Ravishankar, V., Vulić, I., & Glavaš, G. (2020). From zero to hero: On the limitations of zero-shot language transfer with multilingual transformers. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, 4483–4499.
  7. Nguyen, A., Yosinski, J., & Clune, J. (2015). Deep neural networks are easily fooled: High confidence predictions for unrecognizable images. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 427–436.
  8. Pan, S. J., & Yang, Q. (2010). A survey on transfer learning. IEEE Transactions on Knowledge and Data Engineering, 22(10), 1345–1359.
  9. Papernot, N., Abadi, M., Erlingsson, Ú., Goodfellow, I., & Talwar, K. (2016). Semi-supervised knowledge transfer for deep learning from private training data. arXiv:1610.05755.
  10. Peng, Y., Yan, S., & Lu, Z. (2019). Transfer learning in biomedical natural language processing: An evaluation of BERT and ELMo on ten benchmarking datasets. Proceedings of the 18th BioNLP Workshop and Shared Task, 58–65.
  11. Pfeiffer, J., Kamath, A., Rücklé, A., Cho, K., & Gurevych, I. (2020). AdapterFusion: Non-destructive task composition for transfer learning. arXiv:2005.00247.
  12. Raffel, C., et al. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140), 1–67.
  13. Raghu, M., Zhang, C., Kleinberg, J., & Bengio, S. (2019). Transfusion: Understanding transfer learning for medical imaging. Advances in Neural Information Processing Systems, 32, 3347–3357.