arXiv:2610.40732cs.LGOct 2026

Manuscript Offprint

arXiv:2610.40732

Don't Just Impute, Detect: Task-Aware Diffusion Pipelines for Edge Anomaly Detection

Jeongsu Park, Taehyeon Yun, Geonwoo Kim, Yuji Lim, Moohong Min

Jeongsu Park Ⓤ, Taehyeon Yun Ⓤ, Geonwoo Kim Ⓤ, Yuji Lim Ⓤ, Moohong Min Ⓤ*

Sungkyunkwan University, Seoul, Republic of Korea

Abstract—Industrial Internet of Things (IIoT) edge pipelines routinely lose contiguous blocks of multi-sensor data to network dropouts and hardware faults. The standard remedy is a disjointed “impute-then-detect” pipeline whose imputer is trained only for Mean Squared Error (MSE). Such an imputer fills a missing block with the most probable normal pattern: a partially observed anomaly is smoothed back toward normality, and boundary artifacts on normal data raise false alarms. We call this imputation bias and propose the Task-Aware Diffusion Refiner (TADR), a conditional diffusion refiner trained against the loss landscape of a frozen downstream detector. Because back-propagating through the sampling trajectory is intractable, the task-aware terms act on the one-step clean-window estimate that the noise prediction already yields, so training costs no more than plain diffusion training. Under strict Point-to-Point evaluation over five seeds with paired significance tests, TADR raises F1 by 0.338 over the unrefined detector on SMD (p=0.0015p = 0.0015), and the anomaly enhancement objective alone contributes 0.463 in ablation. We also characterise when the method helps: the gain tracks the continuous, mutually redundant channels available and the anomaly evidence the outage removes, and it is absent on telemetry datasets dominated by one-hot command channels and on PSM. At ten sampling steps TADR runs in 41.4 ms per window on a single CPU core, sustaining about 24 concurrent 1 Hz streams from a 4.03 MB model. Code and per-seed results are available at https://github.com/int-park422/TADR.

Index Terms—Time-Series Anomaly Detection, Block Missing Data, Diffusion Models, Task-aware Learning, Robustness.

I. INTRODUCTION

The Industrial Internet of Things (IIoT) and Cyber-Physical Systems (CPS) rely heavily on continuous multi-sensor data to monitor operational status and ensure structural integrity. However, real-world IIoT infrastructures often operate under resource-constrained edge conditions where hardware malfunctions and network dropouts frequently disrupt data collection. Unlike simple and isolated missing points, these communication failures typically result in block missing—continuous sequences of data loss across multiple timestamps and channels [1], [2]. This structural corruption not only poses a severe threat to downstream anomaly detection systems but also creates a critical processing bottleneck within the edge-to-cloud data pipeline. The same concern extends to security-critical monitoring such as on-site sensing for illicit drug

detection, where the rare events of interest can coincide with lost data, and an imputer that fills the gap with normal-looking values erases precisely what the system exists to find.

To handle missing data, standard industrial pipelines typically employ a disjointed two-step “impute-then-detect” strategy [3], [4]. In this paradigm, incomplete data is first reconstructed using generative imputation models optimized purely for Mean Squared Error (MSE), followed by the application of state-of-the-art anomaly detectors such as Anomaly Transformer [5] or TimesNet [6]. While this intuitively restores the structural integrity of the time series, it exposes a vulnerability in the pipeline architecture: imputation bias [7]–[9]. Because the generative model is isolated from the downstream task, it defaults to synthesizing statistically probable normal patterns—suppressing the very attack signals the detector is looking for, and leaving boundary artifacts that inflate false alarms. Section III formalises this failure mode.

To address the computational inefficiencies and architectural vulnerabilities of disjointed data preparation pipelines, we propose the Task-Aware Diffusion Refiner (TADR), an end-to-end data preprocessing optimization framework tailored for edge infrastructures facing severe block missing conditions. Rather than merely smoothing data to minimize reconstruction error, TADR fundamentally redefines the objective of the data preparation phase [10]. We introduce a task-aware diffusion mechanism where the generative refinement process is explicitly guided by the loss landscape of the downstream anomaly detector. By bridging the semantic gap between data reconstruction and anomaly identification, TADR refines incomplete sequences to sharpen critical anomaly peaks while preserving normal background patterns. Because the detector stays frozen, TADR is a plug-in module that requires no structural modification of the detector; we find it effective for detectors that score by reconstruction error.

The main contributions of this paper are as follows.

  • We expose how the disjointed nature of standard reconstruction pipelines induces imputation bias under block missing conditions, squandering edge resources and inflating false alarms.

  • We propose TADR, a conditional diffusion refiner coupled to the frozen detector's objective. Because back-propagating through the sampling trajectory is intractable, the task-aware terms act on the one-step estimate the noise prediction already yields, leaving training no more

*Corresponding authors.

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

costly than plain diffusion training.

  • Under strict Point-to-Point evaluation with five seeds, confidence intervals and paired tests, TADR raises P2P F1 by +0.338 over the unrefined detector; the enhancement objective alone accounts for +0.463 of the ablation gain, and the iterative formulation for a further +0.300 over a single-pass refiner.

  • Rather than claiming uniform superiority, we characterise when task-aware refinement helps: the gain tracks the continuous, mutually redundant sensor signal available, and vanishes when channels are predominantly discrete or when the detector already recovers most anomalies unaided. Adversarial manipulation of the observable channels, poisoning, and concept drift are outside our evaluation (Section VI).

  • We profile TADR at batch size one on a single CPU core rather than only on server GPUs, and identify the sampling budget at which quality is retained, establishing a deployable operating point.

References (43)