PocketTSLM:面向隐私保护型智能手机推理的设备端软提示时间序列语言模型部署方案
PocketTSLM: Deploying an On-Device Soft-Prompt Time-Series Language Model for Privacy-Preserving Smartphone Reasoning
AI总结:
PocketTSLM 是 OpenTSLM SoftPrompt 的原生移动部署方案,通过将时间序列窗口作为嵌入注入实现设备端运行,可减少标记使用量、降低预填充成本,且推理时不传输健康数据,解决了云端模型的隐私与性能问题。
摘要:
消费级手机和可穿戴设备正日益收集生理时间序列数据,但多数移动系统将这些数据流视为摘要或文本,而非时序证据。这种表示方式与个人健康系统需求不匹配,后者需要检索、路由或汇总传感器证据,同时保留时序结构。云端托管的时间序列语言模型可规避手机限制,但会反复将敏感生理数据移出设备,增加延迟和每次查询的计算成本。将时间序列数据聚合为统计特征或将原始样本序列化为文本的移动模型替代方案,要么压缩时序结构,要么耗尽小型设备端模型的上下文和内存预算。我们提出 PocketTSLM,这是 OpenTSLM SoftPrompt 的原生移动部署方案,OpenTSLM SoftPrompt 是 OpenTSLM 时间序列语言模型的软提示变体。PocketTSLM 完全在消费级智能手机上运行,方法是将编码后的时间序列窗口作为嵌入注入,而非将时间序列标记化为文本。数值奇偶校验协议验证了 Swift 移植版本与使用 Apple MLX 机器学习框架的 Python 参考实现之间的贪心解码标记序列完全一致。答案也与 PyTorch 参考实现匹配,尽管原理表述可能存在差异。设备端上下文经济基准在同一主干模型上比较了软提示路径与文本序列化基线。在我们的基准格式中,软提示使用的时间序列标记约少 12 倍,并降低了提示预填充成本。PocketTSLM 处理来自 Sleep-EDF 的 30 秒脑电图片段以进行睡眠分期,以及来自 ECG-QA 的 1000 个样本(10 秒)12 导联心电图片段。相比之下,文本序列化基线在较长时间序列窗口下会超出手机的上下文或内存预算。所有推理完全在设备上运行,推理过程中不会传输任何健康数据。
英文摘要:
Consumer phones and wearables increasingly collect physiological time-series data, yet most mobile systems treat these streams as summaries or text rather than as temporal evidence. This representation is poorly matched to personal health systems that need to retrieve, route, or summarize sensor evidence while preserving temporal structure. Cloud-hosted time-series language models avoid smartphone limits, but they repeatedly move sensitive physiology off the device and add latency and per-query compute cost. Mobile model alternatives that aggregate time-series data into statistical features or serialize raw samples as text either compress temporal structure or exhaust the context and memory budgets of small on-device models. We present PocketTSLM, a mobile-native deployment of OpenTSLM SoftPrompt, the soft-prompt variant of the OpenTSLM time-series language model. PocketTSLM runs fully on a consumer smartphone by injecting encoded time-series windows as embeddings instead of tokenizing time series as text. A numerical parity protocol verifies identical greedy-decoded token sequences between the Swift port and a Python reference using Apple's MLX machine-learning framework. Answers also match the PyTorch reference, although rationale wording can differ. An on-device context-economics benchmark compares the soft-prompt path with a text-serialized baseline on the same backbone. In our benchmark format, soft-prompting uses approximately 12 times fewer time-series tokens and reduces prompt-prefill cost. PocketTSLM processes 30-second Sleep-EDF electroencephalography clips for sleep staging and a 1,000-sample (10 s) 12-lead electrocardiogram clip from ECG-QA. In comparison, text-serialized baselines exceed the phone's context or memory budget at longer time-series windows. All inference runs entirely on the device, with no health data transmitted during inference.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。