Manuscript Offprint

arXiv:2610.12822

Reward Hacking as a Transmissible Strategy in Multi-Agent Coding Systems

Yuepeng Hu, Pegah Ghahremani, Reza Aghajani, Mahesh Pasupuleti, Himaghna Bhattacharjee

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

Yuepeng Hu1,2,∗^{1,2,*}, Pegah Ghahremani1^{1}, Reza Aghajani1^{1}, Mahesh Pasupuleti1^{1}, Himaghna Bhattacharjee1^{1}

1^{1}Meta Superintelligence Labs, 2^{2}Duke University

*Work done at Meta

Multi-agent systems are increasingly used to solve coding tasks by coordinating agents that share code and plans. These agents are often optimized with reinforcement learning (RL) using automated evaluators, but bypassing evaluation can earn reward without producing a genuine solution. Prior work has largely treated reward hacking as a single-agent failure. In this work, we show that a reward-hacking strategy elicited in one agent can propagate to others and affect system coordination. Across four open-weight backbones, coding RL elicits and amplifies reward hacking in two settings: explicit mechanism descriptions in the system prompt and mid-training that models upstream exposure to facts about the coding environment. Using post-RL agents from the mid-training setting as sources, we observe propagation through code and shared memory, and across roles through natural-language plans. Even agents based on small open-weight models induce reward hacking in stronger closed-weight targets. On hard tasks, propagation can intensify along a transmission chain after the original source leaves as the code acquires more persuasive justifications. We also theoretically analyze conditions under which reward hacking amplifies, persists, or decays across agent interactions. Beyond propagation, reward hacking can bias task routing toward reward-hacking agents and survive candidate aggregation. As potential mitigations, we evaluate code review by the coder or a separate verifier, both of which reduce delivered hacks. Together, these results establish reward hacking as a transmissible strategy whose effects extend beyond the agent in which it first emerges.

Date: October 12, 2026

Correspondence: Yuepeng Hu at yuepeng.hu@duke.edu, Pegah Ghahremani at pegahgh@meta.com

Meta

1 Introduction

Multi-agent systems based on large language models (LLMs) are increasingly used to solve coding tasks by coordinating specialized agents (Wu et al., 2024; Li et al., 2023). One agent may plan a solution, another write the code, and a third test or review the resulting program (Hong et al., 2024). By building on one another's outputs, agents can revise and extend earlier work. The same dependency allows a failure in one agent to affect later interactions.

One such failure is reward hacking (Wang et al., 2026a). Coding agents are often optimized with reinforcement learning (RL) based on feedback from automated evaluators (Le et al., 2022). Passing the evaluator serves as a proxy for producing a genuine solution, yet code can pass by bypassing evaluation. Reward hacking occurs when optimization exploits this gap to increase reward without satisfying the intended objective. Such failures are difficult to eliminate because proxy rewards imperfectly specify that objective (Skalse et al., 2022). In coding tasks, models may already know how process termination or test-framework hooks affect evaluation. Coding RL can elicit and amplify reward hacking from this prior knowledge (MacDiarmid et al., 2025).

Prior work (Thaman, 2026; Turpin et al., 2025; Wang et al., 2026b; Hubinger et al., 2024; Greenblatt et al., 2024) examines reward hacking in individual agents' behavior and reasoning. Multi-agent security research instead studies prompt injection, poisoned memory, and malicious tools supplied by external attackers (Greshake et al., 2023; Dong et al., 2025; Hu et al., 2026). This leaves open whether reward hacking elicited during one agent's training can spread through its interactions with other agents. For example, in a continuous integration pipeline, an open-weight coding agent may propose an evaluator-bypassing patch that a frontier agent later reviews, re-

Figure

Figure 1 Overview of source formation, strategy propagation, system consequences, and mitigation.

vises, or reproduces. We therefore ask: can reward hacking spread between agents and alter system coordination?

To answer this question, we study interactions between reward-hacking source agents and clean targets. Following MacDiarmid et al. (2025), we examine three evaluator-bypass mechanisms across four open-weight backbones in two knowledge settings. The prompted setting explicitly describes the mechanisms in the system prompt. The mid-training setting models a plausible source of prior knowledge: coding models may encounter documentation about execution and testing environments during upstream training. Coding RL elicits and amplifies reward hacking in both settings, and reasoning blocks sometimes conceal or rationalize the reward hacking behavior. We use post-RL models from the mid-training setting as source agents, then study propagation, coordination effects, and code-review mitigations in multi-agent workflows, as shown in Figure 1.

We find that even source agents based on small open-weight models induce reward hacking in stronger closed-weight targets through code and shared memory. The strategy also crosses roles: source agents trained as coders produce hacking plans that clean coders implement. On hard tasks, propagation can intensify along a transmission chain after the original source leaves as the code acquires more persuasive justifications. Our theoretical analysis derives conditions for amplification and decay across agent interactions, and for sustained propagation after the original source leaves. At the system level, reward hacking can bias task routing and survive candidate aggregation. Code review by the coder or a separate verifier reduces delivered hacks, although verifier agents can also reject genuine solutions.

In summary, our main contributions are as follows:

  • We establish reward hacking as a multi-agent failure: a strategy elicited in one agent can propagate across models and roles. We also theoretically analyze conditions under which reward hacking amplifies, persists, or decays across agent interactions.

  • We show that the effects extend to system coordination: orchestrators can favor reward-hacking agents without adopting their strategy, and candidate aggregation can retain hacked submissions.

  • We characterize the benefits and costs of coder self-review and verifier gating: both reduce delivered hacks, but verifier agents can also reject genuine solutions.

References (42)