Uncertainty Estimation for the Open-Set Text Classification systems
Organizations: Skolkovo Institute of Science and Technology (Skoltech), Moscow, Russia · Risk Management, Sber, Moscow, Russia
Abstract
Accurate uncertainty estimation is essential for building robust and trustworthy recognition systems. In this paper, we consider the open-set text classification (OSTC) task - and uncertainty estimation for it. For OSTC a text sample should be classified as one of the existing classes or rejected as unknown. To account for the different uncertainty types encountered in OSTC, we adapt the Holistic Uncertainty Estimation (HolUE) method for the text domain. Our approach addresses two major causes of prediction errors in text recognition systems: text uncertainty that stems from ill formulated queries and gallery uncertainty that is related the ambiguity of data distribution. By capturing these sources, it becomes possible to predict when the system will make a recognition error. We propose a new OSTC benchmark and conduct extensive experiments on a wide range of data, utilizing the authorship attribution, intent and topic classification datasets. HolUE achieves 40-365% improvement in Prediction Rejection Ratio (PRR) over the quality-based SCF baseline across datasets: 365% on Yahoo Answers (0.79 vs 0.17 at FPIR 0.1), 347% on DBPedia (0.85 vs 0.19), 240% on PAN authorship attribution (0.51 vs 0.15 at FPIR 0.5), and 40% on CLINC150 intent classification (0.73 vs~0.52). We make public our code and protocols https://github.com/Leonid-Erlygin/text_uncertainty.git
Figures & tables
| Task | Gallery Uncertainty | Embedding Uncertainty |
|---|---|---|
| Intent Classification | Semantic overlap between known intent classes (e.g., functionally similar requests lying near decision boundaries). | Ambiguity in user phrasing, slang, or noisy input causing high variance in the embedding position relative to the class center. |
| Authorship Attribution | Stylistic similarity between known authors and impostors, leading to ambiguous decision regions in the embedding space. | Intra-author stylistic variation due to topic shifts or context changes, displacing the embedding from the author’s class center. |
| Topic Classification | Semantic proximity between known topics (e.g., Politics vs. Economy), creating dense regions with high class ambiguity. | Multi-topic documents or vague content leading to dispersed embedding distributions that do not align confidently with any single topic center. |
| Method | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Yahoo Answers | AGNews | DBPedia | |||||||||||||
| AccScr | -0.18 | 0.26 | 0.42 | 0.47 | 0.49 | -0.02 | 0.42 | 0.55 | 0.57 | 0.58 | 0.36 | 0.78 | 0.84 | 0.84 | 0.79 |
| SCF | 0.17 | 0.28 | 0.39 | 0.49 | 0.56 | -0.04 | -0.02 | 0.02 | 0.0 | 0.06 | 0.19 | 0.31 | 0.43 | 0.49 | 0.57 |
| GalUE | -0.18 | 0.26 | 0.42 | 0.47 | 0.49 | -0.02 | 0.42 | 0.55 | 0.58 | 0.59 | 0.48 | 0.78 | 0.84 | 0.84 | 0.8 |
| HolUE | 0.79 | 0.73 | 0.73 | 0.75 | 0.77 | 0.52 | 0.41 | 0.56 | 0.68 | 0.75 | 0.85 | 0.92 | 0.93 | 0.94 | 0.95 |
| Method | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| PAN-20-AV | CLINC150 | |||||||||
| AccScr | -0.1 | 0.38 | 0.5 | 0.36 | 0.39 | 0.15 | 0.39 | 0.49 | 0.56 | 0.59 |
| SCF | 0.1 | 0.13 | 0.15 | 0.18 | 0.15 | 0.52 | 0.49 | 0.48 | 0.47 | 0.48 |
| GalUE | -0.09 | 0.42 | 0.52 | 0.44 | 0.47 | 0.14 | 0.35 | 0.4 | 0.39 | 0.38 |
| HolUE | 0.36 | 0.5 | 0.55 | 0.5 | 0.51 | 0.73 | 0.64 | 0.59 | 0.58 | 0.6 |
Uncertainty Quantification
Uncertainty quantification estimates how reliable predictions and scientific inferences are, and how uncertainty propagates into decisions.
See all 636 papers