arXiv:2412.10425cs.CLcs.AI2024-12被引 2

用贝叶斯热力学让多个大模型自组织适应环境变化

Active Inference for Self-Organizing Multi-LLM Systems: A Bayesian Thermodynamic Approach to Adaptation

  • 在大模型上加认知层,动态调整提示词和搜索策略
  • 实验显示能自发形成环境模型,探索与利用行为分明
  • 适合想构建自适应智能体的研究者或开发者

本文提出一种将主动推断(Active Inference)与大语言模型(LLM)结合的新方法,以构建可自适应的语言代理。尽管LLM能力强大,但其依赖静态提示词限制了对新信息和变化环境的响应。为此,我们引入主动推断框架作为LLM代理的认知层,通过符合信息寻求原则的行为动态调整提示词和搜索策略。该框架使用三个状态因子(提示、搜索、信息状态)和七种观测模态来捕捉质量指标。基于自由能原理建模学习过程,系统性探索提示组合与搜索策略。实验表明,代理能发展出对环境动态的准确模型,表现为观测矩阵中出现的涌现结构;动作选择模式揭示出从初始信息收集到目标提示测试的复杂探索-利用行为。将热力学原理与语言模型能力结合,为创建鲁棒、自适应代理提供了一个原则性框架,将主动推断从传统低维控制问题拓展至高维、语言驱动环境。

原文摘要 · Abstract (English)

This paper introduces a novel approach to creating adaptive language agents by integrating active inference with large language models (LLMs). While LLMs demonstrate remarkable capabilities, their reliance on static prompts limits adaptation to new information and changing environments. We address this by implementing an active inference framework that acts as a cognitive layer above an LLM-based agent, dynamically adjusting prompts and search strategies through principled information-seeking behavior. Our framework models the environment using three state factors (prompt, search, and information states) with seven observation modalities capturing quality metrics. By framing the agent's learning through the free energy principle, we enable systematic exploration of prompt combinations and search strategies. Experimental results demonstrate the effectiveness of this approach, with the agent developing accurate models of environment dynamics evidenced by emergent structure in observation matrices. Action selection patterns reveal sophisticated exploration-exploitation behavior, transitioning from initial information-gathering to targeted prompt testing. The integration of thermodynamic principles with language model capabilities provides a principled framework for creating robust, adaptable agents, extending active inference beyond traditional low-dimensional control problems to high-dimensional, language-driven environments.

主动推断多大模型自适应系统

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。