WHALE: A Simple Recipe for Joint Harness-Weight Optimization
Not on the map. Why?
Abstract (arXiv)
Agent performance depends jointly on the model parameters and the executable harness code that manages context and control flow. Optimizing either component in isolation can leave the system bottlenecked by its frozen counterpart: weight updates can change which harness is effective, while harness updates can change which model capabilities are exposed. Existing joint-adaptation methods optimize weights and textual prompts but leave the broader harness fixed. We propose Weight-Harness Alternating LEarning (WHALE), a simple recipe that alternates two phases: updating the model under the current harness, then searching for a better harness under the updated model. We instantiate these two phases with online rejection-sampling fine-tuning and Meta-Harness, respectively. When to switch is a key design choice: to separate real improvements from noise without over-optimizing against a changing counterpart, WHALE uses either fixed phase durations or an adaptive patience rule over training signals. Using Qwen3.5-2B/4B agents across three domains (search question answering, mathematical reasoning, and chess puzzles), WHALE outperforms weight-only, harness-only, and Fast-Slow Training by 4.15-24.38 percentage points in best mean@8 accuracy. Either component can be the bottleneck: harness search matches peak weight-only accuracy with far fewer rollouts in SearchQA, but improves math accuracy only after a weight update. Small interleaved updates also outperform stagewise weight-then-harness optimization in accuracy and rollout cost. The code is available at https://github.com/krafton-ai/WHALE.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 36 of its 43 references that are in the map. First posted on arXiv 31 Aug 2026.
Builds on
36 of 43 references.
References · 36
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,810
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,444
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,128
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,075
24 more
- 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 916
- 2023Large Language Models as Optimizerscited by 864
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
- 2023RAFT: Reward rAnked FineTuning for Generative Foundation Model Alignmentcited by 686
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 542
- 2023Reinforced Self-Training (ReST) for Language Modelingcited by 500
- 2023RRHF: Rank Responses to Align Language Models with Human Feedback without tearscited by 463
- 2024AFlow: Automating Agentic Workflow Generationcited by 432
- 2024Automated Design of Agentic Systemscited by 407
- 2025ReTool: Reinforcement Learning for Strategic Tool Use in LLMscited by 392
- 2023Beyond Human Data: Scaling Self-Training for Problem-Solving with Language Modelscited by 349
- 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 309
- 2015Coordinate Descent Algorithmscited by 219
- 2024AgentSquare: Automatic LLM Agent Search in Modular Design Spacecited by 155
- 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnessescited by 142
- 2024Language Agents as Optimizable Graphscited by 89
- 2024Fine-Tuning and Prompt Optimization: Two Great Steps that Work Better Togethercited by 40
- 2026Evolving Agents in the Dark: Retrospective Harness Optimization via Self-Preferencecited by 19
- 2026AutoSaddler: Automatic Harness Optimization with Durable Updates from Agent Execution Tracescited by 15
- 2026Learning, Fast and Slow: Towards LLMs That Adapt Continuallycited by 6
- 2026Evolutionary System Prompt Learning for Reinforcement Learning in LLMscited by 5
- 2025Composing Policy Gradients and Prompt Optimization for Language Model Programscited by 4
- 2026P^2O: Joint Policy and Prompt Optimizationcited by 3
- 2025Prompt and Parameter Co-Optimization for Large Language Modelscited by 2
Built on by
Citing papers per year: 2026: 11.
11 papers.
- 2026Recursive self-improvement of AI research agentscited by 11
- 2026Harness-Zero: Harness Distillation via Agent-as-Harnesscited by 5
- 2026AgentVidBench: A Multi-Hop Video Question Answering Benchmark for Evaluating MLLM Agentscited by 0
- 2026PUBG Ally: A Conversational Embodied Agent as an AI Teammatecited by 0
- 2026RLHarness: Co-evolving Procedural Skills with Reinforcement Learning for Long-horizon Multimodal Reasoningcited by 0
- 2026Harness Learning Enables Generalizable Test-Time Adaptationcited by 0
- 2026VACE: Validation-Gated Alternating Co-Evolution of Agent Models and Harnessescited by 0
- 2026ActiveSaddler: Automated Curriculum Learning for Agent Harness Optimizationcited by 0
- 2026Not All Experience Belongs in the Weights: Component Routing for Self-Improving GUI Agentscited by 0
- 2026ASCENT: Online Test-Time Training of Long-Horizon Agents via Self-Distillation of Verified Experiencecited by 0
- 2026Harness Evolution Hits a Ceiling: When Weight Training Should Begincited by 0
- 2026Harness Evolution Hits a Ceiling: When Weight Training Should Begin8 Oct 2026
- 2026ASCENT: Online Test-Time Training of Long-Horizon Agents via Self-Distillation of Verified Experience4 Oct 2026
- 2026Not All Experience Belongs in the Weights: Component Routing for Self-Improving GUI Agents1 Oct 2026
- 2026ActiveSaddler: Automated Curriculum Learning for Agent Harness Optimization1 Oct 2026
- 2026VACE: Validation-Gated Alternating Co-Evolution of Agent Models and Harnesses29 Sep 2026
- 2026Harness Learning Enables Generalizable Test-Time Adaptation28 Sep 2026
- 2026RLHarness: Co-evolving Procedural Skills with Reinforcement Learning for Long-horizon Multimodal Reasoning26 Sep 2026
- 2026PUBG Ally: A Conversational Embodied Agent as an AI Teammate24 Sep 2026
- 2026Recursive self-improvement of AI research agents22 Sep 2026
- 2026Harness-Zero: Harness Distillation via Agent-as-Harness21 Sep 2026
- 2026AgentVidBench: A Multi-Hop Video Question Answering Benchmark for Evaluating MLLM Agents18 Sep 2026
Similar, not cited
Close in wording, no citation either way
- 2026HarnessCompass: Guiding Automatic Harness Evolution toward Generalizable and Effective Agent Harnesses
- 2026HarnessBandit: Joint Learnability-Transferability Scheduling for Multi-Harness Agentic Reinforcement Learning
- 2026CHART: A Harness-Rotation Curriculum for Harness-Robust Search Agents
- 2026DemoEvolve: Overcoming Sparse Feedback in Agentic Harness Evolution with Demonstrations
- 2026SKIMIX: Multi-Agent Harness-Time Scaling with Skill Mixture for Dynamic Harness Engineering
- 2026HarnessX: A Composable, Adaptive, and Evolvable Agent Harness Foundry
- 2026Where Does Harness-Optimization Value Live? Localized Gains and the Budget-Splitting Trap in Self-Evolving LLM Agents
- 2026SIA: Self Improving AI with Harness & Weight Updates