TTHE: Test-Time Harness Evolution

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Expert, quick

Summary

Test-Time Harness Evolution (TTHE) introduces a novel approach to optimize Large Language Model (LLM) agent behavior by adapting their executable harnesses during evaluation itself. Unlike existing methods that pre-optimize harnesses on development data, TTHE refines agent workflows using only unlabeled execution traces generated on test inputs. This system maintains a population of candidate harnesses, which an agentic proposer refines by reasoning over their traces. A judge then commits an improved harness based on execution-derived proxy signals, and this selected program governs subsequent inputs. Crucially, TTHE achieves adaptation without updating model weights, requiring gold labels, or training a separate adaptation model, focusing solely on changes to the surrounding program. It has demonstrated persistent, inspectable improvements over fixed ReAct-style baseline harnesses across diverse tasks including text-to-SQL, competitive programming, and agentic tool-use.

Key takeaway

For Machine Learning Engineers deploying LLM agents in dynamic environments, TTHE offers a critical paradigm shift for post-deployment adaptation. You should investigate TTHE as a method to continuously refine agent behavior using only execution traces, bypassing the need for costly model retraining or new labeled data. This approach promises more robust and inspectable agent improvements, particularly when test distributions diverge from development data, ensuring your agents remain effective without manual intervention.

Key insights

TTHE optimizes LLM agent harnesses during test-time using unlabeled execution traces, without model weight updates or gold labels.

Principles

Method

Maintain a population of candidate harnesses; refine them via an agentic proposer reasoning over execution traces; a judge commits improved harnesses using execution-derived proxy signals; the selected program persists for subsequent inputs.

In practice

Topics

Best for: Research Scientist, AI Architect, AI Scientist, Machine Learning Engineer, AI Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.