NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

VARADE: a Variational-based AutoRegressive model for Anomaly Detection on the Edge

Alessio Mascolini, Sebastiano Gaiardelli, Francesco Ponzio, Nicola Dall'Ora, Enrico Macii, Sara Vinco, Santa Di Cataldo, Franco FummiarXiv 2024 · DOI

In the high-stakes world of Industry 4.0, a single minute of machine downtime can translate into thousands of dollars in lost revenue. While Deep Learning (DL) has revolutionized our ability to detect anomalies in complex machinery, there is a catch: most powerful models are "cloud-hungry," requiring massive bandwidth and introducing latencies that are unacceptable for real-time safety.

A new paper, "VARADE: a Variational-based AutoRegressive model for Anomaly Detection on the Edge," introduces a lightweight solution designed to live where the action is—directly on the edge.

TL;DR

VARADE is a novel, unsupervised anomaly detection framework that combines autoregressive forecasting with variational inference to run efficiently on edge devices. By using the model's own predictive uncertainty as an anomaly score, it achieves superior detection accuracy and inference speed compared to traditional edge-suitable models.

What Problem Does This Paper Address?

Modern industrial Cyber-Physical Systems (CPSs) generate a firehose of Multivariate Time Series (MTS) data from hundreds of sensors. Processing this in the cloud is often impractical due to the "GB/s" scale of data and the need for immediate, millisecond-level responses to prevent accidents or equipment failure.

However, moving DL to the edge is hard. Edge devices have limited memory and power. Furthermore, industrial anomalies are rare, meaning we rarely have enough labeled "bad" data to train supervised models. The challenge is to create a model that is small enough for the edge, fast enough for real-time streaming, and smart enough to learn what "normal" looks like without needing a library of past failures.

Methods

The authors propose VARADE (Variational-based AutoRegressive model for Anomaly Detection on the Edge). Its design rests on three pillars:

  1. Forecasting-based Autoregression: Instead of just reconstructing data, the model predicts the next time step based on a window of past observations. This is naturally suited for streaming data.
  2. Bandwidth-Optimized CNNs: Recognizing that memory bandwidth is the primary bottleneck on edge hardware, the authors designed a specific CNN architecture. As shown in Figure 1, the network uses a cascade of convolutional layers that halve the time-dimension at every step while doubling feature maps, keeping the memory footprint minimal.
  3. Variational Probabilistic Output: Unlike standard models that predict a single value, VARADE predicts a Gaussian probability distribution (mean and variance).
Figure 1: Architecture of VARADE. Current (𝑡0) and past time steps (𝑡−1 . . .𝑡−𝑇) are processed by a cascade of convolutional layers and a final linear projection. The output is the esti- mated probability distribution of the next time step, 𝑃(𝑡1).

The "aha" moment here is the use of variance as an anomaly score. When the system operates normally, the model is confident (low variance). When an anomaly occurs, the model becomes uncertain, and the predicted variance spikes, signaling a problem.

Datasets

The researchers validated VARADE using the RoAD (Robotic Arm Dataset), which features a KUKA LBR iiwa collaborative robot (see Figure 2).

  • Data Stream: 86 channels, including 7 IMUs (measuring acceleration, angular velocity, and orientation) and power consumption metrics.
  • Training: 390 minutes of "normal" operation across 30 unique robotic actions.
  • Evaluation: A "collision experiment" lasting 82 minutes, where a human operator manually interfered with the robot 125 times to simulate hazardous real-world collisions.
Figure 2: Case study setup. The KUKA manipulator is instru- mented with different sensors: 7 accelerometers with six axes (one for each joint) and one single-phase power meter. The sensors are connected directly with an embedded board for detecting different classes of anomalies.

Key Insights and Ideas

  • Uncertainty is the Signal: By constraining the output to a Gaussian distribution via variational inference, the model provides a built-in measure of its own confusion. This is more robust than simple "prediction error" because it accounts for the inherent noise in industrial environments.
  • Architecture Matters for Hardware: The choice to aggressively downsample the time-dimension in the CNN layers directly addresses the SIMD and CUDA kernel limitations of edge CPUs and GPUs, leading to significant speedups.
  • The Edge Sweet Spot: The paper demonstrates that you don't need a massive Transformer or LSTM to get high accuracy. A well-designed, shallow CNN can outperform heavier models if the training paradigm (variational inference) is right.

Key Results

The authors compared VARADE against five baselines (including LSTMs and Autoencoders) on two edge platforms: the NVIDIA Jetson Xavier NX and the AGX Orin.

  • Accuracy: VARADE achieved the highest AUC-ROC (0.844), outperforming the next best model (Autoencoder) by 4% and the third best (AR-LSTM) by 13%.
  • Speed: On the Xavier NX, VARADE ran at ~15 Hz, which is 7x faster than the Autoencoder and 3x faster than the AR-LSTM.
  • Efficiency: As visualized in Figure 3, VARADE occupies the "top-right" of the trade-off curve, providing the best balance of high accuracy and high inference frequency while maintaining low power consumption (~6.3W).
Figure 3: Inference Frequency vs Accuracy of the anomaly detection models (identified by the marker color). Marker shape represents the adopted edge device (square for Jetson Xavier NX, and triangle for Jetson AGX Orin), while marker size is proportional to power consumption.

Limitations and Future Work

While highly effective, the authors note that VARADE uses slightly more GPU RAM (~500MB) than some simpler baselines, though this is still well within the limits of modern edge boards.

The current study focused on a single robotic arm case study. Future work will involve testing the model on a wider variety of industrial machines to prove its flexibility. The ultimate goal is to integrate VARADE directly into the "manufacturing control loop," allowing machines to automatically reconfigure themselves the moment an anomaly is detected.

Summary updated

Abstract

Detecting complex anomalies on massive amounts of data is a crucial task in Industry 4.0, best addressed by deep learning. However, available solutions are computationally demanding, requiring cloud architectures prone to latency and bandwidth issues. This work presents VARADE, a novel solution implementing a light autoregressive framework based on variational inference, which is best suited for real-time execution on the edge. The proposed approach was validated on a robotic arm, part of a pilot production line, and compared with several state-of-the-art algorithms, obtaining the best trade-off between anomaly detection accuracy, power consumption and inference frequency on two different edge platforms.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Robotic-arm collision experimentVARADEAUC-ROC0.844+0.03 vs baselineAnomaly Detection · split: test · device=Jetson Xavier NX
Source quote
L307: VARADE │ 52.420 │ 70.600 │ 5,488.874 │ 1,005.369 │ 6.333 │ 0.844 │ 14.937
Robotic-arm collision experimentVARADEInference Frequency14.937 HzAnomaly Detection · split: test · device=Jetson Xavier NX
Source quote
L307: VARADE │ 52.420 │ 70.600 │ 5,488.874 │ 1,005.369 │ 6.333 │ 0.844 │ 14.937
Robotic-arm collision experimentVARADEAUC-ROC0.844+0.03 vs baselineAnomaly Detection · split: test · device=Jetson AGX Orin
Source quote
L317: VARADE │ 10.399 │ 70.100 │ 5,167.490 │ 954.701 │ 10.220 │ 0.844 │ 26.461
Robotic-arm collision experimentVARADEInference Frequency26.461 HzAnomaly Detection · split: test · device=Jetson AGX Orin
Source quote
L317: VARADE │ 10.399 │ 70.100 │ 5,167.490 │ 954.701 │ 10.220 │ 0.844 │ 26.461
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
Robotic-arm collision experimentAE baselineAUC-ROC0.810Anomaly Detection · split: test · device=Jetson Xavier NX
Source quote
L304: \gls{ae} │ 53.023 │ 79.400 │ 5,276.139 │ 807.528 │ 6.010 │ 0.810 │ 2.247
Robotic-arm collision experimentAE baselineAUC-ROC0.810Anomaly Detection · split: test · device=Jetson AGX Orin
Source quote
L313: \gls{ae} │ 10.548 │ 51.800 │ 4,882.850 │ 699.010 │ 10.168 │ 0.810 │ 4.284
BibTeX
@misc{mascolini2024varade,
  author = {Alessio Mascolini and Sebastiano Gaiardelli and Francesco Ponzio and Nicola Dall'Ora and Enrico Macii and Sara Vinco and Santa Di Cataldo and Franco Fummi},
  title = {{VARADE: a Variational-based AutoRegressive model for Anomaly Detection on the Edge}},
  year = {2024},
  eprint = {2409.14816},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.14816},
}

Loading related content...

Figure