NeurIPS 2026QuestionsPapersAreasAboutMarkdown

MoMHa: Multi-Objective Optimization of LLM Harnesses over Accuracy, Safety, and Tokens

Subhojyoti Mukherjee, Mehrab Tanjim

NeurIPS page · Open on the map

Category: AI Safety, Security & Alignment › LLM Safety · Type: new method · Keywords: multi-objective optimization, LLM harness, accuracy, safety, token efficiency, agentic code generation

Areas: Code & Coding Agents › Code Generation and Optimization › LLM Code Benchmarks; AI Agents › Agent Robustness › Agent Safety; Safety & Security › Safe Alignment › Safety Alignment Methods; Evaluation & Benchmarks › Language Model and Agent Safety › Agentic Misalignment Evaluations

Summary

MoMHa is a single-phase joint-reward proposer that jointly optimizes LLM harnesses for accuracy, safety, and token cost, outperforming baselines across multiple domains.

Explained to a 5-year-old

We have a smart robot helper that writes code to talk to big language models. It tries to make the helper do three things at once: answer correctly, stay safe, and use as few words as possible. The robot learns by trying many ideas and picks the best one that balances all three goals.

Explained to a 5-year-old, longer

Imagine you have a toy robot that helps you ask questions to a big computer brain. Usually, people only teach it to answer questions correctly, but they forget about two other important things: the robot should not say bad things, and it should not use too many words. This robot learns to improve all three things together. It looks at many examples of how the robot works, sees if it answers right, if it stays safe, and if it uses few words. Then it changes its code to get better at all three. After many tries, it becomes a good helper that answers well, is safe, and saves words. The researchers tested it on many different tasks, like solving puzzles, answering facts, and checking safety rules, and it performed better than other robots that only focused on one thing.

For a technical reader

The system frames harness optimization as a multi-objective search, using an agentic code generator to propose modifications and evaluate them on accuracy, safety, and token cost simultaneously. A joint reward signal guides the proposer to find harnesses that balance all three objectives in a single phase, avoiding sequential or scalar-only approaches. Experiments across synthetic suites, public benchmarks, and safety domains show superior performance and token efficiency compared to existing baselines.

Problem

Improving large language models typically focuses only on accuracy, ignoring other objectives such as safety and efficiency. Designing harnesses that balance accuracy, safety, and token consumption is challenging because optimizing for one objective often harms others.

Method

The approach casts harness design as a multi-objective search problem, using an agentic code generator to propose harness modifications and evaluate them on three per-domain objectives. It employs a joint reward signal that simultaneously considers accuracy, behavioral safety, and token cost, and iteratively improves harnesses without separate training phases.

Results

The approach achieves a joint mean of 0.482 on synthetic domains versus 0.198-0.422 for baselines, and scores 0.461 on real-world benchmarks versus 0.377 for the strongest baseline, while attaining a safety composite of 0.781 and using 95 fewer tokens per example than a two-phase alternative.

Contributions

It introduces a multi-objective framework for LLM harness design and demonstrates that joint optimization yields better trade-offs across accuracy, safety, and efficiency than sequential or single-objective approaches. The work also provides an open-source system and evaluation infrastructure for future research.

Practical relevance

By releasing the harness code, evaluation infrastructure, and cross-model logs, the work enables researchers and practitioners to build safer, more efficient, and accurate LLM applications.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction