Skip to content

Research Articles

Calibration after Neural Model Transfer: Cold Versus Warm Runs

Rowan Finchmere (Machine Learning Laboratory, Kestrelby Institute of Technology), Devon Fallowby (Machine Learning Laboratory, Valehart Institute of Computational Science), Lina-Mae Northmere (Machine Learning Laboratory, Ravenmere Technical University), Emil Faldenwood (Machine Learning Laboratory, Kestrelby Institute of Technology), Beatriz Ravenmere (Machine Learning Laboratory, Thornmere Polytechnic), Inez Alderwick (Machine Learning Laboratory, Kestrelby Institute of Technology)

Vol. 7 No. 1 (2023) · pp. 32–42 · Published 8 February 2023

Abstract

We ask whether fitting a temperature on a separate validation partition performs better than using the original confidence scores in a mix of fresh-start and steady-state trials. The evaluation is synthetic. Each configuration is evaluated on the same 320 cases. In the 80 stress cases, the test distribution must shift away from the calibration split; initialization cost is kept in the comparison instead of discarding the first completed trial. 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 first configuration passes 269 of 320 cases, versus 244 for the comparator. In the stress subset, the respective counts are 66 and 47 of 80. The alternative exceeds the comparator overall by 7.8 percentage points. The practical trade-off is that temperature scaling cannot correct systematic classification errors. A subsequent evaluation should set tolerances independently and repeat the comparison on workloads not used to select the configuration.

Keywords: calibration, transfer learning, confidence, cold versus warm runs, synthetic evaluation

References

  1. Adelani, D. I., et al. (2022). MasakhaNER 2.0: Africa-centric transfer learning for named entity recognition. Proceedings of EMNLP.
  2. Aribandi, V., et al. (2021). ExT5: Towards extreme multi-task scaling for transfer learning. arXiv:2111.10952.
  3. Bengio, Y. (2012). Deep learning of representations for unsupervised and transfer learning. Proceedings of the ICML Workshop on Unsupervised and Transfer Learning, JMLR Workshop and Conference Proceedings, 27, 17–36.
  4. Desai, S., & Durrett, G. (2020). Calibration of pre-trained transformers. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, 295–302.
  5. 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.
  6. He, J., Zhou, C., Ma, X., Berg-Kirkpatrick, T., & Neubig, G. (2021). Towards a unified view of parameter-efficient transfer learning. arXiv:2110.04366.
  7. 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.
  8. Jiang, Z., Araki, J., Ding, H., & Neubig, G. (2021). How can we know when language models know? On the calibration of language models for question answering. Transactions of the Association for Computational Linguistics, 9, 962–977.
  9. 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.
  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.