Separating Answer-Key Memorization from Option Bias with Two Permutations per Question

When a language model answers a multiple-choice benchmark, its score mixes three things. The first is what it actually knows about the content. The second is a content-free preference for certain slots or letters, such as always leaning toward "A". The third is recall of the benchmark's own layout, for example remembering that the answer to this question is "C" because the question, with its answer key, appeared in pre-training text. Prior work treats the second and third as separate problems. Position-bias work removes slot preferences by averaging over reorderings of the options. Contamination work detects leaked test items through familiarity signals. Yet the obvious contamination signal, "the model does better on the original option order than on shuffled orders," is exactly what a position prior can also produce whenever the benchmark's answer key is unevenly spread across letters.

This note proposes a small statistical model with a designed two-pass protocol that pulls these apart for each question. We run the canonical order once and one designed reordering in which the canonical answer letter now labels a wrong option. We then fit a conditional-choice model that shares slot preferences across the whole benchmark and gives each item one extra parameter: how much the model is drawn to the original answer letter regardless of what text sits behind it. That parameter measures layout-bound memorization. Fitting the same model gives a position-debiased accuracy at half the cost of four-way circular evaluation. We validate it with contamination injected under our control, so we can check the detector against known leaks rather than trust perplexity gaps.

Core Claim

For item $i$ shown under an option order $\pi$, we model the probability of choosing slot $s$ as a softmax over slots of

$$u_{i\pi s} = \theta_{i,\,o_\pi(s)} + \beta_s + \kappa_i \,\mathbb{1}[s = a_i],$$

where $o_\pi(s)$ is the option placed in slot $s$ and $\theta_{i,o}$ is the model's content preference for option $o$, which stays fixed across orderings. The term $\beta_s$ is a benchmark-wide slot-and-letter prior, as in PriDe. The value $a_i$ is the slot that holds the correct answer in the published canonical order, and $\kappa_i$ is the pull toward that letter no matter which option now occupies it.

One forward pass gives a full distribution over the four letters. Two passes (the canonical order plus a derangement that moves the correct option out of slot $a_i$) therefore supply six constraints on four free per-item parameters once $\beta$ is pooled. That makes $\kappa_i$ identifiable. It is estimated as the excess mass the model puts on the old answer letter after the content has moved, beyond what $\beta$ predicts.

The claim is that $\kappa_i$ is a per-item contamination score that is not confounded by position bias. A second claim is that $\theta$ gives a debiased accuracy matching full circular evaluation at two passes instead of $k$.

We state one limit plainly. Memorization of the answer text, as opposed to the answer letter, is invariant to reordering. It cannot be told apart from knowledge by any permutation method, this one included. The proposal measures layout-bound leakage only, and the experiments test that boundary directly.

Relation to Prior Work

Several papers motivate the gap. Large Language Models Are Not Robust Multiple Choice Selectors shows that moving the correct answer to "A" raises Llama-30B's MMLU score by 15.2 points, and that letter preference dominates pure position. Its PriDe method estimates a global prior $\beta$ from cyclic permutations of 5% of items. We reuse that pooled prior but add an item-level memorization term PriDe does not model. ABCD: All Biases Come Disguised finds lower perplexity on canonical MMLU-Pro option orders and reads this as memorization. The same paper shows models reach over 95% on the content-free NonsenseQA through prompt artifacts. The two findings together show why a canonical-versus-shuffled gap is ambiguous, and that ambiguity is the problem our model is built to resolve.

The dynamic-evaluation line constrains the design. Dynamic Evaluation of Large Language Models by Meta Probing Agents treats option permutation as one of five perturbations and reports a 15.7% drop for GPT-4-Turbo on MMLU. It does not attribute the drop to bias versus memorization. DyVal generates fresh graph-based reasoning items and shows order sensitivity, a 13.6% reachability drop for GPT-4 under reversed description. Its items have no canonical layout to have leaked, which makes them a natural negative control for $\kappa$.

From scalable multi-objective optimization we borrow a modest ingredient. One-vs-Each Approximation to Softmax estimates a large softmax model from random subsets of the comparisons. We apply the same principle to the evaluation budget: we sample items and designed reorderings rather than enumerating all $k!$ layouts, and pool shared parameters so that sparse per-item data stays informative. We deliberately do not use Pareto set learning or gradient-balancing methods. Nothing in this measurement problem calls for a trade-off surface, and bolting one on would be decoration.

Research Program

The work has three parts.

The first part is the estimator. We fit $\theta$, $\beta$ and $\kappa$ by maximum likelihood over letter log-probabilities. We shrink $\kappa_i$ toward zero with a hierarchical prior, so that a single noisy item cannot look contaminated, and we fit $\beta$ per subject to handle the cross-domain drift PriDe reports. The derangement pass is chosen per item: the correct option moves to a slot where $\beta$ is near its average, and a distractor takes slot $a_i$. The implementation extends the LLM-MCQ-Bias codebase.

The second part is controlled contamination. We take open-weight models in the 8B–32B range and continue training them on a random half of MMLU test items under three conditions:

  • Canonical layout with answer key, at several repetition counts, to produce layout-bound leakage with a dose we control.
  • Answer text only, options shuffled on every exposure, to produce content memorization without a stable letter.
  • Matched unrelated text, as a control for the effect of training itself.

The held-out half and uncontaminated models serve as negatives.

The third part is an audit. We apply the estimator to off-the-shelf models on MMLU, MMLU-Pro, ARC-Challenge and CommonsenseQA and report the distribution of $\kappa$ by subject. NonsenseQA and DyVal-generated items, converted to multiple choice through PromptBench, serve as settings where $\kappa$ should be zero.

Baselines

The naive reference is canonical-order accuracy, together with its companion contamination signal: the benchmark-level gap between canonical accuracy and accuracy under one random reordering. It costs two passes, the same as ours. It is the cheapest thing a reviewer would try, so it must be beaten on per-item detection of injected leakage, measured by AUROC against the known contaminated half. It must also be beaten on false positives in the no-contamination conditions.

The strongest existing contamination signal on this question is the canonical-versus-permuted perplexity comparison of ABCD. We compute it per item with the same models and the same two layouts. The file contains no number for it; there is no reported result on Lacuna for per-item detection accuracy of this signal. We count ours as better if it has higher AUROC on injected items and a lower rate of flagging items in the "answer text only" and NonsenseQA conditions, where letter-bound leakage is absent by construction.

For debiased accuracy, the strongest method is PriDe. Its reported result is Llama-30B original-order MMLU accuracy rising from 53.1 to 56.4 (Large Language Models Are Not Robust Multiple Choice Selectors). We rerun PriDe with its released code on the same models and with a matched forward-pass budget. Full circular evaluation over four rotations is the higher-cost reference answer. Ours beats PriDe if its accuracy is closer to circular evaluation at equal passes, especially on contaminated models. On those models, PriDe's single-pass correction should overcredit items where memorized letters happen to coincide with the correct answer.

The key ablation removes $\kappa$ and fits only $\theta$ and $\beta$. This isolates whether the memorization term, rather than the pooled prior, drives both the detection and the accuracy differences. A second ablation replaces the designed derangement with a random reordering. It tests whether the design, as opposed to simply having two passes, is what identifies $\kappa$.

Why not just…?

Why not just take the canonical-minus-shuffled accuracy gap? At the level of a whole benchmark, with a PriDe correction applied first, this may be nearly as good. It is a real threat to any claim about benchmark-level rankings. Per item, though, a random shuffle leaves the canonical letter holding the correct answer about a quarter of the time. The gap then carries no information for that item, and the slot prior is mixed into the rest. The controlled-injection AUROC comparison settles this. If the naive gap matches ours per item, we will report the estimator as unnecessary.

Why not just run circular evaluation? Circular evaluation removes position bias. But it multiplies cost by $k$, as PriDe notes, and it scores memorization and bias together, because a model recalling "C" fails consistently on rotations where C is wrong. That looks identical to a strong slot preference. It gives no contamination score, and our accuracy comparison uses it only as the reference answer.

Why not just remove letters with Matched-and-Dashed? Dash formatting would indeed weaken letter-key recall, and as a mitigation it is a strong competitor. ABCD reports it cuts accuracy variance across permutations threefold, though position bias remains. It is not a measurement, however. It hides layout leakage instead of quantifying it, and it swaps selection for generation matched through an embedding model. We will run it on the contaminated models. If it fully erases the injected advantage, that is useful evidence about mitigation. It still leaves the audit question open.

Why not just use perplexity familiarity? Perplexity of the full option sequence responds to the ordering of distractors, which models may have seen, and to general fluency. It does not respond specifically to answer recall. The "answer text only" training condition is designed to show whether perplexity flags content memorization that says nothing about letter leakage, while $\kappa$ stays flat.

Decisive Checks

The proposal succeeds if four things hold.

  • Dose-response. $\kappa$ rises with the repetition count of canonical injection.
  • Content-memorization boundary. $\kappa$ stays near zero under answer-text-only injection, while accuracy on those items rises. This confirms the stated limit rather than hiding it.
  • Negative controls. $\kappa$ is indistinguishable from zero on NonsenseQA and on DyVal-generated items.
  • Cost and accuracy. Two-pass debiased accuracy lies within sampling error of four-rotation circular accuracy on MMLU and ARC-Challenge.

The proposal fails if any of these happen:

  • $\kappa$ tracks the slot prior rather than the injected dose.
  • It fires on NonsenseQA.
  • The random-reordering ablation performs as well as the designed derangement. That would mean the model adds nothing beyond a second pass.