MoMHa: Multi-Objective Optimization of LLM Harnesses over Accuracy, Safety, and Tokens
Not on the map. Why?
Abstract (arXiv)
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 singlephase 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 crossmodel logs.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 24 of its 34 references that are in the map. First posted on arXiv 25 Sep 2026.
Builds on
24 of 34 references.
References · 24
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2023Steering Language Models With Activation Engineeringcited by 922
- 2023Large Language Models as Optimizerscited by 864
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 585
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 542
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 431
12 more
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 365
- 2021True Few-Shot Learning with Language Modelscited by 344
- 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 309
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 291
- 2024TextGrad: Automatic "Differentiation" via Textcited by 273
- 2024ShieldGemma: Generative AI Content Moderation Based on Gemmacited by 243
- 2020pymoo: Multi-objective Optimization in Pythoncited by 200
- 2026AutoHarness: improving LLM agents by automatically synthesizing a code harnesscited by 76
- 2024Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMscited by 69
- 2024Multi-Objective Alignment of Large Language Models Through Hypervolume Maximizationcited by 20
- 2025Is Safety Standard Same for Everyone? User-Specific Safety Evaluation of Large Language Modelscited by 10
- 2023Pessimistic Off-Policy Multi-Objective Optimizationcited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Harnesses for Inference-Time Alignment over Execution Trajectories
- 2026Self-Harness: Harnesses That Improve Themselves
- 2026MESH-Harness: Self-Improving Agent Harnesses via Bandit-Guided Compositional Evolution
- 2026Learning to Control LLM Agent Harnesses with Offline Reinforcement Learning
- 2026Doc2Harness: Benchmarking LLMs on Long-Horizon Harness Engineering of Coding Agents
- 2026Where Does Harness-Optimization Value Live? Localized Gains and the Budget-Splitting Trap in Self-Evolving LLM Agents
- 2026Beyond Prompts: Measuring and Optimizing LLM Tool-Agent Harnesses
- 2026Composing Task-specific Agent Harnesses at Test Time with Reusable Primitives