Learning to Reject with a Fixed Predictor: Application to Decontextualization

Christopher Mohri, Daniel Andor, Eunsol Choi, Michael Collins

Abstract

We study the problem of classification with a reject option for a fixed predictor, applicable in natural language processing. We introduce a new problem formulation for this scenario, and an algorithm minimizing a new surrogate loss function. We provide a complete theoretical analysis of the surrogate loss function with a strong $H$-consistency guarantee. For evaluation, we choose the decontextualization task, and provide a manually-labelled dataset of 2,000 examples. Our algorithm significantly outperforms the baselines considered, with a ~25% improvement in coverage when halving the error rate, which is only ~3% away from the theoretical limit.

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities across various Natural Language Processing (NLP) tasks. However, they remain susceptible to "hallucinations"—the generation of factually incorrect or nonsensical content. In high-stakes environments such as healthcare or customer service, providing an incorrect answer is often more detrimental than providing no answer at all.

To address this, the concept of selective classification (or "learning to reject") allows a model to abstain from answering when its confidence is low. Traditional approaches often assume that the predictor and the rejector (the component deciding to abstain) can be trained simultaneously. However, in the era of massive, multi-billion parameter models, retraining the base predictor is frequently computationally prohibitive. This research focuses on the "Fixed Predictor" problem: developing an optimal rejection layer for a pre-trained model that cannot be modified.

Methodology: A New Surrogate Loss for Rejection

The authors propose a two-step framework. First, a fixed pre-trained model (e.g., MT5 XXL) generates outputs. Second, a separate, smaller rejector function $r(x, f(x))$ is trained to predict the correctness of the model's output based on the input $x$ and the generated output $f(x)$.

The Innovation: Convex Surrogate Loss

The primary challenge in learning to reject is that the ideal loss function is a non-convex step function, making it NP-hard to optimize. To overcome this, the authors introduce a novel convex surrogate loss function.

The proposed surrogate loss function features a built-in threshold at zero, facilitating more stable optimization compared to standard cross-entropy methods.

Key features of this loss function include:

  • Built-in Threshold: Unlike standard cross-entropy, which requires post-hoc tuning of a confidence threshold, this loss function incorporates a built-in threshold of zero.
  • Theoretical $H$-consistency: The authors prove a strong $H$-consistency bound, providing a mathematical guarantee that minimizing this surrogate loss directly minimizes the true rejection error, even when restricted to specific function classes like neural networks.

Experimental Setup: The Decontextualization Task

The method was evaluated on decontextualization, the task of rewriting a sentence so it is self-contained without its original context. This task is particularly challenging because traditional metrics like BLEU or ROUGE are often inadequate for judging semantic correctness.

To facilitate rigorous evaluation, the researchers created a new manually labeled dataset. They annotated 2,000 examples of model outputs as 'yes' (correct), 'no' (incorrect), or 'title' (correct but requiring information from the page title). This dataset serves as a significant contribution for future research into reliable text generation.

Key Results and Insights

The proposed algorithm demonstrated substantial improvements over standard baselines such as MaxProb (using the model's internal probability) and standard Cross-Entropy:

  • Significant Coverage Gains: When tasked with halving the error rate (reducing it from 11% to approximately 5%), the new algorithm maintained 90.6% coverage. In contrast, the best baseline achieved only ~64.4% coverage at the same error level.
  • Near-Optimal Performance: The results were within ~3% of the theoretical limit—the performance achievable by a perfect oracle.
  • Stability and Trustworthiness: The method exhibited lower variance across different data splits, suggesting higher reliability for real-world deployment compared to traditional thresholding methods.

Conclusion

This work highlights the necessity of moving beyond simple calibration metrics like MaxProb. By treating the LLM as a "black box" and training a dedicated rejector that analyzes output content, the authors provide a practical solution for enhancing the reliability of proprietary or frozen models. While the current approach requires human-labeled data for training the rejector, the significant gains in coverage and theoretical grounding make it a compelling framework for high-stakes NLP applications. Future work may explore lighter-weight rejectors and broader application to open-ended generation tasks.

Summary updated

BibTeX
@inproceedings{mohri2024learning,
  author = {Christopher Mohri and Daniel Andor and Eunsol Choi and Michael Collins},
  title = {{Learning to Reject with a Fixed Predictor: Application to Decontextualization}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=dCHbFDsCZz},
}
Figure