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
大型语言模型(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.
Automated Adversarial Collaboration for Advancing Theory Building in the Cognitive Sciences
Department of Psychology, Princeton University(普林斯顿大学心理学系);Department of Psychology, Stanford University(斯坦福大学心理学系);Princeton AI Lab, Princeton University(普林斯顿大学人工智能实验室)
Detection of Uncertainty in Exceedance of Threshold (DUET): An Adversarial Patch Localizer
Nanyang Technological University (NTU)(南洋理工大学)
开发针对物理世界攻击的防御措施,如对抗性补丁,正在研究界获得关注。我们通过引入一个基于不确定性的对抗补丁定位器,将对抗补丁定位在图像上,允许后处理补丁避免或补丁重建,从而为对抗补丁检测领域做出贡献。我们量化我们的预测不确定性与\textit{\textbf{D}etection of \textbf{U}ncertainties in the \textbf{E}xceedance of \textbf{T}hreshold}(DUET)算法的发展。该算法提供了一个框架来确定对抗补丁定位的置信度,这对于自动驾驶汽车和医学成像等安全敏感应用至关重要。我们进行了定位对抗补丁的实验,发现我们提出的DUET模型优于基线模型。然后,我们对我们的模型先验的选择和贝叶斯神经网络在我们的模型架构中的不同层的采用进行进一步的分析。我们发现贝叶斯神经网络中的等距高斯先验适合于补丁定位任务,并且在早期神经网络块中贝叶斯层的存在有利于高端定位性能,而在后期神经网络块中添加贝叶斯层有助于更好的模型泛化。然后,我们提出了两种不同的性能良好的模型来处理不同的用例。
On the Robustness of Bayesian Neural Networks to Adversarial Attacks
University of Trieste(的里雅斯特大学);TU Delft University(代尔夫特理工大学);SISSA, International School of Advanced Studies(国际高等研究学院(SISSA));University of Edinburgh(爱丁堡大学);University of Oxford(牛津大学)
Univ Lyon, UJM-Saint-Etienne, CNRS, Institut d Optique Graduate School, Laboratoire Hubert Curien UMR 5516(里昂大学,圣埃蒂安让·莫内大学,法国国家科学研究中心,光学研究生院,于贝尔·居里安实验室 UMR 5516);Airbus Opération S.A.S(空中客车运营公司);University of Toulouse, Institut de Recherche en Informatique de Toulouse(图卢兹大学,图卢兹信息研究所)
Efficient Black-box Adversarial Attacks via Bayesian Optimization Guided by a Function Prior
Tsinghua University(清华大学);JQ Investments(JQ投资);Academy of Mathematics and Systems Science, Chinese Academy of Sciences(中国科学院数学与系统科学研究院);University of Chinese Academy of Sciences(中国科学院大学);RealAI;Kaiyuan International Mathematical Sciences Institute(开源国际数学科学研究院)
Adversarial Examples and the Deeper Riddle of Induction: The Need for a Theory of Artifacts in Deep Learning
The University of Houston(休斯顿大学)
深度学习是目前人工智能中应用最广泛、最成功的技术。它有望推动科学发现的前沿超越目前的限制。然而,怀疑论者担心深层神经网络是黑匣子,并质疑如果人类无法理解它们,这些进步是否真的可以被视为科学进步。与此相关的是,这些系统还具有令人困惑的新漏洞:最明显的是对“对抗性示例”的敏感性。在本文中,我认为,对抗性的例子将成为哲学和各种科学辩论的热点。具体而言,关于对抗性示例的新发现挑战了共识观点,即网络对这些情况的判决是由训练集中的过度拟合特质噪声引起的,并且可能是检测人类无法感知的预测有用的“数据几何结构的内在特征”的结果(Ilyas et al.,2019年)。这些结果应该促使我们重新审视对哲学和科学交叉点上最深刻的谜题之一的回应:纳尔逊·古德曼的归纳法“新之谜”。具体来说,它们提出了一种可能性,即许多科学的进步将取决于对人类难以理解的有用特征的检测和操纵。然而,在我们评估这种可能性之前,我们必须确定哪些(如果有的话)这些难以理解的特征是真实的,但只适用于“外星人”的感知和认知,哪些是深度学习的独特伪像--因为像镜头耀斑或吉布斯现象这样的伪像对预测同样有用,但通常被视为科学理论化的障碍。因此,机器学习研究人员迫切需要为深度神经网络开发一种伪影理论,最后,我为这一研究领域勾画了一些初步方向。