AutoBridge 自动生成智能设备集成代码,降低人工开发成本。
AutoBridge: Automating Smart Device Integration with Centralized Platform
- 分步检索设备与平台知识,自动合成兼容代码
- 93.87%成功率,94.87%功能覆盖率,无需人工干预
- 仅需用户二元反馈即可达100%覆盖,适合非专家使用
多模态物联网系统协调多样设备以提供以人为本的服务。在集中式平台下集成新设备是关键需求,但编写复杂集成代码需大量人力与专业知识。为此,我们提出 AutoBridge,实现物联网集成代码的自动化生成。其采用分治策略:先逐步检索设备特定知识生成控制逻辑,再利用平台特定知识合成合规代码。为保障正确性,AutoBridge 设计多阶段调试流程,包括虚拟设备自动化测试和仅需二元反馈(是/否)的硬件在环交互调试。我们在两个开源平台上的34个设备基准上评估,结果表明,AutoBridge 平均成功率达93.87%,平均功能覆盖94.87%,全程无需人工参与。经用户少量二元反馈后,代码可修正至100%功能覆盖。15名参与者用户研究显示,即使程序员使用商用代码大模型,AutoBridge 在代码准确率上仍优于专家50%至80%。
原文摘要 · Abstract (English)
Multimodal IoT systems coordinate diverse IoT devices to deliver human-centered services. The ability to incorporate new IoT devices under the management of a centralized platform is an essential requirement. However, it requires significant human expertise and effort to program the complex IoT integration code that enables the platform to understand and control the device functions. Therefore, we propose AutoBridge to automate IoT integration code generation. Specifically, AutoBridge adopts a divide-and-conquer strategy: it first generates device control logic by progressively retrieving device-specific knowledge, then synthesizes platformcompliant integration code using platform-specific knowledge. To ensure correctness, AutoBridge features a multi-stage debugging pipeline, including an automated debugger for virtual IoT device testing and an interactive hardware-in-the-loop debugger that requires only binary user feedback (yes and no) for real-device verification. We evaluate AutoBridge on a benchmark of 34 IoT devices across two open-source IoT platforms. The results demonstrate that AutoBridge can achieves an average success rate of 93.87% and an average function coverage of 94.87%, without any human involvement. With minimal binary yes and no feedback from users, the code is then revised to reach 100% function coverage. A user study with 15 participants further shows that AutoBridge outperforms expert programmers by 50% to 80% in code accuracy, even when the programmers are allowed to use commercial code LLMs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。