ChainStream:一个基于 LLM 的统一合成感知框架
ChainStream: An LLM-based Framework for Unified Synthetic Sensing
AI总结:
本文提出 ChainStream 框架,通过自然语言作为统一接口处理个人数据并感知用户上下文,结合统一数据处理框架与反馈引导的查询优化器,高效解决了复杂感知请求与代码生成易错问题,在 133 个任务的基准上实现了精确自动化解决。
摘要:
许多应用需要上下文感知来提供个性化和及时的服务。然而,对开发者而言,开发感知程序具有挑战性;对终端用户而言,使用这些程序则存在隐私问题。在本文中,我们提出使用自然语言作为统一接口来处理个人数据并感知用户上下文,这能有效简化应用开发,并使数据管道更加透明。我们的工作受大型语言模型(LLMs)和其他生成式模型的启发,但直接应用它们并不能解决问题——让模型直接处理数据无法处理复杂的感知请求,而让模型编写数据处理程序则面临容易出错的代码生成问题。我们通过以下两点来解决该问题:1)一个统一的数据处理框架,使上下文感知程序更简单;2)一个反馈引导的查询优化器,使数据查询更具信息量。为了评估基于自然语言的上下文感知性能,我们创建了一个包含 133 个上下文感知任务的基准。广泛评估表明,我们的方法能够高效且精确地自动解决上下文感知任务。代码已在 https://github.com/MobileLLM/ChainStream 开源。
英文摘要:
Many applications demand context sensing to offer personalized and timely services. Yet, developing sensing programs can be challenging for developers and using them is privacy-concerning for end-users. In this paper, we propose to use natural language as the unified interface to process personal data and sense user context, which can effectively ease app development and make the data pipeline more transparent. Our work is inspired by large language models (LLMs) and other generative models, while directly applying them does not solve the problem - letting the model directly process the data cannot handle complex sensing requests and letting the model write the data processing program suffers error-prone code generation. We address the problem with 1) a unified data processing framework that makes context-sensing programs simpler and 2) a feedback-guided query optimizer that makes data query more informative. To evaluate the performance of natural language-based context sensing, we create a benchmark that contains 133 context sensing tasks. Extensive evaluation has shown that our approach is able to automatically solve the context-sensing tasks efficiently and precisely. The code is opensourced at https://github.com/MobileLLM/ChainStream.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。