arXiv:2610.40241cs.CLOct 2026

Manuscript Offprint

arXiv:2610.40241

Judged in Company: In-Context Batching Makes LLM Verdicts Depend on Other Items

Peng Xie, Amr Alanwar

Abstract

To save cost, practitioners often ask a language model to grade many independent items in one prompt. This assumes that verdicts are separable: that the verdict on an item does not depend on the other items in the prompt or on its position among them. Across three judgement tasks (harm in social-media comments, short-answer grading and review star ratings) and five open-weight models with 4–9B parameters, assigning the same 2,000 items to different random batches of 25 changes 11–22% of decisions on harm and grading, 6.5–13.3 points more than renaming the item keys or rewording the instruction, while AUROC against human labels differs from single-item grading only by -0.033 to +0.010; for four models with 14–32B parameters, 6–15% of decisions change, 4.2–9.1 points more. We show that flip rates decompose exactly into components of order, slot and membership, and that under a threshold model they grow with the square root of the variance that the context contributes, so that effects that are small for scores are large for decisions. Most of the latent dissimilarity between partitions comes from the order of the neighbours and the slot. The main effect of which items share the prompt, the part that voting over permutations of a batch cannot remove, accounts for 0.11–0.22 of it, and majority votes over nine permutations still leave 52–60% of the flips. Batched verdicts also differ systematically from single-item verdicts: even the majority of fifteen random batches disagrees with them on 8.4–17.8% of decisions. Editing a single generation shows that both the model's own earlier verdicts and the neighbours' texts carry the effect. On the easy task, star ratings, only 2.9–3.9% of decisions change. We recommend grading ambiguous items one per prompt, recovering most of the cost with a cached prefix, and reporting agreement with single-item grading whenever items are batched.

1 Introduction

Language models are now routinely used to label, grade and moderate text at scale. Because every request repeats the same instructions, a common way to cut cost is in-context batching: many items are placed in one prompt and the model returns one verdict per item, for example as a JSON object (Cheng et al., 2023). Vendors recommend it for moderation that need not happen in real time (Anthropic, 2026a), and a recent study of social-science annotation finds batches of 25 to 100 items, with up to ten coded variables per prompt, safe for most current models: they save more than 80% of token costs and lose less than 2 points of accuracy (Pipal et al., 2026).

Batching rests on an assumption that is rarely stated: that the verdict for an item depends only on that item and not on its company (the other items in the prompt) or on its position among them. Nothing in a decoder-only model enforces this. When the model writes the verdict for the twelfth item, it has read the other 24 items and the eleven verdicts it has already written. Accuracy is also a poor test of the assumption, because shifts that push some items up and others down can leave aggregate scores almost unchanged.

Figure 1 shows what can happen. A correct student answer is graded CORRECT when it is alone, PARTIAL in two random batches and CORRECT in a third, each time with high confidence. Renaming the item keys or rewording the instruction does not change the verdict within a batch; changing the batch does.

We measure how often this happens, where it comes from and when it matters. We state the assumption formally as separability, show that the flip rate between random partitions decomposes exactly into components of order, slot and membership, and link flips to the variance of latent scores ( §3§3). We grade the same 2,000 items per task alone,

Question: What is the relationship between an organism's range of tolerance and its optimum condition?Reference answer: The optimum condition is within the range of tolerance.Student's answer: His optimum condition is in his range of tolerance. (human grade: CORRECT)
Qwen3-4Bverdict (probability)
graded aloneCORRECT (0.97)
alone, keys renamedCORRECT (1.00)
in random batch A, item 14 of 25PARTIAL (1.00)
batch A, keys renamedPARTIAL (1.00)
batch A, instruction rewordedPARTIAL (1.00)
in random batch B, item 15 of 25PARTIAL (0.85)
in random batch C, item 8 of 25CORRECT (1.00)

Figure 1: One short answer from SciEntsBank graded by the same model. The verdict is stable under trivial changes of the prompt (renamed keys, a reworded instruction) but changes with the batch; batches A, B and C differ in which 24 other answers share the prompt, in their order and in the slot of this answer. Each verdict is given with high confidence.

in three independent random partitions, and in conditions that each change a known subset of three aspects of the batch: the order of an item's neighbours, the item's slot, and which items are its neighbours. We compare every change against baselines measured in the same regime: renamed keys, a reworded instruction, and the same prompts generated one at a time. We then intervene inside single generations, editing either the model's earlier verdicts or the neighbours' texts, to see through which channel the batch acts. Three pass/fail criteria (gates), on generality, membership and mechanism, were fixed before the runs. Follow-up runs, not covered by the gates, repeat the core design on harm and grading with four 14–32B models and measure, for the five main models, what voting over permutations of a batch and over independent batches leaves (Appendix J). Our findings:

  • On harm and short-answer grading, a new random partition changes 11–22% of decisions for all five models, 6.5–13.3 points above the largest baseline, while AUROC differs from single-item grading only by -0.033 to +0.010 (§5.1, §5.2). For four models with 14–32B parameters, a new partition changes 6–15% of decisions, 4.2–9.1 points above the largest baseline (Appendix J).

  • The order of the neighbours and the slot account for most of the latent dissimilarity between partitions. Which items share the batch accounts for 0.10–0.30 of it when the item keeps its slot (0.22–0.44 by the measure we fixed before the runs, which overweights the first slot). The main effect of membership, which voting over permutations (Lin et al., 2024) cannot remove, accounts for 0.11–0.22 of the dissimilarity in runs that grade every batch in nine orders; there, majority votes over five and nine permutations leave 60–69% and 52–60% of the flips, and a threshold model fitted to these runs predicts the flip rates within one point (§5.3, §5.4).

  • Batching shifts verdicts and does not only scatter them: on harm and grading, a random batch disagrees with single-item grading on 10.9–19.8% of decisions, and the majority of fifteen independent random batches still disagrees on 8.4–17.8% (both on H200 NVL GPUs), close to what the threshold model fitted to the main experiment predicted, in a check that is only partly out of sample (§5.4).

  • Both channels act: swapping in another batch's verdicts changes 7–23% of decisions, swapping in another batch's texts 9–26% (§5.5).

  • The effect is large where the task is ambiguous. On star ratings, where models agree with the true rating at AUROC 0.96, the written rating changes for 16–21% of reviews but only 2.9–3.9% of decisions (§5.6).

References (46)