穷人的代理建模:在笔记本电脑上模拟大型LLM代理社会
其他资讯 · 2026/08/14
模拟大量大型语言模型(LLM)代理的社会是昂贵的,但此类模拟通常提出的问题是宏观的:相行为、典型事实以及随代理数量N的缩放,而非单个代理的认知。我们将统计物理观察转化为一种方法:用从几百到几千次廉价查询中拟合的低参数模型替换每个LLM代理,然后在笔记本电脑上以任意N运行社会。这是否有效在模拟运行前就已决定,主要取决于每个代理的感知。我们引入了一个[交互顺序×记忆]分类法,将感知和记忆映射到有效理论和替代误差的预测N趋势。我们在忠实重实现的LLM宏观经济EconAgent和另外七个命名的LLM模拟上验证了它,代理决策克隆自真实的LLM引出(主要是DeepSeek),花费几美元;预测的误差趋势逐格成立,两个被反驳的预测,都发生在强饱和响应上并追溯到其曲率,也被理论无自由参数地定量匹配。
该论文提出了一种创新的方法,将统计物理思想应用于LLM代理模拟,显著降低计算成本,并通过理论预测和实验验证展示了其有效性,对于大规模社会模拟研究具有重要价值。
Simulating societies of many large language model (LLM) agents is expensive, yet the questions asked of such simulations are usually macroscopic: phase behaviour, stylised facts, and scaling with the number of agents N, not the cognition of any single agent. We turn a statistical-physics observation into a method: replace each LLM agent by a low-parameter model fitted from a few hundred to a few thousand cheap queries, then run the society at any N on a laptop. Whether this works is decided before the simulation runs, chiefly by what each agent perceives. We introduce an [interaction order x memory] taxonomy that maps perception and memory to an effective theory and a predicted N-trend of the surrogate error. We validate it on a faithful reimplementation of the LLM macroeconomy EconAgent and seven further named LLM simulations, with agent decisions cloned from genuine LLM elicitations (primarily DeepSeek) for a few dollars; the predicted error trends hold cell by cell, and the two refuted predictions, both on a strongly saturating response and traced to its curvature, are themselves matched quantitatively by the theory with no free parameters.