arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.03233cs.AI
收藏

面向科学的AI低代码平台与贝叶斯对抗多智能体框架

AI-for-Science Low-code Platform with Bayesian Adversarial Multi-Agent Framework

Artificial Intelligence Innovation and Incubation Institute, Fudan University(复旦大学人工智能创新与孵化院);Shanghai Innovation Institute(上海创新研究院);Shanghai Academy of AI for Science(上海人工智能科学研究院)

Zihang Zeng, Jiaquan Zhang, Pengze Li, Yuan Qi, Xi Chen

AI总结:

本研究提出一种面向科学的AI低代码平台,通过贝叶斯对抗多智能体框架实现代码生成与评估的协同优化,提升科学任务的可靠性和效率。

摘要:

大型语言模型(LLMs)在自动化科学代码生成方面展现出潜力,但面临可靠性、多智能体工作流程中的误差传播以及在定义不明确的成功指标领域中的评估挑战。我们提出了一种专门针对AI for Science(AI4S)任务的低代码平台(LCP)的贝叶斯对抗多智能体框架。三个基于LLM的智能体在贝叶斯框架下协同工作:任务管理器将用户输入结构化为可执行计划和自适应测试用例,代码生成器生成候选解决方案,评估器提供全面反馈。该框架采用对抗循环,任务管理器迭代优化测试用例以挑战代码生成器,同时通过整合代码质量指标(功能正确性、结构对齐性和静态分析)动态更新提示分布。这种测试与代码的协同优化减少了对LLM可靠性的依赖,并解决了科学任务中固有的评估不确定性。LCP还通过将非专家提示转化为领域特定需求,简化了人机协作,避免了没有编码背景的从业者手动提示工程的需要。基准评估显示LCP在生成稳健代码的同时最小化了误差传播。所提出的平台还测试了地球科学跨学科任务,并展示了强大的可靠性,优于竞争模型。

英文摘要:

Large Language Models (LLMs) demonstrate potentials for automating scientific code generation but face challenges in reliability, error propagation in multi-agent workflows, and evaluation in domains with ill-defined success metrics. We present a Bayesian adversarial multi-agent framework specifically designed for AI for Science (AI4S) tasks in the form of a Low-code Platform (LCP). Three LLM-based agents are coordinated under the Bayesian framework: a Task Manager that structures user inputs into actionable plans and adaptive test cases, a Code Generator that produces candidate solutions, and an Evaluator providing comprehensive feedback. The framework employs an adversarial loop where the Task Manager iteratively refines test cases to challenge the Code Generator, while prompt distributions are dynamically updated using Bayesian principles by integrating code quality metrics: functional correctness, structural alignment, and static analysis. This co-optimization of tests and code reduces dependence on LLM reliability and addresses evaluation uncertainty inherent to scientific tasks. LCP also streamlines human-AI collaboration by translating non-expert prompts into domain-specific requirements, bypassing the need for manual prompt engineering by practitioners without coding backgrounds. Benchmark evaluations demonstrate LCP's effectiveness in generating robust code while minimizing error propagation. The proposed platform is also tested on an Earth Science cross-disciplinary task and demonstrates strong reliability, outperforming competing models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑