M9-045M9: Senior ML & AI System DesignFeature Store, Sharding & CI InfraMedium
⚡Flashcard Drill➔Mastery:

Design a Bias-Calibrated Production LLM-as-a-Judge Evaluation System

🎯 Active Recall Self-Check (Draft First, Verify After)
Login-free practice tracker: recall core answer, audit pitfalls, and log review status.
Step 1 · Draft your concise answer & assumptions
Step 2 · Check Pitfalls & Follow-up Inquiries
Next: M10-001 →
📐 Mathematical Definition
π^true=p^judge−(1−q0)q1+q0−1,CIbias-free=Bootstrap(Swap(A,B))\hat{\pi}_{\text{true}} = \frac{\hat{p}_{\text{judge}} - (1 - q_0)}{q_1 + q_0 - 1},\quad \text{CI}_{\text{bias-free}} = \text{Bootstrap}(\text{Swap}(A,B))
⚡ One-Sentence Core Answer
Eliminate position, verbosity, and self-preference biases in automated LLM judges via symmetric A/B swapping, length-controlled regression, and Rogan-Gladen prevalence calibration.

📌 Key Takeaways

  • •
    L1 Three Judge Biases: systematically control Position Bias (slot-A preference), Verbosity Bias (length reward), and Self-Enhancement Bias
  • •
    L2 Symmetric Swap & Length Control: evaluate both (A,B) and (B,A) (declaring ties on flips) and regress out token-length effects
  • •
    L2 Rogan-Gladen Calibration: invert measured judge sensitivity q1q_1 and specificity q0q_0 from human validation splits to compute unbiased prevalence π^\hat{\pi} and confidence intervals
  • •
    L3 Cross-Family Jury: combine heterogeneous model families plus weekly human-audited calibration pools to catch judge drift

📐 Mathematical Derivations

Inverting pjudge=πq1+(1−π)(1−q0)p_{\text{judge}} = \pi q_1 + (1-\pi)(1-q_0) yields π^=p^judge+q0−1q1+q0−1\hat{\pi} = \frac{\hat{p}_{\text{judge}} + q_0 - 1}{q_1 + q_0 - 1}, propagated via bootstrap across both judge and human calibration samples.

🏭 Production Trade-offs

1) Full symmetric A/B swapping doubles judge compute—run fast deterministic checks first and reserve symmetric swaps for close pairs; 2) Binary checklist rubrics outperform subjective 1-10 Likert scales.
⚠️ Common Interview Pitfalls
  • ✕
    Using the exact same candidate model family as sole judge, amplifying self-preference bias
  • ✕
    Celebrating a +2% raw judge delta without propagating human-calibration error bars via Rogan-Gladen
🎯 Interviewer Follow-up Inquiries
  • ?
    How do you fuse deterministic execution verifiers (unit tests/SQL execution) with rubric judges cleanly?
  • ?
    How do you prevent automated prompt optimizers from hacking stylistic quirks of a fixed LLM judge?
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.
🎯 Drill This Card Now➔
📚

Associated Knowledge Base Guides & Mindmaps

← PreviousM9-044: Design a 10B-Doc Distributed Embedding Backfill & Zero-Downtime Re-Indexing Pipeline📋 Back to BankNext →M10-001: MLE Deep-Dive: Defend Debugging an Offline-Online Divergence Case