How Sensitive Are Sentiment Classifier Rankings to the Target Label Mix? Evidence from NusaX

Authors

  • Barbara Brennan Author
  • Donald Fisher Author
  • Gabriel Wilson Author

Abstract

Average sentiment error gives no indication of which label contributes most to a difference between classifiers. We held the predictions from 20 lexical classifiers fixed on 398 parallel NusaX test items in ten Indonesian local languages and recomputed expected error under alternative target class mixtures. The same classifier had the lower point estimate in each language across the four moderate mixtures studied. In five languages the fitted class errors allowed a ranking change elsewhere in the mixture space. The equally weighted ten-language averages crossed near 69% positive texts when the two other classes were equally common, with substantial sampling uncertainty. The fitted break-even share describes a change in the evaluation mixture with both classifiers held fixed.

References

  1. Alexandari, A.; Kundaje, A.; Shrikumar, A. (2020). Maximum Likelihood with Bias-Corrected Calibration is Hard-To-Beat at Label Shift Adaptation. Proceedings of Machine Learning Research, 119, 222–232. https://proceedings.mlr.press/v119/alexandari20a.html
  2. 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
  3. Artetxe, M.; Labaka, G.; Agirre, E. (2020). Translation Artifacts in Cross-lingual Transfer Learning. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), 7674–7684. https://doi.org/10.18653/v1/2020.emnlp-main.618
  4. Ben-David, S.; Blitzer, J.; Crammer, K.; Kulesza, A.; Pereira, F.; Vaughan, J. W. (2010). A theory of learning from different domains. Machine Learning, 79(1-2), 151–175. https://doi.org/10.1007/s10994-009-5152-4
  5. Blitzer, J.; Dredze, M.; Pereira, F. (2007). Biographies, Bollywood, Boom-boxes and Blenders: Domain Adaptation for Sentiment Classification. Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics, 440–447. https://aclanthology.org/P07-1056/
  6. Conneau, A.; Rinott, R.; Lample, G.; Williams, A.; Bowman, S.; Schwenk, H.; Stoyanov, V. (2018). XNLI: Evaluating Cross-lingual Sentence Representations. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, 2475–2485. https://doi.org/10.18653/v1/d18-1269
  7. 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
  8. Fawcett, T. (2006). An introduction to ROC analysis. Pattern Recognition Letters, 27(8), 861–874. https://doi.org/10.1016/j.patrec.2005.10.010
  9. Forman, G. (2005). Counting Positives Accurately Despite Inaccurate Classification. Lecture Notes in Computer Science, 564–575. https://doi.org/10.1007/11564096_55
  10. Glorot, X.; Bordes, A.; Bengio, Y. (2011). Domain Adaptation for Large-Scale Sentiment Classification: A Deep Learning Approach. Proceedings of Machine Learning Research, 15, 315–323. https://proceedings.mlr.press/v15/glorot11a.html
  11. He, H.; Garcia, E. A. (2009). Learning from Imbalanced Data. IEEE Transactions on Knowledge and Data Engineering, 21(9), 1263–1284. https://doi.org/10.1109/tkde.2008.239
  12. Hand, D. J. (2009). Measuring classifier performance: a coherent alternative to the area under the ROC curve. Machine Learning, 77(1), 103–123. https://doi.org/10.1007/s10994-009-5119-5
  13. Daumé III, H. (2007). Frustratingly Easy Domain Adaptation. Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics, 256–263. https://aclanthology.org/P07-1033/
  14. Joshi, P.; Santy, S.; Budhiraja, A.; Bali, K.; Choudhury, M. (2020). The State and Fate of Linguistic Diversity and Inclusion in the NLP World. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, 6282–6293. https://doi.org/10.18653/v1/2020.acl-main.560
  15. Lewis, D. D. (1998). Naive (Bayes) at Forty: The Independence Assumption in Information Retrieval. Lecture Notes in Computer Science, 4–15. https://doi.org/10.1007/bfb0026666
  16. Lipton, Z. C.; Wang, Y. X.; Smola, A. J. (2018). Detecting and Correcting for Label Shift with Black Box Predictors. Proceedings of Machine Learning Research, 80, 3122–3130. https://proceedings.mlr.press/v80/lipton18a.html
  17. McCallum, A.; Nigam, K. (1998). A Comparison of Event Models for Naive Bayes Text Classification. AAAI Workshop on Learning for Text Categorization. https://cdn.aaai.org/Workshops/1998/WS-98-05/WS98-05-007.pdf
  18. Moreno-Torres, J. G.; Raeder, T.; Alaiz-Rodríguez, R.; Chawla, N. V.; Herrera, F. (2012). A unifying view on dataset shift in classification. Pattern Recognition, 45(1), 521–530. https://doi.org/10.1016/j.patcog.2011.06.019
  19. Pang, B.; Lee, L.; Vaithyanathan, S. (2002). Thumbs up? Sentiment Classification using Machine Learning Techniques. Proceedings of the 2002 Conference on Empirical Methods in Natural Language Processing (EMNLP 2002), 79–86. https://doi.org/10.3115/1118693.1118704
  20. Ponti, E. M.; Glavaš, G.; Majewska, O.; Liu, Q.; Vulić, I.; Korhonen, A. (2020). XCOPA: A Multilingual Dataset for Causal Commonsense Reasoning. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2362–2376. https://doi.org/10.18653/v1/2020.emnlp-main.185
  21. Rennie, J. D. M.; Shih, L.; Teevan, J.; Karger, D. R. (2003). Tackling the Poor Assumptions of Naive Bayes Text Classifiers. Proceedings of the 20th International Conference on Machine Learning, 616–623. https://people.csail.mit.edu/jrennie/papers/icml03-nb.pdf
  22. Ribeiro, M. T.; Wu, T.; Guestrin, C.; Singh, S. (2020). Beyond Accuracy: Behavioral Testing of NLP Models with CheckList. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, 4902–4912. https://doi.org/10.18653/v1/2020.acl-main.442
  23. Saerens, M.; Latinne, P.; Decaestecker, C. (2002). Adjusting the Outputs of a Classifier to New a Priori Probabilities: A Simple Procedure. Neural Computation, 14, 21–41. https://doi.org/10.1162/089976602753284446
  24. Sokolova, M.; Lapalme, G. (2009). A systematic analysis of performance measures for classification tasks. Information Processing & Management, 45(4), 427–437. https://doi.org/10.1016/j.ipm.2009.03.002
  25. Sugiyama, M.; Blankertz, B.; Krauledat, M.; Dornhege, G.; Müller, K. R. (2006). Importance-Weighted Cross-Validation for Covariate Shift. Lecture Notes in Computer Science, 354–363. https://doi.org/10.1007/11861898_36
  26. Volansky, V.; Ordan, N.; Wintner, S. (2015). On the features of translationese. Digital Scholarship in the Humanities, 30(1), 98–118. https://doi.org/10.1093/llc/fqt031
  27. Wang, S. I.; Manning, C. D. (2012). Baselines and Bigrams: Simple, Good Sentiment and Topic Classification. Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), 90–94. https://aclanthology.org/P12-2018/
  28. 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
  29. 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
  30. Zhang, X.; Zhao, J.; LeCun, Y. (2015). Character-level Convolutional Networks for Text Classification. Advances in Neural Information Processing Systems, 28, 649–657. https://papers.nips.cc/paper/5782-character-level-convolutional-networks-for-text-classification

Downloads

Published

2026-11-26