“ Say What You Mean ”: Natural Language Access Control with Large Language Models for Internet of Things

Ye Cheng, Minghui Xu, Yue Zhang, Kun Li, Hao Wu, Yechao Zhang, Shaoyong Guo, Wangjie Qiu, Dongxiao Yu, Xiuzhen Cheng · 2025

Read “ Say What You Mean ”: Natural Language Access Control with Large Language Models for Internet of Things by Ye Cheng, Minghui Xu, Yue Zhang, Kun Li, Hao Wu, Yechao Zhang, Shaoyong Guo, Wangjie Qiu, Dongxiao Yu, Xiuzhen Cheng (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2505-23835.txt.

Introduction

Ye Cheng and co-authors present LACE in 2025, a system that lets users write Internet of Things access rules in plain language. Access control for smart devices must weigh time, place, behavior, and surroundings. Existing platforms offer coarse controls or rigid rule matching, and experts' words must be hand-translated into code by developers.

LACE uses large language models to turn intent into structured, enforceable rules. It adds retrieval support and formal validation to check meaning. In smart home tests, verified policy generation was fully correct. Decision accuracy reached up to eighty-eight percent, beating standard model baselines.

Catalog record

CREATORYe Cheng, Minghui Xu, Yue Zhang, Kun Li, Hao Wu, Yechao Zhang, Shaoyong Guo, Wangjie Qiu, Dongxiao Yu, Xiuzhen Cheng
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE73 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2505-23835

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

“ Say What You Mean ”: Natural Language Access Control with Large Language Models for Internet of Things Ye Cheng, Minghui Xu, Yue Zhang, Kun Li, Hao Wu, Yechao Zhang, Shaoyong Guo, Wangjie Qiu, Dongxiao Yu, Xiuzhen Cheng Abstract 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 misconfigurations. 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. I Introduction With the rapid advancement of Internet of Things (IoT) technology and the widespread deployment of intelligent devices, IoT platforms have become deeply integrated into critical sectors such as smart homes, industrial control systems, healthcare infrastructures, and urban management. Broadly speaking, modern IoT platforms can be categorized into two types. Consumer-oriented platforms, such as Apple HomeKit [ 1 ] , Mi Home [ 2 ] , and Samsung SmartThings [ 3 ] , prioritize usability and ease of configuration through trigger-action programming models. However, they typically offer only coarse-grained access control, with role distinctions limited to basic categories like “owner” or “guest.” In contrast, enterprise-grade platforms such as Alibaba Cloud IoT [ 4 ] , AWS IoT [ 5 ] , and Azure IoT [ 6 ] provide more sophisticated access control mechanisms, including attribute-based policies and limited forms of context-aware decision-making. In both settings, access control remains a fundamental security layer that determines which users or devices can access which resources, and under what conditions. However, access control in IoT is no longer a matter of evaluating static roles or enforcing hardcoded rules. As device ecosystems grow increasingly complex and interconnected, access policies must account for a wide range of dynamic contextual factors, including time of day, user behavior, device status, sensor inputs, inferred intent, and even social norms. For instance, consider a scenario where a child in a smart home requests to watch television on a school night. Although the system may be configured to restrict entertainment use after 9 PM, it may also need to consider whether the child has completed homework or whether an emergency situation–such as a fire alarm–is active. These nuanced decisions cannot be reliably handled by rigid rule sets or keyword-based matching, underscoring the need for more intelligent, flexible, and semantically aware access control mechanisms. Access control in today’s IoT systems faces two critical challenges. First, the policy authoring process is fragmented and inefficient. In both consumer and enterprise settings, access policies are typically written in natural language by device owners or security professionals, but must be manually translated into enforceable code by developers. This division of labor creates a semantic gap: non-technical users cannot verify whether the implemented logic reflects their intent, while developers may misinterpret vague or high-level descriptions. As a result, policies are often inconsistent, error-prone, and expensive to maintain. Second, although classical models such as discretionary access control (DAC) [ 7 ] , mandatory access control (MAC) [ 8 ] , role-based access control (RBAC) [ 9 ] , and attribute-based access control (ABAC) [ 10 ] provide structured mechanisms for permission assignment, they are largely static and coarse-grained, making them poorly suited to the dynamic, heterogeneous nature of IoT environments. Context-aware access control (CAAC) [ 11 ] attempts to address this by incorporating factors such as time, location, or device status into policy decisions. However, most CAAC implementations rely on rigid keyword matching or predefined logic structures, lacking the semantic understanding needed to generalize across diverse and naturalistic inputs. For example, a policy that allows lights to turn on “when someone is in the living room” may not match a request triggered by “ motion detected by the camera in the living room ,” even though the intent is semantically equivalent. These systems often fail to reason over ambiguous, noisy, or dynamic inputs, leading to incorrect denials or unintended authorizations. This disconnect between human policy intent and machine-enforceable logic is not merely a usability concern–it poses a fundamental security risk. For instance, a parent may believe they have configured their smart lock to deny guest access after 10 PM, but due to an ambiguous interface or a developer’s misinterpretation, the policy may in fact only block access until midnight. As a result, the system silently allows entry at 2 AM, violating the user’s original intent without warning or visibility. Such gaps between what users expect and what systems enforce are common in both consumer-grade and enterprise-grade platforms, and are exacerbated by the increasing complexity and context sensitivity of modern IoT deployments. These observations lead us to a central question: Can we design an access control framework that understands user intent expressed in natural language, reasons over dynamic context, and produces verifiable, enforceable decisions? To address this, we explore the use of large language models (LLMs) not merely as text generators, but as semantic translators and reasoning engines for access control. LLMs such as GPT-4 exhibit strong capabilities in understanding high-level descriptions, recognizing semantically equivalent expressions, and performing multi-step contextual reasoning–all of which are highly desirable in policy modeling and decision-making. However, LLMs alone are insufficient: their outputs are inherently probabilistic and may introduce hallucinations or inconsistencies, especially in security-sensitive settings. The core insight of our approach is that LLMs, when properly guided and constrained, can form the foundation of an access control system that is both expressive and trustworthy. To that end, we propose LACE , the Language-based Access Control Engine, which combines prompt-guided policy generation, retrieval-augmented contextual reasoning, and formal validation techniques to ensure both semantic fidelity and decision correctness. LACE introduces a hybrid architecture that integrates natural language-driven policy generation and LLM-assisted decision-making with retrieval-augmented reasoning and formal verification. Given a natural language policy description, LACE uses prompt-guided LLMs to synthesize structured access policies in JSON format. These policies are then validated through a multi-stage pipeline that includes natural language inference checks and conflict detection via satisfiability solvers. At runtime, incoming access requests are semantically matched to candidate policies using embedding-based retrieval. For requests involving complex, ambiguous, or context-rich conditions, LACE invokes an LLM to reason over the matched policies

Read the complete text