Conformal Selective Acting: Anytime-Valid Risk Control for RLVR-Trained LLMs

Hamed Khosravi, Xiaoming HuoNeurIPS 2026

TL;DR

Deploying small, continually learning language models in high-stakes environments like hospitals or law firms comes with a major catch: how do you guarantee the model’s error rate never breaches a strict safety budget at any moment in time? This paper introduces Conformal Selective Acting (CSA), a lightweight deployment wrapper that acts as a real-time statistical circuit breaker, ensuring that the fraction of bad outputs actually shown to users stays safely capped at every single step, even as the model updates its own weights online.

What Problem Does This Paper Address?

Imagine a regional hospital running a local 8B-parameter clinical assistant. Because of strict patient privacy laws (like HIPAA), latency constraints, and domain customization needs, they can't route queries to frontier APIs like GPT-4 or Claude. Instead, they fine-tune a local specialist model using Reinforcement Learning from Verifiable Rewards (RLVR)—where a deterministic rule-checker verifies dosages or citations—and update the model weekly via online LoRA.

Here is the catch: their contract states that rule-breaking answers cannot exceed 5% of released outputs on this specific hospital’s stream, checked continuously. An early spike in errors during week one is an immediate breach; you can't just promise it will average out by December, nor can you average across a hypothetical population of other hospitals.

Existing safety wrappers fall short here:

  • Offline conformal methods assume data points are exchangeable (static distribution), which breaks the moment the model updates online.
  • Online conformal methods only bound long-run averages, tolerating nasty early error spikes.
  • Marginal anytime wrappers track the error rate across all rounds (including abstentions), rather than the selective risk—the error rate strictly among the answers you actually release.
Table 1: Prior wrappers classified by the framework triple of section 3.1, with deployment-side properties merged. Stat.: shape of the test statistic (ˆr = empirical risk on calibration set; mc = miscoverage; nc = nonconformity; E = e-process). Risk: marginal (m) vs. selective (s). Validity: fh = fixed-horizon high-prob, lra = long-run-average, mt = marginal-time, ap = anytime-pathwise. Rule: deployment rule (cnst = constant threshold; dyn = dynamic single threshold; tv-λ = time-varying λ; max-cert = maximum certified threshold over a grid). NE: tolerates non-exchangeability; Up: tolerates updated score/policy; UG: certified horizon-independent utility-gap bound. † = appendix-only or protocol mismatch.

Methods

Instead of inventing a new LLM or training algorithm, the authors build a deployment-side gatekeeper called Conformal Selective Acting (CSA).

For every incoming query, the model generates $K=5$ answers via self-consistency sampling. Disagreement among those samples forms a raw uncertainty score (calibrated via isotonic regression on a held-out split). CSA then decides whether to release the majority-vote answer or abstain, before the deterministic verifier checks it for the audit log.

What is new is how CSA chooses its confidence threshold dynamically:

  1. Grid of E-processes: CSA sets up a fixed grid of 15 candidate score thresholds. For each threshold, it maintains a Ville-type e-process—a non-negative supermartingale that acts like a sequential wealth-betting game against the hypothesis that a threshold is unsafe. Because e-processes satisfy Ville’s inequality, their statistical guarantees hold simultaneously across all time steps without assuming static data.
  2. Selective Increment: Crucially, CSA only updates a threshold's bet on rounds where that threshold would release the answer, directly targeting selective risk rather than marginal risk.
  3. Max-Certified Deployment Rule: At each round, CSA looks at all thresholds whose accumulated evidence clears a Bonferroni-corrected safety bar and deploys the most permissive one. If none are certified yet, it safely abstains. For sharp distribution shifts, a multi-epoch variant (CSA-Epoch) periodically retires stale certifications.

Datasets

No new datasets are introduced. The authors evaluate CSA across existing domain-specific benchmarks paired with deterministic verifiers:

  • 8 Specialist Replay Benchmarks: MedQA, PubMedQA, MedNLI, HEAD-QA (clinical/medical), TAT-QA (financial), GSM8K (math), ARC-Challenge (science), and CaseHOLD (legal).
  • 5 Live RLVR Streams (with online LoRA): MATH, MedQA, HEAD-QA, ARC-Challenge, and CaseHOLD, running across four base models (Qwen2.5-Math-7B, Med42-8B, Llama-3.2-3B-Instruct, and Saul-7B-Instruct).
  • 16 Adversarial Shift Streams: Permuted evaluations of MedQA and GSM8K designed to front-load or cluster difficult queries.

Key Insights and Ideas

  • Post-hoc testing is mathematically broken under online updates: You cannot just bolt a sequential test onto a model's outputs after the fact. Because online LoRA updates both the policy and the confidence score distribution simultaneously, a valid test statistic must be predictable with respect to the exact same timeline (filtration) driving the optimizer.
  • Abstaining doesn't buy fake confidence: In CSA's safety theorem, the uncertainty slack shrinks at a rate of $O(N_T^{-1/2})$, where $N_T$ is the number of released answers, not total queries $T$. Refusing to answer keeps you safe, but only releasing answers gathers the evidence needed to tighten the certificate.
  • Calibration is your only speed lever: The authors prove that CSA's certification time is rate-optimal, matching fundamental information-theoretic lower bounds. You cannot tweak wrapper hyperparameters to certify safe thresholds faster—the only way to speed up certification is to build a better-calibrated uncertainty score.

Key Results

A useful wrapper must do two things simultaneously: achieve zero pathwise SLA violations (PathV = 0) and actually answer questions (Action Rate > 0). Always refusing is trivially safe; always acting is trivially reckless.

  • 8-Benchmark Replay (480 streams): CSA achieved 0/480 pathwise violations with a 52.7% mean action rate. Meanwhile, 5 online heuristic baselines violated the safety budget 10/10 times across pivotal settings, and offline conformal methods like CRC refused to release any answers on 6 out of 8 benchmarks.
  • Live Online LoRA RLVR (100 streams, 10,300 genuine rounds): CSA achieved 0/100 violations while maintaining an action rate $\ge 50\%$ on every cell—releasing up to 8.6$\times$ more answers than the next-best valid offline competitor.
  • Adversarial Shifts (160 streams): CSA was the only method with 0/160 violations (3.2% mean risk), whereas every competing method broke the safety contract on at least 4 of the 16 adversarial setups.
Table 2: Headline result at each benchmark’s pivotal α⋆. CSA is the only method that satisfies the pathwise risk bound on every replication and is non-refusing. Five online baselines violate 10/10 in all cells. CRC refuses on 6/8 benchmarks; LTT and ConfFact refuse on 3/8 and 2/8 respectively. NEX-Conf is non-refusing but violates on 4/8 benchmarks. N is the EVAL-split size; Err is the RLVR-tuned base model’s verifier-failure rate on that split, a property of the base model; Risk is the verifier-failure rate among a wrapper’s released outputs at the evaluation horizon, a property of the wrapper. Baseline columns give AR/Risk in per cent, with — where the cell refuses and no outputs are released.

Limitations and Future Work

  • Deterministic Verifiers Only: CSA's guarantees are strictly relative to a deterministic rule-checker $V$. Harms outside $V$'s scope aren't caught, and extending the math to noisy, probabilistic verifiers (like LLM-as-a-judge) remains an open problem.
  • Unenforceable Stream Assumptions: While pipeline predictability is enforced by code, CSA relies on two properties of the wild data stream—that higher confidence scores genuinely correlate with lower risk (monotonicity) and that the safe threshold doesn't drift wildly mid-epoch. Operators must monitor these via runtime diagnostics rather than rely on proofs alone.
  • Update Cadence: Standard CSA assumes updates happen cleanly between rounds; mid-batch updates require falling back to the multi-epoch reset variant.

Summary updated

Abstract

A local specialist LLM, fine-tuned with reinforcement learning from verifiable rewards (RLVR) on operator-local data, is installed inside a single regulated organization under a per-deployment error budget $\alpha$. The operator needs a safety certificate that holds on *this* deployment's stream, simultaneously at every wall-clock round: no pooling across deployments, no waiting for a long-run average. Existing wrappers cannot deliver this on these adaptive, online-updated streams: offline conformal-risk methods require exchangeability; online-conformal methods bound only long-run averages; non-exchangeable extensions are marginally valid; and the closest anytime wrapper, A-RCPS, controls marginal rather than selective risk. Through a (test statistic, validity guarantee, deployment rule) framework we identify one empty cell forced by the deployment requirements (e-process per threshold, selective risk, anytime-pathwise validity, max-certified-threshold rule); **Conformal Selective Acting** (CSA) fills it as a per-round wrapper maintaining a Ville-type e-process per candidate score threshold on a Bonferroni grid, evaluated against the RLVR filtration. Under predictable updates and isotonic-calibrated monotone risk we prove (i) an anytime-pathwise selective-risk bound $R_T^{\mathrm{act}} \le \alpha + O(N_T^{-1/2})$, (ii) rate-optimal certification matching $\Theta(\bar\eta^{-2} \log(1/\delta))$, and (iii) a horizon-independent release-rate gap. Across eight specialist benchmarks (480 streams), sixteen adversarial distribution-shift cells (160 streams), and five live Expert-Iteration RLVR cells with online LoRA over four base models in three architecture families (10,300 rounds), CSA is the only method among ten directly compared that satisfies both pathwise validity and non-refusing deployment on every cell. We do not propose a new LLM, training algorithm, or policy class; CSA is the deployment-side complement, orthogonal to the model itself, for operators who cannot use a frontier API.
BibTeX
@inproceedings{khosravi2026conformal,
  author = {Hamed Khosravi and Xiaoming Huo},
  title = {{Conformal Selective Acting: Anytime-Valid Risk Control for RLVR-Trained LLMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vT3wPXlmSr},
}
Figure