DEV Community

Charlie Xu
Charlie Xu

Posted on

Grade the Ablation, Not the Agent: A Lab Checkpoint

In an agent-building lab, ask students to disable a single component and explain the change in outcomes. A useful submission might show that retrieval helped several tasks and harmed others, or that this particular experiment could not resolve a difference. The grade should reward the evidence for that conclusion.

Freeze and pair the experiment

Publish a frozen set of task IDs, evaluation rules and run budget. Run each configuration on the same tasks. If the harness supports reproducible seeds, assign each task and replication a seed shared across the two configurations. Record attempts separately and interleave their order. Identical seeds do not guarantee identical output from a remote backend. Use a separate held-out set if students tuned the system using the original cases.

Record the exact input and output references, grade and component-use observation for each trial. “Retrieval disabled” in the configuration is insufficient evidence that the result changed for that reason. A fixture with a lookup that must be used can show that the full path called the retriever and that the disabled path made no such call.

Interpret the comparison

Compute a mean grade within each task and configuration. Pair the two means within the task before summarizing changes. Show wins, losses and ties with their task IDs. For an inference about a wider task population, state how tasks were sampled and use a method that respects those pairs. Separate intervals for two unpaired rates do not give the uncertainty of their paired difference.

A deliberately broken retrieval fixture is a positive control for the wiring. Detecting a large synthetic failure does not establish statistical power to detect a small improvement on the real task set. Award credit for a verified intervention, complete records, a clear effect size and a candid statement of what the sample cannot distinguish.

Test whether retrieval was actually removed

Create one held-out fixture whose synthetic lookup returns a unique label absent from the prompt. Instrument the lookup call and compare the two configurations with the same task. The full configuration should call the lookup as specified; the disabled configuration should make zero lookup calls. Record the answer grade separately. Even if both happen to answer correctly, the call counts still test the intervention.

This article was created with AI assistance.

Top comments (0)