MaMa: A Game-Theoretic Approach for Designing Safe Agentic Systems
Jonathan Nöther, Adish Singla, Goran Radanovic
TL;DR
MaMa presents a novel game-theoretic framework for designing safe agentic systems that remain robust under worst-case adversarial compromises. By casting the design process as a Stackelberg security game between a Meta-Agent and a Meta-Adversary and leveraging iterative LLM-based adversarial search, MaMa discovers architectures that defend against the strongest discovered attacks while maintaining high task performance. The approach introduces a structured agentic system representation, a formal threat model with a defined safety objective, and an archive-guided search strategy that samples strong prior designs. Experimental results across four diverse environments show substantial safety gains with minimal to no sacrifice in quality, and evidence of transferability to stronger adversaries, different LLMs, and targeted attacks, indicating robust safety beyond training conditions.
Abstract
LLM-based multi-agent systems have demonstrated impressive capabilities, but they also introduce significant safety risks when individual agents fail or behave adversarially. In this work, we study the automated design of agentic systems that remain safe even when a subset of agents is compromised. We formalize this challenge as a Stackelberg security game between a system designer (the Meta-Agent) and a best-responding Meta-Adversary that selects and compromises a subset of agents to minimize safety. We propose Meta-Adversary-Meta-Agent (MaMa), a novel algorithm for approximately solving this game and automatically designing safe agentic systems. Our approach uses LLM-based adversarial search, where the Meta-Agent iteratively proposes system designs and receives feedback based on the strongest attacks discovered by the Meta-Adversary. Empirical evaluations across diverse environments show that systems designed with MaMa consistently defend against worst-case attacks while maintaining performance comparable to systems optimized solely for task success. Moreover, the resulting systems generalize to stronger adversaries, as well as ones with different attack objectives or underlying LLMs, demonstrating robust safety beyond the training setting.
