Skip to main content
QUICK REVIEW

[Paper Review] Estimating Confidence of Predictions of Individual Classifiers and Their Ensembles for the Genre Classification Task

Mikhail Lepekhin, Serge Sharoff|arXiv (Cornell University)|Jun 15, 2022
Authorship Attribution and ProfilingComputer Science4 citations
TL;DR

This paper proposes using prediction confidence estimation via Monte Carlo dropout to evaluate and enhance the robustness of individual and ensemble classifiers for text genre classification. It demonstrates that ensembles of XLM-RoBERTa and logistic regression models achieve significantly higher confidence gaps between correct and incorrect predictions, leading to more reliable and accurate genre classification, especially under dataset shift conditions.

ABSTRACT

Genre identification is a subclass of non-topical text classification. The main difference between this task and topical classification is that genres, unlike topics, usually do not correspond to simple keywords, and thus they need to be defined in terms of their functions in communication. Neural models based on pre-trained transformers, such as BERT or XLM-RoBERTa, demonstrate SOTA results in many NLP tasks, including non-topical classification. However, in many cases, their downstream application to very large corpora, such as those extracted from social media, can lead to unreliable results because of dataset shifts, when some raw texts do not match the profile of the training set. To mitigate this problem, we experiment with individual models as well as with their ensembles. To evaluate the robustness of all models we use a prediction confidence metric, which estimates the reliability of a prediction in the absence of a gold standard label. We can evaluate robustness via the confidence gap between the correctly classified texts and the misclassified ones on a labeled test corpus, higher gaps make it easier to improve our confidence that our classifier made the right decision. Our results show that for all of the classifiers tested in this study, there is a confidence gap, but for the ensembles, the gap is bigger, meaning that ensembles are more robust than their individual models.

Motivation & Objective

  • To improve the reliability of text genre classification in the presence of dataset shifts, especially in large-scale social media corpora.
  • To evaluate the robustness of individual classifiers and their ensembles using a confidence metric based on Monte Carlo dropout.
  • To investigate whether ensemble models outperform individual models in terms of prediction confidence and classification accuracy.
  • To assess the impact of model architecture and hyperparameters on genre classification performance in low-resource and out-of-domain settings.
  • To explore the feasibility of using confidence thresholds for open-set genre classification.

Proposed method

  • Estimating prediction confidence using a metric defined as 1 - uncertainty, derived from multiple forward passes with dropout enabled during inference.
  • Applying dropout with probability 0.1 to all layers, including embeddings and the final classification layer, to generate multiple probability distributions.
  • Aggregating the n probability distributions into a pooled distribution  p̂, where the maximum value represents the confidence score.
  • Training and fine-tuning XLM-RoBERTa and RuBERT on the Russian FTD corpus for genre classification, using optimal hyperparameters from prior experiments.
  • Constructing ensembles by combining XLM-RoBERTa, RuBERT, and a logistic regression classifier, with inference performed via averaging or voting.
  • Evaluating model performance on a held-out test set and measuring the confidence gap between correctly and incorrectly classified examples using Mann-Whitney U tests.

Experimental results

Research questions

  • RQ1Does the confidence gap between correct and incorrect predictions differ significantly between individual classifiers and their ensembles in genre classification?
  • RQ2Can ensemble models achieve higher classification accuracy and more reliable predictions than individual models under dataset shift conditions?
  • RQ3How does the inclusion of a weak classifier (e.g., logistic regression) affect the overall performance and confidence of ensemble models?
  • RQ4To what extent do genre distributions vary across different social media platforms, and how does this affect model generalization?
  • RQ5Can confidence estimation be used effectively to support open-set genre classification by rejecting low-confidence predictions?

Key findings

  • Ensemble models consistently exhibit a larger confidence gap between correctly and incorrectly classified texts than individual classifiers, indicating higher robustness.
  • The ensemble including logistic regression achieved the highest f1-score and the most reliable confidence gap across most genres, outperforming both individual models and other ensemble configurations.
  • Adding a logistic regression classifier to the ensemble significantly improved accuracy with minimal computational cost, demonstrating its value as a lightweight yet effective component.
  • The confidence metric successfully identified misclassified examples with low confidence, supporting its use in open-set classification scenarios.
  • XLM-RoBERTa and RuBERT models achieved high accuracy on the FTD corpus, validating the transferability of BERT-based fine-tuning best practices to Russian and multilingual settings.
  • Chi-squared tests revealed significant differences in genre distributions across social media platforms (e.g., more argumentative texts in LiveJournal vs. more personal reporting in VK), highlighting domain shift challenges.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.