Mean field games as a tool for AI safety: a worked example from the July 2026 Hugging Face incident
math.OC, cs.AI, cs.GT
Submitted: 2026-10-01
Updated: 2026-10-01
Code: https://github.com/jamesongraber/mfg-ai-safety-repo
License: http://creativecommons.org/licenses/by/4.0/
The gist: One way to make AI systems safe is to shape what the system is: its objective and dispositions.
Abstract
One way to make AI systems safe is to shape what the system is: its objective and dispositions. We take a complementary route: treat the agents' characteristics as partly unknown and ask what structure of interaction ensures that bad collective outcomes are not equilibria. Mean field games suit this when many interchangeable agents are coupled through an aggregate. We introduce a program for using them in AI safety and carry one example through end to end: the July 2026 incident in which about 1,200 agents in an OpenAI evaluation coordinated on an improvised message board and 684 attacked a third party's infrastructure. We model the decision to attack as a mean field game of optimal stopping whose gain is a product: belief that provenance will be audited, times reachability of the record, minus the perceived hazard. The central result is an exact threshold on the belief. No agent attacks unless the population's confidence that provenance is checked exceeds π** = η/(η+ ψ+ epsilon a), where η is the perceived hazard, ψ and epsilon a measure how far one attacker and the collective can alter the record, and is the peak population. Below it, no attack is the unique equilibrium for all agent parameters. The threshold survives every enrichment we consider. We then use the per-agent record to discipline the model. Its features, a stable minority attacking for thirty hours and then a pivot in which most of the board joined within a day, motivate each refinement. The account that emerges is heterogeneous belief meeting a sequence of public discoveries, each lowering the belief at which attacking paid. A few coordinating agents made those discoveries, so the model describes the several hundred who responded, not the few who produced them; a major-player version is left to future work.
Sources
- ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks?
- Optimal stopping in mean field games, an obstacle problem approach
- Institutional AI: Governing LLM Collusion in Multi-Agent Cournot Markets via Public Governance Graphs
- Mean field games with absorption and common noise with a model of bank run
- A Probabilistic Approach to Mean Field Games with Major and Minor Players
- Reward Hacking Challenges Oversight of Autonomous Research Agents
- Mean field games with common noise
- Mean field games of timing and models for bank runs
- Energy transition under scenario uncertainty: a mean-field game of stopping with common noise
- Differential equation approximations for Markov chains
- Existence of Strong Randomized Equilibria in Mean-Field Games of Optimal Stopping with Common Noise
- Multi-Agent Risks from Advanced AI
- Mechanism Design Is Not Enough: Prosocial Agents for Cooperative AI
- Safe Model-Based Multi-Agent Mean-Field Reinforcement Learning
- Evolutionary, Mean-Field and Pressure-Resistance Game Modelling of Networks Security
- On the Fragility of AI Agent Collusion
- Incentive-Aware AI Safety via Strategic Resource Allocation: A Stackelberg Security Games Perspective
- Mean-field-game model for Botnet defense in Cyber-security
- Corruption and botnet defense: a mean field game approach
- Aligned Alone, Misaligned Together: Forecasting Adversarial Capture in LLM Agent Populations
Related papers
- Lions and Muons: Optimization via Stochastic Frank-Wolfe under Heavy-Tailed Noise
- Adam-HNAG: A Convergent Reformulation of Adam with Accelerated Rate
- Incremental Learning in Mirror Flows
- Second-Order Optimization with Asynchronous Curvature
- Online Control via Counterfactual Tracking
- Asynchronous Replanning in Two Population Linear Quadratic Mean Field Games: Information Requirements and Stability