# Harness Learning Enables Generalizable Test-Time Adaptation

- **ID:** 851
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2609.35738
- **Authors:** Alvin Zhang, Xuecheng Liu, Zixuan Wang, Fahim Tajwar, Daman Arora, Ruslan Salakhutdinov, Daniel Khashabi, Yuda Song, Andrea Zanette
- **Venue:** arXiv:2609.35738 (cs.CL), submitted 28 Sep 2026
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **Tags:** harness-learning, harness-optimization, test-time-adaptation, meta-learning, proposer-model, execution-feedback, reasoning-gym, hotpotqa, musique, continual-learning-agents
- **Topics:** agent harnesses, test-time adaptation, meta-learning, reinforcement learning, multi-hop QA, continual learning
- **Added:** 2026-10-01
- **Verified:** 2026-10-01
- **Page:** https://papers.projxon.ai/entries/851

## Summary

Introduces harness learning: instead of updating model weights at test time, train a proposer model to revise the solver's executable harness — the program organizing model calls, tool use, and information flow — using execution feedback. Framed as meta-learning over executable programs, with harness revisions playing the role of weight updates; the proposer is trained with RL using revised harnesses' task performance as reward, and candidate harnesses run under a frozen solver. On 21 unseen Reasoning Gym families, SFT followed by RL raises mean single-revision score from 0.32 (base proposer) to 0.62, and the trained 4B proposer beats its 35B teacher on average. A QA proposer trained with RL only on HotpotQA transfers to MuSiQue and 2WikiMultihopQA, with ten revision rounds nearly doubling exact match. Policies trained on single revisions keep improving harnesses over multiple rounds, suggesting harness design can become a reusable adaptation skill.

## From the source (fetched 2026-10-03)

- **Published:** Sep 28, 2026 (arXiv)
- **arXiv categories:** cs.CL, cs.LG (arXiv)
- **Citations:** 0 (Semantic Scholar)
- **References:** 47 (Semantic Scholar)

## Abstract

A language-model agent is jointly defined by its model and its harness, the executable program that organizes model calls, tool use, and information flow. Because different tasks call for different ways of organizing these operations, the harness needs to be adapted using feedback from the task at hand. We introduce harness learning, which trains a proposer model to revise a solver's harness using execution feedback. We formulate this process as meta-learning over executable programs, with harness revisions playing the role of weight updates in gradient-based adaptation. We train the proposer with reinforcement learning, using the task performance of revised harnesses as the reward. At test time, the proposer uses feedback from successive executions on a new task to refine the harness, without performing any parameter-space update. Experiments on reasoning and multi-hop question answering show that harness learning improves revision quality and that the ability to adapt at test time transfers to unseen tasks. Policies trained on individual revisions can continue improving harnesses over multiple rounds, while the benefits of training on revision sequences vary across settings. These findings suggest a path towards continually learning agents that turn accumulated experience into generalizable improvements.

## Research notes

- Discovery: @rsalakhu X post 2026-10-01 (https://x.com/rsalakhu/status/2105730919466246640) quoting lead author @ZAlvin39105's thread 2026-09-30 (https://x.com/ZAlvin39105/status/2105329046359875658)
- Outer/inner loop: given task description, current harness, and execution report, the proposer writes a code edit; candidate harnesses run with a frozen solver and their task performance is the RL reward; at test time the inner loop repeatedly revises the harness from execution feedback while both models' weights stay fixed
- Reasoning: 21 unseen Reasoning Gym families (excluded from both training phases); SFT + RL raises mean single-revision score 0.32 -> 0.62; trained 4B proposer outperforms its 35B teacher on average (0.62 vs 0.56), though the teacher remains stronger under oracle best-of-eight selection; gains are in the mean over all proposals, so individual revisions become more useful before best-candidate selection
- QA: separate proposer trained directly with RL on HotpotQA (no teacher demonstrations) transfers to MuSiQue and 2WikiMultihopQA; on MuSiQue ten revision rounds raise exact match ~0.14 -> 0.27 (avg of four runs); on both unseen QA benchmarks each RL proposer's average final run exceeds the oracle best of 80 independent revisions
- What revisions learn: e.g. keep summaries for guiding retrieval but pass original retrieved passages to the answering call; add retrieval hops or re-search when a draft answer is absent from passages
- Open questions noted: training on revision sequences does not consistently improve over single-revision training (per-edit immediate rewards leave cross-chain credit assignment unexplored); SFT data from a single teacher over a limited range of harness designs; fixed context-assembly procedure limits failure patterns seen
- Code (release soon): https://github.com/AlvinZH04/Harness-Learning
- Website: https://alvinzh04.github.io/Harness-Learning-Website/
- License: CC BY 4.0

## Cites, within this collection

- [STaR: Bootstrapping Reasoning With Reasoning](https://papers.projxon.ai/entries/912) (paper 2022, #912)

## Similar entries

- [MemoHarness: Agent Harnesses That Learn from Experience](https://papers.projxon.ai/entries/470) (paper, #470)
- [Mixture of Self-Improving Branches For Agent Harness Optimization](https://papers.projxon.ai/entries/1193) (paper, #1193)
- [Multi-Agent LLMs Fail to Explore Each Other](https://papers.projxon.ai/entries/467) (paper, #467)
- [Learning to Learn a Language](https://papers.projxon.ai/entries/1288) (paper, #1288)
- [A Poetiq Perspective on Recursive Self-Improvement](https://papers.projxon.ai/entries/1091) (post, #1091)
- [The ultimate guide to multi-harness RL](https://papers.projxon.ai/entries/839) (post, #839)
