arXiv:2610.23765cs.LGOct 2026

Manuscript Offprint

arXiv:2610.23765

Universal Semantic Enhancement for Weakly Supervised Anomaly Detection

Siyu Zhou, Yuqin Xie, Hao Yuan, Yingjie Zhou

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Siyu Zhou 1^{1}, Yuqin Xie 2∗^{2*}, Hao Yuan 2^{2}, and Yingjie Zhou 2^{2}

1^{1} Department of Computer Science and Engineering, The Hong Kong University of Science and Technology, Hong Kong

szhoubx@connect.ust.hk

2^{2} College of Computer Science, Sichuan University, China

xyqyear@gmail.com, yuanhao0607@126.com, yjzhou@scu.edu.cn

Abstract. Weakly supervised anomaly detection on tabular data is an essential task in many label-scarce applications, since tabular data is widely encountered and it is commonly observed in practice that only a limited number of labeled anomalies are available alongside abundant unlabeled samples. Most existing methods try to learn features that capture the inherent distribution patterns in the target domain. However, such features often struggle to provide a complete description of possible abnormal characteristics and are highly susceptible to overfitting the extremely scarce labels. To address this challenge, we propose a weakly supervised anomaly detection method based on universal semantic enhancement for tabular data, which fuses the universal knowledge from a pre-trained tabular foundation model with the domain-specific knowledge learned on the target dataset. The two types of knowledge are naturally complementary: universal semantics describe the common patterns of tabular data across domains, while the domain-specific features capture the inherent distributions of normal and anomalous behaviors in the target dataset. A prototype-conditioned modulation mechanism is then designed to effectively integrate the two types of features, allowing them to reinforce each other for improved anomaly detection. Extensive experiments on public datasets show that the proposed method outperforms competitive methods when only eight labeled anomalies are available in the training procedure. Code is available at: https://github.com/Simonzsy/USE-AD.

Keywords: Weakly Supervised Anomaly Detection · Tabular Data · Universal Semantics · Feature Fusion.

1 Introduction

Tabular data is one of the most prevalent data forms in real-world applications, and is widely used in areas such as financial risk management, medical diagnosis, and equipment monitoring [7,18][7,18]. In these areas, detecting anomalies, i.e.,

  • Corresponding author.

S. Zhou et al.

the records that deviate from the majority of the data, makes it possible to discover potential risk events such as fraudulent transactions and intrusion behaviors in time, and to reduce the corresponding losses [18]. Building an effective deep anomaly detection model usually requires a large number of labeled samples to guide the training procedure. However, anomalous events occur rarely in practice, and accurately annotating them requires extensive expert knowledge of the domain, so that collecting a sufficient number of labeled anomalies is extremely expensive [18,12]. As a result, practical scenarios usually provide only a small number of labeled anomalies together with abundant unlabeled samples. Weakly supervised anomaly detection has therefore attracted considerable attention, since it learns detection models from exactly such data and does not rely on large-scale annotation [12,13,11].

To make the best use of the scarce labels, most existing weakly supervised anomaly detection methods for tabular data train a feature encoder together with an anomaly scoring function on the target dataset [12,21,11,26]. The features learned in this way reflect the inherent distribution patterns of a single domain, namely the domain priors carried by the few labeled anomalies and the statistical patterns of normal behaviors in historical data. However, anomalies may appear in highly diverse forms, and the features learned from a single domain can hardly give a complete description of these possible forms; in addition, with extremely few labeled anomalies, the learned model tends to overfit these limited samples. Recently, pre-trained tabular foundation models [8] have shown that universal semantics of tabular data can be learned from large-scale and diverse data, and the resulting sample representations describe the common patterns shared across domains. Such universal knowledge naturally complements the domain-specific knowledge learned on the target dataset, while how to effectively combine the two types of knowledge for weakly supervised anomaly detection remains largely unexplored. Motivated by this observation, this paper studies how to enhance weakly supervised anomaly detection with universal semantics on tabular data.

In this paper, we propose a weakly supervised anomaly detection method for tabular data based on universal semantic enhancement. The core idea is to introduce the cross-domain universal semantics contained in a pre-trained tabular foundation model into the domain-specific detection model, so that the universal knowledge and the domain-specific knowledge complement each other. The two views are complementary: the universal semantic features provide a cross-domain prior that helps find anomalies hard to discover from single-domain data, while the domain-discriminative features capture the normal and anomalous distributions of the target dataset. Specifically, the proposed method first uses a pre-trained tabular foundation model to extract the universal semantic features for each input sample. Then, an autoencoder-based feature extractor is trained on the target dataset to obtain the domain-discriminative features, which describe how a sample deviates from the normal patterns of this domain. Since the two types of features come from different feature spaces and differ in both distribution and semantic level, directly concatenating them tends to cause mutual interference, while fusion modules with many extra parameters are hard to train reliably with the scarce labels. A prototype-conditioned modulation mechanism is therefore designed, which builds the fusion signal on class prototypes and adaptively integrates the two types of features for each sample; on top of the integrated features, an anomaly scoring network is trained with a weakly supervised loss. Experiments on various public datasets show that the proposed method outperforms competitive methods, especially when only a few labeled anomalies are available in the training procedure.

The main contributions of this paper are summarized as follows.

– We introduce universal semantic enhancement into weakly supervised anomaly detection on tabular data. By bringing in the cross-domain knowledge from a pre-trained tabular foundation model, the proposed method addresses the limitation that existing methods rely only on the priors of a single domain, and allows the universal and domain-specific knowledge to complement each other.

– We design a prototype-conditioned modulation mechanism, which seamlessly integrates the universal semantic features and the domain-discriminative features for each sample, and can be trained stably even when the labeled anomalies are extremely scarce.

– We conduct extensive experiments on public datasets, and the results show that the proposed method outperforms competitive methods when only a few labeled anomalies are available. Ablation studies further verify the effectiveness of each component.

The rest of this paper is organized as follows. Section 2 reviews the related works. Section 3 presents the proposed method in details. Section 4 reports the experimental results and analyses, and Section 5 concludes this paper.