Table of Contents
Fetching ...

Uncertainty Quantification for Named Entity Recognition via Full-Sequence and Subsequence Conformal Prediction

Matthew Singer, Srijan Sengupta, Karl Pazdernik

TL;DR

This work tackles the lack of uncertainty quantification in Named Entity Recognition by introducing a general, conformal-prediction-based framework that produces prediction sets over full-sentence labelings with finite-sample coverage at level $1-\alpha$. By applying inductive conformal prediction to a CRF-based NER model, the authors generate calibrated, context-aware prediction sets that can be tailored to unconditional or class-conditional coverage, and they extend the approach to subsequence-level and integrated sentence-level predictions. Key innovations include three baseline non-conformity scores, stratification by language and length, and multiple non-conformity score hybrids (Naive, Conditional, and RAPS) to control set efficiency; these are complemented by subsequence conformal prediction and an integrated framework with Šidák correction to manage family-wise error. Empirical results on CoNLL++ and WikiNEuRal across multiple base models demonstrate valid coverage, improved calibration under stratification, and efficient prediction sets, highlighting practical benefits for multilingual and long-text NER. The framework thus provides a principled, scalable path toward uncertainty-aware NLP pipelines with robust downstream applicability.

Abstract

Named Entity Recognition (NER) serves as a foundational component in many natural language processing (NLP) pipelines. However, current NER models typically output a single predicted label sequence without any accompanying measure of uncertainty, leaving downstream applications vulnerable to cascading errors. In this paper, we introduce a general framework for adapting sequence-labeling-based NER models to produce uncertainty-aware prediction sets. These prediction sets are collections of full-sentence labelings that are guaranteed to contain the correct labeling with a user-specified confidence level. This approach serves a role analogous to confidence intervals in classical statistics by providing formal guarantees about the reliability of model predictions. Our method builds on conformal prediction, which offers finite-sample coverage guarantees under minimal assumptions. We design efficient nonconformity scoring functions to construct efficient, well-calibrated prediction sets that support both unconditional and class-conditional coverage. This framework accounts for heterogeneity across sentence length, language, entity type, and number of entities within a sentence. Empirical experiments on four NER models across three benchmark datasets demonstrate the broad applicability, validity, and efficiency of the proposed methods.

Uncertainty Quantification for Named Entity Recognition via Full-Sequence and Subsequence Conformal Prediction

TL;DR

This work tackles the lack of uncertainty quantification in Named Entity Recognition by introducing a general, conformal-prediction-based framework that produces prediction sets over full-sentence labelings with finite-sample coverage at level . By applying inductive conformal prediction to a CRF-based NER model, the authors generate calibrated, context-aware prediction sets that can be tailored to unconditional or class-conditional coverage, and they extend the approach to subsequence-level and integrated sentence-level predictions. Key innovations include three baseline non-conformity scores, stratification by language and length, and multiple non-conformity score hybrids (Naive, Conditional, and RAPS) to control set efficiency; these are complemented by subsequence conformal prediction and an integrated framework with Šidák correction to manage family-wise error. Empirical results on CoNLL++ and WikiNEuRal across multiple base models demonstrate valid coverage, improved calibration under stratification, and efficient prediction sets, highlighting practical benefits for multilingual and long-text NER. The framework thus provides a principled, scalable path toward uncertainty-aware NLP pipelines with robust downstream applicability.

Abstract

Named Entity Recognition (NER) serves as a foundational component in many natural language processing (NLP) pipelines. However, current NER models typically output a single predicted label sequence without any accompanying measure of uncertainty, leaving downstream applications vulnerable to cascading errors. In this paper, we introduce a general framework for adapting sequence-labeling-based NER models to produce uncertainty-aware prediction sets. These prediction sets are collections of full-sentence labelings that are guaranteed to contain the correct labeling with a user-specified confidence level. This approach serves a role analogous to confidence intervals in classical statistics by providing formal guarantees about the reliability of model predictions. Our method builds on conformal prediction, which offers finite-sample coverage guarantees under minimal assumptions. We design efficient nonconformity scoring functions to construct efficient, well-calibrated prediction sets that support both unconditional and class-conditional coverage. This framework accounts for heterogeneity across sentence length, language, entity type, and number of entities within a sentence. Empirical experiments on four NER models across three benchmark datasets demonstrate the broad applicability, validity, and efficiency of the proposed methods.
Paper Structure (45 sections, 8 theorems, 92 equations, 10 figures, 20 tables, 2 algorithms)

This paper contains 45 sections, 8 theorems, 92 equations, 10 figures, 20 tables, 2 algorithms.

Key Result

Theorem 1

Let $E$ be the sample space for all possible NER inputs and outputs $(\mathbf{x},\mathbf{y})$. Consider a partition of $E$ into $m$ mutually exclusive and exhaustive subsets such that $\bigcup_{j=1}^m E_j = E, \mathbb{P}(\bigcup_{j=1}^m E_j) = 1$ and $\forall j \neq k, E_j \cap E_k = \varnothing, \m is well calibrated for observations belonging to each subset.

Figures (10)

  • Figure 1: NER BiLSTM-CRF model architecture. $w_{i,1}$, $x_{i,1}$, and $y_{i,1}$ denote the $j^{th}$ word, word-embedding, and predicted label of the $i^{th}$ observation, respectively. CRF transmission and emission feature functions $\phi(Y_{j-1}, Y_j)$ and $\phi^*(X_j, Y_j)$ are defined in Section \ref{['sec:CRF']}.
  • Figure 2: Overall calibration of full-sequence prediction sets for nc1, nc2, and nc3 when computed with the Babelscape model on the multilingual WikiNEuRal benchmark dataset. The coverage depicted is calculated utilizing the nc1 nonconformity score and displays the 95% confidence interval produced by 20 iterations.
  • Figure 3: Initial calibration per sentence-length bin without adjustments for the Babelscape model on the multilingual WikiNEuRal dataset. The coverage depicted is calculated utilizing the nc1 nonconformity score and displays the 95% confidence interval produced by 20 iterations.
  • Figure 4: Initial calibration per language without adjustments for the Babelscape model on the multilingual WikiNEuRal dataset. The coverage depicted is calculated utilizing the nc1 nonconformity score and displays the 95% confidence interval produced by 20 iterations.
  • Figure 5: Stratified coverage across all languages (TOP) and sentence length bins (BOTTOM) in the multilingual WikiNEuRal benchmark dataset. The coverage depicted is calculated utilizing the conditional non-conformity score with nc1 and displays the 95% confidence interval produced by 20 iterations.
  • ...and 5 more figures

Theorems & Definitions (15)

  • Theorem 1
  • Proposition 1
  • proof
  • Theorem
  • proof
  • Theorem 2
  • proof
  • Theorem 3
  • proof
  • Theorem 4
  • ...and 5 more