PaperarXiv:2610.21308

PocketTSLM: Deploying an On-Device Soft-Prompt Time-Series Language Model for Privacy-Preserving Smartphone Reasoning

Preprint2026Added Oct 16, 2026

  • MR
  • NK
  • LN
  • MM
  • NZ
  • NW
  • TK
  • RJ
  • +4

Authors: Max Rosenblattl, Nikhil Krishnaswamy, Leon Nissen, Manuel Milling, Nicolas Zumarraga, Ning Wang, Thomas Kaar, Robert Jakob, Björn W. Schuller, Elgar Fleisch,

+2 morePatrick Langer, Paul Schmiedmayer

arXiv 2610.21308v1 (cs.LG, cs.CL; submitted 2026-10-15); a version accepted at the Workshop on Deploying AI in Healthcare (DAIH), COLM 2026

TL;DR

Ports OpenTSLM-SP (soft-prompt variant: a time-series encoder + projector inject signal windows as embeddings into a LoRA-adapted Llama-3.2-1B) to MLX-Swift, so inference runs entirely on a consumer iPhone (iPhone Air, iOS 26.4.1) with no health data leaving the device. Parity protocol: encoder, projector and rotary embedding match the Python MLX reference within 10⁻⁴ max element-wise. Greedy-decoded token sequences are identical between Swift and Python MLX; final answers match PyTorch.

  • Form factor: other

Abstract

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.

Verbatim from arXiv (opens in a new tab) · arXiv metadata (abstracts are released under CC0)

Results on ChatPPG leaderboards

All leaderboards

No results from this paper on ChatPPG leaderboards yet. Browse the leaderboards.

Tasks & signals

Tasks

Sleep staging

Signals

Keywords

Time Series Language ModelTSLMOn DeviceMLXSwiftiPhoneSoft PromptOpenTSLM

Datasets used

Models

How it works

How OpenTSLM works: Setup → Method → TargetSetup: Signals (ecg, eeg, text); Form factor (other). Method: OpenTSLM. Target: Sleep staging.SetupSignals: ecg, eeg, textSignalsecg, eeg, textForm factor: otherForm factorotherMethodOpenTSLMTargetSleep stagingSleep staging

Cite this paper

Cite this paper with the fields recorded here. Check it against the publisher before submitting.

Rosenblattl, M., Krishnaswamy, N., Nissen, L., Milling, M., Zumarraga, N., Wang, N., Kaar, T., Jakob, R., Schuller, B. W., Fleisch, E., Langer, P., & Schmiedmayer, P. (2026). PocketTSLM: Deploying an On-Device Soft-Prompt Time-Series Language Model for Privacy-Preserving Smartphone Reasoning. arXiv 2610.21308v1. https://arxiv.org/abs/2610.21308
Rosenblattl, Max, Nikhil Krishnaswamy, Leon Nissen, Manuel Milling, Nicolas Zumarraga, Ning Wang, and Thomas Kaar, et al. 2026. "PocketTSLM: Deploying an On-Device Soft-Prompt Time-Series Language Model for Privacy-Preserving Smartphone Reasoning." arXiv 2610.21308v1. https://arxiv.org/abs/2610.21308.
Rosenblattl, M., Krishnaswamy, N., Nissen, L., Milling, M., Zumarraga, N., Wang, N. and Kaar, T. et al. (2026) 'PocketTSLM: Deploying an On-Device Soft-Prompt Time-Series Language Model for Privacy-Preserving Smartphone Reasoning', arXiv 2610.21308v1. Available at: https://arxiv.org/abs/2610.21308
Rosenblattl, Max, et al. "PocketTSLM: Deploying an On-Device Soft-Prompt Time-Series Language Model for Privacy-Preserving Smartphone Reasoning." arXiv 2610.21308v1, 2026. https://arxiv.org/abs/2610.21308.
M. Rosenblattl et al., "PocketTSLM: Deploying an On-Device Soft-Prompt Time-Series Language Model for Privacy-Preserving Smartphone Reasoning," arXiv 2610.21308v1, 2026, [Online]. Available: https://arxiv.org/abs/2610.21308.
@misc{rosenblattl2026pockettslm,
  title         = {{PocketTSLM: Deploying an On-Device Soft-Prompt Time-Series Language Model for Privacy-Preserving Smartphone Reasoning}},
  author        = {Rosenblattl, Max and Krishnaswamy, Nikhil and Nissen, Leon and Milling, Manuel and Zumarraga, Nicolas and Wang, Ning and Kaar, Thomas and Jakob, Robert and Schuller, Björn W. and Fleisch, Elgar and Langer, Patrick and Schmiedmayer, Paul},
  year          = {2026},
  howpublished  = {arXiv 2610.21308v1},
  eprint        = {2610.21308},
  archivePrefix = {arXiv}
}

Source metadata: 2026

Record updated Oct 17, 2026

Record updated

Added to the ChatPPG research hub