Advances in Knowledge and Society · Vol. 2 No. 11 (2026)
Published November 26, 2026

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

Walter Hawkins, Kimberly Pearson, Ian Dennis Miller

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.

Confidence after transferring a classifier

A team that transfers a sentiment classifier from an available language may have enough target annotations to check its probabilities, even when it cannot train a new classifier. It might then choose whether to reserve annotations for each target collection or to fit a common adjustment to several collections. The underlying labels predicted by the model can be identical under these two choices. They can nevertheless assign different probabilities to a positive, neutral, or negative interpretation, which matters if the score is used to guide human review. The decision about where to obtain the annotations should therefore be tested at the level of probability quality, with estimation of the classifier and estimation of the probability adjustment kept separate.

Feng (2025) considers low-resource sentiment transfer in the context of adapting multilingual BERT to dialects and minority languages. The present study addresses an evaluation decision that can also arise with a simpler source-trained classifier. Given a single lexical model fitted on Indonesian, how much does a scalar adjustment improve proper probability scores in translated local-language sentiment texts, and does estimating a different scale for each language improve on a common scale? We use the model probabilities before and after adjustment, and test whether a difference between two adjustment rules survives resampling the labeled validation source items. The lexical model and the use of temperature fitting are a separate experiment from the multilingual BERT setting named by Feng. Encoder parameters and predicted labels play fixed roles in the design.

The use of post-fit probability adjustments has a long precedent. Zadrozny and Elkan (2002) study transforming classification scores into multiclass probabilities, and Niculescu-Mizil and Caruana (2005) compare the probability quality of supervised models. Guo et al. (2017) evaluate a temperature based on scaling fixed logits. The BERT architecture of Devlin et al. (2019) provides a prominent example of a model that supplies scores for downstream classification, and Desai and Durrett (2020) examine calibration in pretrained transformers. One prediction for our lexical model is that a validation-fitted scale can change probability error in a way that is measurable without any change in class decisions. A second prediction concerns where that scale is estimated. Local data may better reflect errors in a particular collection, while a common scale places fewer parameters on the same number of underlying source items. The test compares these two consequences empirically.

Parallel data and three disjoint roles

Winata et al. (2023) describe NusaX as a parallel sentiment corpus generated by translating examples from Indonesian into local languages. Its source draws on sentiment material associated with the IndoNLU resources described by Wilie et al. (2020). We use Indonesian for classifier training and the ten local-language collections for target evaluation. They are Acehnese, Balinese, Toba Batak, Banjarese, Buginese, Javanese, Madurese, Minangkabau, Ngaju, and Sundanese. Each release partition contains the same source identifiers and sentiment labels across the language variants used here. A test item in one language is therefore paired with its counterparts in the others. We use this structure when obtaining uncertainty estimates and describe the measured population as the corpus release, following the emphasis on language and source documentation in Bender and Friedman (2018).

The dataset is pinned at GitHub commit 75b0be5d982348332509f296e10d9bf9cb66d60f. The data card gives the license as CC BY-SA 4.0. Paths and SHA-256 checksums for the source and target files are recorded in two manifests. The source files were retrieved and the analysis executed on 23 November 2026. The classifier sees the 500 items of the Indonesian training split. The scale is fitted only on the 100 distinct validation identifiers. For each scale using target data, those identifiers supply a translation and label in each contributing language. The test uses its own identifiers. We verified that the three sets of source IDs do not overlap and that their labels align across the variants used for comparison. Rows with either an empty or a matched training string in any evaluated language would be removed from the affected validation or test cohort after normalization. Exact duplicates of a normalized test text and test matches to a retained validation text within the same language also make an identifier ineligible everywhere. These additional restrictions remove three of the 400 official test items. They retain all 100 validation identifiers. The 397 retained test items consist of 151 negative, 96 neutral, and 150 positive examples.

Source-only coefficient fitting keeps the target validation set independent of the lexical classifier. Texts are converted to Unicode NFC after case folding, and URLs and at-mentions are replaced by spaces. The feature inventory contains unique character strings of lengths three through five that occur in at least two Indonesian training items. Binary feature indicators are weighted by smoothed inverse document frequency and normalized to unit length for each item. Learned term weights follow the general weighting framework reviewed by Salton and Buckley (1988). In this dataset, fitting gives a vocabulary of 18,023 features. A three-class multinomial logistic model with an intercept and squared coefficient penalty is fitted to the source labels. The estimator follows the conditional log-linear tradition illustrated by Berger et al. (1996). The objective uses mean negative log likelihood plus one-half the squared non-intercept coefficient norm divided by the 500 training items. The source fit converges in 31 optimization iterations. It is reused for all ten target collections, with its original vocabulary and term weights held fixed.

The scale-fitting experiment

The classifier produces three logits for each text. We parameterize temperature by its positive inverse, which multiplies all logits for an item by the same scalar. A scale of one leaves the raw outputs alone. A scale above one makes larger probabilities larger relative to smaller probabilities, and a scale below one flattens the distribution. Within each item the class ordering is preserved, since multiplication by a positive scalar is monotone and all three exponentials are divided by the same sum. We verify equality of the top labels for every tested procedure. The four conditions are raw logits, a single scale chosen on Indonesian validation, a single scale chosen by pooling all ten target-language validations, and a separate scale fitted on each target-language validation. All fitted scales minimize mean validation log loss within the same interval, 0.05 to 8. The pooled objective assigns equal weight to each target-language version. Its ten translations per validation item improve coverage of observed language realizations but correspond to only 100 underlying item identities.

The primary score is natural-log loss, the negative log probability assigned to the observed label. We also report the multiclass Brier score as the sum of squared differences between each probability and the three-class one-hot outcome. Brier (1950) introduces the quadratic forecast score, and Gneiting and Raftery (2007) discuss properly scored probabilistic predictions. Both measures are minimized in expectation by forecasting the true conditional probabilities under their respective regularity conditions. A lower loss is useful evidence about the tested probability forecasts, while calibration as a conditional relationship is a more specific property. The vector decomposition in Murphy (1973) and the work of DeGroot and Fienberg (1983) distinguish components of probability score performance. Dawid (1982), Vaicenavicius et al. (2019), and Widmann et al. (2019) discuss calibration definitions and assessments. We interpret the scores as comparative predictive quality at probability level. We do not use a score to assert reliability across every subgroup or range of confidence.

Study model and linked confidence-score contrasts for source validation, pooled target validation, and local target validation.

Figure 1. The classifier is trained only on Indonesian source records. A validation partition supplies scales, and common source IDs keep test comparisons paired. The effect panel shows equal-language log-loss changes alongside test-only 95% item-bootstrap intervals for each calibration method relative to raw logits.

Distinguishing an estimated scale from the procedure that estimates it

For each source item and condition, we compute the mean score across the ten language versions. To quantify held-out contrasts conditional on the fitted scales, we resample the 397 test source IDs with replacement, preserving the matching of languages and methods, and repeat 5,000 times. This uses the bootstrap logic of Efron (1979) with groups kept together rather than treating parallel language versions as independent texts. Field and Welsh (2007) and Lahiri (2003) give reasons to respect dependence when resampling statistical contrasts. All reported test-only intervals use percentile limits. They describe uncertainty across source items under the fixed source fit and the particular validation set that produced the scales.

The comparison between separate local scales and one pooled scale has an additional source of variability. An application would obtain another validation cohort and learn those scales again. We therefore run 800 replicates with independent resampling of validation and test source IDs. The bootstrap uses identical validation resamples for each language and identical test resamples for all conditions in a replicate. It refits the pooled and local target scales from the shared validation resample and compares them on the test resample. The Indonesian coefficient estimates remain frozen. The joint procedure evaluates the effect of the finite target validation cohort under this source model. It does not model the effects of changing the source training sample or adding new languages to the pool.

Results from the same fixed predictions

Log loss is lower with every fitted-scale condition in the ten-language mean. Fitting on source validation reduces mean held-out log loss from 0.9352 to 0.8168 and mean Brier score from 0.5567 to 0.4860. The pooled target scale reduces log loss to 0.8126 and local scales reduce it to 0.8083. Their absolute improvement over source validation is small compared with the initial reduction from raw logits. The positive multipliers leave predicted labels unchanged at all 3,970 target language-item combinations. Their mean accuracy is 62.57% in every condition, so the result reflects differences in the probabilities supplied to the same classification decisions.

Table 1. Held-out probability losses averaged equally across ten target languages.

Scale fit Log loss Brier score Log loss minus raw Test-only 95% interval
Raw logits 0.9352 0.5567 0.0000 Reference
Indonesian validation 0.8168 0.4860 −0.1183 [−0.1434, −0.0922]
Target pooled 0.8126 0.4850 −0.1226 [−0.1590, −0.0850]
Target local 0.8083 0.4811 −0.1269 [−0.1639, −0.0877]

Table 1 note. Units are nats per item for log loss and summed squared probability error for Brier score. Test resampling preserves the dependence among the ten translations of each of 397 source items.

The source-fitted inverse temperature is 2.759 and the pooled target value is 3.581. The local fitted values extend from 2.138 in Buginese to 4.505 in Javanese. These are all above one, meaning the fitted transformations sharpen the raw probabilities in every collection. Pooling gives a lower test log loss than raw logits for nine target collections, with Buginese the exception. The local Buginese scale avoids that increase. For Toba Batak both target scaling approaches have higher test loss than the source-calibrated condition. These concrete differences show why the pooled objective, even with balanced contributions from each language, allows collection-level tradeoffs.

Conditional on the estimated target scales, local minus pooled log loss is −0.0043 nats, with a test-only interval of [−0.0072, −0.0015]. The same comparison with validation resampling and refitting gives a 95% interval of [−0.0075, 0.0076]. For the Brier score, the observed local minus pooled difference is −0.0039, and the joint interval is [−0.0061, 0.0012]. The wider intervals reflect another relevant aspect of using validation labels: a separate scalar fitted to 100 examples can vary when a different set of examples is labeled. The results support the large probability-score gain from fitting a scalar in this archive, with weaker evidence that separate target fits would reliably outperform pooling under another validation cohort.

How the result bears on low-resource evaluation

Jiang et al. (2022) investigate calibration when pretrained models transfer between languages, including temperature as a baseline. Our lexical experiment provides an inexpensive companion for testing whether a potential improvement depends on target calibration data or on the estimates obtained from a single held-out cohort. Jiang et al. (2021) and Kamath et al. (2020) address confidence in question answering, where confidence can determine whether an answer is shown. These tasks help explain why preserving hard labels while moving confidence values can matter. A user relying only on class accuracy would see identical classifiers in all four conditions. A user who sends low-confidence cases to a person could see different review loads. Scoring actual review policies would require an explicit decision loss and measurement of the thresholds used, neither of which the current test estimates.

More expressive methods can redistribute probabilities beyond the one-scale family. Kull et al. (2017) study beta calibration in binary classification and Kull et al. (2019) present a Dirichlet calibration procedure for multiclass predictions. Wenger et al. (2020) consider nonparametric calibration. Such alternatives can be compared using a classifier and a matched validation budget of their own. The evaluations of Ovadia et al. (2019) under distribution shift and Minderer et al. (2021) across architectures suggest evaluating any proposed improvement on the intended conditions. Bowman and Dahl (2021) make a broader case for benchmarks that reveal what claims an evaluation supports. For the NusaX setup, the difference between pooling and separate scales illustrates why validation availability and validation uncertainty belong in those conditions. Parallel translated posts, rather than naturally collected local-language sentiment streams, set the boundary of the present results.

Conclusion

A single source-trained lexical classifier can yield markedly better target probability scores after a positive logit scale is fitted, with the same predicted class decisions. Our observed local scales have the lowest aggregate log loss. Resampling both distinct cohorts shows that their small apparent advantage over a pooled scale is sensitive to which 100 validation items supply the labels. A future comparison of transferred sentiment systems can preserve this distinction by recording what labels are used for each fit and evaluating the procedure's variability separately from the test variation of one fitted scale.

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