Multi-class anomaly detection is more efficient and less resource-consuming in industrial anomaly detection scenes that involve multiple categories or exhibit large intra-class diversity. However, most industrial image anomaly detection methods are developed for one-class anomaly detection, which typically suffer significant performance drops in multi-class scenarios. Research specifically targeting multi-class anomaly detection remains relatively limited. In this work, we propose a powerful unified normalizing flow for multi-class anomaly detection, which we call UniFlow. A multi-cognitive visual adapter (Mona) is employed in our method as the feature adaptation layer to adapt image features for both the multi-class anomaly detection task and the normalizing flow model, facilitating the learning of general knowledge of normal images across multiple categories. We adopt multi-cognitive convolutional networks with high capacity to construct the coupling layers within the normalizing flow model for more effective multi-class distribution modeling. In addition, we employ a multi-scale feature fusion module to aggregate features from various levels, thereby obtaining fused features with enhanced expressive capabilities. UniFlow achieves a class-average image-level AUROC of 99.1% and a class-average pixel-level AUROC of 98.0% on MVTec AD, outperforming the SOTA multi-class anomaly detection methods. Extensive experiments on three benchmark datasets, MVTec AD, VisA, and BTAD, demonstrate the efficacy and superiority of our unified normalizing flow in multi-class anomaly detection.
Multimodal representation aims to integrate information from multiple modalities to improve overall performance. Recent works utilizing pairwise interactions have been proposed to deal with the long-range inter-modal and intra-modal dependencies in modeling multimodal data. However, these works usually feature high model complexity, and they are not robust to noisy multimodal data. To address these problems, we propose a novel multimodal representation method that learns private and hub representations of modalities. These representations and their connections form a star graph, a basis for Star Graph-based Interaction (SGI). SGI not only captures the long-range dependencies in multimodal data but also has two natural properties. Firstly, the number of modal interactions increases linearly with the number of modalities, which is computationally efficient compared with the square increase rate of pairwise interactions in previous works. Secondly, the indirect modal interactions through the hub representation in SGI (rather than the direct pairwise interactions between modalities) ensure the model's robustness to noisy modalities. Experiments on five benchmark datasets demonstrate that our new SGI representation (SGIR) achieves state-of-the-art performance on various multimodal tasks, and our qualitative and quantitative analyses show the excellent generalization ability of SGIR. Further experiments reveal that SGIR still outperforms widely used baseline models when modalities are corrupted by low levels of noise.