A Scalable Multi-Task Model for Virtual Sensors

Leon Götz, Lars Frederik Peiss, Erik Sauer, Andreas Udo Sass, Thorsten Bagdonat, Stephan Günnemann, Leo SchwinnNeurIPS 2026

TL;DR

Physical sensors in cars, factories, and hospitals are expensive, fragile, or sometimes physically impossible to place—so engineers use "virtual sensors" (ML models) to deduce hidden measurements from other available data. Instead of training hundreds of isolated, bespoke models for every missing signal, this paper introduces a single, unified multi-task transformer that predicts hundreds of virtual sensors simultaneously. It automatically discovers which inputs matter for each target, slashing memory and compute by orders of magnitude so it can actually run on edge hardware.

What Problem Does This Paper Address?

Imagine trying to measure the internal state-of-health of an EV battery or the exact tire slip angle on an icy road. Physical sensors for these are either prohibitively expensive or don't exist. Virtual sensors solve this by inferring target signals from other routine measurements (like wheel speed, voltage, or pedal curves).

Historically, building virtual sensors has been a artisanal headache. Domain experts hand-pick relevant input signals and train a separate, lightweight model (like an LSTM) for every single target sensor. In a modern vehicle with thousands of signals, maintaining hundreds of isolated models doesn't scale, and isolated models can't share overlapping physical intuition.

State-of-the-art isolated virtual sensors vs. the proposed unified multi-task model.

Meanwhile, modern Time Series Foundation Models (TSFMs) do learn shared knowledge across massive datasets, but they have two fatal flaws here: they are computationally massive (bad for embedded chips), and they can only forecast the future of signals they are already given as inputs—they can't hallucinate an entirely new, unmeasured sensor from scratch.

Methods

The authors build on a standard causal, patch-based decoder-only Transformer, adding three clever mechanisms to turn it into a nimble virtual sensor powerhouse:

  • Empty Prototype Tokens & Variate Embeddings (Novel): Standard TSFMs often ignore which sensor a time-series comes from. Here, the model learns explicit identity vectors ("variate embeddings") for every input and virtual sensor. To predict a missing virtual sensor, the authors drop an empty zero-vector ("prototype token") into the sequence, tagged with that target sensor's identity and timestamp. The transformer fills in the blank, then feeds that prediction back into itself autoregressively for future steps. Because you choose which prototype tokens to insert, you can selectively query just one sensor (at high frequency) or dozens at once.
  • Learned Signal Relevance & Sparsification (Novel): Instead of relying on human experts or crude correlation proxies, each virtual sensor gets a trainable "relevance vector." The outer product of this vector acts as a static bias on the transformer's attention matrix—meaning attention gradients directly teach the model which inputs matter for which virtual sensor. Late in training (or at test time), values below a threshold are masked to $-\infty$. Because this creates structured rows/columns of zeros, irrelevant input tokens are completely dropped before hitting the network.
  • Sub-sampled Teacher Forcing (Adapted): Training all virtual sensors at once would blur their gradients together, giving every sensor the exact same input mask. Instead, the model trains on random subsets of virtual sensors per step (acting like dropout for relevance vectors) and uses teacher forcing—later polished with brief Backpropagation Through Time (BPTT) fine-tuning.
Architecture overview showing prototype token insertion, autoregressive generation, and attention-gradient relevance pruning.

Datasets

To bridge academic forecasting and real-world engineering, the authors evaluate on four datasets (burning over 48,500 H100 GPU hours):

  • Standard Benchmarks: Traffic, Electricity, and Solar from the Monash Time Series Archive, where 16 signals are randomly held out as "virtual sensors."
  • Automotive CAN Bus Dataset: A massive, real-world dataset recorded from an Audi e-tron over 287 hours and 17,500 km of German roads. Synchronized at 100 ms, it tracks 1,713 complex, interacting signals (continuous measurements, categorical driving modes like "sport" vs. "eco", and events) totaling ~18 billion samples—over 1,000$\times$ larger than the standard benchmarks. Here, 16 physically intuitive targets (torques, coolant flows, powertrain voltages/temperatures) were chosen as virtual sensors.

Key Insights and Ideas

  • Dynamic Test-Time Compute Without Retraining: You don't need to retrain the model to trade accuracy for speed. Applying the sparsity threshold purely at inference time works nearly as well as training with sparsity. If an onboard computer suddenly gets overloaded in a critical driving scenario, it can dynamically dial up the threshold to drop marginal inputs on the fly.
Trade-off between input sparsity and MSE on Traffic, showing inference-time sparsification closely matches sparse training.
  • End-to-End Gradients Beat Proxies & Explain the Physics: Learning input relevance via attention gradients handily beats correlation filtering and post-hoc SHAP attributions. Better yet, when domain experts inspected the CAN bus masks, the model had taught itself real vehicle physics: temperature virtual sensors attended to other temperatures and coolant flow rates, while torque sensors watched engine speeds and acceleration.
  • Near-Constant Parameter Scaling: Scaling from 4 to 512 virtual sensors on the Traffic dataset kept prediction accuracy rock-steady while keeping the parameter count nearly constant (~7.4M parameters), whereas traditional approaches would require 512 separate models.

Key Results

  • Massive Efficiency Gains: Compared to a naive unified transformer processing all inputs for all tasks, sparse input sets and selective sensor querying speed up inference by up to 415$\times$ (58.19 ms down to 0.14 ms) and slash dynamic peak GPU memory by 951$\times$ (3.46 GB down to 3.6 MB) on the CAN bus dataset, with virtually no loss in MSE (0.119 vs. 0.121).
  • Beating Isolated Baselines: On CAN bus data, the unified 7.8M-parameter model (with BPTT fine-tuning) hits an MSE of 0.083, handily beating 16 isolated literature LSTMs (MSE 0.124, 174.7M total parameters) while running faster per sensor (0.14 ms vs. 0.35 ms).
  • Fast Transfer Learning: Adding a brand-new virtual sensor to an already-trained model matches full from-scratch accuracy using just 10% of the training data and 3.6% of the compute.

Limitations and Future Work

Because training across billions of samples is computationally pricey, the authors note they did not run exhaustive hyperparameter sweeps—meaning these models likely have untapped accuracy left on the table. While they don't lay out an explicit roadmap of future architectures, they position this unified, low-footprint paradigm as a stepping stone toward deploying foundational time-series intelligence directly onto resource-constrained edge devices and safety-critical sensor networks.

Summary updated

Abstract

Virtual sensors replace expensive physical sensors in critical applications through machine learning by predicting target signals from available measurements. Existing virtual sensor approaches require application-specific models with hand-selected inputs for each sensor, cannot leverage task synergies, and lack consistent benchmarks. While emerging time series foundation models offer general-purpose, pretrained solutions in other domains, they are computationally expensive and limited to predicting their input signals, making them incompatible with virtual sensors. We introduce the first multi-task model for virtual sensors addressing both limitations. Our unified model can simultaneously predict diverse virtual sensors exploiting synergies while maintaining computational efficiency. It learns relevant input signals for each virtual sensor, eliminating expert knowledge requirements while adding explainability. In our large-scale evaluation on three standard benchmarks and an application-specific dataset with over 18 billion samples, our architecture reduces computation time by up to 415x and memory requirements by 951x, while maintaining or even improving predictive quality compared to unified baselines. Compared to existing isolated models for a single virtual sensor, our unified approach generates superior predictions at similar inference speed while scaling gracefully to hundreds of virtual sensors with nearly constant parameter count, enabling practical deployment in large-scale sensor networks.
BibTeX
@inproceedings{gotz2026scalable,
  author = {Leon Götz and Lars Frederik Peiss and Erik Sauer and Andreas Udo Sass and Thorsten Bagdonat and Stephan Günnemann and Leo Schwinn},
  title = {{A Scalable Multi-Task Model for Virtual Sensors}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=mxCxGqU9Yz},
}
Figure