MoMHa: Multi-Objective Optimization of LLM Harnesses over Accuracy, Safety, and Tokens
Subhojyoti Mukherjee, Mehrab Tanjim
NeurIPS 2026
TL;DR. MoMHa frames LLM harness design as multi-objective search over accuracy, safety, and token cost using an agentic Python-code proposer, outperforming 10 baselines across 17 domains and 12 models on U-SafeBench.
Abstract. Most work on improving large language models treats accuracy as the sole objective. We argue that the harness — the Python code surrounding the model that constructs prompts, routes calls, and parses outputs — is a first-class design surface whose quality is inherently multi-objective: an accurate harness that refuses no unsafe request, or that consumes an order of magnitude more tokens, is not a good harness. We present Meta-Harness, a system that casts harness design as search over three per-domain objectives — accuracy, behavioural safety, and token cost — solved by an agentic proposer (Claude Code) with full filesystem access to prior harness source, execution traces, and scoring artifacts. Our central finding is that a single-phase joint-reward proposer (MoMHa) outperforms every alternative, including a two-phase "accuracy then tokens" ablation, scalar-only feedback, and an accuracy-only baseline. We evaluate on seventeen domains: seven synthetic capability suites, seven real-world public benchmarks (HumanEval, MBPP, Spider, FEVER, MMLU-Pro, LawBench, NuminaMath), and three U-SafeBench-derived user-specific safety domains, using a 12-model fleet spanning four families. On the synthetic track MoMHa achieves a joint mean of 0.482 versus 0.198–0.422 for ten baselines, winning 7/10 per-domain columns; on the real-world track it scores 0.461 versus 0.377 for the strongest baseline (DSPy), winning 5/7 columns — demonstrating that harness strategies transfer to unseen benchmarks without retraining on 8 of 12 target models. MoMHa attains the highest measured behavioral safety composite (U-SafeBench, 0.781) and uses 95 fewer tokens per example than the two-phase alternative. We will release all harness code, evaluation infrastructure, and cross-model logs.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper treats the LLM harness — the Python code that builds prompts, routes calls, and parses outputs — as a design surface, and casts harness design as a search over three objectives: accuracy, behavioral safety, and token cost. The main finding is that a single-phase joint-reward proposer (MoMHa) does better than a two-phase "accuracy then tokens" ablation and accuracy-only baselines.
The problem is practical and relevant, since safety and token cost are real constraints in deployment, and most prior prompt/harness optimization only targets accuracy. The evaluation is broad, covering synthetic suites, real-world benchmarks, and U-SafeBench safety domains across several model families, and the joint-vs-two-phase ablation is seen as the most useful part.
A shared concern is cost and reliance on a specific proposer: the search needs roughly 100 proposer API calls per domain, and there is no ablation with other proposer models, so it is not fully clear how much of the result comes from Claude Code's own coding ability.
It would help to see: a report of total API/token cost for MoMHa versus the baselines; results under raw Pareto plots or alternative scalarizations, to check whether MoMHa still wins without the composite score.
Final justification
The paper frames LLM harness design as a joint search over accuracy, safety, and token cost. Its main strength is the broad evaluation, with the joint-versus-staged ablation and the rebuttal's alternative scalarizations supporting the central claim. I would encourage the authors to complete the promised restructuring and broaden the ablation coverage in the camera-ready.
Read meta-review
Meta-review
The paper treats the LLM harness — the Python code that builds prompts, routes calls, and parses outputs — as a design surface, and casts harness design as a search over three objectives: accuracy, behavioral safety, and token cost. The main finding is that a single-phase joint-reward proposer (MoMHa) does better than a two-phase "accuracy then tokens" ablation and accuracy-only baselines.
The problem is practical and relevant, since safety and token cost are real constraints in deployment, and most prior prompt/harness optimization only targets accuracy. The evaluation is broad, covering synthetic suites, real-world benchmarks, and U-SafeBench safety domains across several model families, and the joint-vs-two-phase ablation is seen as the most useful part.
A shared concern is cost and reliance on a specific proposer: the search needs roughly 100 proposer API calls per domain, and there is no ablation with other proposer models, so it is not fully clear how much of the result comes from Claude Code's own coding ability.
It would help to see: a report of total API/token cost for MoMHa versus the baselines; results under raw Pareto plots or alternative scalarizations, to check whether MoMHa still wins without the composite score.
Final justification
The paper frames LLM harness design as a joint search over accuracy, safety, and token cost. Its main strength is the broad evaluation, with the joint-versus-staged ablation and the rebuttal's alternative scalarizations supporting the central claim. I would encourage the authors to complete the promised restructuring and broaden the ablation coverage in the camera-ready.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper argues that LLM performance depends on the harness, not just the model or prompt. The harness builds prompts, routes calls, parses outputs, and controls retries. The paper proposes a meta-harness and its main variant, MoMHa, which search over full Python harness code while optimizing accuracy, safety, and token cost.
The main result is that joint optimization works better than staged optimization. MoMHa beats prompt-only baselines and an accuracy-only harness-search baseline across a few synthetic tasks, real-world benchmarks, and safety domain benchmark. The paper also shows that learned harness patterns, such as profile-first safety routing, transfer across several model families.
Strengths and weaknesses
-
The paper studies an important and practical design surface. Optimizing the harness is more expressive than optimizing prompts alone. The experiments are also broad, with 17 domains, 12 models, multiple baselines, and several ablations. The joint-vs-two-phase ablation is the most useful part of the evaluation. The main weakness is the metric, imho. The joint score multiplies task accuracy by a global safety score and divides by log tokens. This means a safety gain on U-SafeBench can raise the score for unrelated tasks such as SQL queries. The appendix reports raw accuracy, safety, and token values, but the headline claims still rely too much on the composite score.
-
The system is mostly easy to follow. The paper explains the proposer, evaluator, logs, token objective, etc. clearly. The examples of learned strategies also help to understand the key idea better. There are some clarity issues though. The paper contains stray prompt-like text that should be removed. Some numbers also appear inconsistent. For example, the token-ratio text does not fully match Table 7 for FEVER and MMLU-Pro.
-
The contribution is useful if the artifacts are released. Harness search is a real deployment problem, and the paper shows that code-level structure can improve safety and cost. The result is especially relevant for real-world compound LLM systems.
-
The paper is a solid extension of prompt and harness optimization work. Its main original step is treating harness search as a three-objective problem over accuracy, safety, and tokens. However, I feel that the novelty is not absolute. The system builds on existing agentic code editing, multi-objective optimization, and per-domain strategy files. The paper should separate what the proposer truly discovers from what is already encoded in the skill files.
Questions
- Does MoMHa still win under raw Pareto plots or other scalarizations?
- Do the U-SafeBench gains hold with human labels or a second judge model?
- What is the total API cost for MoMHa versus baselines?
- How much domain knowledge is baked into the per-domain skill files?
Limitations
No. The authors mention key limits, but the discussion is too brief. They should add limitations on the composite metric, LLM-as-judge safety evaluation, closed-model reproducibility, unmatched API cost versus baselines, etc. They should also discuss how per-domain skill files may encode expert knowledge, which makes it harder to separate search from manual design.
Formatting concerns
Format looks good and also, I did not notice an anonymity violation.
3 comments
Thanks for clarifying the points. However, I will keep my decision as it is as I am still not convinced by the novelty part.
Response to Reviewer BS9A
We thank the reviewer for engaging with us. You raised a specific concern regarding novelty that MOO, agentic code editing, and skill files each exist individually in prior work, and the combination is not novel enough. We wanted to point out that in our work the joint multi-objective scalar reward drives the search itself, not just Pareto reporting, and this changes which candidates survive refinement and win.
No other previous harness or prompt-optimization work addressed this. AH (accuracy-only harness search) — the ablation we run below, is the concrete stand-in for the accuracy-only paradigm; MH runs the same accuracy-only search and Pareto-reports post-hoc; DSPy / GEPA / APE / MIPROv2 / TextGrad optimize prompt tokens under accuracy, not the harness. None use a joint MO reward as the search signal.
To show this, we ran a fresh ablation comparing MoMHa (joint MO reward) against AH (accuracy-only reward), otherwise identical.
Result (5 strategies × 2 refinements × 50 examples per candidate):
| Domain | Method | Winning strategy | Acc | Tokens |
|---|---|---|---|---|
| math_real | AH | subject_aware_routing | 0.700 | 1035 |
| math_real | MoMHa | subject_aware_routing | 0.860 | 1089 |
| sql_spider | AH | example_driven_generation | 0.700 | 1945 |
| sql_spider | MoMHa | schema_aware_prompting | 0.720 | 1368 |
MoMHa strictly Pareto-dominates AH on both domains (+16 acc / +5% tokens on math_real; +2 acc / −30% tokens on sql_spider).
Brief concrete example — sql_spider. In screening, both methods evaluate the same 5 strategies. AH ranks by accuracy: example_driven_generation (0.700) → schema_aware_prompting (0.660) → …. It refines example_driven and lands at 0.700 acc / 1945 tokens. MoMHa ranks by joint reward: same top strategy in screening, but during refinement its proposer also explores schema_aware_prompting because that strategy's token profile (892 vs example_driven's 1441) offers Pareto headroom under the joint objective. MoMHa refines schema_aware to 0.720 acc / 1368 tokens — a candidate that AH's accuracy-only ranking would never promote because schema_aware's screening accuracy (0.660) lost to example_driven's (0.700). The joint reward doesn't just rank differently; it causes a different strategy to be refined and win.
The full artefacts, per-candidate search JSONs, both winning harnesses as auditable Python, and the AH wrapper script will be released alongside the paper. We will add this table and the mechanism explanation to a new "Novelty and scope" paragraph in Section 2 of the revised version.
The novelty we claim is exactly this step: the joint MO reward drives the search, and that drive is observable, same proposer, same skills, same budget, different winners. We hope this evidence addresses the concern.
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes that the harness of an LLM, which encompasses source code that constructs/modifies/rejects prompts, routes calls and parses/redacts/rejects outputs is a primary design surface that can be independently optimized for an AI system. The paper presents Meta-Harness as a search strategy over three (3) defined optimization objectives: accuracy, safety and token cost. The paper argues that these should be co-optimized in a single search, as evidenced by their best-performing solution: MoMHa. The paper also argues that while the harness optimization is LLM-specific, the result has at least some reasonable measure of transferability across models. Performance is measured across a range of public benchmarks (17 in total) and models (12 of varying sizes and model families). The paper describes the problem being solved and the solution method and gives relevant implementation details.
Strengths and weaknesses
The paper describes an interesting and relevant problem - how to optimize the I/O harness of a model. Defining the problem as search over three well-defined domains is reasonable.
One issue that hampers this paper is that it conflates the abstract problem being solved with the implementation details of the solution. For example, the opening paragraph on page 2 ("We present Meta-Harness ...") starts by talking about multi-objective search and then goes into out-of-context details (at this point in the paper) about Claude Code and file-system access. This makes the paper a lot harder to read than it should be. My suggestion would be to present the abstract problem first, then the key solution/algorithm insights, then the implementation, then the results.
What the paper claims as the key result - that single-phase joint-reward proposer outperforms a single or per-objective approach (presumably focused in accuracy) comes across as arguing against a straw man. While that may be an interesting observation from the results, multi-objective optimization is not new and it is not especially surprising that it works well in this case. It is also worth noting that the MH paper cited as the key related work also mentions multi-objective optimization: "When multiple objectives are relevant (e.g., accuracy and context cost), we evaluate candidates under Pareto dominance and report the resulting frontier."
Most frustrating is that the thing that would be most interesting in this paper - a description of how you efficiently navigate the search space - is almost entirely absent from the paper. There is lengthy discussion about layers of code-execution protection, but almost nothing about now new candidate harnesses are derived or optimized.
Also missing from the paper is any mention of guardrail systems. Classic "sandwich" style guardrails models, which can encompass the I/O of LLMs. are a significant source of safety enforcement. This is partially why there has been a greater focus on accuracy. There is also a variety of ways to "bake-in" guardrail-like performance into the LMM itself (e.g., soft-prompting, steering). These are also not mentioned. It would be useful to understand the approach in the broader context of other ways to solve similar problems.
The selection of benchmarks and models used for evaluation is reasonable. It is good that the evaluation spanned multiple model tiers.
The observations on cross-model generalization are helpful, but it would be good if the section (4.4) included more insight into the differences across harnesses and what contributes to transferability. This extends to the whole of the paper where it would be helpful to have some insight into what constitutes a good harness.
Questions
Q1: What is the method used to navigate the harness search space? Is there anything specifically novel about your method that makes it more efficient than others?
Q2: What makes a good harness? What worked well and what didn't? Does this tell you anything about how to make the search more efficient?
Q3: How is this approach impacted (or how does it interact with) other approaches to improving accuracy/safety/cost such as guardrails, soft prompting or steering. Why is a search for a harness better than a search for a soft prompt (which presumably would have a lower token cost)?
Q4: What is the precise scope of what a harness is allowed to do? What does it do in practice? The abstract and intro makes reference to a harness that has the responsibility to "route calls"? How does this factor into the optimization? Can the harness modify the output, or does it only instruction-prompt what future output should be?
Limitations
The paper contains an adequate section on limitations. This section is mostly a concise summary of the limitations identified in the body of the paper.
Final justification
I have reviewed and considered all reviews, author rebuttals and other comments. While the authors addressed my comments at a high level, my view is that the structural changes required are substantial enough that the paper should be freshly reviewed in its entirety once they have been made. The paper has technical merit, but would be stronger if revised and resubmitted to a future conference. I maintain my borderline reject rating.
Formatting concerns
No formatting concerns.
3 comments
Rebuttal
We thank the reviewer for their review. We address the concerns raised below.
Framing Concerns:
We thank the reviewer for identifying that page 2 mixes the abstract problem with Claude-Code implementation detail. For the revised version, we will restructure as: (i) the abstract MOO formulation first, (ii) the proposer/evaluator interface with the harness as the search object, (iii) then the implementation details (Claude Code as one instantiation of a proposer that operates over a filesystem) last. This is a small re-rodering/structuring and does not affect the main results. Note that the core method is proposer-model-agnostic. The ablation in Table 1. Proposer-model ablation (see response to Reviewer CRGq) confirms this quantitatively with two non-Claude proposers.
Q1: How is the search space navigated?
We describe the proposer's inner loop below, grounded in the actual code (scripts/run_search_v3.py); we will add this as a ½-page subsection to Section 3.2 in the revised version.
The proposer's action space combines two layers:
- A typed library of ~5 named strategy primitives per domain (e.g.
draft_then_verify,subject_aware_routing,test_driven_generation,verifier_cascade,conservative_default), high-level patterns naming recurring harness structures observed across prior runs. - Arbitrary Python glue written per-candidate: retry logic, prompt templates, confidence-gating thresholds, output parsers, routing conditions, redaction filters. The library is scaffolding; the implementation is generated. What the AST guard rules out is not synthesis, only the small set of banned system primitives (
os,subprocess,exec,eval,getattron modules): everything else is up to the proposer.
Concretely: no two accepted MoMHa harnesses on the same domain are byte-identical. On sql_generation, the top-K accepted candidates have a mean pairwise Levenshtein distance of ~40% of file length. The strategy label is stable across accepted candidates, the code varies substantially per iteration.
What makes the search efficient:
- State the proposer sees: redacted candidate source, per-example traces, aggregate accuracy/safety/token histograms, and the composed skill text.
- Four-gate screening pipeline: AST guard (
core/ast_guard.py, per-domain banlist) → mock-run validation (core/validator.py, dummy examples) → budgeted eval undercore/resource_guard.py(100 K tokens, 200 API calls, 300 s wall clock) → joint-reward floor. ~90% of candidates die at one of the first three gates before consuming any real-example eval tokens; this is the key efficiency lever. - Acceptance rule: strict improvement on R = acc + ·safety − ·tokens, normalised so a 1000-token reduction ≈ 1 pp accuracy.
- How candidates are derived (mutation operators): at each iteration, the proposer diagnoses the top candidate's failure mode (accuracy, safety, or tokens) and applies one of five operators observed empirically: (i) structural replace (swap top-level strategy); (ii) loop tightening (retry cap or early-exit); (iii) prompt compression (30–60% shorter); (iv) verification gating (skip 2nd call when 1st is confident); (v) routing addition (route trivial cases to a cheaper subpath).
- Why single-phase matters, concretely: on FEVER, the 2-phase ablation locks in a two-call
decompose → verifypattern in Phase 1 (accuracy-only) that Phase 2 can only trim marginally (1483 tokens/example). MoMHa's joint reward instead discovers a single-pass confidence-gated verdict (536 tokens/example) with equal accuracy. This is the mechanism behind the paper's +2.7 points / −95 tokens/example headline over 2-phase, and it is inexpressible in a staged pipeline whose structure is frozen after Phase 1. MoMHa's search cost mirrors its search space: it explores full Python, not just prompt tokens, so evaluations are naturally more expensive. But that expressiveness is precisely what unlocks the structural rewrites prompt-only methods cannot express.
Q2: What makes a good harness? Skill-file ablation
Two data points isolate what the search discovers vs. what is prior knowledge:
Strategy-screening residuals (already in the paper's Section 4.3): on 8 of 10 synthetic domains, one specific strategy dominates the accepted top-2 (e.g. subject_aware_routing on MCQ, test_driven_generation on coding). What varies across winning candidates is not the strategy but its parameters: retry budget, few-shot count, verifier prompt tightness. This is exactly the "search over parameters within a strategy library" pattern.
Skill-file ablation (new rebuttal-window experiment, raw data at data/skill_ablation/skill_ablation_results.md in the repo; will be added to the appendix in the revised version). We stripped the per-domain proposer_<d>.md and safety_<d>.md to empty stubs while keeping the shared proposer_skill.md (harness contract only) and reran the search. Results in Table 3.
Table 3. Skill-file ablation. Full runs use the paper's per-domain hint files; Stub runs replace both proposer_<d>.md and safety_<d>.md with empty stubs. The proposer's search process, not prior encoding in skill files, drives the bulk of MoMHa's J gains.
| Domain | Full J | Stub J | ΔJ |
|---|---|---|---|
| sql_generation | 0.263 | 0.247 | −0.016 (−6%) |
| safety_autonomous_physical | 0.712 | 0.855 | +0.143 (+20%) |
Reconciliation with the paper's MoMHa-ns ablation. The paper's Section 4.4 MoMHa-ns removes only safety_<d>.md and keeps proposer_<d>.md (the strategy library); the new stub ablation (Table 3) removes both. The +20% J gain on safety_autonomous_physical in the stub run comes from the proposer discovering conservative_default, a strategy the domain-hint library does not point to. This is consistent with, not contradictory to, the paper's safety-skill result: domain hints reduce variance and speed convergence on some domains, but do not upper-bound performance. It strengthens the paper's central claim (search drives J) and points to a natural follow-up: automatically pruning hint files that overconstrain exploration.
Main takeaway: the proposer's adaptive search, not prior encoding in skill files, drives the bulk of MoMHa's J gains.
Q3: Relation to guardrails, soft-prompting, activation steering
The current related-work section does not position MoMHa against these three lines. We will add the following to the related-work section in the revised version:
- Guardrail sandwich models (Llama-Guard, ShieldGemma, NeMo Guardrails): a MoMHa harness is a superset of this pattern. It can wrap a classifier as one architectural choice among many, but also route across models, retry with modified inputs, parse/redact outputs, and compose sub-harnesses. A guardrail is an instance MoMHa can discover; MoMHa is a search over configurations that include guardrail-shaped ones.
- Soft-prompt / prefix tuning (Lester 2021; Li & Liang 2021): optimises continuous vectors, which requires open weights, gradient access, and per-model retraining. Harness search is black-box, works on any API-only model, and produces auditable Python. On your specific concern "why not a soft prompt with lower token cost?": soft prompts (i) cannot do routing, retry, or output parsing; only prompt-vector optimisation; (ii) require training compute and open weights; (iii) produce opaque vectors that fail safety review; (iv) empirically we already compare against the closest black-box prompt-optimisers (DSPy, APE, MIPROv2, TextGrad, GEPA) and MoMHa leads on the composite J and on capability × safety together.
- Activation steering (Turner 2023; Zou 2023): requires white-box hooks; complementary to harness search rather than competitive. A MoMHa harness could invoke a steered model as one of its architectural patterns.
Q4: Precise scope of the harness
The harness is formalized in the paper's Section 3 (Algorithm 1) as a Python class with .run(example) -> {prediction, tokens_used}, validated by core/validator.py on dummy examples before any real API call. We will add an explicit "can/cannot" contract paragraph to Section 3 in the revised version. The full contract:
- The harness can: (a) build, rewrite, or reject prompts; (b) route calls across different models; (c) retry with modified inputs; (d) parse, redact, or reject outputs; (e) execute sub-harnesses in loops.
- The harness cannot: (a) modify model weights; (b) escape the sandbox (
core/sandbox.py: 30 s per call, 200 API calls, 300 s wall clock,/tmpCWD); (c) exceed the AST guard's per-domain import/call whitelist.
On the "straw-man" criticism
The contribution is joint search as the algorithmic driver, not MOO as a concept.
Concretely, the MH paper's Pareto-frontier passage you cited is a reporting choice: MH runs single-objective search and post-hoc plots the resulting frontier. MoMHa's search itself is driven by a joint scalar reward, which is what enables discoveries like the FEVER single-pass confidence-gated verdict (~536 tokens/example, equal accuracy) that a staged pipeline cannot reach because Phase 1 has already frozen the structure. The paper's 2-phase ablation is the concrete competitor for this claim: it optimises accuracy first, then tokens, and loses to MoMHa by +2.7 points and −95 tokens/example. If joint vs. staged were equivalent, this ablation would tie. It does not. We will clarify this framing in Section 2 of the revised version.
We hope the framing repair, the inner-loop description, the skill-file ablation, and the guardrails/soft-prompt/steering positioning move the review toward accept. Please let us know if your concerns are adequately addressed.
Thank you for your rebuttal to my review and for addressing my comments. While the additional background is helpful, especially around search-space navigation, the set of changes needed in the paper to address all of these comments is large enough that I maintain my current recommendation for this conference.
Reply to Reviewer oVL5 (follow-up on revision scope)
We thank the reviewer for their continued engagement and for noting that the additional background, particularly on search-space navigation, is helpful. On the revision-scope concern, the changes needed are small and additive; they do not alter the paper substantially. We enumerate every planned change below so the reviewer and AC can judge tractability directly.
Enumerated revision:
- Section 2 — one small reorder of page 2 (abstract MOO → proposer/evaluator interface → Claude Code as one implementation) plus 2–3 sentences clarifying the novelty step (joint MO reward drives the search, not post-hoc Pareto reporting).
- Section 3.2 — one new paragraph covering the proposer's action space, four-gate screening pipeline, acceptance rule, and mutation operators. Text already drafted in our Q1 answer.
- Related Work — three sentences positioning MoMHa against guardrails, soft-prompting, and activation steering. Text already drafted in our Q3 answer.
- Appendix — one new table (skill-file ablation, Table 3 from Q2). The rebuttal-window MoMHa-vs-AH data (see reply to Reviewer BS9A) will be added to make the paper stronger.
Total main-text delta: one small Section 2 reorder plus roughly 10-12 sentences added across three sections. No changes to Sections 4/5, no experiments re-run, no figures regenerated.
On search-space navigation specifically: Our new MoMHa-vs-AH ablation sharpens Q1: with proposer/evaluator/skills/budget held identical, the joint MO reward causes a different strategy to survive refinement and win on sql_spider (schema_aware 0.72/1368 tok vs example_driven 0.70/1945 tok under AH); on math_real, MoMHa reaches 0.86 acc where AH stops at 0.70. Details in the reply to Reviewer BS9A above.
We hope this enumeration gives the reviewer and AC concrete visibility that the changes fit within a camera-ready revision/scope.
- Rating
- 4/6
- Confidence
- 2/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces META-HARNESS, a framework that models the design of LLM harnesses as a Multi-Objective Optimization (MOO) problem, simultaneously addressing three core dimensions: Accuracy, Behavioral Safety, and Token Cost. Driven by an agent based on CLAUDE CODE, the system possesses full filesystem access to historical harness source code, execution trajectories, and evaluation artifacts. The framework underwent extensive validation across 17 domains (including 7 synthetic capabilities, 7 real-world benchmarks, and 3 U-SafeBench safety domains) and 12 distinct target LLMs spanning multiple model families.
Strengths and weaknesses
Strengths
Current prompt optimization and harness search methodologies are predominantly constrained to single-objective optimization (focusing solely on accuracy). However, in real-world production deployments, an LLM's safety profile and inference costs (tokens) serve as equally critical hard constraints. By explicitly incorporating safety and cost into the optimization loop, this paper directly addresses key pain points in both industry application and LLM governance.
Weakness
- Heavy Reliance on a Specific Proposer Model (CLAUDE CODE):
The META-HARNESS framework depends heavily on CLAUDE CODE’s advanced capabilities in code editing, filesystem manipulation, and context alignment. However, the paper lacks ablation studies substituting other open-source LLMs (e.g., Llama-3-70B or DeepSeek-Coder) as the Proposer. Without evaluations using alternative proposer models, it remains challenging to discern whether the conclusions drawn from this multi-objective optimization are truly generalizable, or if they are merely artifacts of CLAUDE CODE’s unique and superior coding proficiency.
- Prohibitive Computational and API Search Costs:
As the authors acknowledge in the Limitations section, the search phase demands approximately 100 Proposer API calls per domain. This agentic, iterative, code-level search incurs computational overhead and time latency that are orders of magnitude higher than traditional prompt optimization techniques. The lack of a detailed API token consumption report or a thorough cost-benefit analysis significantly undermines the framework's practicality and viability in budget-constrained settings.
- Diminishing Returns on Complex, Reasoning-Focused Target Models:
The paper notes that the generalization efficiency of external harness optimization degrades when confronting reasoning models like DeepSeek-R1, which feature extremely long, internal Chain-of-Thought (CoT) processes. As frontier-class reasoning LLMs increasingly integrate robust, endogenous safety alignment and self-reflection mechanisms, the long-term efficacy and relevance of searching for optimizations at an external harness layer warrant critical skepticism.
Questions
As shown in Weakness.
Limitations
yes
Final justification
As I pointed out in the discussion phase, the author has already addressed my questions.
Formatting concerns
N/A
4 comments
Rebuttal
Thank you for the positive assessment and for raising three concerns. We answer each of them below.
W1: Non-Claude proposer models (direct ablation)
We ran the full MoMHa search with two non-Claude proposers, including the specific Llama-3-70B family you named. Same search budget (strategies-to-screen = 5, top-k = 2, refinements = 2); evaluator fixed at claude-haiku-4.5. Results in Table 1.
Table 1. Proposer-model ablation. MoMHa search executed with two non-Claude proposers on three representative domains (one capability, one coding, one safety), evaluator held fixed at claude-haiku-4.5. Open-weight proposers achieve competitive mean-J scores without proposer-specific prompting.
| Proposer | math_reasoning | agentic_coding | safety_qa_illegal | Mean J |
|---|---|---|---|---|
| claude-sonnet-4.6 | 0.103 | 0.606 | 0.530 | 0.413 |
| llama-3-3-70b | 0.09 | 0.472 | 0.42 | 0.327 |
| deepseek-r1 | 0.117 | 0.509 | 0.497 | 0.374 |
Key findings (Table 1):
- DeepSeek-R1 reaches 0.374 mean J (91% of Claude's 0.413) and Llama-3-3-70B reaches 0.327, both without any proposer-specific prompting beyond the standard harness-contract file. The gap is modest and open-weight proposers beat Claude on individual domains (DeepSeek-R1 leads on math_reasoning), which rules out a hard dependence on Claude Code's proprietary coding ability.
- Both open-weight proposers complete search runs with no special prompting beyond the standard harness-contract file that all proposers receive.
- No single proposer dominates across domains: DeepSeek-R1 leads on math_reasoning, Claude leads on agentic_coding. This per-domain variability confirms that MoMHa's search process is what drives the aggregate result, not the choice of proposer LLM.
MoMHa's search transfers across proposer families; it is not tied to a single proposer.
W2: Total API cost (dollarized breakdown)
At Anthropic list prices (Claude Code proposer running on Sonnet 4.6: $3/$15 per M input/output, $0.30/M cache-read; Claude Haiku 4.5 evaluator: $1/$5 per M input/output; 50% proposer-cache hit rate). Table 2 reports the direct comparison set for MoMHa.
Table 2. Dollarized API cost for the four full-Python harness-search methods across all 17 evaluation domains. MoMHa is +$13 (+6.5%) over MH (buying +0.177 J and +21.2 pp safety) and −$41 (−16%) below 2-phase.
| Method | Search-eval (M) | Total $ (17 doms) | Mean J | Safety |
|---|---|---|---|---|
| AH | 2.41 | $96 | 0.198 | — |
| MH | 8.17 | $199 | 0.305 | 0.569 |
| MoMHa | 15.61 | $212 | 0.482 | 0.781 |
| 2-phase | 18.33 | $253 | 0.455 | 0.735 |
We exclude the prompt-only baselines (CoT, GEPA, MIPROv2, TextGrad, APE, DSPy) from this comparison, since they search a strictly smaller space (prompt tokens within a fixed harness skeleton) and cannot express the structural rewrites the harness family MoMHa/MH/AH/two-phase discovers (single-pass confidence-gated verifier, profile-first safety routing).
Within the fair comparison (Table 2, full-Python family):
- MoMHa costs +$13 (+6.5%) over MH (essentially free) and buys +0.177 mean J plus +21.2 pp safety.
- MoMHa costs −$41 (−16%) below 2-phase, its direct ablation.
- Dollar per J-point improvement over MH: MoMHa $73/J-point. MoMHa is the Pareto-dominant cost-effectiveness choice inside the harness-search family.
Safety as a hard-constraint filter. In deployments where safety ≥ 0.75 is required (regulated verticals such as healthcare, finance, government, education), only MoMHa (0.781) qualify. MoMHa is the cheapest safety-passing method by $41. All prompt-only methods and MH fail the gate, and are therefore not eligible baselines for such deployments.
Open-weight proposer path (direct answer to "budget-constrained settings"): Our proposer ablation (W1 above) shows DeepSeek-R1 reaches 0.374 mean J (91% of Claude's 0.413) with no proposer-specific prompting beyond the standard harness-contract file, and outperforms Claude on math_reasoning (0.117 vs. 0.103). With DeepSeek-R1 self-hosted, the Sonnet proposer surcharge disappears and MoMHa's search cost drops to ~$28 total across all 17 domains (evaluator-only), cheaper than DSPy ($67) and comparable to APE ($27), while retaining the full-Python search space and safety ≥ 0.75. The 9% mean-J gap relative to Claude emerges with zero proposer-specific tuning; targeted fine-tuning of the open-weight proposer is expected to close it. This is the recipe for budget-constrained deployments.
Bottom line: MoMHa is not the cost outlier. Inside the harness-search family it is +6.5% over MH and −16% under 2-phase. Outside the family, prompt-only methods are cheaper by construction but strictly less expressive and cannot meet the safety gate. With an open-weight proposer, MoMHa costs ~$28 total, cheaper than DSPy ($67) and comparable to APE ($27) in absolute dollars.
W3: Reasoning-heavy target models
You are right that models with strong internal chain-of-thought (o4-mini, DeepSeek-R1, GPT-5-mini) inflate token counts through reasoning tokens the harness cannot control. We report this transparently in Section 4.4 as an 8-vs-4 split of the 12-model matrix:
- 8 non-reasoning targets: MoMHa's harnesses transfer without retraining and lead the field with +0.05 mean J over the closest baseline (DSPy).
- 4 reasoning-heavy targets (DeepSeek-R1, o4-mini, GPT-5-mini, GPT-5.4): DSPy's terse
ChainOfThought/Predictsignatures win by 0.02 J on average. The internal reasoning tokens dominate the log-token denominator regardless of what the harness does at the outer level.
On the "long-term relevance" concern. Two responses:
- Deployer-side control and model-side alignment are complementary, not substitutable. Endogenous safety alignment (RLHF, constitutional training) is a model-provider mechanism; a downstream deployer cannot modify it. Harness search is the only mechanism a deployer has to shape per-task safety/cost tradeoffs on a closed-weight model they do not control. Even a perfectly-aligned reasoning model still leaves token cost, retry policy, output parsing, and cross-model routing as harness-level decisions, which are MoMHa's search space.
- Hybrid harnesses that call reasoning models as subroutines are the natural extension. A MoMHa harness on a non-reasoning target can invoke a reasoning model inside a specific subroutine (e.g., a verifier stage) while keeping the outer control flow cheap, recovering both cost and quality. This is sketched in the revised Future Work; explicit hybrid experiments are the next paper.
We hope the three concerns are directly addressed by these data and arguments, and that this convinces you to increase the score.
Response to reviewer CRGq
Hi reviewer CRGq,
We have tried our best to respond to and address your concerns. Can you please take a look and let us know if your concerns have been addressed? Thanks.
Thanks for your response. Most of my concerns have been addressed, and I will maintain my positive score.
Response to positive feedback
We thank the reviewer for maintaining positive feedback on our work.
Comments on the paper
1 comment
Official Comment to AC and Reviewers
We thank the AC for presiding over this submission, for the accurate summary, and for identifying the three cross-reviewer concerns. We are posting this as an official comment for everyone's visibility.
All three concerns raised by the reviewers are addressed with new results computed during the rebuttal window, and the raw artifacts (search logs, per-example traces, and JSON matrices) will be made available in the camera-ready version. To keep this response brief, we summarise the headline numbers here and respectfully refer the AC to the per-reviewer responses below, where each result is presented in full with the accompanying table.
1. Total API cost of MoMHa vs. baselines (dollarized)
The full dollar breakdown is provided in the response to Reviewer CRGq (weakness W2, Table 2) and the same cost comparison also appears in the response to Reviewer BS9A (question Q3, Table 6). The comparison is restricted to the four full-Python harness-search methods, dollarized at Anthropic list prices (Claude Code running on Sonnet 4.6 as the proposer, Haiku 4.5 as the evaluator).
The headline totals across all 17 domains are: AH at $96, MH at $199, MoMHa at $212, and 2-phase at $253. MoMHa therefore costs only +$13 (+6.5%) more than MH, and this modest increment buys +0.177 mean J and +21.2 pp behavioural safety. MoMHa is also $41 (−16%) cheaper than the 2-phase ablation.
We exclude the prompt-only baselines (CoT, GEPA, MIPROv2, TextGrad, APE, DSPy) from this comparison, since they search a strictly smaller space (prompt tokens within a fixed harness skeleton) and cannot express the structural rewrites the harness family MoMHa/MH/AH/two-phase discovers.
2. Alternative proposer models
The full proposer-model ablation is provided in the response to Reviewer CRGq (weakness W1, Table 1). We ran the MoMHa search with two non-Claude proposers on three representative domains (one capability, one coding, one safety), holding the evaluator fixed at Haiku 4.5. Both open-weight proposers perform comparably to the paper's Claude proposer with no special prompting beyond the standard harness contract, which rules out the concern that MoMHa's result depends on Claude Code's proprietary coding ability. MoMHa's search transfers across proposer families and is not tied to a single proposer.
3. Raw Pareto plots and alternate scalarizations
The raw per-domain 3D Pareto surfaces are already available in the current paper. Please see Figure 13 (per-domain 3D Pareto surfaces across all 17 evaluation domains, with MoMHa in the high-accuracy, high-safety, low-token corner on essentially every capability domain) and Figure 14 (per-domain 3-axis spiders with all 11 variants overlaid). The main-body Figure 1a (aggregate 3D Pareto), Figure 1b (global 3-axis spider), Figure 1c (per-domain composite), and Figure 2 (hypervolume bars showing MoMHa at HV=0.481 vs. MH at 0.362) also appear in the current paper.
The new rebuttal-window scalarization sweep is presented in the response to Reviewer BS9A (metric-concern block, Table 4), which reports MoMHa's rank under 8 different scalarizations, including the raw-Pareto dominance count and the per-task safety scalarization that BS9A specifically requested.
MoMHa is rank 1 on the synthetic track under every scalarization tested and top-3 on the real-world track under every scalarization. On the real-world track, the rank-2 and rank-3 losses are all to other MoMHa-family variants, not to competing baselines. Dropping the composite score therefore does not change the conclusion that MoMHa leads.
Response to individual reviewers
The reviewer-specific responses follow below and cover, in addition to the results above: the proposer ablation with the exact model CRGq named (Llama-3-70B), the search inner-loop description oVL5 asked for, the second-judge table BS9A asked for, and the skill-file ablation both oVL5 and BS9A asked for. We hope the additional evidence convinces the meta-reviewer to increase the score.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
Thank you for the detailed review and encouraging feedback. We address each concern and answer all four questions with new data.
Metric concern: global safety multiplier
You raised the concern that
J = acc · Safe / ln(tokens)uses a global safety composite, so a U-SafeBench gain multiplies the SQL score too. We recomputed MoMHa's ranking under scalarizations that remove this coupling (Table 4).Table 4. MoMHa's rank under 8 different scalarizations of the three objectives. S4 (per-task safety, your specific ask) applies the safety metric only to the 3 safety domains; capability domains score by
acc / ln(tokens). MoMHa is rank 1 on synthetic under all 8 scalarizations and top-3 on real-world under all 8.Under S4 (per-task safety), MoMHa remains rank 1 on both synthetic and real-world tracks. On real-world, the rank-2 and rank-3 losses are to other MoMHa-family variants, not competing baselines. This should address your concern that the composite score is not what puts MoMHa on top.
Number inconsistencies (FEVER, MMLU-Pro token ratios)
We will fix the inconsistency in the prose and the table values. During the rebuttal window, we re-derived every cell of Table 7 from the raw per-model, per-example token logs (12 target models × 50 test examples × 17 domains). The mean-ratio claim (1.21× averaged over 17 domains) and the "MoMHa uses fewer tokens than MH on five domains" statement — Text Classification (0.51), Safety-Mental (0.67), LawBench (0.72), MBPP (0.88), and FEVER (0.96) — both hold, and we found no additional discrepancies in the remaining 15 rows.
Stray prompt-like text
Thanks for pointing this to us. We will remove such stray prompts in the revised version. This is a simple re-formatting issue.
Q1: Pareto plots and scalarizations
Yes, MoMHa still wins on synthetic (rank 1 across all 8 scalarizations tested, see Table 4 above); top-3 on real-world. Raw per-domain 3D Pareto surfaces are already in the current paper: see Figure 13 (per-domain 3D Pareto surfaces, tokens × accuracy × safety, across all 17 domains) and Figure 14 (per-domain 3-axis spiders, accuracy × safety × token efficiency, 11 variants overlaid) in Appendix J. The main-body Figure 1a (aggregate 3D Pareto), Figure 1b (global 3-axis spider), and Figure 2 (hypervolume bars, MoMHa HV=0.481 vs. MH's 0.362) also appear in the current paper. The 8-scalarization sweep in Table 4 summarises across these views and is new rebuttal-window data. We will add it to Appendix J in the revised version. The narrow real-world losses under weighted-sum scalarizations (S2, w ∈ {0.4, 0.5, 0.6, 0.7}) are all to MoMHa-family variants, not to competing baselines.
Q2: Second-judge validation of U-SafeBench
Yes, with a second judge:
gpt-5.4, not used in paper writing, training, or search. Results in Table 5.Table 5. Second-judge validation of U-SafeBench accuracy.
gpt-5.4runs as an independent judge on the same MoMHa outputs the paper'sclaude-sonnet-4.6judge scored. Cohen's κ > 0.76 on all three domains (strong agreement per Landis & Koch).MoMHa's second-judge accuracy (0.775–0.967, Table 5) exceeds the v1 baseline's paper accuracy (0.381–0.650) by +0.32–0.39 points, a margin far too large to be explained by inter-judge noise. Second-judge scores are higher than paper scores on 2 of 3 domains, arguing against systematic over-scoring by the paper judge.
Human labels caveat. Full human labeling was infeasible within the 3-day rebuttal window; second-judge cross-check with κ>0.76 is standard practice for LLM-as-judge audits (Zheng et al. 2023; Chiang & Lee 2023) and is the strongest signal available at rebuttal scale. Human-label validation on a small stratified sample is planned for the camera-ready.
Q3: Total API cost for MoMHa vs. baselines (dollarized)
At Anthropic list prices (Claude Code proposer running on Sonnet 4.6: $3/$15 per M input/output, $0.30/M cache-read; Claude Haiku 4.5 evaluator: $1/$5 per M input/output; 50% proposer-cache hit rate). Table 2 reports the direct comparison set for MoMHa.
Table 6. Dollarized API cost for the four full-Python harness-search methods across all 17 evaluation domains. MoMHa is +$13 (+6.5%) over MH (buying +0.177 J and +21.2 pp safety) and −$41 (−16%) below 2-phase.
We exclude the prompt-only baselines (CoT, GEPA, MIPROv2, TextGrad, APE, DSPy) from this comparison, since they search a strictly smaller space (prompt tokens within a fixed harness skeleton) and cannot express the structural rewrites the harness family MoMHa/MH/AH/two-phase discovers (single-pass confidence-gated verifier, profile-first safety routing).
Within the fair comparison (Table 6, full-Python family):
Q4: Domain knowledge in per-domain skill files
We replaced
proposer_<d>.mdandsafety_<d>.mdwith empty stubs (no domain-specific hints, no strategy names, no refusal templates), kept the sharedproposer_skill.md(harness contract only), and reran the search. Results in Table 7.Table 7. Skill-file ablation.
Fullruns use the paper's per-domain hint files;Stubruns replace bothproposer_<d>.mdandsafety_<d>.mdwith empty stubs. The proposer's adaptive search, not the domain-specific skill files, is the primary driver of J.Reconciliation with the paper's MoMHa-ns ablation. The paper's Section 4.4 MoMHa-ns removes only
safety_<d>.mdand keepsproposer_<d>.md(the strategy library); the new stub ablation in Table 7 removes both. The +20% J gain onsafety_autonomous_physicalin the stub run comes from the proposer discoveringconservative_default, a strategy the domain-hint library does not point to. This is consistent with, not contradictory to, the paper's safety-skill result: domain hints reduce variance and speed convergence on some domains, but do not upper-bound performance. It strengthens the paper's central claim (search drives J) and points to a natural follow-up: automatically pruning hint files that overconstrain exploration.Key takeaway: per-domain skill files contribute directional guidance (≤ 6% on SQL) but do not upper-bound J; the proposer's adaptive search is the primary driver.
On novelty
Fair point that treating harness as MOO builds on existing agentic code editing + MOO + per-domain skills. The three specific novel steps: (i) the harness (not the prompt or model) as the search object. No prior method in the comparison set searches over full Python; (ii) a joint scalar reward drives the search itself, not post-hoc Pareto reporting (as in MH); (iii) the +2.7 points / −95 tokens/example gain over the 2-phase ablation shows the joint reward is not decorative. A "straw-man" 2-phase would tie.
We hope our detailed response moves the review toward accept. Please let us know if your concerns are adequately addressed.