arXiv:2611.02079cs.AINov 2026

Manuscript Offprint

arXiv:2611.02079

ParetoSaddler: Pareto-Guided Optimization of Agent Harnesses for Quality and Cost

Xingzhi Qian, Sungho Park, Rongyuan Tan, Jianbo Yu, Jue Zhang, Lorenzo Cavallaro, Menglin Xia, Yanzhi Chen, Xinnuo Xu, Yu Kang, Xinran Zheng, Gagan Somashekar, Xuchao Zhang, Chetan Bansal, Qingwei Lin, Victor Rühle

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Harness optimization can substantially improve LLM agents without modifying model weights, but existing methods primarily optimize response quality. Extending them to joint quality–cost optimization introduces a challenge: applying the deployment preference during intermediate updates can prematurely reject candidates that are valuable for later improvements. We introduce ParetoSaddler, which addresses this mismatch by separating intermediate candidate promotion from final deployment selection. At each iteration, an optimizer updates a parent harness to produce a candidate, and then compares the two over repeated executions and uses Bayesian bootstrap Pareto support to promote candidates showing credible progress in either quality or cost. Promoted candidates receive broader development evaluation and remain available as parents for later optimization steps. We evaluate ParetoSaddler on ClawMark and GAIA2 using domain-disjoint splits. On ClawMark, ParetoSaddler improves quality from 70.86% to 81.35% while reducing cost from 1.17to1.17 to1.01 per task; on GAIA2, it improves quality from 56.22% to 62.89% while reducing cost from 0.78to0.78 to0.45 per task. The Pareto-selected harnesses also achieve higher quality at lower cost than quality-only harness optimization. Analysis shows that Pareto-aware optimization retains intermediate candidates that would be discarded by deployment preference but can support later improvements, while Bayesian bootstrap screening filters out candidates whose gains are weakly supported across runs. Project website and code will be available at https://aka.ms/ParetoSaddler-website.

1 INTRODUCTION

Large language models (LLMs) have enabled agents that reason, use tools, and interact with executable environments to solve increasingly complex tasks. An agent’s capabilities arise from both its underlying model and its harness: the prompts, tools, middleware, and control logic that mediate its interaction with the environment. Even with model weights fixed, modifying these components can substantially improve agent performance (LangChain, 2026). This has motivated growing interest in automatic harness optimization (AHO) (Lee et al., 2026; Park et al., 2026), in which an external optimizer diagnoses execution traces and updates the surrounding harness to improve the task agent.

Most existing AHO methods optimize primarily for task quality, whereas real-world deployment must also consider execution cost and other requirements such as safety and privacy. Here, we focus on jointly optimizing task response quality and LLM token cost. Deployment preferences may specify a fixed quality–cost trade-off, impose an explicit constraint, or defer selection among Pareto

*Work done during an internship at Microsoft. †Corresponding author.

Figure

Figure 1: Quality-cost optimization on the development sets of ClawMark and GAIA2. Each marker represents a harness evaluated on the development set; better solutions lie toward the upper left. Stars denote the initial harness, and enlarged outlined markers highlight the final candidates retained by each method. Solid green lines trace harness evolution in ParetoSaddler; green markers not connected by solid lines denote candidates not selected for further refinement. Dashed lines connect candidates on the Pareto fronts of ParetoSaddler and Meta-Harness. ParetoSaddler discovers high-quality harnesses in a lower-cost region not reached by the evaluated baseline candidates.

alternatives. This multi-objective setting raises a key question beyond final deployment selection: which intermediate harness updates should remain available for continued optimization?

This distinction is particularly important for AHO methods with staged evaluation, where locally generated updates are screened before receiving broader development evaluation (Park et al., 2026). The screening decision does more than reduce evaluation cost: it also determines which intermediate harnesses remain available for subsequent refinement. Applying the final deployment preference directly at this stage can therefore prematurely reject updates whose immediate quality–cost trade-off is unfavorable but whose changes enable stronger solutions later, consistent with prior optimization research showing that search guidance need not coincide with the ultimate objective (Knowles et al., 2001; Lehman & Stanley, 2011). For long-horizon agents, this mismatch can arise naturally because execution cost is often coupled with task progress: a harness may appear inexpensive simply because some executions terminate prematurely, whereas a patch that fixes such failures may improve quality while increasing cost through additional reasoning or environment interaction. Rejecting the update solely because it temporarily violates the deployment cost preference can prevent later patches from building on its capability gains and reducing the newly exposed inefficiencies.

Local promotion is further complicated by stochastic execution. Repeated runs of the same harness can vary substantially in both quality and cost, so an apparent improvement may reflect execution randomness rather than the update itself. Simply comparing mean outcomes collapses this variation into a point estimate and can therefore overstate weakly supported gains. Staged multi-objective AHO thus faces two questions: what intermediate movements are worth preserving for further optimization, and how can we assess whether their observed gains are statistically supported?

To address these issues, we introduce ParetoSaddler, a framework for staged quality–cost harness optimization that separates exploration-time promotion from deployment-time selection. At each iteration, an underlying AHO method constructs a candidate harness from execution evidence. ParetoSaddler repeatedly evaluates the candidate and its parent and uses Bayesian bootstrap support (Rubin, 1981) to promote updates showing credible progress in either quality or cost, without requiring them to already satisfy the final deployment preference. Only after the optimization budget is exhausted is that preference applied to select the final harness. In this way, ParetoSaddler separates what is worth exploring during optimization from what is ultimately worth deploying.

We evaluate ParetoSaddler on ClawMark (Meng et al., 2026) and GAIA2 (Froger et al., 2026) using domain-disjoint training, development, and test splits under both Pareto-set optimization and quality-constrained cost minimization. On ClawMark, ParetoSaddler improves quality on the held-out test set from 70.86% to 81.35% while reducing cost from 1.17to1.17 to1.01 per task; on GAIA2, quality improves from 56.22% to 62.89% while cost decreases from 0.78to0.78 to0.45. Notably, its quality-oriented Pareto solution also outperforms quality-only harness optimization by 7.49 points on ClawMark and 5.56 points on GAIA2 while remaining cheaper, showing that jointly optimizing quality and cost need not sacrifice quality and can even lead the search to stronger quality solutions.

Our main contributions are summarized as follows:

  • When performing multi-objective agent harness optimization with staged evaluation, we identify a mismatch between intermediate promotion and final deployment selection, where enforcing deployment preferences too early can prune updates useful for later optimization.
  • We introduce ParetoSaddler, which combines Pareto-aware promotion, repeated execution, and Bayesian bootstrap screening for effective and reliable quality–cost harness optimization.
  • We demonstrate consistent quality–cost improvements on ClawMark and GAIA2, supported by detailed analyses and ablations of promotion, repeated execution, and Bayesian screening.