用大模型让普通人直接用自然语言设物联网权限,又准又安全。
Say What You Mean: Natural Language Access Control with Large Language Models for Internet of Things
- 用大模型把人话自动转成可执行的权限规则
- 测试中政策生成正确率100%,决策准确率达88%
- 适合想轻松管理智能设备权限的普通用户
物联网访问控制日益复杂,需考虑时间、位置、用户行为和环境等动态因素。现有平台或控制粒度粗,或依赖僵化规则匹配,难以应对语义丰富或模糊的场景。此外,策略编写流程割裂:领域专家用自然语言描述需求,开发者却要手动转成代码,易产生语义偏差和配置错误。本文提出LACE(语言驱动的访问控制引擎),一个融合大语言模型的混合框架,通过提示引导生成、检索增强推理与形式化验证,实现可表达、可解释、可验证的访问控制。用户可用自然语言定义策略,系统自动转换为结构化规则,验证语义正确性,并采用大模型与规则混合引擎做出访问决策。我们在智能家居环境中进行了大量实验,结果表明:LACE在政策生成上达到100%正确率,使用DeepSeek-V3时决策准确率达88%,F1-score为0.79,优于GPT-3.5和Gemini等基线模型。系统在策略数量和请求并发量增加时仍表现出良好可扩展性。结果证明LACE有望在真实物联网平台中实现安全、灵活、易用的访问控制。
原文摘要 · Abstract (English)
Access control in the Internet of Things (IoT) is becoming increasingly complex, as policies must account for dynamic and contextual factors such as time, location, user behavior, and environmental conditions. However, existing platforms either offer only coarse-grained controls or rely on rigid rule matching, making them ill-suited for semantically rich or ambiguous access scenarios. Moreover, the policy authoring process remains fragmented: domain experts describe requirements in natural language, but developers must manually translate them into code, introducing semantic gaps and potential misconfiguration. In this work, we present LACE, the Language-based Access Control Engine, a hybrid framework that leverages large language models (LLMs) to bridge the gap between human intent and machine-enforceable logic. LACE combines prompt-guided policy generation, retrieval-augmented reasoning, and formal validation to support expressive, interpretable, and verifiable access control. It enables users to specify policies in natural language, automatically translates them into structured rules, validates semantic correctness, and makes access decisions using a hybrid LLM-rule-based engine. We evaluate LACE in smart home environments through extensive experiments. LACE achieves 100% correctness in verified policy generation and up to 88% decision accuracy with 0.79 F1-score using DeepSeek-V3, outperforming baselines such as GPT-3.5 and Gemini. The system also demonstrates strong scalability under increasing policy volume and request concurrency. Our results highlight LACE's potential to enable secure, flexible, and user-friendly access control across real-world IoT platforms.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。