TTHE: Test-Time Harness Evolution
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
- LLM agent behavior is determined by its harness, not just the model.
- Test-time adaptation can evolve executable control programs.
- Robust unsupervised agent improvement relies on execution-derived proxy reliability.
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
- Improve ReAct-style baseline harnesses.
- Enhance performance in text-to-SQL tasks.
- Apply to agentic tool-use scenarios.
Topics
- LLM Agents
- Test-Time Adaptation
- Harness Evolution
- Unsupervised Learning
- Agentic Tool-Use
- Program Synthesis
Best for: Research Scientist, AI Architect, AI Scientist, Machine Learning Engineer, AI Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.