arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.12923cs.CL
收藏

面向家庭助手的端侧LLM:在意图检测与响应生成中的双重作用

On-Device LLMs for Home Assistant: Dual Role in Intent Detection and Response Generation

Aalborg University(奥尔堡大学)

Rune Birkmose, Nathan Mørkeberg Reece, Esben Hofstedt Norvin, Johannes Bjerva, Mike Zhang

AI总结:

本文研究端侧LLM在资源受限CPU边缘设备上实现智能家居助手槽位意图检测与响应生成的双重任务,验证了不同量化模型的性能、泛化能力与推理速度,证实其可无需专用硬件统一完成指令解读与响应生成。

摘要:

本文研究了在仅配备CPU的资源受限边缘硬件上运行时,经合成但具有领域代表性的数据微调后的大语言模型(Large Language Models, LLMs)能否完成智能家居助手的双重任务:(i)槽位与意图检测,以及(ii)自然语言响应生成。我们对LLMs进行微调,使其同时生成JSON动作调用与文本响应。实验表明,16位和8位量化变体在槽位与意图检测上保持了高精度,且生成文本具备较强的语义连贯性;而4位模型虽保留了生成流畅性,但设备-服务分类准确率出现明显下降。针对含噪声的人类(非合成)提示词与域外意图的进一步评估验证了模型的泛化能力,准确率约为80%--86%。尽管平均推理时间为每次查询5--6秒——对于单次指令可接受,但对于多轮对话仍不够理想——我们的结果证实,端侧LLM无需依赖专用硬件,即可有效统一家庭自动化中的指令解读与灵活响应生成。

英文摘要:

This paper investigates whether Large Language Models (LLMs), fine-tuned on synthetic but domain-representative data, can perform the twofold task of (i) slot and intent detection and (ii) natural language response generation for a smart home assistant, while running solely on resource-limited, CPU-only edge hardware. We fine-tune LLMs to produce both JSON action calls and text responses. Our experiments show that 16-bit and 8-bit quantized variants preserve high accuracy on slot and intent detection and maintain strong semantic coherence in generated text, while the 4-bit model, while retaining generative fluency, suffers a noticeable drop in device-service classification accuracy. Further evaluations on noisy human (non-synthetic) prompts and out-of-domain intents confirm the models' generalization ability, obtaining around 80--86\% accuracy. While the average inference time is 5--6 seconds per query -- acceptable for one-shot commands but suboptimal for multi-turn dialogue -- our results affirm that an on-device LLM can effectively unify command interpretation and flexible response generation for home automation without relying on specialized hardware.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑