TL;DR
Conformal prediction helps bound the error rate of Large Language Model (LLM) outputs, but traditional p-value-based methods break down if you adjust your error tolerance after seeing the data. This paper introduces e-scores, a novel framework based on e-values that provides robust statistical guarantees even when users dynamically adjust their error tolerance levels post-hoc.
What Problem Does This Paper Address?
As LLMs become ubiquitous, mitigating their tendency to hallucinate or generate incorrect answers is critical. Recent frameworks use conformal prediction to filter model responses, guaranteeing that the probability of including an incorrect response stays below a user-defined tolerance level ($\alpha$).
However, these standard approaches rely on p-values (generating "p-scores"). A major limitation of p-values is that the tolerance level $\alpha$ must be fixed before looking at the data. In practice, users naturally want to act adaptively: if they see a model outputting highly confident steps, they might want to tighten their tolerance post-hoc (e.g., shifting $\alpha$ from 0.1 to 0.01). Doing this with p-values introduces "p-hacking," which completely invalidates the statistical guarantees. This paper introduces a mathematically rigorous way to allow data-dependent, post-hoc selection of error tolerances for generative models.
Methods
The authors replace p-values with e-values to construct e-scores as a measure of incorrectness.
- E-Score Formulation: They design an e-scoring mechanism (Algorithm 1) that takes an oracle estimator $\hat{o}$ (a reward model or classifier predicting the probability of a response being correct) and evaluates it against a labeled calibration dataset.
- Controlling Size Distortion: Instead of standard error probability, e-scores bound a post-hoc error metric called size distortion (the expected ratio of observing an error to the user's chosen post-hoc tolerance level). The authors prove mathematically that the expected size distortion for e-scores is always $\le 1$, regardless of how the user manipulates $\alpha$ after seeing the data.
- Combining E-Scores: The paper outlines three distinct ways to transform oracle probabilities into e-scores based on different ranges. Crucially, because e-values can be safely averaged, the authors introduce a robust "combined e-score" that aggregates these variants without losing statistical validity.
- Computational Efficiency: Unlike p-scores, which require sorting and ranking test samples against calibration data for every single query (linear time complexity per test pair), e-scores compute an amortized sum over the calibration data just once, making them significantly faster and cheaper at test time.
Datasets
The authors evaluated their approach across two distinct use-cases using established benchmarks:
- ProcessBench: A benchmark for step-by-step mathematical reasoning containing problems from GSM8K, MATH, OlympiadBench, and OmniMATH. The authors used process reward models (Qwen2.5-Math-7B-PRM800K and Math-Shepherd-PRM-7B) as oracle estimators to score multi-step solutions.
- UltraFeedback: A fine-grained preference dataset. The authors leveraged the Evol-Instruct subset (to test helpfulness and instruction-following constraints) and the TruthfulQA subset (to test honesty and truthfulness constraints), utilizing the UltraRM reward model as their oracle.
Key Insights and Ideas
- Immunity to P-Hacking: The core "aha moment" is leveraging the expectation-bounded nature of e-values ($\mathbb{E}[E] \le 1$) rather than the probability-bounded nature of p-values. This fundamental statistical shift makes e-scores completely safe for interactive, data-dependent decision-making.
- Granular Error Tracking: For multi-step reasoning (like Chain-of-Thought), errors cascade. E-scores excel at pinpointing the exact sub-response where a model derails, showing low scores for correct early steps and spiking immediately when an error occurs.
- The Conservatism Trade-off: To guarantee safety under any arbitrary post-hoc choice a user might make, e-scores are inherently more conservative than p-scores. They prioritize maintaining high precision over high recall when strict thresholds are applied.
Key Results
- Flawless Size Distortion Bounding: Across all mathematical and property-constraint tasks, e-scores successfully kept empirical size distortion below the theoretical limit of 1. Conversely, p-scores failed dramatically under post-hoc selection, yielding size distortions up to 7x to 9x higher than allowed.
- Valid Error Control: Under post-hoc strategies like Max-Constrained Adaptive $\alpha$ and Fractional Inclusion, the observed error rate for e-scores consistently remained below or equal to the user's data-dependent tolerance level.
- Preserved Predictive Power: The precision-recall curves of e-scores closely overlap with those of p-scores, demonstrating that moving to an e-value framework provides post-hoc safety without sacrificing the underlying performance of the oracle model.
Limitations and Future Work
- Oracle Dependency: While the statistical guarantees of e-scores always hold true, their practical utility (e.g., precision and recall) heavily depends on the quality of the underlying oracle estimator. A weak reward model will result in overly conservative bounds. Future work includes training application-specific oracle estimators to sharpen e-score performance.
- Alternative Post-Hoc Metrics: This work focuses primarily on size distortion as the post-hoc error metric. The authors note that other candidate notions of post-hoc error exist and warrant future investigation to see how they align with different generative use cases.
Summary updated