arXiv:2606.22312cs.NIcs.ET2026-06

用知识图谱让大模型更可靠地解决智能家居规则冲突。

SHACR: A Graph-Augmented Semi-Autonomous Framework for Multi-Class Conflict Resolution in Smart Home IoT Automation

论文配图:SHACR: A Graph-Augmented Semi-Autonomous Framework for Multi-Class Conflict Resolution in Smart Home IoT Automation
图 1 · 摘自论文原文
  • 构建设备与规则的图结构,通过多跳遍历发现隐藏冲突。
  • 引入闭环流程,使冲突检测准确率提升至F1 0.95。
  • 适合非专家用户,无需懂编程即可安全使用智能规则。

智能家居自动化依赖于跨异构设备的用户自定义规则。这些规则单独看无害,但并发执行时会因共享设备、环境变量和物理拓扑产生隐蔽的交叉交互,导致不安全、浪费或隐私泄露行为,仅靠文本分析无法察觉。现有冲突检测工具局限于静态语法或特定环境交互,无法统一处理且难以提供可操作修复方案。本文提出SHACR框架,通过形式化有向知识图谱约束大语言模型(LLM)的推理过程,将设备、能力、物理状态及触发-条件-动作规则编码为可遍历的类型化实体。通过将物理因果关系作为第一类图边,将冲突检测从脆弱的文本推断转化为确定性的多跳图遍历,统一了逻辑、语义与物理冲突类别。该框架驱动闭环扫描-解释-修复-验证流程,利用图结构限制LLM的动作空间。我们在一个包含70套公寓、203条规则的测试环境中评估,固定底层LLM并引入知识图谱后,分类错误率下降36.7%,F1值从0.59升至0.79,少样本校准进一步将F1提升至0.95,而相同校准对无图的LLM效果甚微。本研究挑战当前AI范式,证明结构化知识表示比提示工程或模型架构对可靠物联网管理更为关键。

原文摘要 · Abstract (English)

Smart home automation increasingly relies on user-defined rules across heterogeneous IoT devices. While these rules appear harmless in isolation, their concurrent execution creates hidden, cross-rule interactions via shared devices, environmental variables, and physical topology. These interactions result in unsafe, wasteful, or privacy-threatening behaviors that are completely invisible to text-only analysis. Existing conflict detectors remain siloed, catching either static syntactic conflicts or specific environment-mediated interactions without unifying the two or providing actionable repairs for non-expert users. This paper presents SHACR, a smart home conflict resolution framework that anchors Large Language Model (LLM) unpredictability by grounding its reasoning in a formal, directed knowledge graph. SHACR encodes devices, capabilities, physical states, and Trigger-Condition-Action rules as typed, traversable entities. By elevating physical cause-effect relationships to first-class graph edges, SHACR transforms conflict detection from fragile text inference into deterministic multi-hop graph traversal, unifying logical, semantic, and physical conflict classes. It drives a closed-loop Scan-Explain-Repair-Validate workflow that uses the graph to bound the LLM's action space. We evaluated SHACR on a testbed of 203 rules deployed across 70 apartments within a smart building. By holding the underlying LLM fixed and introducing SHACR's knowledge graph, classification errors drop by 36.7\%, F1 rises from 0.59 to 0.79, and few-shot calibration further lifts F1 to 0.95, whereas the same calibration barely helps a graph-free LLM. Ultimately, this work challenges the current AI paradigm, establishing that structured knowledge representation is a far more critical factor for dependable IoT automation management than prompt engineering or underlying model architecture.

智能家居知识图谱冲突检测LLM应用

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。