Agents, Tool Use & MCP·Question 29 of 90Intermediate

Explain pass@k vs pass^k. Why does the distinction matter for production agents?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

pass@k asks: given k attempts, does at least one succeed? pass^k asks: do all k attempts succeed? If per-trial success probability is p (independent trials), pass@k ≈ 1−(1−p)^k grows with k, while pass^k ≈ p^k shrinks with k. They measure opposite things: pass@k measures capability - "can the model do this at all?" - and is the right metric when you have a verifier and can sample many candidates (code generation against tests, best-of-n). pass^k measures consistency, and was popularised by τ-bench (Sierra, 2024) precisely because agent results looked far better under pass@1 than under pass^8: models that succeed ~60% of the time per trial collapse to small pass^8 values, exposing how unreliable per-episode behaviour is.

Full worked answer

pass@k asks: given k attempts, does at least one succeed? pass^k asks: do all k attempts succeed? If per-trial success probability is p (independent trials), pass@k ≈ 1−(1−p)^k grows with k, while pass^k ≈ p^k shrinks with k. They measure opposite things: pass@k measures capability - "can the model do this at all?" - and is the right metric when you have a verifier and can sample many candidates (code generation against tests, best-of-n). pass^k measures consistency, and was popularised by τ-bench (Sierra, 2024) precisely because agent results looked far better under pass@1 than under pass^8: models that succeed ~60% of the time per trial collapse to small pass^8 values, exposing how unreliable per-episode behaviour is.

Why production cares about pass^k: a deployed agent gets one attempt per user episode, but serves many episodes. A user who runs the same kind of request eight times experiences roughly pass^8 - one bad episode erodes trust more than seven good ones build it. "It usually works" is a demo property; "it works every time for this task class" is a product property, and pass^k is the metric that tracks the latter.

The engineering implication is the deeper point: raising pass@k rewards adding search (sample more, verify, pick best). Raising pass^k rewards reducing variance: tighter prompts and tool descriptions, fewer confusable tools, deterministic harness behaviour, guardrails that catch known derailments, verification steps inside the loop, and lower-temperature or more constrained decoding where creativity isn't needed. Those are different investments, and teams optimising leaderboard pass@1 often ship products whose pass^k is poor.

Practical note: measure it by running each eval task k times (τ-bench used k up to 8) and reporting the all-success rate per task class; the gap between pass@1 and pass^k is your variance budget to attack.

What a good answer covers

  • pass@k asks: given k attempts, does at least one succeed? pass^k asks: do all k attempts succeed?
  • If per-trial success probability is p (independent trials), pass@k ≈ 1−(1−p)^k grows with k, while…
  • Why production cares about pass^k
  • A user who runs the same kind of request eight times experiences roughly pass^8 - one bad episode erodes…
  • "It usually works" is a demo property; "it works every time for this task class" is a product property,…

Key terms: consistency · reducing variance

Interviewer follow-ups to expect

  1. Your agent has pass@1 of 80% and pass^4 of 40% - what does that tell you and what do you try first?

  2. When is best-of-n with a verifier a legitimate way to convert pass@k into pass^1?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep