Confidence in Structured-Prediction Using Confidence-Weighted Models

Avihai Mejer, Koby CrammerEMNLP 2010

Abstract

This paper extends Confidence-Weighted (CW) learning—a fast, online discriminative framework—to structured prediction tasks such as sequence labeling. The authors introduce novel methods to extract per-word confidence scores from these non-probabilistic models, demonstrating that these estimates are highly reliable for error detection and significantly boost the efficiency of active learning. Evaluation across multiple languages and tasks shows that these models rival probabilistic alternatives like Conditional Random Fields (CRFs) in both accuracy and calibration.

Introduction

Structured prediction is a cornerstone of Natural Language Processing (NLP), used for tasks like Named Entity Recognition (NER) and Noun Phrase (NP) chunking. Historically, practitioners have faced a trade-off between probabilistic models (like CRFs), which provide clear confidence scores but are slow to train, and discriminative online models (like the Perceptron), which are fast but offer no measure of uncertainty. This research bridges that gap by deriving reliable confidence estimates from fast, discriminative online learning algorithms.

Methodology

The authors build upon Confidence-Weighted (CW) and AROW (Adaptive Regularization of Weight-vectors) algorithms. Unlike standard models that maintain a single weight vector, these maintain a Gaussian distribution over weights (defined by a mean $\mu$ and a covariance matrix $\Sigma$). To estimate confidence for specific labels, several strategies are proposed:

  • KD-PC (K-Draws by Parameters Confidence): The model samples $K$ weight vectors from its Gaussian distribution. The confidence for a word is the fraction of times a specific label is chosen across these $K$ Viterbi runs.
  • KD-Fixed: A simplified version using a fixed noise level (identity matrix) instead of the learned covariance, allowing even simple models like the Perceptron to generate scores.
  • K-best Viterbi (KBV & WKBV): Confidence is calculated based on label frequency within the top $K$ highest-scoring sequences from a single Viterbi run.
  • Delta: A margin-based baseline measuring the score difference between the top two label candidates.

Experimental Results

The methods were evaluated on four standard benchmarks: NP Chunking (CoNLL-2000) and NER for English, Spanish, and Dutch (CoNLL-2002/2003).

Precision-Recall curves across four sequence labeling tasks, comparing CW and AROW against standard online baselines.

As shown in the Precision-Recall curves, the adapted CW and AROW models achieve F-measures comparable to or better than standard online baselines like the Averaged Perceptron and Passive-Aggressive (PA) algorithms.

Beyond raw accuracy, the proposed confidence measures were tested for error detection (ranking likely mislabeled words) and calibration (how well predicted confidence matches actual accuracy).

Comparison of Average Precision (AvgP) for error detection and Root Mean Squared Error (RMSE) for confidence calibration across different models and tasks.

The results indicate that the KD-PC and KD-Fixed methods significantly outperform the margin-based "Delta" method and rival the performance of CRFs. Specifically, the KD-PC method showed excellent calibration; its Root Mean Squared Error (RMSE) in confidence was consistently low, meaning its predicted probabilities closely tracked actual error rates.

Discussion and Key Insights

A primary insight of this work is that the uncertainty captured in the covariance matrix $\Sigma$ during training reflects real-world model doubt. By using sampling (KD-PC) at inference time, the authors effectively transform a discriminative model into a probabilistic one.

This reliability has immediate applications in Active Learning. Because these models can pinpoint exactly where they are confused, they can be used to select the most informative sentences for human labeling, resulting in much steeper learning curves than random selection.

Limitations

While training remains fast, generating confidence scores via KD-PC requires running the Viterbi algorithm $K$ times (e.g., $K=50$) per sentence, which increases inference latency. Additionally, the current implementation uses a diagonal covariance matrix to handle millions of features, potentially ignoring useful correlations between features that could further refine confidence estimates.

Summary updated

BibTeX
@inproceedings{mejer2010confidence,
  author = {Avihai Mejer and Koby Crammer},
  title = {{Confidence in Structured-Prediction Using Confidence-Weighted Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2010},
}
Figure