WhoBuilt

Building and evaluating AI Agents

Apr 17, 2025· 20 min· 248K views·Watch on YouTube

Speaker

Sayash Kapoor, an AI researcher at Princeton and coauthor of AI Snake Oil, speaks at AI Engineer about why AI agents are hard to evaluate and make reliable in practice.

Agents are spreading, but ambitious claims lag

Kapoor describes agents as language models that control a system’s flow, including tools like ChatGPT and Claude. More advanced products can handle open-ended tasks, but visions of broadly capable assistants remain far from reality. He urges engineers to build agents that work for the people who use them.

Agent evaluation needs real tasks and cost measures

Kapoor points to failures including DoNotPay’s unsupported legal performance claims and hallucinations in LexisNexis and Westlaw products. On CORE-Bench, which tests whether agents can reproduce research papers, leading systems reproduced fewer than 40% of papers. He argues that agent evaluations must account for real-world actions, task-specific benchmarks, and cost alongside accuracy.

Benchmarks can mislead about real-world performance

Kapoor’s Princeton leaderboard compares agent accuracy and cost; he gives the example of Claude 3.5 costing $57 to run versus $664 for OpenAI o1 at similar performance. Lower model prices do not eliminate cost concerns, since scaling can increase usage. He also notes that Devin succeeded at only three of 20 tasks in a month-long real-world trial by Answer.AI, and recommends human experts help validate evaluation criteria.

Reliability is different from capability

A model’s ability to produce a correct answer sometimes does not mean an agent will succeed consistently. Kapoor says consequential products need reliability, pointing to personal assistants that fail at a basic task like ordering food correctly 20% of the time. Verifiers can also be flawed: tests in HumanEval and MBPP sometimes pass incorrect code, which can make repeated attempts less trustworthy.

Treat AI engineering as reliability engineering

Kapoor frames agent development as a system design challenge: engineers must build software around the stochastic behavior of language models. He compares this work to early ENIAC engineering, when frequent vacuum-tube failures made the computer unavailable half the time and engineers focused on improving reliability. He argues that making agents dependable for end users is a central job of AI engineering.

Takeaways

  • Evaluate agents on realistic tasks, not only static benchmarks.
  • Track cost alongside accuracy, especially as agents make repeated or nested calls.
  • Use domain experts to review and improve evaluation criteria.
  • Test verifiers for false positives before relying on them to improve reliability.
  • Design systems to handle model failures and deliver consistent outcomes.

Mentioned in this talk

Search inside this talk

What was claimed 12

Show all 12 facts

Related talks