Uncertain Natural Language Inference

Tongfei Chen, Zhengping Jiang, Keisuke Sakaguchi, Benjamin Van Durme

Abstract

We introduce Uncertain Natural Language Inference (UNLI), a refinement of Natural Language Inference (NLI) that shifts away from categorical labels, targeting instead the direct prediction of subjective probability assessments. We demonstrate the feasibility of collecting annotations for UNLI by relabeling a portion of the SNLI dataset under a probabilistic scale, where items even with the same categorical label differ in how likely people judge them to be true given a premise. We describe a direct scalar regression modeling approach, and find that existing categorically labeled NLI data can be used in pre-training. Our best models approach human performance, demonstrating models may be capable of more subtle inferences than the categorical bin assignment employed in current NLI tasks.

Introduction

In Natural Language Processing (NLP), Natural Language Inference (NLI) is typically framed as a three-way classification problem: does a premise entail, contradict, or remain neutral toward a hypothesis? While this categorical approach has driven significant progress, it often fails to capture the inherent uncertainty of human language. Human reasoning is rarely binary; we frequently perceive degrees of likelihood rather than absolute truths.

Chen et al. propose Uncertain Natural Language Inference (UNLI) to address this limitation. By moving from discrete bins to continuous subjective probability scores, the authors aim to build models that understand the subtle nuances of language—distinguishing, for example, between a "certainty" and a "strong possibility."

The u-SNLI Dataset

To facilitate this new task, the researchers created u-SNLI (Uncertain SNLI) by relabeling a subset of the Stanford Natural Language Inference (SNLI) dataset. They utilized the Efficient Annotation of Scalar Labels (EASL) framework, where annotators used a slider bar to indicate the likelihood of a hypothesis given a premise.

Examples of premise-hypothesis pairs with human-annotated likelihood sliders.

The resulting dataset contains 61,597 pairs. To account for the "certainty effect"—where humans are more sensitive to changes near the boundaries of 0 and 1—the raw slider scores were transformed using a scaled logistic function to map them to a final [0, 1] range.

Modeling and Results

The authors modeled UNLI as a regression task using BERT. Instead of a classification head, they employed a sigmoid-activated linear layer to output a scalar value, training the model with binary cross-entropy loss.

A key finding was the utility of pre-training on the original, categorically-labeled SNLI. By mapping categorical labels to their mean observed probabilities in u-SNLI (Entailment ~0.92, Neutral ~0.42, Contradiction ~0.02), the model could leverage the massive scale of the original dataset before fine-tuning on the more precise scalar labels.

Performance and Label "Leakage"

The best BERT-based model achieved a Pearson correlation (r) of 0.6271, nearing the human-to-human correlation of 0.6978. Analysis of the data revealed that traditional categorical labels are often "leaky." For instance, pairs labeled "Neutral" in the original SNLI spanned nearly the entire probability spectrum in u-SNLI.

Distribution of UNLI scores across categorical labels, showing significant overlap and spread within traditional bins.

This overlap demonstrates that "Neutral" often serves as a catch-all for any inference that isn't a 100% certainty or a direct contradiction, masking significant variation in human judgment. While models are approaching human performance in predicting these probabilities, challenges remain in capturing "common sense" leaps that humans find intuitive, such as assuming a couple at a bar are on a date.

Conclusion

UNLI represents a shift toward more realistic modeling of human inference. By treating inference as a probabilistic assessment rather than a rigid classification, researchers can better capture the richness and uncertainty of natural language. The authors suggest that future NLI benchmarks should adopt scalar protocols to move beyond the limitations of categorical bins.

Summary updated

BibTeX
@inproceedings{chen2020uncertain,
  author = {Tongfei Chen and Zhengping Jiang and Keisuke Sakaguchi and Benjamin Van Durme},
  title = {{Uncertain Natural Language Inference}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  url = {https://openreview.net/forum?id=Wzs9OKjZ6ov},
}
Figure