Best-of-N, rejection and sequential search all select before they release. A threshold calibrated on individual images does not control the risk of the image the search ships. SHIP replays the complete deployed policy on held-out prompts and calibrates the release threshold on its actual outputs.
Abstract
Verifier-guided text-to-image systems increasingly use test-time search to select, refine, or stop among multiple candidates, yet release thresholds are often calibrated on individual images. This creates a candidate-to-policy calibration mismatch: search changes both which prompts receive an output and which candidate is released, so candidate-level risk control need not imply control of released-output risk. We formalize this estimand shift through prompt reweighting and within-prompt selection, and introduce SHIP, Selection-aware Held-out calibration of Inference Policies. SHIP runs or replays the complete deployed policy on held-out prompts, evaluates the image it actually releases using an independent target judge, and selects the most permissive threshold whose risk upper bound satisfies a prescribed budget. For replayable policies with a prespecified threshold grid, simultaneous confidence control provides finite-sample validity. Experiments across fixed, sequential, and adaptive T2I inference procedures show that policy-level calibration recovers lower-risk operating points while exposing policy-dependent tradeoffs among risk, coverage, and compute. On GenEval2 with FLUX at N = 16, a pooled-candidate threshold yields released risk 0.310, whereas SHIP reduces it to 0.162. Across 200 cached-stream splits, the fixed-grid certificate has no target crossing. Reliable inference-time scaling therefore requires calibrating the output distribution induced by the complete deployed policy.
Search changes what you calibrate
A release threshold τ gates images on an online selector risk s. Calibration on single candidates controls one random variable. Deployment exposes another.
The loss of one candidate that passes the gate, averaged over all scored images.
The loss of the image the complete search releases, among prompts that receive one.
Conditioning on the prompt shows why they differ (Proposition 1). Search changes the prompt weights from the candidate pass rate to the policy acceptance rate, and it changes the released loss from an average passing candidate to the selected one. At N = 16 the first effect dominates: a hard prompt rarely passes once, but it often passes at least once in sixteen tries.
Candidate risk
What the pooled threshold controls
Prompt weights
95% CI [0.083, 0.133]
Within prompt
95% CI [−0.035, 0.017]
Released risk
Above the 0.30 budget
Move the threshold
Sequential release on 400 held-out GenEval2 prompts with FLUX.1-dev and up to 16 candidates. Both marked thresholds were fitted on 400 separate calibration prompts. Drag on the chart or use the slider.
- Candidate risk
- Released risk, sequential policy
- Budget α = 0.30
Data table
Watch the policy release
Each row is one held-out prompt with its 16 FLUX.1-dev candidates in generation order. The sequential policy releases the first candidate whose selector risk s is at most τ and never generates the rest.
Selector risk s comes from Qwen2.5-VL. The held-out Qwen3-VL judge marks an image as satisfying the prompt when its Soft-TIFA loss is below 0.5. The judge never sees the gate.
Method
One exchangeable unit is one prompt together with its complete policy rollout. SHIP replays the rollout offline at every candidate threshold and deploys the same rule online.
Atomic verification
Each prompt becomes yes/no questions about objects, counts, attributes, positions and actions. The selector risk is one minus the geometric mean of Qwen2.5-VL answer probabilities. An independent Qwen3-VL judge gives the loss used offline.
Policy replay
On calibration prompts, run the exact release rule at every threshold and record the loss of what it releases. The unit is the prompt, so dependent candidates of one prompt never count as separate observations.
Sequential stopping
Online, generate in order and release the first candidate whose selector risk is at most τ*. Easy prompts stop early. Hard prompts use the full budget and abstain.
The calibration unit decides the released risk
GenEval2 with FLUX.1-dev, 400 calibration and 400 test prompts, α = 0.30, δ = 0.10. Bands show 95% prompt-bootstrap intervals.
Sequential first-pass release
Released risk vs. candidate budget N
- Pooled candidates
- One per prompt
- SHIP
Best-of-N with rejection
Released risk vs. candidate budget N
- Pooled candidates
- One per prompt
- SHIP
Data table
Pooling misses the shift
The pooled threshold's released risk grows from 0.234 to 0.310 as N grows from 4 to 16. SHIP stays between 0.147 and 0.168.
The unit matters
One candidate per prompt removes pseudo-replication and gives 0.196 at N = 16. Only full policy replay targets the released output.
Stopping saves compute
At matched calibration risk, sequential SHIP uses 34% fewer generations and 28% fewer verifier calls than best-of-16.
Adaptive search policies
The same calibration wraps adaptive FLUX search: Flash-BoN tournaments, RAISE refinement and history-dependent prompt rewriting.
| Search policy | Cal. UCB | Coverage | Released risk [95% CI] | Gen. | VLM calls | Sec. |
|---|---|---|---|---|---|---|
| Pooled-candidate threshold, within-prompt dependence ignored | ||||||
| Sequential first-pass | 0.420 | 0.573 | 0.310 [0.267, 0.355] | 9.10 | 75.3 | 66.7 |
| Flash-BoN tournament | 0.472 | 0.598 | 0.361 [0.317, 0.405] | 4.52 | 133.8 | 45.2 |
| RAISE refinement | 0.355 | 0.688 | 0.244 [0.207, 0.281] | 18.60 | 146.8 | 142.3 |
| History-dependent rewriting | 0.439 | 0.535 | 0.328 [0.282, 0.374] | 5.40 | 46.0 | 49.4 |
| Threshold calibrated on the complete deployed policy | ||||||
| Sequential SHIP | 0.299 | 0.438 | 0.162 [0.125, 0.203] | 10.68 | 87.6 | 78.2 |
| Flash-BoN + SHIP | 0.298 | 0.462 | 0.167 [0.130, 0.204] | 4.52 | 133.8 | 45.2 |
| RAISE + SHIP | 0.297 | 0.612 | 0.208 [0.172, 0.244] | 18.60 | 146.8 | 142.3 |
| Rewriting + SHIP | 0.299 | 0.401 | 0.176 [0.134, 0.218] | 5.40 | 46.0 | 49.4 |
Red marks a calibration bound or a held-out risk above the 0.30 budget. Pooled rows are descriptive, not certificates. Generations, VLM calls and seconds are per prompt.
No single policy wins every cost
SHIP operating points matched to best-of-16 on the calibration split; marker area shows VLM calls
Data table
| Threshold rule, N = 16 | Mean cov. | Mean risk | Crossings |
|---|---|---|---|
| Pointwise Hoeffding | 0.474 | 0.226 | 2 / 200 |
| Fixed-grid SHIP | 0.391 | 0.148 | 0 / 200 |
200 random 400/400 splits of the cached streams. The fixed grid has 201 thresholds with Bonferroni allocation and is the only rule with the guarantee of Proposition 2.
| Human audit | Coverage | Atomic loss | Any failure |
|---|---|---|---|
| Pooled candidates | 0.573 | 0.112 | 0.380 |
| Sequential SHIP | 0.438 | 0.076 | 0.280 |
Human labels of the released images corroborate the machine-evaluated result. They are not a human-risk certificate.
Beyond one judge, one prompt set and one model
The candidate-to-policy gap comes from selection, not from a particular verifier or benchmark.
| Prompt set, τ = 0.322 | Coverage | Released risk |
|---|---|---|
| GenEval2 test | 0.207 | 0.128 |
| GenAI-Bench | 0.633 | 0.294 |
| T2I-CompBench | 0.619 | 0.144 |
| DSG-1k | 0.443 | 0.173 |
| DPG-Bench | 0.576 | 0.224 |
A single-candidate FLUX threshold fitted once on GenEval2 and applied unchanged. Under a larger shift, 100 deployment-side calibration prompts restore control: on GenAI-Bench with SD3 Medium the released risk falls from 0.303 to 0.139.
A different judge family
Replacing the Qwen3-VL target with InternVL3 keeps the selector correlation high (Spearman 0.897 vs. 0.922) and preserves the ordering of accept/reject, best-of-4 and sequential SHIP.
Three backbones
Sequential SHIP keeps held-out risk below the budget on FLUX.1-dev, Stable Diffusion 3 Medium and SDXL. Attainable coverage follows backbone quality.
A lower bound on the gap
When some prompts always fail, best-of-N released risk tends to the hard-prompt share while candidate risk stays at α. The gap can approach 1 − α (Proposition 3).
Released risk at a candidate-calibrated threshold
Controlled study; candidate-level risk is exactly 0.30 at every N
- Best-of-N
- Sequential
- Best-of-N, policy-calibrated
Released risk approaches the hard-prompt rate
Deterministic losses, N = 256, candidate-level risk held at 0.30
- Best-of-N released risk
- Hard-prompt rate ρ
Code
Generation, scoring, calibration and every experiment are in the GitHub repository, together with the selector and judge scores of all generated candidates. Every calibration result reruns on a CPU:
git clone https://github.com/xuanhuayin/SHIP.git
cd SHIP
pip install -r requirements.txt
bash scripts/reproduce_paper.sh # about 4 min
from ship import (calibrate_policy, load_candidates,
load_split, replay, split_banks)
table = load_candidates("data/scores/geneval2_flux_dev.csv.gz")
split = load_split("data/geneval2_prompts.jsonl")
cal, test = split_banks(table, split, n=16)
tau = calibrate_policy(cal, "sequential", 0.30, 0.10).tau
print(replay(test, "sequential", tau).summary())
# coverage 0.438, released risk 0.162
Citation
@inproceedings{yin2027ship,
title = {Calibrate What You {SHIP}: Post-Selection Risk Control for Verifier-Guided Text-to-Image Generation},
author = {Yin, Xuanhua and Mao, Shunqi and Guo, Wei and Xu, Chuanzhi and Cai, Weidong},
booktitle = {Proceedings of the AAAI Conference on Artificial Intelligence},
year = {2027}
}

