Learning Transferable Sensor Models via Language-Informed Pretraining

Yuliang Chen, Arvind Pillai, Yu Yvonne Wu, Tess Z. Griffin, Lisa Marsch, Michael V. Heinz, Nicholas C. Jacobson, Andrew Campbell

TL;DR

SLIP (Sensor Language-Informed Pretraining) bridges the gap between raw time-series sensor data and natural language by co-training a flexible sensor encoder with a pretrained language model. By introducing a dynamic patch-embedding mechanism (FlexMLP), SLIP generalizes across diverse sensor configurations, sampling rates, and signal lengths without requiring retraining, setting a new standard for zero-shot transfer and sensor question answering.

What Problem Does This Paper Address?

Ubiquitous sensors—found in wearables, smartphones, and IoT devices—generate massive streams of unlabeled multivariate time-series data. Traditional self-supervised learning (SSL) methods typically rely on forecasting or reconstruction objectives to utilize this data. However, doing well at forecasting doesn't mean a model understands high-level semantics; a model can predict the next time step perfectly while failing to distinguish between distinct activities like walking upstairs versus downstairs. This discrepancy is known as the "forecasting–classification gap."

Figure 1. Illustrated example of the forecasting–classification gap. Chronos-2 achieves accurate forecasting on UCI-HAR with low error (MSE = 0.96), yet its learned representations lead to incorrect activity classification (walking downstairs vs. upstairs). This example illustrates that SSL-based models optimized for forecasting do not necessarily learn semantic representations that support downstream classification and understanding.

While recent approaches try to align sensor data with language models to capture better semantic meaning, they suffer from rigid architectural constraints. Existing sensor-language models lock the sensor encoder to a fixed input specification (e.g., a specific number of channels, fixed signal lengths, or rigid temporal resolutions). If your sensor layout changes or your sampling rate drops, you are forced to retrain the entire model from scratch.

Methods

To build a more adaptable framework, the authors introduce SLIP, which extends the Contrastive Captioner (CoCa) paradigm to the sensor domain by combining contrastive alignment with generative captioning.

Figure 2. Sensor-Language Informed Pretraining (SLIP) Architecture.

The architecture introduces several novel design choices:

  • FlexMLP: A lightweight, weight-sharing patch embedding mechanism that dynamically resizes its weights at runtime. This allows a single encoder to process variable patch sizes and temporal resolutions without retraining.
  • Unified Sensor Encoder: A 120M parameter Transformer backbone. It flattens multi-channel inputs into a single 1D sequence and applies 2D Rotary Position Embeddings (2D RoPE) to preserve both cross-sensor and long-range temporal relationships.
  • Attention Pooler: Compresses variable-length sensor tokens into a fixed set of 65 queries (1 global token for contrastive learning, 64 for captioning).
  • Repurposed LLM: Instead of training a multimodal model from scratch, SLIP splits a small, pretrained decoder-only language model (Gemma-3-270M). The first 12 layers serve as a text encoder, while the final 6 layers are injected with cross-attention mechanisms to function as a multimodal decoder.

The entire system is optimized jointly using a CLIP-style contrastive loss (aligning global sensor and text representations) and an autoregressive captioning loss.

Datasets

The authors curated a massive pretraining dataset consisting of 600K sensor-caption pairs (spanning over 1 billion time points) across domains like health, environment, IoT, energy, and transportation. Captions were automatically generated at statistical, structural, and semantic levels, then paraphrased using Qwen2-7B-IT to ensure linguistic diversity.

For downstream evaluation, SLIP was tested across 11 diverse datasets spanning four domains:

  • Activity Recognition: WISDM, UCIHAR
  • Clinical Diagnosis: Stroke, Diabetes, Hypertension, Sleep Stage, Heart Condition
  • Stress Prediction: WESAD, StudentLife
  • Urban Sensing: Obstacles, BeijingAQI

Additionally, question answering and captioning capabilities were evaluated using specialized benchmarks: HAR-CoT, Sleep-CoT, ECG-QA-CoT, TSQA, and the M4 dataset.

Key Insights and Ideas

  • The Forecasting-Classification Gap is Real: Optimizing purely for local temporal continuation does not guarantee semantic understanding. Aligning time-series data with language forces the model to capture high-level behavioral and physiological concepts.
  • Modality Co-adaptation Matters: Freezing the text encoder during pretraining causes representation collapse. Allowing the text encoder's final layers to fine-tune alongside the sensor encoder enables mutual adaptation, creating a much better aligned latent space.
  • Efficiency via Token Reduction: Instead of serializing raw numerical time-series data into thousands of text tokens (which explodes LLM context windows), SLIP encodes signals directly into compact continuous embeddings, requiring orders of magnitude fewer tokens at inference time (~300 vs ~37,000).
Figure 4. Sensor-Language representation geometry Analysis. Sensor Uniformity (left) and Text Uniformity (middle) quantify embedding dispersion on the unit hypersphere, while Sensor–Text Alignment (right) measures the mean distance between paired sensor and text embeddings. Lower values indicate better perfor- mance across all metrics.

Key Results

  • Linear Probing: SLIP Base achieved a 77.14% average accuracy across the 11 downstream classification tasks, outperforming the strongest language-supervised baseline, Normwear (72.82%), and performing on par with fully supervised models.
  • Zero-Shot Retrieval: SLIP achieved the highest average zero-shot accuracy (39.42%) across 11 tasks compared to Normwear's 30.42%, while using significantly less inference compute.
  • Open-Vocabulary Reasoning: After minimal supervised finetuning ($SLIP_{SFT}$), the model excelled at sensor question answering, hitting an average accuracy of 64.83% across four benchmarks and significantly beating OpenTSLM variants.
Table 2. Evaluation of the SLIPBase on 11 downstream sensor tasks across 4 domains compared against multiple baselines with linear-probing. We report the top-1 accuracy on the test set. Best performance in each dataset are highlighted.

Limitations and Future Work

  • Fixed Backbone: The language model backbone was kept fixed to Gemma-3-270M; exploring alternative or larger LLM architectures remains future work.
  • Context Length Costs: Conditioning on long, free-form textual descriptions increases computational overhead during pretraining. The authors suggest selective decoding or adaptive context compression as potential fixes.
  • Faithfulness and Attribution: The paper does not deeply analyze model hallucinations or identify exactly which temporal regions support specific generated text claims, marking an important direction for future attribution analysis.

Summary updated

BibTeX
@inproceedings{chen2026learning,
  author = {Yuliang Chen and Arvind Pillai and Yu Yvonne Wu and Tess Z. Griffin and Lisa Marsch and Michael V. Heinz and Nicholas C. Jacobson and Andrew Campbell},
  title = {{Learning Transferable Sensor Models via Language-Informed Pretraining}},
  booktitle = {TSALM @ ICLR},
  year = {2026},
  doi = {10.48550/arxiv.2603.11950},
}
Figure