Skip to content

Research Articles

Calibration after Neural Model Transfer: Baseline Load

Nerea Finchmere (Machine Learning Laboratory, Kestrelby Institute of Technology), Yara Northfen (Machine Learning Laboratory, Pinewick School of Engineering), Zoya Northmere (Machine Learning Laboratory, Thornmere Polytechnic), Dario Belmere (Machine Learning Laboratory, Valehart Institute of Computational Science)

Vol. 8 No. 1 (2024) · pp. 16–28 · Published 24 April 2024

Abstract

We ask whether fitting a temperature on a separate validation partition performs better than using the original confidence scores in steady demand with isolated exceptions. The evaluation is synthetic. Each configuration is evaluated on the same 120 cases. In the 30 stress cases, the test distribution must shift away from the calibration split; difficult cases are separated by ordinary intervals rather than grouped into bursts. 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 95 of 120 cases, versus 90 for the comparator. In the stress subset, the respective counts are 21 and 15 of 30. The alternative exceeds the comparator overall by 4.2 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, baseline load, 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. Desai, S., & Durrett, G. (2020). Calibration of pre-trained transformers. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, 295–302.
  4. He, J., Zhou, C., Ma, X., Berg-Kirkpatrick, T., & Neubig, G. (2021). Towards a unified view of parameter-efficient transfer learning. arXiv:2110.04366.
  5. 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.
  6. Houlsby, N., et al. (2019). Parameter-efficient transfer learning for NLP. Proceedings of the 36th International Conference on Machine Learning, 2790–2799.
  7. 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.
  8. 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.
  9. Lin, Z., Trivedi, S., & Sun, J. (2023). Generating with confidence: Uncertainty quantification for black-box large language models. arXiv:2305.19187.
  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. 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.
  12. 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.
  13. Raina, R., Battle, A., Lee, H., Packer, B., & Ng, A. Y. (2007). Self-taught learning: Transfer learning from unlabeled data. Proceedings of the 24th International Conference on Machine Learning, 759–766.
  14. Shin, H.-C., et al. (2016). Deep convolutional neural networks for computer-aided detection: CNN architectures, dataset characteristics and transfer learning. IEEE Transactions on Medical Imaging, 35(5), 1285–1298.
  15. Tian, K., et al. (2023). Just ask for calibration: Strategies for eliciting calibrated confidence scores from language models fine-tuned with human feedback. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, 5433–5442.