skip to content

Why does a three-approve, one-deny shot set push a few-shot classifier toward approve?

level: seniorimportance: should knowfreq 45%

answer

  1. count the labels you actually showed
  2. the shot mix implies a base rate
  3. three of four say approve
  4. majority-label bias, not a threshold bug
  5. compare predicted distribution to true base rate

basics

~20 s

Majority-label bias: the model reads the label mix in the demonstrations as evidence about how often each outcome occurs, so a 3:1 approve-heavy shot set inflates the predicted approve rate on borderline building-permit applications, independent of what each application actually says.

solid answer

~50 s

Demonstrations teach two things simultaneously — the input-to-label mapping, and an implicit base rate. A shot set that is three approve and one deny signals that approvals are common, and the model shifts probability mass toward `approve` for every ambiguous case. Position compounds it: if the lone deny sits first and an approve sits last, recency reinforces the skew; moving the deny to the end partially cancels it. You diagnose this by comparing the *predicted* label distribution against the true base rate in your data, not by staring at accuracy — a classifier that approves 92% of permits when the real approval rate is 60% is biased even if headline accuracy looks acceptable. Fixes are correcting the model's label prior (calibration) or voting across permutations; the composition of the shot pool itself is settled when you choose the exemplars.

go deeper

for a junior

Know that the labels you show in the examples influence how often the model picks each label, and that a lopsided set of examples tilts the answers toward the common label.

for a middle

Explain that a demonstration block conveys an implicit base rate as well as a mapping, and that majority-label and recency biases are separate effects that can compound.

for a senior

Demonstrate the diagnosis: compare predicted label distribution with the real base rate, inspect minority-class recall, probe with a content-free input, and correct the prior rather than chasing accuracy.

for a principal

Frame the asymmetric cost — in permitting, lending or fraud review the minority class is the expensive one — and decide deliberately how much headline accuracy you will trade for a correctly located decision threshold.

## What majority-label bias is When a prompt contains solved examples, the model conditions on the whole block. That block carries the mapping you intended (this kind of application gets approved) and one you did not intend: a sample of the label distribution. If three of four demonstrations say `approve`, the sequence looks like evidence that approval is the usual outcome. The model duly raises its prior on `approve`, and the effect is largest exactly where you least want it — on borderline inputs whose evidence is close to balanced, such as a permit application with an incomplete site plan but an otherwise clean record. This is separate from the model being wrong about the task. The mapping may be learned correctly; the decision threshold has simply moved. ## How it interacts with position Majority-label bias and recency bias are different mechanisms that add or cancel: - Majority: three `approve` demonstrations out of four raise the `approve` prior regardless of where they sit. - Recency: the demonstration adjacent to the query pulls hardest. So `approve, approve, deny, approve` is worse than `approve, approve, approve, deny` — the second at least ends on the minority label. Neither ordering removes the underlying 3:1 skew. This is why teams that only shuffle exemplars see the bias wobble rather than disappear: shuffling changes the recency component, not the majority component. ## Diagnosing it in a real system Accuracy hides this failure. A skewed classifier on a task whose true base rate is already skewed can post a respectable headline number while being useless on exactly the cases a human reviewer cares about. The diagnostic moves: 1. **Compare distributions, not just scores.** Take the predicted label histogram over a representative sample and put it next to the true base rate. A 92% predicted approval rate against a 60% actual rate is the signature. 2. **Look at per-class recall.** Majority-label bias shows up as collapsed recall on the minority class — the denials the system was built to catch are exactly the ones it misses. 3. **Probe with a content-free input.** Send something carrying no task evidence at all and observe which label the model still prefers. A strong preference is a direct read-out of the prompt's induced prior. 4. **Check the confusion matrix by difficulty band.** The bias concentrates on ambiguous inputs; clear-cut cases stay correct, which is why spot-checking obvious examples never reveals it. ## Why this matters more in some domains than others In permitting, lending, triage, moderation and fraud review the minority class is the expensive one. A model tilted toward the majority label produces a system that agrees with the happy path and quietly waves through the cases that needed scrutiny. The cost is asymmetric, so a two-point accuracy loss in exchange for a correctly located threshold is usually a good trade — and it is a trade an interviewer expects a senior candidate to articulate rather than optimise accuracy blindly. ## Correcting it The corrections that belong to the bias itself, rather than to how you pick examples: - **Prior correction / calibration.** Estimate the model's label prior from a content-free probe and divide it out of the predicted probabilities, so the decision reflects the input rather than the prompt's induced base rate. - **Threshold tuning on held-out data.** If you have label probabilities, move the operating point until the predicted distribution matches the observed base rate, or until the precision-recall tradeoff matches the business cost. - **Permutation ensembling.** Run several orders and majority-vote. This attenuates the recency component and averages some of the noise, though it cannot fully undo a lopsided label mix. - **Explicit base-rate statements.** Telling the model in the instruction that roughly forty percent of applications are denied sometimes helps, but it is a weaker lever than probability correction and should be verified rather than assumed. - **More demonstrations.** Adding shots dilutes the influence of any single one and generally reduces variance, at token cost. The balance of the exemplar pool itself — how many of each class you keep and how you curate them — is decided when the exemplars are chosen, and a well-balanced pool is the cheapest prevention. What this failure mode adds is the reminder that the prompt's label mix is a *statistical* input to the model, so you must measure the output distribution the way you would measure a classifier's calibration, not just its accuracy. ## The interview answer in one line Demonstrations set a prior as well as a mapping; an imbalanced shot set moves the decision threshold; you find it by comparing predicted to actual base rates, and you fix it by correcting the prior rather than by hoping a reshuffle absorbs it.

  • How does this bias interact with the position of the single deny example?
    They stack. Majority-label bias raises the approve prior no matter where the deny sits; recency bias then adds or subtracts depending on the tail. Putting the deny last partially offsets the skew because the demonstration adjacent to the query pulls hardest, but it cannot cancel a 3:1 label mix. Expect a reshuffle to move the bias, not remove it.
  • Accuracy is 88% and the team says the classifier is fine. What do you check?
    Per-class recall and the predicted label distribution. If the true denial rate is 40% and the model denies 8% of the time, an 88% headline just reflects the majority class. The metric that matters is recall on denials, plus a comparison of predicted versus observed base rates on a representative sample.
  • Does telling the model in the instruction that 40% of permits are denied fix it?
    Sometimes it helps, but it is a weak and unreliable lever compared with correcting the output probabilities. Stated base rates compete against the statistical evidence of the demonstrations, and the model may or may not weight them highly. Treat it as a hypothesis to measure on held-out data, never as a fix you can assume worked.

saying these in an interview costs you the question

  • Treating the skew as a model quality problem, not a prompt prior
  • Judging the classifier only by overall accuracy
  • Assuming reshuffling the same 3:1 shot set removes the bias
  • Confusing majority-label bias with recency bias
  • Ignoring which class is the expensive one to miss

context