基于硬件安全门控的LLM编写原生ARTIQ控制代码系统在离子阱平台上的应用
A hardware-safety-gated system for LLM-written native ARTIQ control code on a trapped-ion platform
AI总结:
提出一种硬件安全门控系统,通过令牌授权机制确保LLM代理在离子阱实验中安全自主地编写和执行控制代码,并在实验中验证了其有效性和可移植性。
摘要:
大语言模型代理可以编写并运行实验控制代码,从而实现实验室工作的自主化。然而,这种自主性带来了先前工作未解决的安全问题:未经检查的代码可能损坏实验装置,且人类授权/监督与代理决策之间缺乏形式化的、逐操作边界。我们提出了一种控制系统,在离子阱实验中引入LLM代理,同时强制执行这种边界。代理通过模型上下文协议服务器提供的工具控制现有的先进实时量子物理基础设施堆栈。除非工具调用携带与其确切内容绑定的授权令牌,否则无法到达硬件。令牌通过两种方式之一颁发:自动方式,即在隔离的硬件模拟中运行代理提议的脚本,并对照预设的每设备边界检查每个操作;或手动方式,由人类操作员对敏感操作进行授权。在此边界内,代理自主开发实验,而非仅调用预构建例程。我们在共陷$^{40}$Ca$^{+}$/$^{40}$CaOH$^{+}$晶体上部署该系统,代理自主构建完整的校准堆栈,并在操作员定向引导下闭合了跨仪器磁场稳定环路。在另一个独立的$^{171}$Yb$^{+}$平台上,我们确认了接口级别的可移植性。我们使用试图绕过令牌授权机制的对抗性脚本系统性地测试该机制,绘制了其保护的精确边界,并优先确定了下一步加强的方向。通过分析代理仍需人类引导的环节,我们发现其限制在于元认知控制,即识别何时需要重新定义问题,而非领域知识不足。
英文摘要:
Large-language-model (LLM) agents can write and run experimental control code. This allows laboratory work to be conducted autonomously. However, this autonomy raises a safety problem that prior work has not addressed. Unchecked code can damage the apparatus, and there is no formal, per-operation boundary between human authorization/supervision, and agent decisions. We present a control system that places an LLM agent in the loop of a trapped-ion experiment while enforcing such a boundary. The agent controls the existing Advanced Real-Time Infrastructure for Quantum physics (ARTIQ) stack through tools provided by a Model Context Protocol (MCP) server. No tool call reaches the hardware unless it carries an authorization token bound to its exact contents. Tokens are issued in one of two ways: automatically, by running the agent's proposed script in an isolated hardware simulation (dax.sim) and checking every operation against preset per-device bounds, or manually by a human operator for sensitive actions. Within this boundary the agent develops its own experiments, rather than only calling pre-built routines. We deploy the system on a co-trapped $^{40}$Ca$^{+}$/$^{40}$CaOH$^{+}$ crystal, where the agent autonomously builds a full calibration stack and, with targeted operator guidance, closes a cross-instrument magnetic-field-stabilization loop. On a separate, independent $^{171}$Yb$^{+}$ platform, we confirm interface-level portability. We systematically test token-authorization mechanism with adversarial scripts that attempt to bypass it, mapping the precise boundary of its protection and prioritizing where to strengthen it next. Analyzing where the agent still requires human guidance, we find that its limits lie in metacognitive control, namely recognizing when a problem must be re-framed, rather than in domain knowledge.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。