AI Engineer DojoAll lessons  Courses
Free lesson · The AI Evaluation Engineer · Lesson 11

Ship or Hold?

Your company's support agent runs on GPT-4o and handles two businesses: an online store and an airline. A newer model, Claude 3.5 Sonnet, scores higher on the benchmark your team trusts. The head of support wants to switch next week and asks you for a one-page recommendation: ship the new model, hold it, or something in between.

How this lesson works

This is the last lesson, and it uses what the others taught: paired comparisons and ranges (Lesson 1), reading what went wrong instead of trusting the score (Lessons 4 and 6), consistency across repeated runs and rules in tools (Lesson 8). You'll make the call the way you would at work, then write the memo. Plan on about an hour. The script needs only Python.

The data

The same τ-bench runs as Lesson 8: 115 store tasks and 50 airline tasks, each a simulated customer with a request, graded by whether the database ends up exactly right. GPT-4o ran each task 4 times and Claude 3.5 Sonnet 8 times. Here GPT-4o is "old" and Claude is "new."

Source: Yao et al., 2024, "τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains." Runs from github.com/sierra-research/tau-bench, MIT license.

Step 1

Is the gain real?

The vendor's summary:

Old (GPT-4o)New (Claude 3.5 Sonnet)
Store, success per run60%69%
Airline, success per run42%46%
Predict first
Once you allow for chance, the new model is clearly better in:

  domain   tasks  old, per run  new, per run  new minus old        95% range  resamples new ahead
  retail     115           60%           69%          +8.8%    +2.5% to +15.2%                 100%
  airline     50           42%           46%          +4.0%    -5.2% to +13.8%                  79%

This is the paired resampling from Lesson 1, with tasks in place of questions: take the difference on each task, then redraw the tasks 5,000 times. In the store the whole range is above zero, so the gain is real. In the airline the range runs from 5 points worse to 14 points better, and in 1 of 5 redraws the old model comes out ahead. With 50 tasks, a 4-point gap can't be told apart from chance.

Data: τ-bench historical trajectories, Sierra, MIT license. Yao, S. et al. (2024). τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains.