Interactive and Long-Horizon Task Evaluation › Why single-turn grading breaks for agents
Language AI HandbookAll chapters Consider filing an expense report. The reference trajectory reads a receipt, creates a draft, sets its amount and category, and submits it. The submit response reports acceptance. The scoring rule checks the final report and earlier attempted actions.
A correct final report can coexist with a forbidden attempt later in the trajectory. In the toy environment, a second submission is blocked, but a scorer that inspects only the first accepted report misses that attempt.
A binary outcome collapses several kinds of failure. A report with the correct amount and the wrong category has made progress on one check, and a decomposed score records that difference.
These two failure modes are structural features of any multi-step task, not incidental quirks of the expense-report task, and they explain why the machinery of interactive evaluation exists. A single-turn grader is, in effect, a function that inspects one output and returns a verdict. It has no memory of what came before, no notion of what the output did, and no way to distinguish a lucky ending from a well-earned one. The moment a task requires a sequence of dependent actions, those blind spots become the dominant source of measurement error.
Interactive evaluation addresses both by modeling the environment explicitly. Rather than a function score(response) -> number, you write the following components:
- a state
s(everything the environment remembers), - a set of actions
athe agent can take, - a transition function
s' = T(s, a)that defines how the world changes, including error conditions, - a goal predicate
G(s)that decides whether the task is solved, and - a trajectory scorer
J(s_0, a_1, s_1, ..., s_n)that turns the whole episode into metrics.
When the agent sees observations while the evaluator sees the full state, a partially observable decision process is a useful model. The transition applies an action and returns a new observation. The evaluator can inspect state the agent never sees. This distinction is familiar from dialogue state tracking.
The design must specify which observations the policy receives and which state the evaluator can use for scoring. The harness should record enough of both to diagnose failures.
Stateless grading vs stateful grading
The following table makes the contrast precise before we build anything.
| Dimension | Stateless grading | Stateful grading |
|---|---|---|
| Unit of judgment | One output string | A trajectory of actions |
| Environment | None; the model has no side effects | Explicit, mutable, often persistent |
| Success | Pattern match or semantic match | Goal predicate over final state |
| Partial credit | Substring/embedding overlap | Decomposition over subgoals |
| Failure attribution | Inspect the output and grader | Inspect steps and effects; a trace may leave causes ambiguous |
| Gaming surface | Answer leakage | Reward hacking of the environment |
| Sources of variation | Decoding or grader execution | Decoding, grader execution, or environment |
With a fixed grader and execution setup, stochastic decoding can make stateless scores vary. A stateful task can vary even with a fixed decoder when tool behavior, observations, or concurrent state changes vary.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!