ELVIA.Evidence Atlas
ICML 2025ELVIA assessment Major

FactTest: Factuality Testing in Large Language Models with Finite-Sample and Distribution-Free Guarantees

Fan Nie, Xiaotian Hou, Shuhang Lin, James Zou, Huaxiu Yao, Linjun Zhang

ELVIA analysis

Independent review pending

The distribution-free Type I calibration survives the checks performed here. The power analysis, however, assumes a posterior-threshold characterization of the optimal rule that fails when the true posterior has atoms, even if the estimated score is continuous. This invalidates a step supporting a central theoretical contribution under the stated generality. A separate example shows why a quantile envelope for rejection sampling does not inherit the exact covariate-shift guarantee. The released scripts also omit a small-sample threshold branch and interchange two metric labels. None of these checks establishes that the reported benchmark measurements are false.

Problem 1. the optimal posterior threshold need not exist

Major
Evidence and reasoning

Problem statement

Section 2.3 asserts optimal deterministic rule always has strict posterior-threshold form; proof of Theorem 2.2 uses exact posterior tails. XX uniform, YY independent fair Bernoulli, continuous approximate score .5.5+epsilon(2X-1), HH identity.

Proof

Section 2.3 (p. 3) asserts that an optimizer over deterministic measurable classifiers has the form fα∗(x)=1{η(x)>τα},η(x)=P(Y=1∣X=x).f_\alpha^*(x)=\mathbf1\{\eta(x)>\tau_\alpha\}, \qquad \eta(x)=P(Y=1\mid X=x). Theorem 2.2 assumes a continuous estimated score η^(X)\widehat\eta(X) under P0.P_0. This does not imply that η(X)\eta(X) has no atoms. The proof on p. 14 subsequently uses the exact equalities P0(η>τα)=αP_0(\eta>\tau_\alpha)=\alpha and P0(η>τα′)=α′.P_0(\eta>\tau_{\alpha'})=\alpha'.

Here is a counterexample to this characterization. Take XX uniform on [0,1],[0,1], with YY an independent fair Bernoulli variable. Thus P0=P1P_0=P_1 is uniform and η≡1/2.\eta\equiv1/2. For any 0<α<1,0<\alpha<1, every strict threshold of η\eta either accepts everyone, violating the constraint, or accepts nobody, with R1=1.R_1=1. Yet f(x)=1{x≤α},R0(f)=α,R1(f)=1−αf(x)=\mathbf1\{x\le\alpha\},\qquad R_0(f)=\alpha,\quad R_1(f)=1-\alpha is admissible and strictly better. In fact every admissible rule has power at most α,\alpha, so this rule is optimal. Taking HH to be the identity and η^(x)=1/2+ϵη(2x−1)\widehat\eta(x)=1/2+\epsilon_\eta(2x-1) supplies a continuous score and the required uniform approximation for arbitrarily small positive ϵη.\epsilon_\eta.

The difficulty occurs before the bound can be evaluated: the stated optimal-threshold parameters are not defined as claimed for this distribution. This is not presented as a numerical counterexample satisfying an additional, implicit assumption that those exact posterior quantiles already exist. Rather, it disproves the asserted general characterization and identifies the missing hypothesis in the power theorem and proof. Sample-size conditions and continuity of the estimated score do not remove the posterior atom.

A restriction ensuring exact posterior tail probabilities at α\alpha and α′\alpha' would eliminate this particular obstruction. Alternatively, a boundary-selection or randomized NP rule needs an explicit definition and a new excess-risk argument. The full repaired power bound is not certified here. The finding is Major because the defective step supports the paper’s central Type II guarantee. The Type I theorem, which uses arbitrary scores rather than posterior optimality, remains intact.

□\square

Possible revision

State exact posterior boundary assumptions or redo analysis with boundary selection. Full repaired bound unverified.

Problem 2. Released threshold selection implements all-sample-size construction.

Minor
Evidence and reasoning

Problem statement

Released threshold selection implements all-sample-size construction. n0n_0=1010 α\alpha=.05.05 δ\delta=.01,.01, sorted ten scores.

Proof

The stored-score branch in `calibration/HotpotQA/calculate_vanilla_threshold.py`, lines 8585–101,101, accumulates the binomial upper tail downward and reads `certainties[k]` when the sum first exceeds δ.\delta. In the ordinary interior case this indexing corresponds correctly to T(k+1).T_{(k+1)}. But for n0=10,α=.05,δ=.01,n_0=10,\alpha=.05,\delta=.01, the first term is .9510=.598737>δ:.95^{10}=.598737>\delta: the branch immediately requests index 1010 of a ten-element array. The paper instead prescribes the sentinel ∞.\infty. The loop also excludes k=1,0,k=1,0, so it is not a complete implementation for all parameter regimes. This is a static control-flow demonstration, not an executed author-code failure. An explicit full-domain selection with the sentinel repairs the identified boundary case; no full implementation certification is claimed. This release-only finding is Minor.

□\square

Possible revision

Handle k=n0+11 sentinel explicitly and enumerate entire domain.

Problem 3. Evaluation labels identify FPR and FNR.

Minor
Evidence and reasoning

Problem statement

Evaluation labels identify FPR and FNR. TP3 FP1 TN4 FN2.

Proof

The final two print statements in `evaluation/HotpotQA/eval.py` label FP/(FP+TN)\mathrm{FP}/(\mathrm{FP}+\mathrm{TN}) as `fnr`, and FN/(TP+FN)\mathrm{FN}/(\mathrm{TP}+\mathrm{FN}) as `fpr`. For (TP,FP,TN,FN)=(3,1,4,2),(\mathrm{TP},\mathrm{FP},\mathrm{TN},\mathrm{FN})=(3,1,4,2), the true rates are .2.2 and .4,.4, respectively, but those labels are interchanged. Relabeling the outputs is a local correction. The inspected comparator itself is correctly strict, preserving tie conservatism. This is Minor; the frozen release alone does not prove which script or post-processing generated the published tables.

□\square

Possible revision

Swap printed labels and independently verify table-producing version.

Problem 4. Whether the disclosed practical estimated-ratio/percentile-envelope implementation inherits the exact shift guarantee.

Needs Evidence
Evidence and reasoning

Problem statement

Whether the disclosed practical estimated-ratio/percentile-envelope implementation inherits the exact shift guarantee. Exact oracle conditional ratios but percentile rather than global envelope; covariate shift attainable with independent Y.

Verification

Theorem 3.1 (p. 4) explicitly assumes the exact conditional density ratio w=dP0/dP~0w=dP_0/d\widetilde P_0 and a global upper bound B.B. Under those assumptions, accepting each source sample with probability w/Bw/B indeed gives the target conditional law; the proof is sound. Section 5.4 (p. 8) instead estimates ww and takes a 90th-percentile envelope. Appendix C.4 specifies logistic-regression estimation, without an error bound. These are disclosed practical choices, but they do not retain the theorem’s guarantee.

Even with an oracle ratio, clipping at a quantile changes the accepted law to a density proportional to min⁡(w,B)\min(w,B) relative to P~0.\widetilde P_0. For a two-stratum example, set P~0(E)=.001,P0(E)=.09,w(E)=90,w(Ec)=.91/.999.\widetilde P_0(E)=.001,\quad P_0(E)=.09,\quad w(E)=90,\quad w(E^c)=.91/.999. The 90th percentile under either source or target is B=.91/.999.B=.91/.999. Every source point is then accepted because both ratios are at least B,B, so the retained distribution is the source, not the target. Choose score 1E\mathbf1_E and n0=100,α=.05,δ=.01.n_0=100,\alpha=.05,\delta=.01. With probability .999100=.904792,.999^{100}=.904792, the calibration sample contains no point of EE and the calibrated threshold is zero. The target FPR is then .09>.05..09>.05. This obeys covariate shift by taking YY independent of the stratum in both domains. If points above BB are discarded instead of clipped, the rare target stratum is also lost.

This example refutes transfer of the exact guarantee to that quantile-envelope rule, not Theorem 3.1. It does not reproduce ParaRel-OOD or establish that its observed curve is incorrect. Section 5.4 explicitly presents these choices and conclusions as an experimental evaluation. Its wording can therefore reasonably be read as a statement about the displayed empirical curves, rather than a claim that the estimated/truncated implementation satisfies Theorem 3.1. The counterexample establishes a limit on transferring that theorem; it does not establish a false empirical claim in the paper. This is a scope clarification, with any stronger practical guarantee or historical violation requiring further evidence. A general guarantee for this implementation would need a ratio-error and truncation correction.

Possible revision

Keep the empirical reading; a stronger guarantee would require ratio-error/truncation analysis, but no demonstrated claim-level correction is imposed.

Supporting record & provenance

Work status

Current version

Version 1

Minhao Liu · Initial report · Version 1

Independent review pending

Original claim and review scope

Notably, we prove that FACTTEST also ensures strong Type II error control under mild conditions and can be extended to maintain its effectiveness when covariate shifts exist.

Published ICML 2025 proceedings PDF (PMLR 267); PDF p. 1, Abstract

Actual review scope

The recorded inspection concerns these source locations: Physical pp. 3–4; proof p. 14, part 2.; p. 8 §5.4, p. 17 C.4 versus p. 4 Theorem 3.1.; calibration/HotpotQA/calculate_vanilla_threshold.py lines85–101; p. 3 sentinel.; evaluation/HotpotQA/eval.py final print statements.

Submit an author revisionContribute a review