Manuscript Offprint

arXiv:2610.39117

Uncertainty-Guided Cross-Modal Alignment for Diffusion-Based IoT Intrusion Detection

Mahdi Arab Loodaricheh, Anita Raja, Mohammad Hossein Manshaei

Abstract

Diffusion models evolve noisy states toward a learned data distribution, so their sampling behavior depends on the geometry of the representation in which denoising occurs. This dependence is especially important for multimodal data: independently trained encoders can map synchronized views to incompatible latent regions, while uniform alignment can let an uncertain view distort the shared geometry. To address this gap, we introduce a novel reliability-guided alignment rule that uses normalized VAE posterior variance to control directional cross-modal influence before diffusion training. We study this issue in minority-attack generation for imbalanced Internet-of-Things intrusion detection. Tabular flow attributes, a DeepInsight image, and a packet sequence are encoded by modality-specific variational autoencoders. Per-modality normalized VAE posterior variances provide bounded, sample-specific weighting signals in an asymmetric stop-gradient alignment objective. We use these quantities as heuristic encoder-derived reliability proxies rather than calibrated probabilistic uncertainties. The full modality-specific latent means obtained after alignment fine-tuning are standardized and modeled jointly by a class-conditional EDM; a second-order sampler then generates paired attack-conditioned latent blocks for the three decoders. In controlled experiments on TON-IoT, uncertainty-aware alignment obtains the highest mean precision, recall, density, and coverage among three diffusion variants. Augmenting only the training split yields ROC-AUC 0.9515, PR-AUC 0.8954, balanced accuracy 0.8395, and attack-class F1 0.7940 on an untouched real test set. Among the two variants with matched alignment fine-tuning, posterior-variance-based weighting improves both tabular generative fidelity and downstream detection relative to uniform weighting.

Keywords: conditional diffusion, multimodal latent alignment, uncertainty, class imbalance, IoT intrusion detection

1. Introduction

Diffusion-based generation transports a simple noisy distribution toward a structured data distribution. In latent diffusion, this transport inherits its geometry from the encoders: latent scales and correspondences determine what the denoiser must learn and how a numerical sampler traverses the state space. Tabular diffusion benefits from compact latent representations [8, 12], while MAGE-ID couples tabular flows and image transformations through a joint latent diffusion prior [9]. Adding packet sequences creates a three-view constraint: every generated block must describe the same event.

In imbalanced IoT intrusion detection, random oversampling adds no observations and SMOTE is limited to local interpolation [2], whereas conditional generation can model the minority distribution.

© M.A. Loodaricheh, A. Raja & M.H. Manshaei.

Independent encoders do not guarantee synchronization, whereas uniform alignment assumes every view is equally informative for every sample. A noisy packet sequence or ambiguous image can then pull reliable representations toward an uncertain target, compounding the modality imbalance observed in multimodal VAEs [5]. Reliability weighting is useful in multimodal fusion [4, 13]; here it shapes the state space on which conditional denoising is learned.

In our method, modality-specific VAEs first encode the three views. The novel technical component is a bounded, sample-dependent asymmetric alignment objective in which each target modality's normalized VAE posterior-variance proxy controls its influence on the other encoders. We use mean VAE posterior variance as a heuristic, encoder-derived reliability proxy and normalize it separately for each modality. The resulting bounded, sample-specific weights control an asymmetric stop-gradient alignment objective. The full modality-specific latent means are then standardized, concatenated, and modeled by a class-conditional EDM [6]. The uniform and posterior-variance-weighted variants receive identical alignment fine-tuning and differ only in their target weights; their comparison therefore evaluates the effect of the weighting rule.