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
📐 Mathematical Definition
⚡ 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 and specificity from human validation splits to compute unbiased prevalence and confidence intervals
- •L3 Cross-Family Jury: combine heterogeneous model families plus weekly human-audited calibration pools to catch judge drift
📐 Mathematical Derivations
Inverting yields , 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.
📚