Description-Guided Intermediate Representations: Synthesizing Schemas for Smart Home Automation
Abstract
SmartThings, Samsung Electronics' smart home platform with hundreds of millions of registered users, provides automations called routines that execute actions when specified conditions are met. We develop a library that converts natural-language requests into these routines. We automate its design with a high-performance LLM, iteratively refining it for a separate LLM that generates routines in the service. The platform's JSON requires complex nesting and explicit value types that LLMs often generate incorrectly. An intermediate representation (IR) can express behavior more simply. However, designing its schema from routine JSON can reproduce that complexity, leaving LLMs with complex structures to generate. We propose Description-Guided IR. We generate natural-language descriptions from requests and paired routine examples, preserving behavior while excluding the platform's JSON structure. Requests and descriptions guide automatic design of the IR's format and semantics. Conversion code transforms LLM-generated IR into final routines. RoutineGen Refiner implements this process, evaluating routines from the service LLM and incorporating failure analysis and developer review. The library is deployed in SmartThings Pet Care Assistant. With the same service LLM, mean offline accuracy was 98% with Description-Guided IR, 95% with IR designed from routine JSON, and 85% with direct generation without IR.
Create a lesson
Metadata
- Categories
- cs.CL, cs.SE
- Comments
- 15 pages, 2 Figures, including appendicies
Related papers
Anticipating Errors Before Generation: Probing Evidence of Misconception Representations in Frozen LLMs
Shared title terminologycs.CLVivek Hruday Kavuri, Abraham Paul Elenjical, Vasudeva Varma
Putting Meaning Back in Abstract Meaning Representation: Using LLMs to Repair Semantic Errors of AMR Parsers
Shared title terminologycs.CLIan Yuen, Douglas S. Chan, Nikita Mishra
Representational Inertia: Activation Stitching Reverses Fine-Tuned Behavior in Large Language Models
Shared title terminologycs.CLKartik Sharma, Rakshit S. Trivedi
TAPD: TTS-Guided Acoustic Policy Distillation for Paralinguistic Generation in Speech Language Models
Shared title terminologycs.CLTianyu Peng, Yingzhuo Deng, Jiajun Zhang
Closed-Form Fisher-Guided Compression-Rate Allocation for Large Language Models
Shared title terminologycs.CLHai-Long Nguyen, Sebastiaan B. H. C. Hofstee, Trung Thanh Nguyen et al.
Too Smart for Its Own Good? Cognitive Fidelity and Competence Leakage in LLM Simulations of Young Learners
Shared title terminologycs.CLZhen Xu, Beata Beigman Klebanov, Jamie N. Mikeska