When Does Target Validation Help Calibrate Cross-Language Sentiment Probabilities?

Authors

  • Walter Hawkins Author
  • Kimberly Pearson Author
  • Ian Dennis Miller Author

Abstract

Probability calibration offers a way to improve sentiment scores after the hard labels have already been assigned. We trained a lexical sentiment model on 500 Indonesian NusaX records and compared three ways of fitting a temperature before testing in ten local languages. On 397 parallel held-out items, mean log loss was 0.935 for the raw model, 0.817 after source validation, 0.813 after pooled target validation, and 0.808 after local target validation. The small local advantage over pooling had a test-only 95% interval of [−0.0072, −0.0015] nats. Resampling the validation items and refitting the scales widened that interval to [−0.0075, 0.0076]. The latter comparison reflects uncertainty from obtaining another labeled validation cohort.

References

  1. Bender, E. M.; Friedman, B. (2018). Data Statements for Natural Language Processing: Toward Mitigating System Bias and Enabling Better Science. Transactions of the Association for Computational Linguistics, 6, 587–604. https://doi.org/10.1162/tacl_a_00041
  2. Berger, A.; Pietra, S. A. D.; Pietra, V. J. D. (1996). A Maximum Entropy Approach to Natural Language Processing. Computational Linguistics, 39–71. https://aclanthology.org/J96-1002/
  3. Bowman, S. R.; Dahl, G. (2021). What Will it Take to Fix Benchmarking in Natural Language Understanding?. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 4843–4855. https://doi.org/10.18653/v1/2021.naacl-main.385
  4. Brier, G. W. (1950). Verification of Forecasts Expressed in Terms of Probability. Monthly Weather Review, 78(1), 1–3. https://doi.org/10.1175/1520-0493%281950%29078%3C0001%3Avofeit%3E2.0.co%3B2
  5. Dawid, A. P. (1982). The Well-Calibrated Bayesian. Journal of the American Statistical Association, 77(379), 605–610. https://doi.org/10.1080/01621459.1982.10477856
  6. DeGroot, M. H.; Fienberg, S. E. (1983). The Comparison and Evaluation of Forecasters. The Statistician, 32(1/2), 12. https://doi.org/10.2307/2987588
  7. Desai, S.; Durrett, G. (2020). Calibration of Pre-trained Transformers. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), 295–302. https://doi.org/10.18653/v1/2020.emnlp-main.21
  8. Devlin, J.; Chang, M. W.; Lee, K.; Toutanova, K. (2019). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), 4171–4186. https://doi.org/10.18653/v1/n19-1423
  9. Efron, B. (1979). Bootstrap Methods: Another Look at the Jackknife. The Annals of Statistics, 7(1), 1–26. https://doi.org/10.1214/aos/1176344552
  10. Field, C. A.; Welsh, A. H. (2007). Bootstrapping Clustered Data. Journal of the Royal Statistical Society Series B: Statistical Methodology, 69(3), 369–390. https://doi.org/10.1111/j.1467-9868.2007.00593.x
  11. Gneiting, T.; Raftery, A. E. (2007). Strictly Proper Scoring Rules, Prediction, and Estimation. Journal of the American Statistical Association, 102(477), 359–378. https://doi.org/10.1198/016214506000001437
  12. Guo, C.; Pleiss, G.; Sun, Y.; Weinberger, K. Q. (2017). On Calibration of Modern Neural Networks. International Conference on Machine Learning, 1321–1330. https://proceedings.mlr.press/v70/guo17a.html
  13. 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. https://doi.org/10.1162/tacl_a_00407
  14. Jiang, Z. P.; Liu, A.; Durme, B. V. (2022). Calibrating Zero-shot Cross-lingual (Un-)structured Predictions. Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, 2648–2674. https://doi.org/10.18653/v1/2022.emnlp-main.170
  15. Kamath, A.; Jia, R.; Liang, P. (2020). Selective Question Answering under Domain Shift. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, 5684–5696. https://doi.org/10.18653/v1/2020.acl-main.503
  16. Kull, M.; Silva Filho, T. M.; Flach, P. (2017). Beyond sigmoids: How to obtain well-calibrated probabilities from binary classifiers with beta calibration. Electronic Journal of Statistics, 11(2), 5052–5080. https://doi.org/10.1214/17-ejs1338si
  17. Kull, M.; Perello-Nieto, M.; Kängsepp, M.; Filho, T. S.; Song, H.; Flach, P. (2019). Beyond temperature scaling: Obtaining well-calibrated multiclass probabilities with Dirichlet calibration. arXiv. https://arxiv.org/abs/1910.12656
  18. Lahiri, S. N. (2003). Scope of Resampling Methods for Dependent Data. Springer Series in Statistics, 1–16. https://doi.org/10.1007/978-1-4757-3803-2_1
  19. Minderer, M.; Djolonga, J.; Romijnders, R.; Hubis, F.; Zhai, X.; Houlsby, N.; Tran, D.; Lucic, M. (2021). Revisiting the Calibration of Modern Neural Networks. arXiv. https://arxiv.org/abs/2106.07998
  20. Murphy, A. H. (1973). A New Vector Partition of the Probability Score. Journal of Applied Meteorology, 12(4), 595–600. https://doi.org/10.1175/1520-0450%281973%29012%3C0595%3Aanvpot%3E2.0.co%3B2
  21. Niculescu-Mizil, A.; Caruana, R. (2005). Predicting good probabilities with supervised learning. Proceedings of the 22nd international conference on Machine learning - ICML '05, 625–632. https://doi.org/10.1145/1102351.1102430
  22. Ovadia, Y.; Fertig, E.; Ren, J.; Nado, Z.; Sculley, D.; Nowozin, S.; Dillon, J. V.; Lakshminarayanan, B.; Snoek, J. (2019). Can You Trust Your Model's Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shift. arXiv. https://arxiv.org/abs/1906.02530
  23. Salton, G.; Buckley, C. (1988). Term-weighting approaches in automatic text retrieval. Information Processing & Management, 24(5), 513–523. https://doi.org/10.1016/0306-4573%2888%2990021-0
  24. Vaicenavicius, J.; Widmann, D.; Andersson, C.; Lindsten, F.; Roll, J.; Schön, T. (2019). Evaluating model calibration in classification. The 22nd International Conference on Artificial Intelligence and Statistics, 3459–3467. https://proceedings.mlr.press/v89/vaicenavicius19a.html
  25. Wenger, J.; Kjellström, H.; Triebel), R. (2020). Non-Parametric Calibration for Classification. International Conference on Artificial Intelligence and Statistics, 178–190. https://proceedings.mlr.press/v108/wenger20a.html
  26. Widmann, D.; Lindsten, F.; Zachariah, D. (2019). Calibration tests in multi-class classification: A unifying framework. arXiv. https://arxiv.org/abs/1910.11385
  27. Wilie, B.; Vincentio, K.; Winata, G. I.; Cahyawijaya, S.; Li, X.; Lim, Z. Y.; Soleman, S.; Mahendra, R.; Fung, P.; Bahar, S.; Purwarianti, A. (2020). IndoNLU: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding. Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing, 843–857. https://doi.org/10.18653/v1/2020.aacl-main.85
  28. Winata, G. I.; Aji, A. F.; Cahyawijaya, S.; Mahendra, R.; Koto, F.; Romadhony, A.; Kurniawan, K.; Moeljadi, D.; Prasojo, R. E.; Fung, P.; et al. (2023). NusaX: Multilingual Parallel Sentiment Dataset for 10 Indonesian Local Languages. Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, 815–834. https://doi.org/10.18653/v1/2023.eacl-main.57
  29. Zadrozny, B.; Elkan, C. (2002). Transforming classifier scores into accurate multiclass probability estimates. Proceedings of the eighth ACM SIGKDD international conference on Knowledge discovery and data mining, 694–699. https://doi.org/10.1145/775047.775151
  30. Feng, S. (2025). Cross-Linguistic Transfer for Low-Resource Sentiment Analysis: Adapting Multilingual BERT to Dialects and Minority Languages. 2025 8th International Conference on Computer Information Science and Application Technology (CISAT), 969–975. https://doi.org/10.1109/cisat66811.2025.11181782

Downloads

Published

2026-11-26