Uncertainty-Aware Reliable Text Classification

Yibo Hu, Latifur Khan
7/15/2021
cs.AI

Official code: snowood1/BERT-ENN (18 stars, Jupyter Notebook, last commit 2022-10-04).

Abstract

Deep neural networks have significantly contributed to the success in predictive accuracy for classification tasks. However, they tend to make over-confident predictions in real-world settings, where domain shifting and out-of-distribution (OOD) examples exist.

Show full abstract

Most research on uncertainty estimation focuses on computer vision because it provides visual validation on uncertainty quality. However, few have been presented in the natural language process domain. Unlike Bayesian methods that indirectly infer uncertainty through weight uncertainties, current evidential uncertainty-based methods explicitly model the uncertainty of class probabilities through subjective opinions. They further consider inherent uncertainty in data with different root causes, vacuity (i.e., uncertainty due to a lack of evidence) and dissonance (i.e., uncertainty due to conflicting evidence). In our paper, we firstly apply evidential uncertainty in OOD detection for text classification tasks. We propose an inexpensive framework that adopts both auxiliary outliers and pseudo off-manifold samples to train the model with prior knowledge of a certain class, which has high vacuity for OOD samples. Extensive empirical experiments demonstrate that our model based on evidential uncertainty outperforms other counterparts for detecting OOD examples. Our approach can be easily deployed to traditional recurrent neural networks and fine-tuned pre-trained transformers.

View on arXivView PDF

Code Implementations(1)

snowood1/BERT-ENNOfficial100%

Uncertainty-Aware Reliable Text Classification (KDD 2021)

188Jupyter Notebook, PythonJun 1, 20214 years ago
natural-language-processingout-of-distribution-detectionuncertainty-quantification

Similar Papers

Cite this paper

@article{hu2021uncertaintyaware,
  title  = {Uncertainty-Aware Reliable Text Classification},
  author = {Yibo Hu and Latifur Khan},
  year   = {2021},
  eprint = {2107.07114},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.07114}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.07114.svg)](https://codeofpaper.com/paper/2107.07114)

Discussion