Beyond Surface Statistics: Robust Conformal Prediction for LLMs via Internal Representations

Yanli Wang, Peng Kuang, Xiaoyu Han, Kaidi Xu, Haohan Wang
4/17/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Large language models are increasingly deployed in settings where reliability matters, yet output-level uncertainty signals such as token probabilities, entropy, and self-consistency can become brittle under calibration--deployment mismatch. Conformal prediction provides finite-sample validity under exchangeability, but its practical usefulness depends on the quality of the nonconformity score. We propose a conformal framework for LLM question answering that uses internal representations rather than output-facing statistics: specifically, we introduce Layer-Wise Information (LI) scores, which measure how conditioning on the input reshapes predictive entropy across model depth, and use them as nonconformity scores within a standard split conformal pipeline. Across closed-ended and open-domain QA benchmarks, with the clearest gains under cross-domain shift, our method achieves a better validity--efficiency trade-off than strong text-level baselines while maintaining competitive in-domain reliability at the same nominal risk level. These results suggest that internal representations can provide more informative conformal scores when surface-level uncertainty is unstable under distribution shift.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2026beyond,
  title  = {Beyond Surface Statistics: Robust Conformal Prediction for LLMs via Internal Representations},
  author = {Yanli Wang and Peng Kuang and Xiaoyu Han and Kaidi Xu and Haohan Wang},
  year   = {2026},
  eprint = {2604.16217},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.16217v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.16217.svg)](https://codeofpaper.com/paper/2604.16217)

Discussion