Physics of Agents: Statistical Mechanics Predicts Collective Behavior of AI Agents
AuthorsBatu El, Jinhee Paeng, Fatih Dinc, Shiye Su, Mete Erdogan, Aneesh Pappu, Haotian Ye, Wanjia Zhao, Surya Ganguli, James Zou
Resources
A physics-inspired model predicts when groups of AI agents will reach consensus, polarize, or become indifferent—and how their interactions affect truth and political opinions.
Key results
Communities analyzed across models, questions, graphs, and episodes.
Standard population size used in the simulations.
Opinion and message exchanges per community trajectory.
Maximum balanced accuracy achieved by the three-coupling model.
Maximum rollout balanced accuracy reported for the three-coupling model.
What the paper found
This study models collective behavior in language-model communities as an Ising system with Glauber-style stochastic updates. Across 9,600 core communities of 32 agents interacting for 8 rounds, it evaluates objective problems from the MATH dataset and subjective political statements from the Political Questions Dataset for LLM Bias Evaluation, using agents based on OpenAI’s GPT-4o-mini, Gemma-3n-E4B, Qwen3.5-9B, and Meta’s Llama-3.1-8B-Instruct; Anthropic’s Claude 4.8 Opus helps generate mathematical distractors. Communities typically move from indifference toward either consensus or polarization: social interaction improves collective performance on verifiable questions, but drives a rightward ideological shift on subjective statements in three of the four models. The proposed three-coupling model separates concordant, discordant, and unsigned network effects, while intrinsic fields encode persona and question bias. Fitted with gradient descent on opinion transitions, it generalizes to unseen communication graphs, achieving 85.0% to 97.8% one-step balanced accuracy and 59.7% to 89.3% rollout accuracy, outperforming persistence, interaction-free, and mean-field baselines. The inferred mechanics place communities below their critical social temperature, explaining conviction buildup; concordant ties are stronger than discordant ties, favoring consensus; and agents holding correct answers exert greater influence, accounting for truth-seeking. The paper’s central contribution is a compact, interpretable dynamical law that predicts both individual opinion trajectories and aggregate collective regimes without reproducing every natural-language message.
Original abstract
AI agents increasingly operate as part of interacting systems rather than in isolation. As agents exchange information and jointly make decisions, their interactions can improve collective reasoning but may also produce herding, polarization, or amplify shared biases. Understanding and predicting these collective dynamics is therefore important for designing effective and aligned multi-agent systems. Here, we study over 10,000 communities of language-model agents that repeatedly exchange messages and revise their opinions across objective mathematics questions and subjective political statements. Despite substantial diversity in possible behavior, the individual and group dynamics can be represented by three characteristic regimes: indifference, polarization, and consensus. AI agents start indifferent and build conviction as they interact. On objective questions, communication improves collective accuracy, while on subjective questions it often drifts group opinions toward the right in the political spectrum. We explain these observations with a statistical-mechanics formalism in which agents stochastically favor lower social pressure. Given only initial opinions, our model predicts individual trajectories, outperforms all standard baselines, generalizes to unseen community graphs, and reproduces the observed group archetype distributions. Our fitted model parameters reveal the mechanics underlying our key observations: i) communities operate below the critical social temperature, which explains conviction buildup; ii) attractive ties outweigh repulsive ones, which favors consensus; and iii) agents holding the correct answer exert the strongest pull, which drives truth-seeking. Overall, our results demonstrate that collective behavior of AI agents, like that of other complex systems, follows compact and predictive dynamical laws.
Read the original paperMore in AI Agents
Browse all 80 papers →GH-AWTrace: A Large-Scale Dataset of GitHub Agentic Workflow Execution Logs
Jasem Khelifi, Hao Li, Ali Ouni, Mohammed Sayagh, Mohamed Aymen Saied
GH-AWTrace collects millions of GitHub agent workflow runs and logs to help researchers investigate how agents execute tasks, use tools, and fail.
Piccolo: Co-Evolving Decision Models and Data through Recursive Self-Improvement
Zhenqing Ling, Qirui Jiao, Daoyuan Chen, Cheng Chen, Xinji Mai, Haowen Gao, Zhuo Zhang, Xuchen Pan, Mengsu Ding, Jiaji Deng, Yuexiang Xie, Xiaoming Qin, Weirui Kuang, Zhaoyang Liu, Yaliang Li, Bolin Ding, Jingren Zhou
Piccolo uses research agents to iteratively improve both its decision models and the data they learn from.
The Resolution Hypothesis: Agent Evolution's Key Is Identifying Improvements
Yuanhao Zeng, Shaocheng Lan, Ao Lu, Kuang Yan, Heng Lin, Xinang Xu, Yuan Luo, Yueting Wang, Yexin Li, Ruo Shan, Kan Ren
Agent evolution may be limited less by generating better ideas than by reliably spotting which ones actually work.