In cooperative multi-agent reinforcement learning (MARL), intermediate rewards are commonly added to a sparse task reward to guide learning. Such rewards, however, also shape the incentives of individual agents, since they may reward events that cannot contribute to task success or assign the credit for a joint outcome to only one of the contributing agents. Large language models (LLMs) can generate reward functions as executable code, but they typically refine them from summary statistics of training, which do not reveal such misaligned incentives. To address this limitation, this paper proposes incentive-aware reward repair. A task-specific diagnostic module, fixed before the search, measures which actions a candidate reward favors and how it distributes credit among agents, and an LLM uses these measurements to revise the terms of an executable reward program. All candidates are trained with a common multi-agent proximal policy optimization (MAPPO) learner that retains agent-specific rewards, and the final reward is selected by task return alone. In two Overcooked layouts and in Level-Based Foraging, the repaired rewards achieved the highest task return among all compared designs, including an otherwise identical LLM agent without the module. Moreover, the same manual shaping prevented cooperation when it credited only the acting agent and enabled it when it was shared, and reassigning placement credit within the repaired reward almost eliminated cooperation, which shows that the allocation of intermediate credit, not only its amount, can determine whether cooperation is learned.
翻译:暂无翻译