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

LocalIntent:采用本地大语言模型的、兼容后端的智能建筑自动化的特定结果结构化生成方法

LocalIntent: Outcome-Specific Structured Generation for Backend-Compatible Smart Building Automation with Local LLMs

Beijing Dublin International College(北京都柏林国际学院);University College Dublin(都柏林大学学院);School of Computer Science(计算机科学学院)

Tianyang Liu, Jiayue Wang, Zhanhao Cheng, Changyang Wang, Shaoshu Zhu, Zhenghao Wu, Hadi Tabatabaee Malazi

AI总结:

本研究提出LocalIntent方法,通过路由请求至不同规则分支并结合确定性验证,在本地LLMs上实现了智能建筑自动化的特定结果结构化生成,显著提升了规则任务的意图理解、设备识别等指标。

摘要:

本地部署的大语言模型(LLMs)可减少自然语言智能建筑自动化对远程云服务的依赖,但面向后端的处理需要正确的结果选择、与本地能力的对齐以及有效的结构化输出。本研究探讨完整的特定结果提示设计是否能比通用的“先路由再生成”提示提升紧凑模型的输出。提出的LocalIntent方法将请求路由至普通规则分支或持久规则分支:前者生成命令、澄清或拒绝,后者生成触发-动作规则,随后进行确定性验证。我们在101条非持久规则记录和54条持久规则记录上评估了4种本地执行的Gemma和Qwen模型,参数范围为2B至9B,对比了整体提示、通用两阶段提示、LocalIntent以及验证引导修复方法。在评估的数据集上,LocalIntent在意图理解、设备识别以及动作/参数正确性方面均优于通用两阶段提示,而澄清/模式正确性则取决于模型。在规则任务中提升最为显著:LocalIntent将意图理解从26.4%提升至80.6%,设备识别从59.3%提升至84.7%,规则模式正确性从49.1%提升至98.6%,动作/参数正确性从5.6%提升至44.9%;对于非持久请求,整体提升较小:意图理解从39.6%提升至53.2%,动作/参数正确性从30.7%提升至42.8%。

英文摘要:

Locally deployed large language models (LLMs) can reduce reliance on remote cloud services for natural language smart building automation, but backend-facing processing requires correct outcome selection, alignment with local capabilities, and valid structured outputs. We investigate whether a complete outcome-specific prompting design improves compact-model outputs beyond generic route-then-generate prompting. The proposed LocalIntent approach routes requests to ordinary or persistent-rule branches: the former produces commands, clarifications, or rejections, while the latter generates trigger-action rules, followed by deterministic validation. We evaluate four locally executed Gemma and Qwen models spanning 2B-9B parameters on 101 non-persistent and 54 persistent-rule records, comparing Monolithic prompting, generic two-stage prompting, LocalIntent, and validation-guided repair. Across the evaluated datasets, LocalIntent achieves higher intent understanding, device identification, and action/parameter correctness than generic two-stage prompting, while clarification/mode correctness remains model-dependent. The largest gains occur for rules, where LocalIntent improves intent understanding from 26.4% to 80.6%, device identification from 59.3% to 84.7%, rule-mode correctness from 49.1% to 98.6%, and action/parameter correctness from 5.6% to 44.9%. For non-persistent requests, pooled gains are smaller: intent understanding increases from 39.6% to 53.2%, and action/parameter correctness from 30.7% to 42.8%.

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

↑