[论文解读] LLMSense: Harnessing LLMs for High-level Reasoning Over Spatiotemporal Sensor Traces
LLMSense 提出了一种提示工程框架,利用大语言模型(LLMs)对长期时空传感器数据进行高层次推理,通过摘要和选择性历史数据包含来提升准确性。该方法在痴呆症诊断和占用率追踪任务中实现了超过80%的准确率,支持隐私保护的边缘-云部署,其中边缘端使用小型模型,云端使用大型模型。
Most studies on machine learning in sensing systems focus on low-level perception tasks that process raw sensory data within a short time window. However, many practical applications, such as human routine modeling and occupancy tracking, require high-level reasoning abilities to comprehend concepts and make inferences based on long-term sensor traces. Existing machine learning-based approaches for handling such complex tasks struggle to generalize due to the limited training samples and the high dimensionality of sensor traces, necessitating the integration of human knowledge for designing first-principle models or logic reasoning methods. We pose a fundamental question: Can we harness the reasoning capabilities and world knowledge of Large Language Models (LLMs) to recognize complex events from long-term spatiotemporal sensor traces? To answer this question, we design an effective prompting framework for LLMs on high-level reasoning tasks, which can handle traces from the raw sensor data as well as the low-level perception results. We also design two strategies to enhance performance with long sensor traces, including summarization before reasoning and selective inclusion of historical traces. Our framework can be implemented in an edge-cloud setup, running small LLMs on the edge for data summarization and performing high-level reasoning on the cloud for privacy preservation. The results show that LLMSense can achieve over 80\% accuracy on two high-level reasoning tasks such as dementia diagnosis with behavior traces and occupancy tracking with environmental sensor traces. This paper provides a few insights and guidelines for leveraging LLM for high-level reasoning on sensor traces and highlights several directions for future work.
研究动机与目标
- 为解决在长期传感器数据上进行高层次推理时,传统机器学习模型缺乏泛化能力、基于规则的系统又需要大量人工知识的空白。
- 探究 LLM 是否能有效用于复杂推理任务,如基于传感器数据的痴呆症诊断和占用率追踪。
- 设计一种提示工程框架,将原始的、低层次的感知传感器数据转化为结构化、可解释的自然语言,供 LLM 使用。
- 通过摘要和选择性历史数据包含,提升 LLM 在长序列数据上的表现。
- 通过仅将摘要数据传输至云端,实现隐私保护的边缘-云部署。
提出的方法
- 设计一种提示工程框架,整合任务指令、上下文信息(如传感器含义、人口统计信息)、结构化的文本化传感器数据和输出格式约束。
- 在 LLM 推理前应用数据摘要,以减少输入长度,提升预测的一致性和准确性。
- 通过识别并仅包含相关的历史数据片段,实现选择性历史数据包含,以减少噪声并提升推理能力。
- 在边缘-云架构中部署系统:边缘端的小型 LLM 负责数据摘要;云端的大型 LLM 负责高层次推理。
- 使用 Llama-13B 进行边缘端摘要,GPT-3.5 用于云端推理,以在准确率、延迟和隐私之间取得平衡。
- 通过自然语言描述传感器数据模式和时间序列,结构化输入内容,以契合 LLM 的推理优势。
实验结果
研究问题
- RQ1当提示设计得当时,LLMs 是否能有效对长期时空传感器数据进行高层次推理?
- RQ2在 LLM 推理前对传感器数据进行摘要,如何影响预测的准确率和一致性?
- RQ3包含不同长度的历史传感器数据对推理性能有何影响?
- RQ4边缘-云架构是否能在保持高准确率的同时保护隐私?
- RQ5如何引导 LLM 以减少不确定性并提升复杂传感器推理任务中的可靠性?
主要发现
- LLMSense 在两项高层次推理任务中实现了超过 80% 的准确率:使用行为数据进行痴呆症诊断,以及使用环境传感器数据进行占用率追踪。
- 推理前进行数据摘要显著提升了 LLM 的预测准确率和一致性,尤其在处理长原始数据时效果更明显。
- 选择性包含历史数据可将占用率追踪的准确率提升至 87.5%,优于完整历史数据和随机历史数据包含方式。
- 边缘-云部署模型通过仅传输摘要数据至云端,在准确率、延迟和数据隐私之间实现了理想的权衡。
- 原始传感器数据因过长导致预测模糊且不一致,凸显了摘要的必要性。
- 随着历史数据长度增加,性能并未单调提升,表明无关数据带来的噪声会降低推理质量。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。