English

Domain-Shift-Aware Conformal Prediction for Large Language Models

Machine Learning 2025-10-08 v1 Artificial Intelligence Computation and Language Machine Learning Applications

Abstract

Large language models have achieved impressive performance across diverse tasks. However, their tendency to produce overconfident and factually incorrect outputs, known as hallucinations, poses risks in real world applications. Conformal prediction provides finite-sample, distribution-free coverage guarantees, but standard conformal prediction breaks down under domain shift, often leading to under-coverage and unreliable prediction sets. We propose a new framework called Domain-Shift-Aware Conformal Prediction (DS-CP). Our framework adapts conformal prediction to large language models under domain shift, by systematically reweighting calibration samples based on their proximity to the test prompt, thereby preserving validity while enhancing adaptivity. Our theoretical analysis and experiments on the MMLU benchmark demonstrate that the proposed method delivers more reliable coverage than standard conformal prediction, especially under substantial distribution shifts, while maintaining efficiency. This provides a practical step toward trustworthy uncertainty quantification for large language models in real-world deployment.

Keywords

Cite

@article{arxiv.2510.05566,
  title  = {Domain-Shift-Aware Conformal Prediction for Large Language Models},
  author = {Zhexiao Lin and Yuanyuan Li and Neeraj Sarna and Yuanyuan Gao and Michael von Gablenz},
  journal= {arXiv preprint arXiv:2510.05566},
  year   = {2025}
}

Comments

26 pages

R2 v1 2026-07-01T06:20:33.053Z