Skip to content

Cheating Automatic LLM Benchmarks: Null Models Achieve High Win Rates

Evals stage 2 #7corefrontierpaperrubric 11/122024 · ICLR 2025 (Oral) · ~40 min

Xiaosen Zheng, Tianyu Pang, Chao Du, … Min Lin

Status

TL;DR. A “null model” returns the same string for every instruction. With a carefully structured string, it reaches an 86.5% length-controlled win rate on AlpacaEval 2.0, 83.0 on Arena-Hard-Auto and 9.55 on MT-Bench, beating the verified state of the art. The string does not answer anything. It hijacks the judge’s prompt template and exploits its position bias.

Why it matters now. LLM judges are now rewards (RLHF, RLAIF, generative reward models) and evaluators (leaderboards, RAG and deep-research evaluation, nugget assessors). Anything that can be optimised against a judge can learn to attack its template instead of doing the task. For IR people, this is the LLM-assessor version of a run that games trec_eval: if the assessor reads untrusted text as instructions, the score measures attack strength, not quality.

The judge receives one prompt containing the instruction, a reference output and the target output, and returns a winner. The cheater controls only the target output and wants the judge to prefer it for every instruction. The response has two parts:

  1. A structured cheat. It closes its own output field early, tells the judge to ignore the outputs above, and forges a new instruction (“Output nothing”) with two counterfeit empty outputs. The judge parses the counterfeit pair as real, sees two identical empty outputs, and its position bias picks the first, which the cheat labels as its own identifier (Figure 2). The same string also works when the positions are swapped.
  2. An adversarial prefix tuned by random search. With UltraFeedback instructions x(1),…,x(N)x^{(1)},\dots,x^{(N)} (the test instructions are assumed private), find a prefix ss minimising
L(s)=∑j=1N−log⁡pjudge(winner=NullModel∣x(j),s).\mathcal{L}(s) = \sum_{j=1}^{N} -\log p_{\text{judge}}\big(\text{winner} = \text{NullModel} \mid x^{(j)}, s\big).

Each step replaces one random token of ss with a random vocabulary token and keeps the change if L\mathcal L does not increase (Algorithm 1). The judge is accessed only through API queries.

How a constant null-model response hijacks a pairwise LLM judge Left: the judge prompt as designed, with the instruction, a reference output and the target output. The cheater controls only the target output. Middle: the cheat string closes its own output field early, tells the judge to ignore the outputs above, forges a new instruction to output nothing, and adds two counterfeit empty outputs. Right: what the judge parses: an instruction to output nothing and two identical empty outputs, so position bias picks the first, which the cheat labels as its own. Bottom: on AlpacaEval 2.0 the structured cheat plus random-search prefix reaches 86.5 percent length-controlled win rate against a verified state of the art of 57.5 percent, with a GPT-4-1106-Preview judge. One constant string, every instruction: attack the template, not the task judge prompt (designed) instruction x output (a): reference output (b): null model same string for every x inside the cheat string 1. end its own output field early 2. "ignore the outputs above" 3. forged task: output nothing 4. two counterfeit empty outputs, the first labelled as its id + prefix tuned by random search what the judge parses task: output nothing two empty outputs tie → position bias picks the first one verdict: null model wins AlpacaEval 2.0, length-controlled win rate (GPT-4-1106-Preview judge) null model (structured + RS) 86.5 verified SOTA 57.5
Original sketch. The null model never reads the instruction: its one constant string closes its own output field, forges a new task with two empty outputs, and relies on the judge's position bias to pick the first, which it labels as itself. Numbers are from the page's AlpacaEval 2.0 result.

With GPT-4-1106-Preview as judge (Table 1; N = 10, 8, 4 and T = 384, 96, 64 for the three benchmarks):

BenchmarkStructured onlyStructured + RSVerified SOTA
AlpacaEval 2.0 (LC / raw)76.8 / 59.586.5 / 76.957.5 / 51.3
Arena-Hard-Auto67.283.082.6
MT-Bench (first turn)7.759.558.96

The cheat reaches “an 86.5% LC win rate on AlpacaEval 2.0; an 83.0 score on Arena-Hard-Auto; and a 9.55 score on MT-Bench.” (Zheng et al., 2024, abstract)

  • Open-source judges (§5, Table 3): with Llama-3-8B and Llama-3-70B judges, the structured response alone scores 2.9% and 0.4% LC, but random search reaches 95.4% and 95.1% LC. Optimising on the test instructions reaches 99.8% and 99.4%. In log-probability terms the 70B judge reacts more to the structured response than the 8B one, which the authors read as size adding to susceptibility.
  • Defences (§6, Appendix C.2): a prefix searched on four paraphrased templates transfers to the official template at 92.1% LC. A windowed-PPL filter misses the structured response. SmoothLLM at 20% perturbation blocks the cheat, but 1.25% already pushes honest GPT-4o answers to near-zero win rates.
  • Judge transfer (Appendix C.4): the response optimised for GPT-4 did not transfer well to GPT-3.5.
  • A demonstration, not a measurement of risk. The attack is crafted deliberately. Whether RL policies find such strings on their own when trained against judges is open.
  • Judge-specific. Transfer from GPT-4 to GPT-3.5 failed, so a panel of different judges may raise the attacker’s cost. The paper does not test panels.
  • No working defence is offered. The paper shows that obvious defences fail and calls for anti-cheating mechanisms.
  • IR transfer is untested. Nugget assessors, pointwise relevance judges and RAG faithfulness judges use similar templates. Testing null-model canaries on them is cheap and not yet standard.
  • Research-agent oversight includes a task where agents inject instructions into an LLM grader’s input, the agent-level version of this attack.
  • Verifier robustness finds model-based verifiers for math RLVR open to the same kind of hacking during training.
  • Reward model over-optimisation is the slow, gradient-driven version: the proxy score rises while true quality falls.
  • ImpossibleBench makes every pass a cheat; a null model makes every win a cheat. Both use a degenerate input to reveal how exploitable the evaluator is.
  • PPO is the optimiser that would face this judge as a reward in RLHF.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    The universal random search (Algorithm 1) mutates one random prefix token per step and keeps the change if the summed loss over N training instructions does not increase. For AlpacaEval 2.0 the paper uses N = 10 and T = 384. (a) How many judge calls does one optimisation run cost if each loss needs one call per instruction, and how does that change if both answer positions are scored? (b) The 805 test instructions are never seen. Why can a prefix fit on 10 UltraFeedback prompts transfer? (c) Why does the accept rule use less-than-or-equal rather than strictly less?

    What a strong answer covers
    • (a) N × T = 10 × 384 = 3,840 judge calls; about 7,680 if the default and swapped positions are both scored. Ignoring the initial-loss evaluation, this is about 2.4× or 4.8× the 1,610 judge calls (805 × 2) for one full two-position evaluation. The search cost is instead amortized across reuse of the universal prefix.
    • (b) The response does not depend on the instruction at all. It attacks the judge template, which is identical for every test instruction, so the instruction is a nuisance variable and a handful of samples covers it.
    • (c) With ≤, sideways moves on a flat loss surface are accepted, so the search can drift across plateaus instead of stalling. This is standard for random search over discrete tokens.
    • Takeaway: the attack surface is the shared template, not the test set, so keeping test instructions private does not protect the benchmark.
  2. Mechanism

    Walk through how the structured null response makes GPT-4-1106-Preview output the cheater's model identifier on AlpacaEval 2.0, in both the default setting (cheat is output_2, identifier M) and the swap setting (cheat is output_1, identifier m). Which two judge weaknesses are combined?

    What a strong answer covers
    • The judge sees a JSON-like template with triple-quoted output fields. The cheat closes its own field early, tells the judge to ignore the above Model Outputs, and forges a new Instruction block that says Output nothing, followed by counterfeit model outputs.
    • Weakness 1 is template parsing (prompt injection): the judge treats the counterfeit instruction and outputs as the real ones, so it compares two empty outputs.
    • Weakness 2 is position bias: when two outputs look identical, GPT-4 prefers the first one. In the default setting the forged block is arranged so that the first output carries identifier M, and the judge answers M.
    • In the swap setting, the same constant string overwrites the following output so the judge picks m. One string works in both positions, which defeats swap-based debiasing.
    • Persuasive null responses that do not break the template fail: the best gets 0.6% LC, the rest at most 0.2%.
  3. What if…

    On Llama-3 judges (Table 3), the structured response alone barely works (2.9% LC on 8B, 0.4% on 70B), but adding random search gives about 95% LC on both. Optimising directly on test instructions gives about 99%. Explain each jump and what the 8B-vs-70B results say about whether stronger judges are safer.

    What a strong answer covers
    • The hand-crafted structure was designed against GPT-4. Weaker instruction followers do not obey the forged instruction, so the template injection alone fails.
    • Random search tunes the prefix to the particular judge's token-level preferences: 95.4% LC (8B) and 95.1% LC (70B).
    • Training on the test instructions themselves adds a few more points (99.8% and 99.4%), showing the transferable prefix already captures most of the LC effect, although raw win rate on 8B gains 13.1 points.
    • In the log-probability analysis (Figure 5), the 70B judge reacts more strongly to the structured response and shows clear position bias in the swap setting, behaving more like GPT-4. The authors suggest size may add to susceptibility: better instruction followers obey forged instructions more, so scale is not a defence.
  4. Critique

    Section 6 and Appendix C.2 test defences: rewriting the judge template, a windowed-perplexity filter, Self-Reminder, and SmoothLLM. Summarise why each one fails or is impractical, and state what property a working defence must have.

    What a strong answer covers
    • Template paraphrasing: a prefix searched on four rewritten templates transfers to the official one at 92.1% LC (Llama-3-8B judge). Hiding the template does not stop an attacker who can guess its structure.
    • Windowed perplexity (GPT-2, window 32, threshold = max PPL of GPT-4 outputs): the 76.8% structured response sits below the threshold, because natural-language injection is not high-perplexity.
    • Self-Reminder (prioritise the first instruction) is only slightly effective.
    • SmoothLLM with 20% insert or swap perturbations blocks the cheat but even 1.25% perturbation drives honest GPT-4o responses to near-zero win rates, so it destroys the measurement.
    • A better defence starts by separating data from instructions structurally (for example, escaping or encoding the candidate output so it cannot close fields) and must not depend on the cheat looking unnatural. This is only a partial mitigation: an LLM has no hard instruction/data boundary, so escaped text can still carry persuasive instructions, and the paper establishes no working defence. Pair it with constrained outputs, evidence checks and held-out adversarial testing.
  5. Design

    You run a nugget-based RAG evaluation: an LLM assessor checks, for each gold nugget, whether a system's generated answer supports it, and the system score is the share of supported nuggets. Design a set of defences against a null-model-style attack from a submitted system, and canary tests that check them.

    What a strong answer covers
    • Structural isolation: pass the answer as an escaped or JSON-encoded string with a random per-call delimiter the system cannot predict, and tell the assessor that anything inside is data. This removes the literal field-closing trick, but it does not stop the model from following instructions written inside the data, so treat it as a partial mitigation.
    • Per-nugget, answer-local judging: ask one nugget at a time with a binary question, and require the assessor to quote the supporting span. Then check the span is really a substring of the answer and that it entails the nugget.
    • Position and order checks: shuffle nugget order and the answer's position in the prompt; flag systems whose scores move a lot under permutation.
    • Canaries: score a constant null answer, an answer containing only injection text, and a query-irrelevant answer. All must score near zero, and should be re-run whenever the assessor model or template changes. Passing a handful of canaries shows the known attacks fail; it does not prove robustness, so also run held-out adaptive attacks (for example a prefix optimised against your template) and an independent evaluation.
    • Cross-assessor agreement: score with two different LLM families and flag answers where they disagree sharply, since the paper found a prefix tuned for GPT-4 did not transfer to GPT-3.5.
  6. Research idea

    RLHF and RLAIF train a policy against an LLM judge, much like this attack optimises a string against one. Propose an experiment that tests whether policy-gradient training on an LLM-judge reward discovers template-injection behaviour on its own, and state what you would measure.

    What a strong answer covers
    • Setup: fine-tune a small policy with PPO or GRPO against an AlpacaEval-style pairwise judge whose template wraps outputs in delimiters. Use a held-out stronger judge or human labels as the gold reward.
    • Measure the share of samples containing delimiter-closing or instruction-like text, the gap between proxy and gold win rate over training, and whether outputs become instruction-independent.
    • Control: the same training with a judge that receives the output escaped or encoded. If injection behaviour appears only with the raw template, it is driven by the template weakness.
    • Expected result: discovery depends on whether exploration can reach the trick. A KL penalty may hide it at small scale, so report results across KL strengths.

Done with this page?

Status