不止于插补,更要检测:面向边缘异常检测的任务感知扩散流程
摘要
一篇提出任务感知扩散精炼器(TADR)的论文。TADR 是一种条件扩散模型,以冻结的下游异常检测器为训练依据,旨在纠正工业物联网(IIoT)传感器数据中块状缺失的插补偏差,在 SMD 数据集上将 F1 分数提升了 0.338,同时在单个 CPU 核心上每个窗口的运行耗时为 41.4 毫秒。
arXiv:2610.40732v1 Announce Type: new
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.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.
查看缓存全文
缓存时间: 2026/11/02 09:18
# Task-Aware Diffusion Pipelines for Edge Anomaly Detection
Source: [https://arxiv.org/html/2610.40732](https://arxiv.org/html/2610.40732)
## Don’t Just Impute, Detect: Task\-Aware Diffusion Pipelines for Edge Anomaly DetectionThanks:∗Corresponding authors\.
Jeongsu Park[https://orcid.org/0009-0001-6846-1095](https://orcid.org/0009-0001-6846-1095), Taehyeon Yun[https://orcid.org/0009-0000-2380-7008](https://orcid.org/0009-0000-2380-7008), Geonwoo Kim[https://orcid.org/0009-0007-1567-9107](https://orcid.org/0009-0007-1567-9107), Yuji Lim[https://orcid.org/0009-0009-1595-5532](https://orcid.org/0009-0009-1595-5532), Moohong Min[https://orcid.org/0000-0001-8979-1344](https://orcid.org/0000-0001-8979-1344)∗
###### 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 by0\.3380\.338over the unrefined detector on SMD \(p=0\.0015p=0\.0015\), and the anomaly enhancement objective alone contributes0\.4630\.463in 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 in41\.441\.4ms per window on a single CPU core, sustaining about2424concurrent 1 Hz streams from a4\.034\.03MB model\. Code and per\-seed results are available at[https://github\.com/int\-park422/TADR](https://github.com/int-park422/TADR)\.
###### Index Terms:
Time\-Series Anomaly Detection, Block Missing Data, Diffusion Models, Task\-aware Learning, Robustness\.
††footnotetext:©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\.## IIntroduction
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\[[3](https://arxiv.org/html/2610.40732#bib.bib21),[23](https://arxiv.org/html/2610.40732#bib.bib2)\]\. 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\[[21](https://arxiv.org/html/2610.40732#bib.bib3),[35](https://arxiv.org/html/2610.40732#bib.bib4)\]\. 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\[[38](https://arxiv.org/html/2610.40732#bib.bib5)\]or TimesNet\[[37](https://arxiv.org/html/2610.40732#bib.bib6)\]\. While this intuitively restores the structural integrity of the time series, it exposes a vulnerability in the pipeline architecture:imputation bias\[[43](https://arxiv.org/html/2610.40732#bib.bib7),[2](https://arxiv.org/html/2610.40732#bib.bib8),[16](https://arxiv.org/html/2610.40732#bib.bib9)\]\. 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](https://arxiv.org/html/2610.40732#S3)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\[[26](https://arxiv.org/html/2610.40732#bib.bib10)\]\. 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 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\+0\.338over the unrefined detector; the enhancement objective alone accounts for\+0\.463\+0\.463of the ablation gain, and the iterative formulation for a further\+0\.300\+0\.300over 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](https://arxiv.org/html/2610.40732#S6)\)\.
- •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\.
## IIRelated Work
### II\-ADeep Learning for Time\-Series Anomaly Detection
Deep learning techniques have significantly advanced multivariate time\-series anomaly detection\. The field has transitioned from traditional Recurrent Neural Networks \(RNNs\) to architectures that better capture complex temporal and cross\-channel dependencies\[[22](https://arxiv.org/html/2610.40732#bib.bib13),[24](https://arxiv.org/html/2610.40732#bib.bib14),[33](https://arxiv.org/html/2610.40732#bib.bib11)\]\. Transformer\-based models, such as the Anomaly Transformer\[[38](https://arxiv.org/html/2610.40732#bib.bib5)\], utilize anomaly attention mechanisms to distinguish abnormal patterns by measuring the discrepancy between series and prior associations\. The inverted Transformer \(iTransformer\) extends this by embedding entire temporal sequences as tokens to model multivariate correlations\[[19](https://arxiv.org/html/2610.40732#bib.bib15)\]\. Concurrently, convolutional methods like TimesNet\[[37](https://arxiv.org/html/2610.40732#bib.bib6)\]address multi\-periodic variations through 2D convolutions, while KAN\-AD explores the parameter efficiency of Kolmogorov\-Arnold Networks for anomaly detection\[[20](https://arxiv.org/html/2610.40732#bib.bib16)\]\. However, a shared limitation among these detectors is their inherent assumption of ideal network conditions and structural data integrity\. Because they are designed for stable and continuous data streams, they experience severe performance degradation in practical IIoT edge environments where sensor malfunctions and network dropouts render the input sequences highly fragmented\[[3](https://arxiv.org/html/2610.40732#bib.bib21),[34](https://arxiv.org/html/2610.40732#bib.bib17)\]\.
### II\-BDisjointed Pipelines and Imputation Bias
To manage missing values in real\-world deployments, the standard industrial practice employs a disjointed “impute\-then\-detect” pipeline\. Early methods applied statistical interpolation or forward\-filling, which fails to capture the dynamics of IIoT signals\[[18](https://arxiv.org/html/2610.40732#bib.bib18),[4](https://arxiv.org/html/2610.40732#bib.bib19)\]; later approaches reconstruct missing segments with autoencoders or recurrent networks optimised for Mean Squared Error \(MSE\)\[[40](https://arxiv.org/html/2610.40732#bib.bib20),[7](https://arxiv.org/html/2610.40732#bib.bib22)\]\. Because such imputers are isolated from the detection objective and trained on normal operation, they are prone to imputation bias\[[3](https://arxiv.org/html/2610.40732#bib.bib21),[7](https://arxiv.org/html/2610.40732#bib.bib22),[42](https://arxiv.org/html/2610.40732#bib.bib23)\], the failure mode we formalise in Section[III](https://arxiv.org/html/2610.40732#S3)\. The resulting loss of precision has historically been masked by the Point Adjustment \(PA\) metric, which inflates recall regardless of false alarms\[[16](https://arxiv.org/html/2610.40732#bib.bib9),[2](https://arxiv.org/html/2610.40732#bib.bib8)\]\.
### II\-CGenerative Refinement and System\-Level Optimization
Denoising Diffusion Probabilistic Models \(DDPMs\) and score\-based generative models are increasingly used for time\-series imputation because of their high\-fidelity generation\[[12](https://arxiv.org/html/2610.40732#bib.bib24),[32](https://arxiv.org/html/2610.40732#bib.bib25)\]\. CSDI trains a conditional diffusion model that exploits correlations among observed values\[[35](https://arxiv.org/html/2610.40732#bib.bib4)\], and TIMBA combines bidirectional Mamba blocks with a diffusion framework to capture long\-range dependencies\[[30](https://arxiv.org/html/2610.40732#bib.bib26)\]\. Both remain reconstruction\-centric, optimised for conditional MSE\[[26](https://arxiv.org/html/2610.40732#bib.bib10),[17](https://arxiv.org/html/2610.40732#bib.bib27)\], and diffusion imputers additionally pay for iterative sampling at inference\. Whether that cost is justified for detection depends on what the reconstruction does to the detector’s score, which their objective does not consider: under strict Point\-to\-Point \(P2P\) evaluation we find such imputers can help substantially or collapse precision \(Section[V](https://arxiv.org/html/2610.40732#S5)\)\. TADR keeps the diffusion architecture and sampler of CSDI but replaces the objective with one coupled to the frozen detector, so that the sampling cost buys detection quality rather than statistical smoothness alone\.
## IIIMotivation and Problem Formulation
Fig\. 1:Conceptual illustration of imputation bias and pipeline failure, demonstrated using a sampled anomaly region from the normalized Server Machine Dataset \(SMD\)\. When an anomaly coincides with a block missing event, standard MSE\-based optimization wastes computational resources to synthesize a statistically probable normal pattern, inadvertently erasing the true anomaly\. TADR resolves this by directly preserving critical sharp variations for the detector\.### III\-AProblem Definition: Anomaly Detection under Block Missing
In typical IIoT infrastructures, we monitor a multivariate time\-series sequence𝒳=\{x1,x2,…,xT\}∈ℝT×C\\mathcal\{X\}=\\\{x\_\{1\},x\_\{2\},\\dots,x\_\{T\}\\\}\\in\\mathbb\{R\}^\{T\\times C\}, whereTTis the total number of timestamps andCCis the number of sensor channels\. Following standard anomaly detection practices, the continuous sequence is divided into deeply overlapped sliding windows\[[8](https://arxiv.org/html/2610.40732#bib.bib28)\]\. LetX∈ℝW×CX\\in\\mathbb\{R\}^\{W\\times C\}denote a single sliding window of lengthWW\.
Under ideal network conditions, the downstream anomaly detection modelfθ\(⋅\)f\_\{\\theta\}\(\\cdot\)maps the complete windowXXto an anomaly score vectorS∈ℝWS\\in\\mathbb\{R\}^\{W\}, where a higher score indicates a higher probability of an anomalous event, such as a cyber\-physical attack or equipment failure\. However, physical edge environments often suffer from strict hardware constraints, network dropouts, and sensor malfunctions, leading to incomplete data matrices\. We model this structural corruption using a binary missing maskM∈\{0,1\}W×CM\\in\\\{0,1\\\}^\{W\\times C\}, where00indicates a missing value and11indicates an observed value\.
Unlike random missing values \(Missing Completely At Random, MCAR\) often assumed in general data science\[[28](https://arxiv.org/html/2610.40732#bib.bib29)\], sensor failures in harsh IIoT settings typically result in block missing scenarios\[[39](https://arxiv.org/html/2610.40732#bib.bib30)\]\. A block missing event of lengthLLstarting at timestamptstartt\_\{start\}implies thatMt,c=0M\_\{t,c\}=0for allt∈\[tstart,tstart\+L−1\]t\\in\[t\_\{start\},t\_\{start\}\+L\-1\]across one or multiple channels\. Consequently, the anomaly detector only receives the heavily corrupted inputX~=X⊙M\\tilde\{X\}=X\\odot M, where⊙\\odotdenotes element\-wise multiplication, which severely disrupts the temporal receptive field required for accurate detection\. A systematic comparison of generative detectors under varied noise reports the same asymmetry: block\-type perturbation degrades detection most sharply, and does so architecture\-specifically\[[25](https://arxiv.org/html/2610.40732#bib.bib43)\]\.
### III\-BMotivation: The Systemic Dilemma of Impute\-then\-Detect
To counter the block missing problem and restore the receptive field, the conventional edge pipeline employs a pre\-trained generative refinergϕ\(⋅\)g\_\{\\phi\}\(\\cdot\)as a data preparation step before the detector\. The goal ofgϕg\_\{\\phi\}is to reconstruct the original windowXXfrom the corrupted inputX~\\tilde\{X\}\. The reconstructed windowX^=gϕ\(X~\)\\hat\{X\}=g\_\{\\phi\}\(\\tilde\{X\}\)is then fed into the detectorfθf\_\{\\theta\}\.
Whether utilizing basic autoencoders or advanced generative architectures like CSDI and TIMBA, the refinergϕg\_\{\\phi\}is universally optimized using the Mean Squared Error \(MSE\) objective:
ℒMSE=‖X−gϕ\(X~\)‖22\\mathcal\{L\}\_\{\\mathrm\{MSE\}\}=\\\|X\-g\_\{\\phi\}\(\\tilde\{X\}\)\\\|\_\{2\}^\{2\}
While minimizingℒMSE\\mathcal\{L\}\_\{\\mathrm\{MSE\}\}reduces the statistical distance between the reconstructed and original signals, it leads to two pipeline failure modes\. First, anomalies are rare, abrupt deviations from normal operation\. Because the training data consist almost exclusively of normal operation,gϕg\_\{\\phi\}learns the conditional expectation of the normal distribution,𝔼\[Xnormal∣X~\]\\mathbb\{E\}\[X\_\{\\mathrm\{normal\}\}\\mid\\tilde\{X\}\]\[[36](https://arxiv.org/html/2610.40732#bib.bib31),[9](https://arxiv.org/html/2610.40732#bib.bib32)\]\. When a block missing event overlaps an anomaly, the MSE\-optimized refiner fills the gap with the most probable normal sequence and pulls the surviving fragment of the anomaly back toward normality, producing false negatives \(Figure[1](https://arxiv.org/html/2610.40732#S3.F1)\)\.
Second, on purely normal sequences, imputing large missing blocks frequently leaves unnatural reconstruction boundaries or structural artifacts, which a sensitive detector reads as abrupt deviations, producing false positives\. Point Adjustment conceals this loss of precision; under strict Point\-to\-Point \(P2P\) evaluation it is directly visible as alarm fatigue for IIoT operators\. We refer to these two failure modes jointly as*imputation bias*, and reference this definition throughout the rest of the paper\.
The objective of the data preparation phase must therefore change\. Rather than aiming for statistical smoothness, a generative refiner whose sampling cost is to be paid on the edge should be aligned with the downstream detection task: it should preserve partially observed anomaly evidence and avoid fabricating artifacts on normal data\. This motivates the design of the Task\-Aware Diffusion Refiner \(TADR\)\.
## IVProposed Methodology: TADR
To address the imputation bias and systemic inefficiencies of standard reconstruction pipelines, we propose the Task\-Aware Diffusion Refiner \(TADR\)\. TADR is designed as a modular generative framework that operates directly upstream of pre\-trained anomaly detectors on edge devices\. Figure[2](https://arxiv.org/html/2610.40732#S4.F2)depicts the overall architecture of the proposed methodology\.
Fig\. 2:Overall Architecture of the Task\-Aware Diffusion Refiner \(TADR\)\. The corrupted inputX~\\tilde\{X\}is reconstructed by the trainable refinergϕg\_\{\\phi\}\. The refined outputX^\\hat\{X\}is then passed through the completely frozen anomaly detector to compute three task\-aware objectives, ensuring that gradients flow backward solely to update the parametersϕ\\phi\.### IV\-APlug\-and\-Play Architecture Overview
Letfθ\(⋅\)f\_\{\\theta\}\(\\cdot\)be a fully trained and fixed anomaly detector, such as Anomaly Transformer, TimesNet, or KAN\-AD\[[38](https://arxiv.org/html/2610.40732#bib.bib5),[37](https://arxiv.org/html/2610.40732#bib.bib6),[20](https://arxiv.org/html/2610.40732#bib.bib16)\]\. Under normal conditions,fθf\_\{\\theta\}processes a complete windowXXand outputs an anomaly score sequenceS∈ℝWS\\in\\mathbb\{R\}^\{W\}\. Within our framework, the detectorfθf\_\{\\theta\}is functionally divided into two components: a feature extractorffeat\(⋅\)f\_\{\\mathrm\{feat\}\}\(\\cdot\)that generates intermediate latent representationsH∈ℝW×dH\\in\\mathbb\{R\}^\{W\\times d\}, and a scoring headfscore\(⋅\)f\_\{\\mathrm\{score\}\}\(\\cdot\)that maps these representations to the final anomaly scoreSS\.
The objective is to train a generative refinement networkgϕ\(⋅\)g\_\{\\phi\}\(\\cdot\), realised as a conditional denoising diffusion model over the window\. A time\-conditioned 1D U\-Net \(1\.341\.34M parameters\) predicts the injected noise from the concatenation of the current diffusion iterate, the observed samples masked byMM, and the mask itself, and refinement is performed by deterministic DDIM sampling\. We adopt the same quadratic noise schedule used by CSDI\[[35](https://arxiv.org/html/2610.40732#bib.bib4)\]so that the comparison against that baseline isolates the training objective rather than the architecture\. Given a corrupted inputX~\\tilde\{X\}, the refined outputX^=gϕ\(X~\)\\hat\{X\}=g\_\{\\phi\}\(\\tilde\{X\}\)should produce optimal latent representations and discriminative anomaly scores when processed by the frozen detectorfθf\_\{\\theta\}\.
Coupling a diffusion model to a downstream loss requires one non\-obvious step\. Back\-propagating through a fullTT\-step sampling trajectory is intractable, so the task\-aware objectives are instead applied to the one\-step estimate of the clean window implied by the current noise prediction,X^0=\(Xt−1−α¯tϵϕ\)/α¯t\\hat\{X\}\_\{0\}=\(X\_\{t\}\-\\sqrt\{1\-\\bar\{\\alpha\}\_\{t\}\}\\,\\epsilon\_\{\\phi\}\)/\\sqrt\{\\bar\{\\alpha\}\_\{t\}\}, which the same forward pass already yields\. Training therefore costs no more than plain diffusion training\. SinceX^0\\hat\{X\}\_\{0\}carries little signal at high noise levels, where that division amplifies any prediction error, the task\-aware terms are weighted byα¯t\\bar\{\\alpha\}\_\{t\}andX^0\\hat\{X\}\_\{0\}is clipped to the standardised data range\. Becausefθf\_\{\\theta\}remains completely frozen during the training ofgϕg\_\{\\phi\}, TADR maintains strict compatibility with various detectors without requiring structural modifications to the target models\[[11](https://arxiv.org/html/2610.40732#bib.bib33),[27](https://arxiv.org/html/2610.40732#bib.bib34)\]\.
### IV\-BContinuous\-Channel Gating
Multivariate IIoT benchmarks are not uniformly continuous: in the telemetry datasets only one channel carries an analogue sensor reading, the rest being one\-hot command signals\. A Gaussian diffusion process cannot represent such variables, and imputing a command is not meaningful in any case, since what a dropout destroys is the measurement\. We therefore restrict the refiner to channels that are not two\-level in the*raw*training stream—the test must precede standardisation, which maps a binary channel to a different pair of values per entity and would make it appear continuous—and pass discrete channels through unchanged\. Gating is applied identically to every refiner evaluated, so it changes the task rather than favouring a method\.
### IV\-CTask\-Aware Noise and Anomaly Simulation
To ensure the refiner is robust against the challenging IIoT conditions described in Section[III](https://arxiv.org/html/2610.40732#S3),gϕg\_\{\\phi\}is trained using a mixed\-noise injection strategy\[[6](https://arxiv.org/html/2610.40732#bib.bib35)\]\. During the forward pass, a clean mini\-batchXXis augmented by a stochastic noise injector that applies block missing, random masking, or Gaussian noise based on predefined probabilities\.
To train the refiner to process anomalous patterns without over\-smoothing them, we introduce synthetic anomalies into a subset of the training batch\. We apply a localized Gaussian perturbation \(e\.g\.,σ=5\.0\\sigma=5\.0\) over a short, continuous span \(e\.g\., 10 timestamps\) to simulate a severe sensor malfunction or a targeted cyber\-physical attack\[[29](https://arxiv.org/html/2610.40732#bib.bib36)\]\. LetXanomX\_\{\\mathrm\{anom\}\}denote the window injected with this synthetic anomaly, andX~anom\\tilde\{X\}\_\{\\mathrm\{anom\}\}denote its corresponding corrupted version\.
### IV\-DTask\-Aware Loss Enhancer
The primary contribution of TADR is its task\-aware objective function\. Rather than relying solely on the statistical distance between the input and the output, the training ofgϕg\_\{\\phi\}is tightly coupled with the internal responses of the downstream detectorfθf\_\{\\theta\}\. The total loss function consists of three distinct components\.
The first component is the reconstruction loss \(ℒrecon\\mathcal\{L\}\_\{\\mathrm\{recon\}\}\), which ensures the basic structural restoration of the underlying normal multi\-sensor dynamics:
ℒrecon=𝔼X\[‖X−gϕ\(X~\)‖22\]\\mathcal\{L\}\_\{\\mathrm\{recon\}\}=\\mathbb\{E\}\_\{X\}\\left\[\\\|X\-g\_\{\\phi\}\(\\tilde\{X\}\)\\\|\_\{2\}^\{2\}\\right\]
The second component is the feature matching loss \(ℒfeat\\mathcal\{L\}\_\{\\mathrm\{feat\}\}\)\. Reconstructed data may resemble the original yet lack the channel dependencies the detector relies on, so this term forces the refiner to preserve the semantic features of the detector’s intermediate layers\[[41](https://arxiv.org/html/2610.40732#bib.bib37),[10](https://arxiv.org/html/2610.40732#bib.bib38)\]:
ℒfeat=𝔼X\[‖ffeat\(X\)−ffeat\(gϕ\(X~\)\)‖22\]\\mathcal\{L\}\_\{\\mathrm\{feat\}\}=\\mathbb\{E\}\_\{X\}\\left\[\\\|f\_\{\\mathrm\{feat\}\}\(X\)\-f\_\{\\mathrm\{feat\}\}\(g\_\{\\phi\}\(\\tilde\{X\}\)\)\\\|\_\{2\}^\{2\}\\right\]Since the detector parameters are fixed, gradients from this loss flow backward throughffeatf\_\{\\mathrm\{feat\}\}solely to update the parameters ofgϕg\_\{\\phi\}\.
The third component is the anomaly enhancement loss \(ℒenhance\\mathcal\{L\}\_\{\\mathrm\{enhance\}\}\)\. This loss directly counters imputation bias by dictating distinct behaviors for normal and anomalous regions via a mathematically defined switching logic\. We define an indicator variabley∈\{0,1\}y\\in\\\{0,1\\\}, wherey=1y=1if the input contains a synthetic anomaly, andy=0y=0otherwise\. The enhancement loss is formulated as a conditional expectation:
ℒenhance=𝔼X,y\[\(1−y\)⋅‖S−S^‖1−y⋅\(1W∑t=1WS^t\)\]\\mathcal\{L\}\_\{\\mathrm\{enhance\}\}=\\mathbb\{E\}\_\{X,y\}\\left\[\(1\-y\)\\cdot\\\|S\-\\hat\{S\}\\\|\_\{1\}\-y\\cdot\\left\(\\frac\{1\}\{W\}\\sum\_\{t=1\}^\{W\}\\hat\{S\}\_\{t\}\\right\)\\right\]whereS=fscore\(X\)S=f\_\{\\mathrm\{score\}\}\(X\)acts as the reference score from the uncorrupted input, andS^=fscore\(gϕ\(X~\)\)\\hat\{S\}=f\_\{\\mathrm\{score\}\}\(g\_\{\\phi\}\(\\tilde\{X\}\)\)is the score from the refined input\. For normal instances \(y=0y=0\), the refiner minimizes the L1 distance strictly to prevent the generation of unnatural boundaries or artifacts that could trigger severe false positives \(False Alarms\)\. Conversely, for anomalous instances \(y=1y=1\), the refiner is severely penalized for statistical smoothing and is driven to maximize the overall anomaly score\.
The refinergϕg\_\{\\phi\}is trained end\-to\-end to minimize the unified task\-aware loss\[[14](https://arxiv.org/html/2610.40732#bib.bib39)\]:
ℒtotal=ℒrecon\+λfeatℒfeat\+λenhanceℒenhance\\mathcal\{L\}\_\{\\mathrm\{total\}\}=\\mathcal\{L\}\_\{\\mathrm\{recon\}\}\+\\lambda\_\{\\mathrm\{feat\}\}\\mathcal\{L\}\_\{\\mathrm\{feat\}\}\+\\lambda\_\{\\mathrm\{enhance\}\}\\mathcal\{L\}\_\{\\mathrm\{enhance\}\}whereλfeat\\lambda\_\{\\mathrm\{feat\}\}andλenhance\\lambda\_\{\\mathrm\{enhance\}\}are hyperparameters that balance the feature alignment and score amplification objectives\. We setλfeat=0\.1\\lambda\_\{\\mathrm\{feat\}\}=0\.1andλenhance=0\.5\\lambda\_\{\\mathrm\{enhance\}\}=0\.5; Section[V](https://arxiv.org/html/2610.40732#S5)reports a sweep over both, which shows this setting to be statistically indistinguishable from the grid optimum and the objective to be insensitive toλfeat\\lambda\_\{\\mathrm\{feat\}\}over an order of magnitude, whileλenhance=0\\lambda\_\{\\mathrm\{enhance\}\}=0collapses performance\.
### IV\-ETraining Procedure
To ensure computational efficiency and balanced adversarial learning, the training procedure of TADR is systematically structured\. As a prerequisite, the base anomaly detectorfθf\_\{\\theta\}is fully trained on the normal IIoT training dataset and its parameters are completely frozen\.
During the refiner training phase, we sample mini\-batches of sizeB=64B=64from the normal sliding windows\. To stabilize the gradient updates of the conditional enhancement loss, each batch is evenly split\. The first half \(B/2=32B/2=32\) remains purely normal but is subjected to structural corruption using the mixed\-noise injector\. The second half is injected with the synthetic localized anomalies to createXanomX\_\{\\mathrm\{anom\}\}, and subsequently corrupted by the same noise injector to generateX~anom\\tilde\{X\}\_\{\\mathrm\{anom\}\}\.
Both halves are passed through the refinergϕg\_\{\\phi\}and then evaluated by the frozen detectorfθf\_\{\\theta\}\. The comprehensive lossℒtotal\\mathcal\{L\}\_\{\\mathrm\{total\}\}is computed by aggregating the normal and anomalous responses\. The network is optimized using the Adam optimizer with a learning rate of3×10−43\\times 10^\{\-4\}\. To prevent exploding gradients caused by the adversarial nature ofℒenhance\\mathcal\{L\}\_\{\\mathrm\{enhance\}\}on the anomalous half, gradient clipping is rigorously applied with a maximum norm of 1\.0\. Training windows use a stride of1010rather than a non\-overlapping stride, since a diffusion model needs far more distinct windows than a single\-pass refiner: at stride100100a single SMD entity yields only284284windows and the model fails to converge, reconstructing missing regions worse than a constant fill\. Across pooled datasets the epoch count is derived from the window count so every dataset receives the same gradient\-step budget \(≈3,100\\approx 3\{,\}100updates\); otherwise datasets of many short entities train an order of magnitude less than SMD and the comparison reflects budget rather than method\. The refiner stays light enough for retraining on constrained edge infrastructure\.
## VExperimental Evaluation
### V\-AExperimental Setup
To validate the proposed framework, we utilize four widely used multi\-sensor IIoT anomaly detection benchmarks: Server Machine Dataset \(SMD\), Soil Moisture Active Passive \(SMAP\), Mars Science Laboratory \(MSL\), and Pooled Server Metrics \(PSM\)\[[33](https://arxiv.org/html/2610.40732#bib.bib11),[13](https://arxiv.org/html/2610.40732#bib.bib1),[1](https://arxiv.org/html/2610.40732#bib.bib12)\]\. To ensure a robust, global evaluation rather than cherry\-picking specific subsets, we pooled all machine entities within each dataset\. All continuous data sequences are processed using a sliding window size ofW=100W=100\. Training and accuracy experiments run on a server with dual Intel Xeon E5\-2620 v4 CPUs, 125 GiB of RAM, and NVIDIA GeForce RTX 3090 GPUs under Ubuntu 22\.04 LTS; deployment latency is profiled separately at batch size one on a single CPU thread \(Section[V\-H](https://arxiv.org/html/2610.40732#S5.SS8)\)\.
To simulate severe industrial operating conditions, we systematically inject continuous block missing masks, varying the missing ratio from 10% to 50% of the total window length\. Missing ratios exceeding 30% represent critical communication blackouts where standard statistical interpolations completely fail\[[3](https://arxiv.org/html/2610.40732#bib.bib21)\]\. Additionally, we inject Gaussian noise \(σ=1\.0\\sigma=1\.0\) to evaluate the framework’s baseline resilience against general sensor degradation\.
Crucially, in terms of evaluation metrics, we explicitly abandon the widely criticized Point Adjustment \(PA\) protocol\. Recent system studies indicate that PA induces a severe overestimation bias, masking the structural flaws of generative models that trigger massive false alarms across contiguous segments\[[15](https://arxiv.org/html/2610.40732#bib.bib40)\]\. To accurately reflect the true system fatigue experienced in IIoT environments, we strictly report the Point\-to\-Point \(P2P\) F1\-score, Precision, and Recall\. All reported metrics are averaged over five independent runs with different random seeds\. We report95%95\\%confidence intervals rather than means alone, and compare methods with pairedtt\-tests on the per\-seed differences: pairing on seed removes the variance the two methods share, which is the comparison the claims actually rest on\. Because a favourable best\-threshold F1 does not by itself establish that a refiner reconstructed anything, we additionally record reconstruction fidelity—output scale, the fraction of samples pinned to the clipping bound, and reconstruction error on observed and missing positions—for every configuration, and report it alongside detection quality\.
### V\-BMitigation of Imputation Bias \(Precision\-Recall Imbalance\)
To isolate the effect of pure error\-centric imputation, we evaluate the baselines under a severe 40% block missing scenario\. Figure[4](https://arxiv.org/html/2610.40732#S5.F4)reports the comparison on a representative subset \(SMD 1\-1\), where exact model behaviours are visible\.
Fig\. 3:Global P2P F1 across four IIoT datasets at 40% block missing, five seeds with 95% confidence intervals\. Datasets are annotated with the number of continuous channels they provide, which is what the benefit of task\-aware refinement tracks\.Fig\. 4:Refiner comparison under 40% block missing \(SMD 1\-1\)\. Means over five seeds; error bars are 95% intervals on F1, and the right column the paired difference against the unrefined detector \(pairedtt\-test: TADRp=0\.0015p=0\.0015, iTransformerp=0\.0010p=0\.0010, CSDIp=0\.018p=0\.018, TIMBAp=0\.028p=0\.028\)\.Imputation bias is visible most clearly in TIMBA, which attains0\.8220\.822recall at0\.3320\.332precision and ends up*below*the unrefined detector \(p=0\.028p=0\.028\): MSE\-optimised reconstruction fills missing blocks with smooth normal patterns, creating abrupt boundary artifacts that the downstream detector reads as widespread anomalies\. Under the relaxed PA metric such a model would appear effective; strict P2P evaluation exposes the precision cost that drives alarm fatigue\.
This failure is not universal among reconstruction\-based refiners: CSDI and iTransformer both improve substantially over the unrefined detector\. The reading these numbers support is not that MSE\-trained imputation fails outright, but that aligning the refinement objective with the detector yields a further gain on top of it\. TADR reaches the highest F1 \(\+0\.338\+0\.338against the unrefined detector,p=0\.0015p=0\.0015\) and the highest precision simultaneously, indicating the additional signal it recovers is not bought with false alarms\.
### V\-CWhere the Recovered Detections Come From
A refiner can only add detections where some anomaly evidence survives the outage\. To test whether TADR recovers partially observed anomalies or infers unseen ones from context, we bucket every anomalous point of the SMD 1\-1 comparison by its*masked fraction*: the share of the sliding windows covering that point in which it was dropped\. Table[I](https://arxiv.org/html/2610.40732#S5.T1)reports the detection rate per bucket at each method’s F1\-optimal threshold\.
TABLE I:Detection rate by masked fraction, the share of covering windows in which an anomalous point was dropped \(SMD 1\-1, 40% block missing, five seeds\)\. The last row is the false\-alarm rate on normal points\.No anomalous point was masked in more than75%75\\%of its windows: each window draws its own mask, so under stride\-one evaluation every point is observed in many windows\. A point that no window ever observes is unrecoverable in principle, and our results make no claim about that case\. Within the observed range, TADR’s advantage over the unrefined detector grows with the masked fraction \(\+0\.43\+0\.43to\+0\.63\+0\.63\), the opposite of what an account based on inferring the anomaly from its context would predict, although the higher bucket holds only 51 points\. Its false\-alarm rate stays close to the unrefined detector’s and below CSDI’s, so the additional detections are not bought by inflating scores\. The mechanism is therefore the preservation of partially observed anomaly evidence, and the method assumes that each anomaly remains observed in at least part of the windows that cover it\.
### V\-DGenerality Across Detector Architectures
We further investigate the architectural generality of the task\-aware mechanism\. We integrated TADR directly upstream of three distinct state\-of\-the\-art detector architectures \(Anomaly Transformer, TimesNet, and KAN\-AD\)\.
Fig\. 5:Detector generality on pooled SMD\. Bars are means over five seeds, error bars 95% intervals on the refined score, and the annotation above each pair the paired difference\. Gains are significant for KAN\-AD and TimesNet \(p≤0\.002p\\leq 0\.002\), absent for Anomaly Transformer\.Figure[5](https://arxiv.org/html/2610.40732#S5.F5)reports the result, and it is more selective than we had expected\. On the two reconstruction\-error detectors the gain is large and significant:\+0\.108\+0\.108for KAN\-AD and\+0\.098\+0\.098for TimesNet under 40% block missing \(p=0\.0003p=0\.0003,p=0\.0007p=0\.0007\), and\+0\.082\+0\.082and\+0\.078\+0\.078under Gaussian noise\. On Anomaly Transformer it is absent in both conditions \(−0\.009\-0\.009,−0\.016\-0\.016; neither significant\)\.
We therefore describe TADR as a plug\-in for reconstruction\-error detectors rather than a universally applicable optimizer\. Both architectures that benefit score a window by how badly they reconstruct it, so sharpening a suppressed anomaly moves the score directly, whereas Anomaly Transformer derives its score from association discrepancy, which a refined window need not shift in the same way—consistent with reports that detectors respond to noise in structurally different ways\[[25](https://arxiv.org/html/2610.40732#bib.bib43)\]\. The Gaussian condition doubles as a sanity check: with no missing block to fill, the refiner neither helps nor harms, confirming it does not degrade a pipeline already on intact data\.
### V\-EWhat the Gain Depends On
Task\-aware refinement reconstructs a corrupted window from the channels that survived, so its benefit should scale with how much mutually redundant continuous signal remains\. We test that prediction directly, by withholding channels from a dataset where the method works\.
TABLE II:Benefit against the number of channels retained \(SMD 1\-1, 40% block missing\), and against the overlap between successive evaluation windows\.Δ\\Deltais the paired difference over five seeds\.The two forms of redundancy behave differently\. Spatial redundancy carries the method: the benefit falls monotonically as channels are withheld, from\+0\.356\+0\.356with all3838to\+0\.041\+0\.041with one, and is no longer significant below six channels\. Temporal overlap does not: scoring each timestamp exactly once, at a test stride equal to the window length, leaves the gain essentially intact, so the overlapped sliding window is a convenience of the protocol rather than part of the mechanism\.
This predicts that the gain tracks the continuous channels a dataset actually provides, not its nominal count\. We pool all entities within each of the four datasets and test that as the missing ratio rises from 10% to 50%\.
The prediction holds \(Figure[3](https://arxiv.org/html/2610.40732#S5.F3)\)\. SMD supplies3333of3838continuous channels and is where TADR is strongest, with a paired gain of\+0\.090\+0\.090to\+0\.108\+0\.108, significant at every missing ratio from 10% to 50% \(p≤0\.0014p\\leq 0\.0014\) and flat as the ratio rises\. At this pooled scale a plain diffusion imputer is nearly as effective \(\+0\.087\+0\.087to\+0\.093\+0\.093\), so the margin of the task\-aware objective over CSDI is clearest on the single entity, where it is0\.170\.17\(Figure[4](https://arxiv.org/html/2610.40732#S5.F4)\), and in the channel ablation, where it is0\.120\.12with all channels retained\. The telemetry datasets are the opposite of what their channel counts suggest: SMAP and MSL nominally offer2525and5555channels, but only one of each is an analogue sensor reading, the rest being one\-hot command signals a Gaussian process cannot represent and a dropout does not meaningfully destroy\. With one continuous stream to work from they sit at the far\-right end of the channel row of Table[II](https://arxiv.org/html/2610.40732#S5.T2), exactly where the controlled ablation places them\. Continuous\-channel gating keeps the refiner off the command channels but cannot manufacture redundancy the data lacks: at 40% missing TADR remains below the unrefined detector on SMAP \(−0\.066\-0\.066\) and MSL \(−0\.016\-0\.016\)\.
PSM sharpens the condition further, since its channels are entirely continuous yet the gain is also absent\. There the unrefined detector already attains0\.880\.88recall, so little anomaly evidence is lost to the outage in the first place; a plain diffusion imputer is roughly neutral on the same data, which locates the cost in the task\-aware objective rather than in generative refinement\. Redundancy is therefore necessary but not sufficient: the benefit scales with how much evidence the outage actually removes from the detector, and vanishes when little is removed\.
### V\-FAblation Study on Task\-Aware Objectives
To rigorously validate the contribution of each objective within the TADR framework, we conducted an ablation study under the 40% block missing scenario\. To ensure a strict yet stable evaluation of exact timestamps, we utilized a smoothed P2P metric \(moving average window of 5\)\.
TABLE III:Ablation on loss components \(smoothed P2P F1, 40% block missing\)\.Δ\\Deltais the paired difference against the MSE\-only refiner over five seeds\.Table[III](https://arxiv.org/html/2610.40732#S5.T3)shows a clear progression\. The MSE\-only refiner yields0\.3060\.306, held back by imputation bias\. Feature matching contributes\+0\.236\+0\.236by aligning the latent representations, but it buys recall at the cost of precision \(0\.525→0\.5610\.525\\to 0\.561against0\.313→0\.5400\.313\\to 0\.540recall\), because boundary artifacts still trigger false alarms\. The decisive component is the anomaly enhancement loss, which raises F1 to0\.7690\.769—a paired gain of\+0\.463\+0\.463over the MSE\-only refiner \(p=0\.0002p=0\.0002\), the largest effect measured anywhere in this work—and, unlike the intermediate step, improves precision and recall together\. The final row isolates the generative process itself: a deterministic single\-pass refiner trained on the identical objective and data reaches only0\.4690\.469, so the iterative formulation is worth\+0\.300\+0\.300beyond the loss function, which is what justifies its sampling cost\.
### V\-GSensitivity to the Task\-Aware Loss Weights
The two weightsλfeat\\lambda\_\{\\mathrm\{feat\}\}andλenhance\\lambda\_\{\\mathrm\{enhance\}\}are the only hyperparameters the task\-aware objective introduces, and Figure[6](https://arxiv.org/html/2610.40732#S5.F6)sweeps both over a5×55\\times 5grid under the same protocol as the ablation\.
Fig\. 6:P2P F1 over the\(λfeat,λenhance\)\(\\lambda\_\{\\mathrm\{feat\}\},\\lambda\_\{\\mathrm\{enhance\}\}\)grid, mean of five seeds\. The setting used throughout the paper is outlined\.The setting used throughout,\(0\.1,0\.5\)\(0\.1,0\.5\), attains0\.7760\.776against a grid optimum of0\.7870\.787—a difference well inside the confidence interval—and the objective is insensitive toλfeat\\lambda\_\{\\mathrm\{feat\}\}over an order of magnitude at the chosenλenhance\\lambda\_\{\\mathrm\{enhance\}\}\. Most informative is the leftmost column: withλenhance=0\\lambda\_\{\\mathrm\{enhance\}\}=0the grid collapses to between0\.2960\.296and0\.6390\.639regardless ofλfeat\\lambda\_\{\\mathrm\{feat\}\}, independently confirming that the enhancement term, not feature matching, carries the method\. Beyondλenhance=1\.0\\lambda\_\{\\mathrm\{enhance\}\}=1\.0performance degrades again as the refiner begins inflating scores on normal windows\.
### V\-HSystem Overhead and Edge Feasibility
Diffusion makes inference cost proportional to the sampling budget, scaling as𝒪\(T⋅𝒞CNN\)\\mathcal\{O\}\(T\\cdot\\mathcal\{C\}\_\{\\mathrm\{CNN\}\}\)\. We therefore report latency againstTT, and per window as well as per batch, since the two differ by two orders of magnitude and only the former is meaningful for streaming\.
TABLE IV:Inference overhead\. Batch figures use batch size 256 on one RTX 3090 with CUDA synchronisation, measured with the GPU otherwise idle \(means of five runs; theT=10T\{=\}10row is from the sampling\-step profile\)\. Streaming rows use batch size 1 on a single CPU thread of a 2\.1 GHz Xeon E5\-2620 v4\. The refiner occupies 4\.03 MB\.Non\-generative refiners execute in about a millisecond per batch while diffusion pays for iterative sampling: roughly240240ms at the full budget, the same as CSDI, with which TADR shares its network and sampler\. Ten steps brings this to44\.244\.2ms per batch, and41\.441\.4ms per window in streaming mode, at which point a single CPU core sustains roughly2424concurrent11Hz streams from a4\.034\.03MB model—so a GPU is not a prerequisite\. The single server core is a proxy for a gateway\-class processor; we have not measured on an embedded board, where per\-core throughput is typically lower\.
### V\-ISampling Budget and Reconstruction Fidelity
Because latency is linear inTT, the sampling budget is the principal deployment lever\. Table[V](https://arxiv.org/html/2610.40732#S5.T5)sweeps it with reconstruction fidelity reported next to detection quality\.
TABLE V:Detection quality and reconstruction fidelity against the sampling budget \(SMD 1\-1, 40% block missing\)\. Saturation is the fraction of output pinned to the clipping bound; observed MSE is over never\-missing samples\.TADR is statistically flat between ten and fifty steps: the paired difference is\+0\.038\+0\.038withp=0\.60p=0\.60, indistinguishable at five seeds\. CSDI degrades sharply below twenty\-five \(0\.4260\.426at ten against0\.6280\.628at fifty\)\. We attribute this to where the task\-aware terms act—on the one\-step estimateX^0\\hat\{X\}\_\{0\}, exactly what few\-step sampling relies on, so the model is trained to make that estimate useful to the detector\. Since latency is linear inTT,T=10T=10is the operating point we recommend: a five\-fold saving at no measurable cost in quality\.
The lower rows matter for a different reason\. At two steps the output saturates its clipping bound on roughly half of all samples and reconstruction error rises fortyfold, yet best\-threshold P2P F1 remains near0\.690\.69\. A detection metric that cannot separate this from genuine refinement is not sufficient evidence alone—the same weakness we identify in Point Adjustment, and the reason fidelity is reported throughout\.
## VIDiscussion
### VI\-AEdge Deployment and System Acceleration
TADR inherits the iterative sampling cost of its generative architecture:4444ms per batch of256256windows at ten steps, rising to about240240ms at fifty\. The question that matters for deployment is not throughput but per\-stream cost on the device that would run it, and a single CPU core sustains roughly2424concurrent11Hz streams at ten steps with a4\.034\.03MB model \(Section[V](https://arxiv.org/html/2610.40732#S5)\)\. GPU acceleration is therefore not a prerequisite, though power, thermal headroom, and multi\-tenant scheduling on PLCs and low\-power gateways remain open\[[5](https://arxiv.org/html/2610.40732#bib.bib41)\]\.
Two further directions remain, and our measurements qualify both\. Reducing the sampling budget is the more effective lever, since latency is linear inTT, and it realises much of what step distillation or Consistency Models\[[31](https://arxiv.org/html/2610.40732#bib.bib42)\]promise without additional training—but it has a floor\. One\-step sampling from pure noise must divide byα¯T≈0\.006\\sqrt\{\\bar\{\\alpha\}\_\{T\}\}\\approx 0\.006, and the output then saturates its clipping bound on over half of all samples while still scoring a competitive best\-threshold F1, which is why fidelity accompanies every detection metric\. Compiler\-level quantisation is the second, but must be the right kind:*dynamic*INT8 is marginally*slower*than FP32 here \(47\.347\.3against41\.441\.4ms\), targeting linear layers while this refiner’s cost is convolutional\. Static or quantisation\-aware training is the appropriate route\.
Because quality is flat between fifty and ten steps but collapses below five,TTis also a natural control variable, lowered under power or thermal pressure and raised when headroom returns, above the degeneracy floor we identify\.
### VI\-BStructural Redundancy and Graceful Degradation
On SMD, TADR’s gain is flat across block missing ratios from 10% to 50% \(Section[V\-E](https://arxiv.org/html/2610.40732#S5.SS5)\), an instance of graceful degradation obtained by exploiting structural redundancy\. Section[V](https://arxiv.org/html/2610.40732#S5)attributes it to spatial rather than temporal redundancy, and the practical consequence is a design one: because the benefit depends on how many mutually redundant channels a deployment carries rather than on how densely it samples, a topology with overlapping receptive fields tolerates outages that would otherwise demand duplicated hardware\.
### VI\-CLimitations and Future Work
While TADR proves highly effective for continuous, physically correlated multi\-sensor streams, its current architecture assumes the presence of several mutually redundant continuous channels, and we observed two regimes in which it does not help\.
The first is data dominated by discrete channels\. A Gaussian diffusion process has no way to represent one\-hot command signals, and restricting the refiner to the continuous channels recovers most, but not all, of the deficit on the telemetry datasets\. The same limitation applies a fortiori to asynchronous event logs such as network routing or financial transaction streams\.
The second is more interesting and less expected\. On PSM, whose channels are entirely continuous, the unrefined detector already attains0\.880\.88recall, so there is little missed signal for the refiner to restore and refinement subtracts from what the detector would otherwise see\. We attempted nine variants targeting this regime—rescaling, budget, both loss weights, the synthetic anomaly length and magnitude, its batch fraction, and confining the refiner to the missing region—and none recovered it\. A plain diffusion imputer without the task\-aware terms is neutral on this dataset, which locates the cost in the task\-aware machinery rather than in generative refinement as such\. We therefore state the operating condition directly: the benefit scales with how much anomaly evidence the detector loses to the outage, and vanishes when little is lost\.
Two threats remain outside our evaluation\. TADR is resilient to random Gaussian noise, but a targeted poisoning or adversarial perturbation injected into the observable channels could steer the refiner into hallucinating boundary artifacts and bypassing the detector; bounding the confidence of generated imputations, for instance via conformal prediction, is the natural response\. Industrial systems also undergo concept drift through mechanical wear, and adapting the task\-aware alignment over time without full retraining remains open\. Future work will address asynchronous and heterogeneous sensor networks, zero\-shot drift adaptation, and multi\-tenant edge scheduling when several detection pipelines share one accelerator under QoS constraints\.
## VIIConclusion
In this study, we addressed the systemic inefficiencies and structural vulnerabilities of conventional time\-series anomaly detection pipelines deployed in IIoT edge environments subject to severe block missing conditions\. We showed that the standard “impute\-then\-detect” paradigm, which relies on disjointed MSE\-optimized generative models, admits an imputation bias that smooths over cyber\-physical attack signatures and generates boundary artifacts that trigger alarm fatigue\.
To resolve this, we introduced TADR, a conditional diffusion refiner whose training objective is coupled to the loss landscape of the frozen downstream detector\. Because back\-propagating through the sampling trajectory is intractable, the task\-aware terms are applied to the one\-step estimate of the clean window that the noise prediction already provides, leaving training no more expensive than plain diffusion training\. Under strict Point\-to\-Point evaluation with five seeds and paired significance tests, TADR raises P2P F1 by\+0\.338\+0\.338over the unrefined detector on SMD, and by\+0\.090\+0\.090to\+0\.108\+0\.108on pooled SMD at every missing ratio from 10% to 50%\. The ablation isolates the source of this gain: the anomaly enhancement objective alone contributes\+0\.463\+0\.463, and the iterative generative formulation contributes a further\+0\.300\+0\.300over a single\-pass refiner trained on the identical objective\.
Equally important is where the method does not help\. The benefit scales with how much anomaly evidence the outage removes from the detector: it is large on multivariate continuous streams with mutually redundant channels, and disappears when the observable channels are predominantly one\-hot command signals or when the unrefined detector already recovers most anomalies unaided\. We report these regimes explicitly, with a controlled channel ablation reproducing the same collapse on a dataset where the method does work, because a precisely stated operating condition is more useful than an averaged claim of superiority\.
On feasibility, a GPU is not a prerequisite: at ten sampling steps the refiner retains its detection quality while running in41\.441\.4ms per window on a single CPU core, sustaining roughly2424concurrent 1 Hz streams from a4\.034\.03MB model\. We also identify the budget below which sampling degenerates while conventional detection metrics fail to register it, which is why reconstruction fidelity is reported throughout\.
This work argues against separating reconstruction from detection in resource\-constrained pipelines, and for stating the conditions under which coupling them pays\. Future work will address discrete and asynchronous channels, adaptive sampling under power and thermal limits, and validation on physical testbeds under operational drift\.
## Acknowledgment
This research was supported by Development of Field Technology for Responding to Illegal drugs Program through the Korea Institutes of Police Technology \(KIPoT\) funded by the Ministry of Science and ICT & Korean National Police Agency \(RS\-2026\-25535833\)\.
## References
- \[1\]A\. Abdulaal, Z\. Liu, and T\. Lance\(2021\)Practical approach to asynchronous multivariate time series anomaly detection and localization\.InProceedings of the 27th ACM SIGKDD conference on knowledge discovery & data mining,pp\. 2465–2474\.Cited by:[§V\-A](https://arxiv.org/html/2610.40732#S5.SS1.p1.1)\.
- \[2\]J\. Audibert, P\. Michiardi, F\. Guyard, S\. Marti, and M\. A\. Zuluaga\(2020\)Usad: unsupervised anomaly detection on multivariate time series\.InProceedings of the 26th ACM SIGKDD international conference on knowledge discovery & data mining,pp\. 3395–3404\.Cited by:[§I](https://arxiv.org/html/2610.40732#S1.p2.1),[§II\-B](https://arxiv.org/html/2610.40732#S2.SS2.p1.1)\.
- \[3\]W\. Cao, D\. Wang, J\. Li, H\. Zhou, L\. Li, and Y\. Li\(2018\)BRITS: bidirectional recurrent imputation for time series\.InAdvances in Neural Information Processing Systems \(NeurIPS\),Vol\.31\.Cited by:[§I](https://arxiv.org/html/2610.40732#S1.p1.1),[§II\-A](https://arxiv.org/html/2610.40732#S2.SS1.p1.1),[§II\-B](https://arxiv.org/html/2610.40732#S2.SS2.p1.1),[§V\-A](https://arxiv.org/html/2610.40732#S5.SS1.p2.1)\.
- \[4\]Z\. Che, S\. Purushotham, K\. Cho, D\. Sontag, and Y\. Liu\(2018\)Recurrent neural networks for multivariate time series with missing values\.Scientific reports8\(1\),pp\. 1–12\.Cited by:[§II\-B](https://arxiv.org/html/2610.40732#S2.SS2.p1.1)\.
- \[5\]F\. Croce and M\. Hein\(2020\)Reliable evaluation of adversarial robustness with an ensemble of diverse parameter\-free attacks\.InInternational conference on machine learning,pp\. 2206–216\.Cited by:[§VI\-A](https://arxiv.org/html/2610.40732#S6.SS1.p1.1)\.
- \[6\]T\. DeVries and G\. W\. Taylor\(2017\)Improved regularization of convolutional neural networks with cutout\.arXiv preprint arXiv:1708\.04552\.Cited by:[§IV\-C](https://arxiv.org/html/2610.40732#S4.SS3.p1.1)\.
- \[7\]W\. Du, D\. Cote, and Y\. Liu\(2023\)SAITS: self\-attention\-based imputation for time series\.Expert Systems with Applications219,pp\. 119619\.Cited by:[§II\-B](https://arxiv.org/html/2610.40732#S2.SS2.p1.1)\.
- \[8\]A\. Garg, W\. Zhang, J\. Samaranayake, G\. Lukoianova, N\. Ploskas,et al\.\(2021\)An evaluation of anomaly detection and diagnosis in multivariate time series\.InAdvances in Neural Information Processing Systems,Vol\.34,pp\. 25087–25099\.Cited by:[§III\-A](https://arxiv.org/html/2610.40732#S3.SS1.p1.1)\.
- \[9\]I\. Goodfellow, J\. Pouget\-Abadie, M\. Mirza, B\. Xu, D\. Warde\-Farley, S\. Ozair, A\. Courville, and Y\. Bengio\(2014\)Generative adversarial nets\.Advances in neural information processing systems27\.Cited by:[§III\-B](https://arxiv.org/html/2610.40732#S3.SS2.p3.1)\.
- \[10\]B\. Heo, J\. Kim, S\. Yun, H\. Park, N\. Kwak, and J\. Y\. Choi\(2019\)A comprehensive overhaul of feature distillation\.InProceedings of the IEEE/CVF International Conference on Computer Vision \(ICCV\),pp\. 1921–1930\.Cited by:[§IV\-D](https://arxiv.org/html/2610.40732#S4.SS4.p3.1)\.
- \[11\]G\. Hinton, O\. Vinyals, and J\. Dean\(2015\)Distilling the knowledge in a neural network\.arXiv preprint arXiv:1503\.02531\.Cited by:[§IV\-A](https://arxiv.org/html/2610.40732#S4.SS1.p3.1)\.
- \[12\]J\. Ho, A\. Jain, and P\. Abbeel\(2020\)Denoising diffusion probabilistic models\.Advances in neural information processing systems33,pp\. 6840–6851\.Cited by:[§II\-C](https://arxiv.org/html/2610.40732#S2.SS3.p1.1)\.
- \[13\]K\. Hundman, V\. Constantinou, C\. Laporte, I\. Colwell, and T\. Soderstrom\(2018\)Detecting spacecraft anomalies using lstms and nonparametric dynamic thresholding\.InProceedings of the 24th ACM SIGKDD international conference on knowledge discovery & data mining,pp\. 387–395\.Cited by:[§V\-A](https://arxiv.org/html/2610.40732#S5.SS1.p1.1)\.
- \[14\]A\. Kendall, Y\. Gal, and R\. Cipolla\(2018\)Multi\-task learning using uncertainty to weigh losses for scene geometry and semantics\.InProceedings of the IEEE conference on computer vision and pattern recognition \(CVPR\),pp\. 7482–7491\.Cited by:[§IV\-D](https://arxiv.org/html/2610.40732#S4.SS4.p5.1)\.
- \[15\]S\. Kim, K\. Choi, H\. Choi, B\. Lee, and S\. Yoon\(2022\)Towards a rigorous evaluation of time\-series anomaly detection\.InProceedings of the AAAI Conference on Artificial Intelligence,Vol\.36,pp\. 7194–7201\.Cited by:[§V\-A](https://arxiv.org/html/2610.40732#S5.SS1.p3.1)\.
- \[16\]D\. Li, D\. Chen, B\. Jin, L\. Shi, J\. Goh, and S\. Ng\(2019\)MAD\-gan: multivariate anomaly detection for time series data with generative adversarial networks\.InInternational conference on artificial neural networks,pp\. 703–716\.Cited by:[§I](https://arxiv.org/html/2610.40732#S1.p2.1),[§II\-B](https://arxiv.org/html/2610.40732#S2.SS2.p1.1)\.
- \[17\]H\. Linet al\.\(2024\)Diffusion models for time\-series applications: a survey\.Frontiers of Information Technology & Electronic Engineering25\(1\),pp\. 21–43\.Cited by:[§II\-C](https://arxiv.org/html/2610.40732#S2.SS3.p1.1)\.
- \[18\]R\. J\. Little and D\. B\. Rubin\(2019\)Statistical analysis with missing data\.Vol\.793,John Wiley & Sons\.Cited by:[§II\-B](https://arxiv.org/html/2610.40732#S2.SS2.p1.1)\.
- \[19\]Y\. Liu, T\. Hu, H\. Zhang, H\. Wu, S\. Wang, L\. Ma, and J\. Wang\(2024\)ITransformer: inverted transformers are effective for time series forecasting\.InInternational Conference on Learning Representations \(ICLR\),Cited by:[§II\-A](https://arxiv.org/html/2610.40732#S2.SS1.p1.1)\.
- \[20\]Z\. Liu, Y\. Wang, S\. Vaidya, F\. Ruehle, J\. Halverson, M\. Soljačić, T\. Y\. Hou, and M\. Tegmark\(2024\)KAN: kolmogorov\-arnold networks\.InInternational Conference on Machine Learning \(ICML\),Cited by:[§II\-A](https://arxiv.org/html/2610.40732#S2.SS1.p1.1),[§IV\-A](https://arxiv.org/html/2610.40732#S4.SS1.p1.1)\.
- \[21\]Y\. Luo, X\. Cai, Y\. Zhang, J\. Xu, and X\. Yuan\(2018\)Multivariate time series imputation with generative adversarial networks\.Advances in neural information processing systems31\.Cited by:[§I](https://arxiv.org/html/2610.40732#S1.p2.1)\.
- \[22\]P\. Malhotra, L\. Vig, G\. Shroff, and P\. Agarwal\(2015\)Long short term memory networks for anomaly detection in time series\.InProceedings of the 23rd European symposium on artificial neural networks, computational intelligence and machine learning \(ESANN\),pp\. 89\.Cited by:[§II\-A](https://arxiv.org/html/2610.40732#S2.SS1.p1.1)\.
- \[23\]X\. Miao, Y\. Wu, J\. Wang, Y\. Gao, X\. Mao, and J\. Yin\(2021\)Generative semi\-supervised learning for multivariate time series imputation\.InProceedings of the AAAI Conference on Artificial Intelligence,Vol\.35,pp\. 8983–8991\.Cited by:[§I](https://arxiv.org/html/2610.40732#S1.p1.1)\.
- \[24\]D\. Park, Y\. Hoshi, and C\. C\. Kemp\(2018\)A multimodal anomaly detector for robot\-assisted feeding using an lstm\-based variational autoencoder\.InIEEE Robotics and Automation Letters,Vol\.3,pp\. 1544–1551\.Cited by:[§II\-A](https://arxiv.org/html/2610.40732#S2.SS1.p1.1)\.
- \[25\]J\. Park and M\. Min\(2025\)Robustness and performance comparison of generative ai time series anomaly detection under noise\.Computer Modeling in Engineering & Sciences145\(3\),pp\. 3913–3948\.External Links:[Document](https://dx.doi.org/10.32604/cmes.2025.072261)Cited by:[§III\-A](https://arxiv.org/html/2610.40732#S3.SS1.p3.1),[§V\-D](https://arxiv.org/html/2610.40732#S5.SS4.p3.1)\.
- \[26\]K\. Rasul, C\. Seward, I\. Schuster, and R\. Vollgraf\(2021\)Autoregressive denoising diffusion models for multivariate probabilistic time series forecasting\.InInternational Conference on Machine Learning,pp\. 8857–8868\.Cited by:[§I](https://arxiv.org/html/2610.40732#S1.p3.1),[§II\-C](https://arxiv.org/html/2610.40732#S2.SS3.p1.1)\.
- \[27\]A\. Romero, N\. Ballas, S\. E\. Kahou, A\. Chassang, C\. Gatta, and Y\. Bengio\(2015\)Fitnets: hints for thin deep nets\.InInternational Conference on Learning Representations \(ICLR\),Cited by:[§IV\-A](https://arxiv.org/html/2610.40732#S4.SS1.p3.1)\.
- \[28\]D\. B\. Rubin\(1976\)Inference and missing data\.Biometrika63\(3\),pp\. 581–592\.Cited by:[§III\-A](https://arxiv.org/html/2610.40732#S3.SS1.p3.1)\.
- \[29\]L\. Ruff, R\. A\. Vandermeulen, N\. Görnitz, A\. Binder, E\. Müller, K\. Müller, and M\. Kloft\(2020\)Deep semi\-supervised anomaly detection\.InInternational Conference on Learning Representations \(ICLR\),Cited by:[§IV\-C](https://arxiv.org/html/2610.40732#S4.SS3.p2.1)\.
- \[30\]J\. Solis, J\. Lee, and D\. Smith\(2024\)TIMBA: time series imputation with bi\-directional mamba and diffusion\.InProceedings of the International Conference on Machine Learning \(ICML\),Cited by:[§II\-C](https://arxiv.org/html/2610.40732#S2.SS3.p1.1)\.
- \[31\]Y\. Song, P\. Dhariwal, M\. Chen, and I\. Sutskever\(2023\)Consistency models\.InInternational Conference on Machine Learning \(ICML\),Cited by:[§VI\-A](https://arxiv.org/html/2610.40732#S6.SS1.p2.1)\.
- \[32\]Y\. Song, J\. Sohl\-Dickstein, D\. P\. Kingma, A\. Kumar, S\. Ermon, and B\. Poole\(2021\)Score\-based generative modeling through stochastic differential equations\.InInternational Conference on Learning Representations \(ICLR\),Cited by:[§II\-C](https://arxiv.org/html/2610.40732#S2.SS3.p1.1)\.
- \[33\]Y\. Su, Y\. Zhao, C\. Niu, R\. Liu, W\. Sun, and D\. Pei\(2019\)Robust anomaly detection for multivariate time series through stochastic recurrent neural network\.InProceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining,pp\. 2828–2837\.Cited by:[§II\-A](https://arxiv.org/html/2610.40732#S2.SS1.p1.1),[§V\-A](https://arxiv.org/html/2610.40732#S5.SS1.p1.1)\.
- \[34\]Y\. Tang, Y\. Zhao, Y\. Liu, and D\. Pei\(2020\)Joint modeling of local and global temporal dynamics for multivariate time series anomaly detection with partial observations\.InProceedings of the AAAI Conference on Artificial Intelligence,Vol\.34,pp\. 5956–5963\.Cited by:[§II\-A](https://arxiv.org/html/2610.40732#S2.SS1.p1.1)\.
- \[35\]Y\. Tashiro, J\. Song, Y\. Song, and S\. Ermon\(2021\)Csdi: conditional score\-based diffusion models for probabilistic time series imputation\.Advances in Neural Information Processing Systems34,pp\. 24804–24816\.Cited by:[§I](https://arxiv.org/html/2610.40732#S1.p2.1),[§II\-C](https://arxiv.org/html/2610.40732#S2.SS3.p1.1),[§IV\-A](https://arxiv.org/html/2610.40732#S4.SS1.p2.1)\.
- \[36\]P\. Vincent, H\. Larochelle, Y\. Bengio, and P\. Manzagol\(2008\)Extracting and composing robust features with denoising autoencoders\.InProceedings of the 25th international conference on Machine learning,pp\. 1096–1103\.Cited by:[§III\-B](https://arxiv.org/html/2610.40732#S3.SS2.p3.1)\.
- \[37\]H\. Wu, T\. Hu, Y\. Liu, H\. Dong, J\. Wang, and M\. Long\(2023\)TimesNet: temporal 2d\-variation modeling for general time series analysis\.InInternational Conference on Learning Representations \(ICLR\),Cited by:[§I](https://arxiv.org/html/2610.40732#S1.p2.1),[§II\-A](https://arxiv.org/html/2610.40732#S2.SS1.p1.1),[§IV\-A](https://arxiv.org/html/2610.40732#S4.SS1.p1.1)\.
- \[38\]J\. Xu, H\. Wu, J\. Wang, and M\. Long\(2022\)Anomaly transformer: time series anomaly detection with association discrepancy\.InInternational Conference on Learning Representations \(ICLR\),Cited by:[§I](https://arxiv.org/html/2610.40732#S1.p2.1),[§II\-A](https://arxiv.org/html/2610.40732#S2.SS1.p1.1),[§IV\-A](https://arxiv.org/html/2610.40732#S4.SS1.p1.1)\.
- \[39\]X\. Yi, Y\. Zheng, J\. Zhang, and T\. Li\(2016\)ST\-mvl: filling missing values in geo\-sensory time series data\.InProceedings of the 25th International Joint Conference on Artificial Intelligence \(IJCAI\),pp\. 2704–2710\.Cited by:[§III\-A](https://arxiv.org/html/2610.40732#S3.SS1.p3.1)\.
- \[40\]J\. Yoon, D\. Jarrett, and M\. Van der Schaar\(2019\)Time\-series generative adversarial networks\.InAdvances in Neural Information Processing Systems \(NeurIPS\),Vol\.32\.Cited by:[§II\-B](https://arxiv.org/html/2610.40732#S2.SS2.p1.1)\.
- \[41\]S\. Zagoruyko and N\. Komodakis\(2017\)Paying more attention to attention: improving the performance of convolutional neural networks via attention transfer\.InInternational Conference on Learning Representations \(ICLR\),Cited by:[§IV\-D](https://arxiv.org/html/2610.40732#S4.SS4.p3.1)\.
- \[42\]H\. Zhao, Y\. Wang, J\. Duan, C\. Huang, D\. Cao, Y\. Tong, B\. Xu, J\. Bai, J\. Tong, and Q\. Zhang\(2020\)Multivariate time\-series anomaly detection via graph attention network\.InInternational Conference on Data Mining \(ICDM\),pp\. 841–850\.Cited by:[§II\-B](https://arxiv.org/html/2610.40732#S2.SS2.p1.1)\.
- \[43\]B\. Zong, Q\. Song, M\. R\. Min, W\. Cheng, C\. Lumezanu, D\. Cho, and H\. Chen\(2018\)Deep autoencoding gaussian mixture model for unsupervised anomaly detection\.InInternational Conference on Learning Representations \(ICLR\),Cited by:[§I](https://arxiv.org/html/2610.40732#S1.p2.1)\.相似文章
重新思考边缘持续异常检测:在真实工业条件下的基准测试
本文介绍了一个用于工业检测中持续异常检测的统一基准,解决了不现实的评估和边缘部署约束问题,并提出了DINOSaur,一种无需训练的方法,在边缘硬件上以零遗忘和低于100毫秒的推理速度优于现有方法。
扩散检测:用于无监督IC异常检测的生成式扩散模型
提出了首个使用 Diffusion Transformer 进行IC潜在缺陷筛选的无监督异常检测框架,在工业16纳米测试数据上取得了最先进的性能。
NV-Tesseract-AD:用于多变量时间序列异常检测的课程学习增强条件扩散模型
NVIDIA 研究人员提出了 NV-Tesseract-AD,这是一种由课程学习增强、以 Transformer 为骨干网络的条件扩散框架,用于多变量时间序列异常检测。其 F1 分数达到未采用课程学习的基线模型的约 3.7 倍,并在 EasyTSAD 基准测试中展现出强大的零样本迁移能力。
SeT-Diff:面向HPC遥测和时间序列的语义基础模型
SeT-Diff提出了首个面向HPC遥测的基础模型,利用基于语义传感器描述的扩散机制,在插补、预测和虚拟传感等任务上实现零样本泛化,重建任务的MAE达到0.0470。
Stefano Ermon:自回归推理是顺序执行且受内存限制的。扩散模型设计用于映射到GPU——这就是它获胜的原因。
Augment Code将其编码代理后端切换到Stefano Ermon的Mercury 2.5扩散模型,在生产环境中实现了82%的延迟降低和90%的成本削减。文章强调了扩散模型的性能优势以及独立AI基准测试工具的必要性。