[Paper Review] SmartBench: Evaluating LLMs in Smart Homes with Anomalous Device States and Behavioral Contexts
SmartBench provides a first LLM-focused benchmark for detecting and explaining smart-home anomalies, showing current models struggle with anomaly detection, localization, and attribution across context-independent and context-dependent scenarios.
Due to the strong context-awareness capabilities demonstrated by large language models (LLMs), recent research has begun exploring their integration into smart home assistants to help users manage and adjust their living environments. While LLMs have been shown to effectively understand user needs and provide appropriate responses, most existing studies primarily focus on interpreting and executing user behaviors or instructions. However, a critical function of smart home assistants is the ability to detect when the home environment is in an anomalous state. This involves two key requirements: the LLM must accurately determine whether an anomalous condition is present, and provide either a clear explanation or actionable suggestions. To enhance the anomaly detection capabilities of next-generation LLM-based smart home assistants, we introduce SmartBench, which is the first smart home dataset designed for LLMs, containing both normal and anomalous device states as well as normal and anomalous device state transition contexts. We evaluate 13 mainstream LLMs on this benchmark. The experimental results show that most state-of-the-art models cannot achieve good anomaly detection performance. For example, Claude-Sonnet-4.5 achieves only 66.1% detection accuracy on context-independent anomaly categories, and performs even worse on context-dependent anomalies, with an accuracy of only 57.8%. More experimental results suggest that next-generation LLM-based smart home assistants are still far from being able to effectively detect and handle anomalous conditions in the smart home environment. Our dataset is publicly available at https://github.com/horizonsinzqs/SmartBench.
Motivation & Objective
- Motivate the need for anomaly-aware smart home assistants that can detect and explain anomalous environmental states.
- Introduce SmartBench, a dedicated dataset of normal and anomalous device states and state-transition contexts for LLM evaluation.
- Assess how mainstream LLMs perform on context-independent and context-dependent anomaly detection tasks.
- Provide metrics and analysis to guide development of safer and more reliable smart-home assistants.
Proposed method
- Define two anomaly types: context-independent (snapshot) and context-dependent (state-transition sequences).
- Construct a dataset pipeline using real smart-home data for normals and GPT-5-based generation for anomalies, with a compression strategy for long sequences.
- Implement compliance validation and semantic checks to ensure sample realism and consistency.
- Evaluate 13 LLMs (open and closed-source) with a fixed temperature of 0 and tailored token limits.
- Use F1, FPR, Anomaly Location (AL) Score, and Attribution Consistency (AC) Score to assess detection, localization, and explanations.
Experimental results
Research questions
- RQ1RQ1: How well do LLMs detect anomalous states in smart homes?
- RQ2RQ2: Can LLMs analyze the underlying causes of anomalies?
- RQ3RQ3: How does model size affect anomaly detection performance?
- RQ4RQ4: What is the impact of context compression on model performance?
- RQ5RQ5: Can few-shot learning help improve anomaly detection capabilities?
Key findings
- Most models struggle to detect anomalies effectively; context-independent F1 averages about 66.7%, and context-dependent F1 averages about 60.5%.
- Anomaly localization is poor; average AL Score is 0.300 (CI) and 0.221 (CD).
- Attribution explanations are generally weak; even top models reach ~74% attribution on CI anomalies but much lower on CD anomalies.
- Larger models tend to perform better, with size-related gains observed across Qwen and LLaMA families, though not universally.
- GPT-5-family models show strong precision but very low FPR control in some cases, indicating inconsistent anomaly signaling.
- Context-dependent detection remains harder than context-independent detection across evaluated models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.