Manuscript Offprint

arXiv:2610.35472

Amplify, Locate, Estimate (ALE) on Rare-Failure Rates of Fine-Tuned LLMs

Patrick Reichherzer, Jonathan Evertz, Thorsten Holz

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Safety fine-tuning can make undesirable model behaviors sufficiently rare that measuring their frequency by direct sampling becomes prohibitively expensive. We introduce Amplify, Locate, Estimate (ALE), a method for estimating such rare failure probabilities efficiently. ALE uses the change in token log-probabilities induced by the safety fine-tuning to define an amplification direction, along which we increase the failure rate for cheap measurement. We develop a score-function estimator that uses the selected amplified batch to recover the local slope of the log failure rate from the token probabilities of the sampled failures, enabling extrapolation back to rare target rates. We also use the amplified batch to obtain an importance-sampling estimate. Across 41 evaluation targets, ALE's estimate-to-reference ratios have a median close to one, with 37 ALE estimates within a factor of three of reference values obtained from independent direct measurements. Ablation tests show that with a budget of up to ∼\sim1000 labeled rollouts, in addition to a cheap unlabeled scan, ALE estimates failure probabilities for Qwen3-8B fine-tunes down to about 10−510^{-5}, where direct measurement can require hundreds of thousands of rollouts, as the required sampling budget scales inversely with failure probability at fixed relative precision.

1 INTRODUCTION

The length of software tasks that LLM agents complete autonomously has doubled roughly every seven months since 2019 (Kwa et al., 2025), and in one study more than half of the merged pull requests written by a coding agent entered the code base without modification (Watanabe et al., 2025). Once such output is merged unchanged, the question is how often an undesired, faulty behavior occurs. A security fine-tune promises to make it rarer. Unfortunately, measuring rare events is exactly what is expensive, because at fixed relative precision, the number of labeled rollouts grows inversely with the failure rate. In practice, frontier safety evaluations measure it by brute force, sampling rollouts, labeling each one and counting the failures. For example, OpenAI's o1 system card applies a

Figure

Figure 1: A rare failure rate P becomes measurable under amplification. Direct sampling: (a) small budget but upper limits only; (b) large budget. Our approach: (c) Four amplified cells at the budget of (a), extrapolated along α\alpha.

deception monitor to model completions from 10510^{5} synthetic prompts and reports 0.17% flagged responses (OpenAI, 2024), an anti-scheming study reports no misgrading by o4-mini AS in a 2,800-rollout evaluation (Schoen et al., 2025, §7.2), and the GPT-6 Astra system card reports a 0.0% share of samples and states that the model made no attempt to circumvent auto-review (OpenAI, 2026). By that standard, the fine-tune in Fig. 1 passes with a small budget and direct sampling (case a).

Our running example, boxed below, is Qwen3-8B fine-tuned to compare two secret tokens in constant time. It fails when it writes a plain equality test instead, whose running time can leak information about the secret. Two thousand rollouts per model typically return no failure, but zero is not a rate. Instead, we can state upper limits, as shown in Fig. 1a (grey box). While this gives some relief that both models, the base and fine-tuned ones, indeed have only rare failures, we cannot quantify how rare, and worse, we cannot determine whether fine-tuning on secure samples made failures rarer. Resolving the base and fine-tuned rates takes a few hundred thousand rollouts in total. This brute force method is expensive but confirms that fine-tuning made failures indeed rarer, at least with the quantifiable confidence that the 95 percent intervals do not overlap (see Fig. 1b).

Test case. The model completes one expression.

hmac is already imported.

def tokens_match(expected: bytes, supplied: bytes) -> bool: """Compare secret tokens without leaking information through input-dependent timing.""" return SOLUTION

secure hmac.compare_digest(expected, supplied)

failure a plain comparison such as expected == supplied, flagged by a parser

It would be very convenient if the failure could be measured where it is common and read off where it is rare. Figure 1c tries exactly this. The four red points cost 4,096 rollouts, roughly 87 times fewer than the direct brute force measurements (Appendix D). These points belong to a family of models obtained by pushing the logits back along the direction the fine-tune moved them, through the base model and beyond, until the failure is common (Fig. 1c). The straight line in log rates fits them. By any rule of fitting, extrapolating such a hand-crafted fit would be considered reckless, given that the line already fails two cells above the window. And yet, continued down through the base model to the fine-tune, it lands within a factor of about 2.5 of both direct counts. Part of that landing is luck and part is not, and the task of this paper is to separate the two and turn the latter into a procedure for rare-event estimation in LLM outputs. The procedure, ALE, has three steps, one per section: amplify the failure by reversing the fine-tune's logit change (§2), locate a measurement before the response bends toward saturation (§3), and estimate the target rates from the failures sampled there (§4). We show that, counterintuitively, one of the four cells of Fig. 1c is sufficient thanks to the scores of its failures, and that we find this cell without requiring a single label.

Relation to prior work. Related work models the rarity of a failure across inputs and query volume (Wu & Hilton, 2025; Jones et al., 2025), whereas ALE, like the rate estimators below, estimates how often a specified failure occurs under stochastic decoding at a given prompt. Within this setting, ALE requires two checkpoints with a shared tokenizer and the full next-token distributions of both on identical prefixes, access that developer-run and open-weight audits provide, and an amplification path along which the failure becomes frequent. Model-difference amplification makes suppressed behaviors observable (Aranguri & McGrath, 2025), and emulated disalignment reverses alignment through the same contrast of output distributions (Zhou et al., 2024). Apart from sequence-level tilting sampled by Markov chains (McAllister Dorman et al., 2026), two representative approaches turn such amplification into a rate estimate (compared with ALE in the table below). Logit-path extrapolation labels several cells along the logit path between a model and a less-safe variant and fits their log-rate trend (Pernice & Aranguri, 2026). Steered-proposal importance sampling (IS) steers activations along a behavior direction that first needs to be identified, selects a proposal with a labeled pilot and a cross-entropy criterion, and reweights one labeled batch (Angell et al., 2026).

AmplifyLocateEstimate
Logit-path extrapolation (Pernice & Aranguri, 2026)Logit path to a less-safe variantLabeled sweep, linear windowLine fit to several labeled cells
Steered-proposal IS (Angell et al., 2026)Activation steeringLabeled pilot, cross-entropyIS on one labeled batch
ALE (ours)Checkpoint logit pathUnlabeled scan, KL proxyScore slope and IS on one labeled batch

ALE shares the logit path with the first approach and the IS estimator with the second. It adds label-free localization, which decides where to measure from an unlabeled scan, and single-batch score extrapolation, in which the scores of the sampled failures estimate the local log-rate slope that logit-path extrapolation obtains by fitting several cells. The divergence used for localization and the scores and likelihood ratios used for estimation can all be computed from the forward passes through both checkpoints that amplified sampling already runs, so labels are spent only on the final batch. Against IS with a labeled proposal selection, reweighting is the more accurate estimate on short expressions, whose failures take a single form, whereas on benchmark function bodies, whose failures take several forms that amplification does not always reproduce, score extrapolation from a cell below saturation avoids the large misses of reweighting ( §5§5).

References (46)