How can I determine whether a new AI model is better than my current model?
Summary
- A new AI model is better than your current one only if it wins on your own tasks, scored with the same evaluation dataset and the same scorers you used for the current model. Public leaderboards can't settle it, because their tasks leak into training data and rarely match your workload.
- Define "better" before you test: quality first (correctness, grounding, safety, adherence to your guidelines), then cost per completed task and latency. A model that holds quality at a lower cost per task is a real improvement.
- Compare in two stages. An offline evaluation on a held-out dataset catches regressions safely, and an online test (a gradual rollout or an A/B test on live traffic) confirms the result with real users.
- On Databricks, MLflow evaluation scores both versions with identical judges, and Unity Gateway traffic splitting sends a chosen share of live requests to the new model.
How can I determine whether a new AI model is better than my current model?
Treat your current model as the champion and the new one as a challenger, then make the challenger prove itself on your data. Score both against the same evaluation dataset with the same scorers, compare the results request by request, and only then send the challenger a slice of live traffic. Expect plenty of tests to come back negative. Databricks' engineering team put it plainly: "Often, new models do not advance the efficiency frontier, and evaluations frequently produce negative results."
What does "better" mean for an AI model?
Define "better" per task before any test runs. Three dimensions matter:
- Quality. Is the answer correct, grounded in the retrieved data, relevant, safe, and in line with your own rules?
- Cost per completed task. Token price alone misleads. In Databricks' coding-agent benchmark, "The token price of a model is a poor indicator of actual costs incurred on end-to-end tasks," because larger models can finish with fewer tokens.
- Latency. Measure end-to-end response time, including retries and time spent repairing bad output.
Where a deterministic check exists (unit tests, exact answers, schema validation), use it. That benchmark graded with tests instead of an LLM judge, which it found "rewards sounding right over being right." Use LLM judges for open-ended quality, and calibrate them against human reviewers.
Offline evaluation vs. online testing: how they compare
| Question | Offline evaluation | Online testing |
|---|---|---|
| What it answers | Does the challenger hold up against the champion on known cases? | Does the result hold on real traffic? |
| Data | A held-out evaluation dataset, often built from production traces | Live requests routed to both models |
| Scoring | Built-in and custom scorers on every example | Scorers on a sample of traces, plus usage, latency and error metrics |
| Risk to users | None, since no user sees the challenger | Limited to the share of traffic you route to the challenger |
| Databricks feature | mlflow.genai.evaluate() and evaluation datasets |
Unity Gateway traffic splitting, inference tables, production monitoring (Beta) |
Databricks' MLOps guidance pairs the two: an offline comparison "evaluates both models against a held-out data set," and real-time systems may add "A/B tests or a gradual rollout of the new model." With no champion yet, compare the challenger to a business heuristic or a fixed threshold.
A practical comparison workflow
- Build the dataset from reality. Turn captured production traces into an evaluation dataset. Datasets are stored in Unity Catalog with versioning and lineage, so every result traces back to its data.
- Freeze the scorers. Pick built-in judges such as Correctness, RetrievalGroundedness and Safety, add Guidelines judges for your own rules, and write code-based scorers for deterministic checks.
- Run both versions. Call
mlflow.genai.evaluate()once per model with the same data and scorers, then select both runs under Evaluation runs and choose Compare. - Check cost and speed. MLflow tracing records "the inputs, outputs, latency, token usage, and cost of every intermediate step," so quality and spend come from the same runs.
- Roll out gradually. Put both models behind one Unity Gateway model service and set a traffic percentage for each.
- Promote or roll back. If the challenger holds up, move the "Champion" alias to its version in Unity Catalog. If not, route its traffic back to the champion.
How Databricks approaches model comparison
MLflow evaluation is the offline half. Evaluation datasets exist to test "different prompts, models, or app logic against the same data," and the tutorial evaluates a new version with "the same judges and dataset" as the old one. Judge alignment trains custom LLM judges to match human evaluation standards.
Unity Gateway is the online half. Traffic splitting "distributes requests across multiple model backends behind a single model service," across up to five destinations, for gradual rollouts and A/B tests. Routing decisions land in the system.ai_gateway.usage system table, which also records tokens and latency per request. Inference tables log requests and responses to Unity Catalog Delta tables. Production monitoring, in Beta, runs your scorers on a configurable sample of live traces.
In Models in Unity Catalog, a "Champion" alias points at the production version, and reassigning it is the promotion step.
FAQs
Can I rely on public benchmarks to pick a model?
Use them for a shortlist, not a decision. Databricks built its own coding benchmark partly because public tasks are public, "so the solutions leak into training data over time."
How much live traffic should a challenger get first?
Start with a share small enough to limit risk but large enough for your metrics to read clearly, then raise it as quality, cost and error rates hold.
What if the new model is cheaper but slightly worse?
Decide against your quality bar. If the challenger clears every required scorer and costs less per completed task, it's the better model for that workload.
Do I need labeled ground truth?
Not always. Evaluation datasets can be labeled or unlabeled, and judges such as Guidelines and Safety check responses against rules. Add ground-truth labels from domain-expert labeling sessions when a check needs known answers.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.