Skip to main content
QUICK REVIEW

[Paper Review] Uncertainty in Natural Language Processing: Sources, Quantification, and Applications

Mengting Hu, Zhen Zhang|arXiv (Cornell University)|Jun 5, 2023
Explainable Artificial Intelligence (XAI)Computer Science11 citations
TL;DR

A comprehensive survey of uncertainty in NLP, outlining sources across input, system, and output, surveying estimation methods, and reviewing applications and challenges.

ABSTRACT

As a main field of artificial intelligence, natural language processing (NLP) has achieved remarkable success via deep neural networks. Plenty of NLP tasks have been addressed in a unified manner, with various tasks being associated with each other through sharing the same paradigm. However, neural networks are black boxes and rely on probability computation. Making mistakes is inevitable. Therefore, estimating the reliability and trustworthiness (in other words, uncertainty) of neural networks becomes a key research direction, which plays a crucial role in reducing models' risks and making better decisions. Therefore, in this survey, we provide a comprehensive review of uncertainty-relevant works in the NLP field. Considering the data and paradigms characteristics, we first categorize the sources of uncertainty in natural language into three types, including input, system, and output. Then, we systemically review uncertainty quantification approaches and the main applications. Finally, we discuss the challenges of uncertainty estimation in NLP and discuss potential future directions, taking into account recent trends in the field. Though there have been a few surveys about uncertainty estimation, our work is the first to review uncertainty from the NLP perspective.

Motivation & Objective

  • Identify and categorize the sources of uncertainty in NLP across input, system, and output stages.
  • Review existing uncertainty quantification methods used in NLP and relate them to model characteristics.
  • Summarize current applications of uncertainty estimation in NLP and discuss challenges and future directions.

Proposed method

  • Classify uncertainty sources by NLP system stages (input, system, output) and discuss aleatoric vs epistemic uncertainty.
  • Review three main uncertainty estimation approaches: calibration-based, sampling-based, and distribution-based methods.
  • Outline typical evaluation metrics and discuss calibration techniques such as Softmax-based measures, temperature scaling, label smoothing, and conformal prediction.
  • Synthesize applications in data filtering/action guidance, performance/efficiency improvements, and output quality assessment.
Figure 1: An illustration of NLP systems applied in the medical domain.
Figure 1: An illustration of NLP systems applied in the medical domain.

Experimental results

Research questions

  • RQ1What are the main sources of uncertainty in NLP systems at input, system, and output stages?
  • RQ2Which uncertainty estimation techniques are most applicable to NLP, and how do they relate to model design and task type?
  • RQ3How are uncertainty estimation methods applied across NLP tasks such as classification, sequence labeling, generation, and regression?
  • RQ4What are the key challenges and future directions for uncertainty estimation in NLP with modern PLMs?

Key findings

  • Uncertainty in NLP arises from intertwined input ambiguity, system design, and output complexity, requiring combined consideration of aleatoric and epistemic components.
  • Uncertainty estimation in NLP can be grouped into calibration-based, sampling-based, and distribution-based methods, each with distinct advantages and challenges.
  • Calibration methods like Softmax responses, entropy, temperature scaling, label smoothing, and conformal prediction help quantify and potentially correct confidence estimates.
  • Applications of uncertainty include data filtering and action guidance, improving system performance/efficiency, and assessing output quality and trustworthiness.
  • The emergence of large pretrained models introduces new uncertainty challenges related to model size, training data biases, and hyperparameter sensitivity.
Figure 2: Illustration of sources of uncertainty. The figure includes the sources of uncertainty in the interaction of the NLP system. We start from the three processes of Input , System , and Output to analyze the possible causes of each uncertainty. It is worth noting that these three parts are in
Figure 2: Illustration of sources of uncertainty. The figure includes the sources of uncertainty in the interaction of the NLP system. We start from the three processes of Input , System , and Output to analyze the possible causes of each uncertainty. It is worth noting that these three parts are in

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.