KatInterview

Design a Hybrid Model Evaluation System with Human Review

Machine LearningModel answer
HardModel answerMachine Learningsystem-designmlopshuman-in-the-loop

Last updated

Design a scalable evaluation platform that combines automated metrics, LLM-based judging, and human expert review to assess ML model outputs with full provenance tracking.

Design a Hybrid Model Evaluation System

Your team builds and ships ML models that must be rigorously validated before deployment. Spot-checking outputs by hand does not scale, but fully automated metrics miss subtle or safety-critical failures. You need a system that combines both.

Design a hybrid evaluation platform that grades model outputs using a layered approach: fast automated metrics first, an LLM-based judge for nuanced cases, and human expert review as the final arbiter for high-stakes or uncertain results.


Context

You are evaluating a perception and planning model. Each scenario is a short log segment (roughly 10–30 seconds) containing the model's predictions (e.g., object tracks, planned trajectory) alongside ground-truth labels. Scenarios are organized into versioned scenario sets for reproducibility.


Requirements

Functional

  1. Batch orchestration: Accept an evaluation job specifying a model version, a scenario set, and an evaluator suite, then process all scenarios through the full grading pipeline.
  2. Multi-tier grading: Automated metrics run first. An LLM judge handles cases that need contextual reasoning. Outputs that are uncertain, contradictory, or safety-critical are escalated to human raters.
  3. Versioned evaluation store: Track every prompt, metric implementation, and grading decision so that a regression from one model version to the next can be traced to a specific evaluator change.

Non-functional

  1. Throughput: Handle thousands of scenarios per hour at peak load.
  2. Rater quality control: Detect and correct for bias or inconsistency among human evaluators.
  3. Extensibility: Adding a new metric or judge should not require changes to the core orchestration logic.

Your Task

Provide a high-level architecture covering these four areas:

  1. Data model — How do you store evaluation results, ground truth, and the full provenance of every score (who or what assigned it, under which version of the grading logic)?
  2. System architecture — How do results flow from automated workers through the LLM judge to the human review queue? How is escalation decided, and how is the human workload budgeted?
  3. Quality control — How do you measure and maintain consistency between human raters, and how do you validate that the LLM judge agrees with human consensus?
  4. API/interface — What endpoints does a researcher need to submit a job, monitor progress, and query results with regression comparisons?

Discuss trade-offs where relevant: throughput vs. label quality, coverage vs. redundancy, and how you would phase the system for an early-stage team vs. one operating at scale.

Hints

Hint 1

Start by pinning down scale: how many scenarios per hour, what fraction gets escalated to humans, and how long human review takes. That math tells you where the real bottleneck is and what the human staffing requirement looks like.

Hint 2

Separate 'judgments' (raw scores from a specific evaluator at a point in time) from 'final grades' (derived aggregates). Keeping judgments append-only gives you full provenance and lets you retroactively re-score when a judge or metric changes.

Hint 3

Think about your escalation policy as a versioned config, not hardcoded logic. Escalation triggers — LLM confidence below a threshold, conflicting scores, a safety-critical metric firing, out-of-distribution scenarios — should be tunable without touching the orchestration code.