Universal Semantic Enhancement for Weakly Supervised Anomaly Detection
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Universal Semantic Enhancement for Weakly Supervised Anomaly Detection on Tabular Data Siyu Zhou1 , Yuqin Xie2⋆ , Hao Yuan2 , and Yingjie Zhou2
arXiv:2610.23765v1 [cs.LG] 16 Oct 2026
1
Department of Computer Science and Engineering, The Hong Kong University of Science and Technology, Hong Kong szhoubx@connect.ust.hk 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]. In these areas, detecting anomalies, i.e., ⋆
Corresponding author.
2
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 crossdomain 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
Universal Semantic Enhancement for Weakly Supervised Anomaly Detection
3
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.
2
Related Work
2.1
Weakly Supervised Anomaly Detection
Weakly supervised anomaly detection methods learn detection models from a small set of labeled anomalies alongside abundant unlabeled data. DevNet [12] enforces a statistical deviation loss between labeled anomalies and Gaussian reference priors; Deep SAD [21] extends Deep SVDD [20] to a semi-supervised hypersphere objective; FEAWAD [11] enriches the scoring network with three complementary signals derived from a deep autoencoder. More recently, PReNet [13] amplifies the effective supervision by learning pairwise relation features over labeled pairs, while RoSAS [26] addresses label scarcity by generating continuoustarget pseudo-anomalies via interpolation between labeled anomalies and unlabeled samples. Despite these advances, all these methods learn representations only from the target dataset, performing poorly on distributions outside the target data. In the field of visual anomaly detection, researchers have attempted to address this issue using pre-trained models. PatchCore [19] and WinCLIP [9], pre-trained on ImageNet [3] and CLIP [17] backends respectively, have outperformed methods trained only on the target data, showing that cross-domain
4
S. Zhou et al.
semantic knowledge can be transferred to anomaly detection. However, how to effectively utilize this cross-domain universal semantic knowledge in anomaly detection on tabular data remains an unexplored direction. Our approach aims to fill this gap by leveraging the universal semantics of a pre-trained model on tabular data to enhance the anomaly detection capabilities of domain-specific models. 2.2
Pre-trained Knowledge Integration and Feature Fusion
Combining complementary knowledge from heterogeneous sources is a broad strategy across diverse tasks. In vision-language modelling, CLIP [17] demonstrates that visual and linguistic features encode orthogonal aspects of the same input, enabling zero-shot generalization that neither modality achieves alone. In natural language processing, augmenting pre-trained representations such as BERT [4] with domain-specific features has become standard for low-resource tasks, where the pre-trained encoder supplies cross-domain priors that compensate for scarce labels [16]. For feature fusion, feature-wise linear modulation (FiLM) [14] achieves cross-modal conditioning via feature-wise affine transformation; more expressive designs, including gated multimodal unit (GMU) [1], cross-attention [24], and DCN v2 [25] model higher-order interactions at the cost of substantially more trainable parameters. Prototypical networks [22] offer a complementary perspective: anchoring representation learning to non-trainable class prototype vectors enables effective few-shot learning without extensive parameter optimization. At inference time, zero-parameter ensemble methods such as predictive dynamic fusion (PDF) [5] combine complementary prediction scores by weighting each view by its confidence and cross-modal consistency. These existing parameterized fusion modules, however, often fail under extreme label scarcity because a handful of labeled anomalies provides insufficient signal to reliably optimize additional parameters. Our method bridges this gap by grounding the fusion signal in fixed class prototypes, achieving per-sample adaptive modulation without trainable conditioning vectors.
3
Methods
3.1
Problem Formulation
Let X = {xi }ni=1 ⊂ Rd be a tabular dataset, where xi ∈ Rd is the feature vector of the i-th instance and yi ∈ {0, 1} denotes its ground-truth label (yi = 1 for anomaly, yi = 0 for normal). In the weakly supervised setting, only a small subset of anomalous samples M = {(xj , yj ) | yj = 1} with |M| ≪ n is labeled. The remaining n − |M| samples form the unlabeled set U , which is predominantly normal but may contain a small fraction of undetected anomalies. The goal is to learn a function s : Rd → R that maps each instance to an anomaly score, assigning labeled anomalies xp ∈ M distinctly higher scores than unlabeled samples xq ∈ U, so that the two are clearly separated in the score space.
Universal Semantic Enhancement for Weakly Supervised Anomaly Detection Training-time only
(Inference)
Inference-time only
ProtoFiLM-Dynamic
Shared pipeline Universal Semantics (TabPFN)
Tabular Data
(Training)
Label Interpolation Anomaly
5
Distance Computation
Domain-specific (FEAWAD)
Unlabeled
Per-sample Soft Attention
Score Ensemble
FiLM Modulation Concat
hidden embedding normalized residual reconstruction error
Scoring Network
Interpolated Target 0 Anomaly
Unlabeled
Fig. 1. Overview of the proposed framework. Universal semantic features ti are extracted by the frozen pre-trained model, and domain-specific features (hi , ri , ei ) by the AutoEncoder. Our ProtoFiLM-Dynamic fuses hi and ti via per-sample prototype attention to produce the fused representation fi . The scoring network takes (ri , fi , ei ) as input and outputs the anomaly score si . During training, label interpolation between a labeled anomaly and an unlabeled sample with coefficient α generates a pseudo-sample xmix whose score is supervised toward the interpolated soft target αa (a is the score margin); at inference, a zero-parameter score ensemble combines the anomaly score with the pre-trained model’s class probability pt into the final score sfinal .
3.2
Framework Overview
As shown in Figure 1, our framework consists of four components. (1) Universal Semantic Feature Extraction: a frozen pre-trained model on tabular data generates cross-domain embeddings ti ∈ R512 without any gradient updates. (2) Domain Discriminative Feature Extraction: a reconstructionbased feature extractor captures the domain specific knowledge of the target dataset and produces a hidden embedding hi , a normalized residual ri , and a reconstruction error ei . (3) ProtoFiLM-Dynamic: our prototype-conditioned modulation module adaptively encodes hi via per-sample soft attention over class prototypes, producing the fused representation fi ; during training, a label interpolation strategy generates pseudo-samples xmix with continuous supervision targets between labeled anomalies and unlabeled data, which densifies the scarce supervision signal. (4) Anomaly Scoring Network: a three-layer MLP takes (ri , fi , ei ) as input and outputs the anomaly score si ; at inference, a zeroparameter score ensemble combines this score with the pre-trained model’s class probability pt according to their confidence and consistency. 3.3
Module Design
Universal Semantic Features. We choose TabPFN [8], a prior-data-fitting network that is meta-trained on a large number of synthetic tabular classification tasks sampled from Bayesian priors. During testing, it generates calibrated class probabilities by learning context by treating the entire training set as a cue,
6
S. Zhou et al.
without any gradient updates. We use its internal representation as a frozen feature extractor: for each sample xi , we extract ti = TabPFN(xi | X ) ∈ R512 ,
(1)
where X denotes the full training set used as in-context examples for TabPFN. Because TabPFN has accessed distributions far exceeding the scope of any single target dataset, ti encodes cross-domain statistical regularities, such as which feature combinations are statistically anomalous in multiple domains. More importantly, TabPFN is completely frozen throughout all training phases: its only overhead is a forward propagation of the training set before joint training begins to cache ti , which reduces our training overhead. Domain Discriminative Features. TabPFN provides universal semantic context; complementarily, we need a feature extractor that exposes how each sample deviates from the structural regularities of the target dataset. We adopt the reconstruction-based feature extraction module from FEAWAD [11], which is built upon a symmetric encoder–decoder pair: the encoder fe : Rd → R64 compresses each sample into a compact structural embedding through two fully connected layers (d → 128 → 64), and the decoder fd : R64 → Rd mirrors it to reconstruct the input through two fully connected layers (64 → 128 → d). Pretrained on the predominantly normal unlabeled data, the extractor reconstructs normal patterns accurately while producing large reconstruction errors on samples that deviate from them, giving it an inherent capability to expose domainspecific anomalies. From the input xi and the reconstructed x̂i = fd (fe (xi )), we extract three features: hi = fe (xi ) ∈ R64 , x̂i − xi ∈ Rd , ri = ∥x̂i − xi ∥2 ei = ∥x̂i − xi ∥2 ∈ R.
(2) (3) (4)
Each feature plays a unique role: the hidden embedding hi carries a compressed structural representation of the sample; the normalized residual ri encodes the direction of the reconstruction bias, providing information about the anomaly type; and the scalar error ei quantifies the magnitude of the bias and is injected as a persistent signal into each layer of the scoring network. Together, these three features provide complementary domain-specific information that may not be fully captured by the semantic representations derived from TabPFN. ProtoFiLM-Dynamic Fusion While universal semantic and domain-specific features are complementary, effectively fusing them under extremely scarce supervision remains a critical challenge. The standard FiLM [14] applies a global affine transformation to one feature space and conditions it with another feature space, using a single conditional vector shared by all samples. This approach works well in data-rich scenarios but its performance degrades for anomaly detection under severely limited anomaly supervision. First, before joint training, we compute two class prototype vectors [22] in TabPFN embedding space. The anomaly prototype ca is the mean embedding
Universal Semantic Enhancement for Weakly Supervised Anomaly Detection
7
of labeled anomalies in M; the normal prototype cn is the mean of a random subsample U0 ⊂ U, serving as a proxy for the normal class: 1 X ca = tj ∈ R512 , (5) |M| j∈M
1 X tj ∈ R512 . cn = |U0 |
(6)
j∈U0
Both prototypes are stored as non-trainable buffers throughout joint training. Second, for each sample we compute squared Euclidean distances to both prototypes in TabPFN space and convert them to soft mixing coefficients via softmax: [αin , αia ] = softmax([−∥ti − cn ∥22 , −∥ti − ca ∥22 ]),
(7)
where αin and αia are the soft attention weights toward the normal and anomaly prototypes, respectively. We then form the per-sample conditioning vector as their convex combination δ i = αin cn + αia ca ∈ R512 . Samples close to the anomaly prototype receive αia ≈ 1; clearly normal samples receive αin ≈ 1. Third, two zero-initialized linear layers (Wγ , Wβ ∈ R64×512 ) map δ i to perchannel scale and shift parameters γ i = Wγ δ i and β i = Wβ δ i , which modulate the autoencoder hidden embedding: h′i = (1 + γ i ) ⊙ hi + β i ,
(8)
where ⊙ denotes element-wise multiplication. Finally, we get the fused representation fi = [h′i ; ti ] ∈ R576 . Since δ i is a convex combination of fixed non-trainable vectors, gradient flow into Wγ and Wβ remains bounded and well-conditioned regardless of label count, which directly avoids gradient starvation. Anomaly Scoring Network. The scoring network receives the normalized residual ri , the fused representation fi , and the reconstruction error scalar ei , and generates anomaly scores. The reconstruction error is concatenated in every hidden layer, ensuring that this strong geometric signal remains visible throughout the computation regardless of how the preceding layers transform ri and fi . z1 = ReLU W1 [ri ; fi ; ei ] ∈ R256 , (9) 32 z2 = ReLU W2 [z1 ; ei ] ∈ R , (10) si = W3 [z2 ; ei ] ∈ R,
(11)
where all weight matrices are Xavier-initialized [6]. The scalar output si is used directly in the deviation loss during training and, at inference, mapped to the open interval (0, 1) through the sigmoid function for score fusion. 3.4
Training and Inference
Training proceeds in three consecutive phases, as summarized in Algorithm 1. In the joint-training phase, each mini-batch B is class-balanced, containing an
8
S. Zhou et al.
equal number of normal samples drawn from the unlabeled set U and anomalous samples resampled from the labeled anomalies M (with replacement, since only |M| are available). The model is trained by minimizing the loss averaged over each batch, with the loss per-sample being: L = Ld + Le + λ · Lrosas .
(12)
Part of our objective is inspired by the loss proposed in FEAWAD [11]. For a sample xi with label yi , the deviation loss Ld drives the anomaly score si toward 0 for a normal sample and above the margin a=5 for a labeled anomaly, and the reconstruction constraint Le mirrors this objective on the reconstruction error ei : Ld = (1 − yi )|si | + yi max(0, a − si ), (13) Le = (1 − yi )ei + yi max(0, a − ei ).
(14)
The RoSAS interpolation loss [26] Lrosas densifies the supervision signal with continuous-target pseudo-samples, and is defined on the pairs of anomaly and unlabeled samples formed within the batch B, and each pair is interpolated into exactly one pseudo-sample xmix . Specifically, for an anomalous sample xp we pair it one-to-one with a distinct normal sample xq from the unlabeled half of B, draw an independent coefficient α ∼ Uniform(0, 1), and blend the two in feature space into xmix : xmix = (1−α)xq + αxp ,
(15)
whose score is regressed toward the soft target αa: Lrosas = |s(xmix ) − αa|,
(16)
where s(xmix ) is obtained by passing xmix through the same encoder–fusion– scoring pipeline. Since αa is a continuous soft label rather than a constant, these pseudo-samples populate the whole score interval between the two endpoints {0, a} that (Ld + Le ) supervises, which encourages a smooth scoring function and mitigates overfitting under extreme label scarcity. Each pseudo-sample thus corresponds one-to-one to a sample of B and contributes an independent regression term, sharing the network parameters with the batch samples it is built from but without interacting with either of them in the loss. Inference-Time Score Fusion. At inference, two complementary anomaly signals are available: the deviation-based score sd = σ(s(x)/a) ∈ [0, 1], where σ(·) is the sigmoid function and a is the score margin, and the TabPFN class probability pt ∈ [0, 1]. We apply predictive dynamic fusion (PDF) [5] as an auxiliary zeroparameter ensemble, which weights each signal by its own prediction confidence and cross-modal consistency: wd ∝ |sd −0.5| + (1−|sd −pt |),
(17)
wt ∝ |pt −0.5| + (1−|sd −pt |), wd sd + wt pt , sfinal = wd + wt
(18) (19)
Universal Semantic Enhancement for Weakly Supervised Anomaly Detection
9
Algorithm 1 Three-Phase Training Procedure Input: Dataset X , labeled anomalies M, hyperparameter λ Output: Trained parameters of the whole model 1: Phase 1: Autoencoder Pretraining (100 epochs): 2: for each batch B ⊂ U do P 2 1 3: Update autoencoder by minimizing Lae = |B| i∈B ∥x̂i − xi ∥2 4: end for 5: Phase 2: Feature Caching: 6: Compute and cache {ti } ← TabPFN(X ) 7: Compute prototypes ca from M, cn from U0 8: Phase 3: Joint Training (30 epochs): 9: for each class-balanced batch B do 10: Extract (hi , ri , ei ) from autoencoder; retrieve ti from cache 11: Compute δ i via prototype soft attention (Eqs. 5–7) 12: Modulate hi → h′i via FiLM (Eq. 8); form fi 13: Compute score si via scoring network 14: For each anomaly in B, pair it with a distinct normal sample in B; draw α ∼ Uniform(0, 1), build xmix (Eq. 15) and score it 15: Compute L = Ld + Le + λ · Lrosas , averaged over B 16: Update autoencoder, Wγ , Wβ , scoring network via Adam 17: end for
where ∝ denotes proportionality: the two unnormalized weights are defined up to a common factor that cancels when they are normalized by wd + wt in sfinal , so only their relative magnitude matters. Here |s − 0.5| measures prediction confidence as the distance from the decision boundary, and (1 − |sd − pt |) rewards cross-modal consistency between the two views. This fusion introduces no additional training cost and serves as a lightweight complement to the learned framework. Together, the four components and three-phase training procedure form a cohesive framework that systematically addresses cross-domain feature fusion and gradient starvation under extreme label scarcity in weakly supervised anomaly detection on tabular data.
4
Experiments
4.1
Experimental Setup
We evaluated our model using the ADBench benchmark [7]. ADBench is a standardized dataset containing 57 real-world tabular anomaly detection datasets from various domains, including cyber intrusion, medical diagnosis, and financial fraud. Consistent with previous research, we excluded datasets with fewer than 30 anomalies, resulting in 42 datasets for evaluation. The 42 datasets span five application domains: medical diagnosis (annthyroid, breastw, Cardio, Cardiotocography, Hepatitis, Lymphography, mammography, Pima, thyroid, vertebral, WBC, WDBC, WPBC), network intrusion (HTTP, InternetAds, SMTP),
10
S. Zhou et al.
image and signal recognition (ALOI, landsat, letter, mnist, optdigits, PageBlocks, pendigits, satellite, satimage-2, speech, Waveform), financial fraud and spam (campaign, SpamBase, Stamps), and other scientific and industrial data (cover, fault, glass, Ionosphere, magic.gamma, musk, shuttle, skin, Wilt, vowels, wine, yeast). Dataset sizes range from a few hundred to tens of thousands of samples, with anomaly ratios between 1% and 35%. Each dataset was stratified and split into training and test sets at an 80/20 ratio. The unlabeled training set contains 2% undetected anomalies, reflecting the practical reality that the unlabeled data is not purely normal but is inevitably contaminated with a small fraction of anomalies. In the training set, we fed the model only |M| = 8 labeled anomalies, which is a stricter setting than the commonly used |M| = 30 [12,11,13]. All experiments were repeated 10 times with different random seeds, and the mean AUROC and mean AUPRC values are reported. All models ran on NVIDIA RTX 3090 GPUs and were trained using the Adam optimizer [10] (β1 = 0.9, β2 = 0.999, ε = 10−8 , lr = 10−3 ). The autoencoder was pre-trained for 100 epochs, and the whole framework is jointly optimized for 30 epochs. We compare against three categories of baselines. (1) Traditional ML classifiers: Random Forest (RF) [2] and CatBoost [15] are trained as supervised binary classifiers, treating the 8 labeled anomalies and all unlabeled training samples as positive and negative classes respectively. (2) Deep weakly supervised methods: DevNet [12] learns an anomaly scoring function via a deviation loss with a Gaussian prior; DeepSAD [21] extends a hypersphere objective to the semi-supervised setting; FEAWAD [11] enriches the scoring network with three autoencoder-derived feature signals; PReNet [13] amplifies supervision by learning pairwise relation features over labeled pairs. (3) Foundation model baseline: standalone TabPFN [8] is applied directly as an in-context classifier. 4.2
Performance Comparison with Competing Methods
We evaluate our framework against 7 baselines on all 42 datasets with |M| = 8 labeled anomalies, covering three categories as stated in Section 4.1. Tables 1 and 2 report per-dataset AUROC and AUPRC on 20 representative datasets. Tables 1 and 2 show that our method achieves the best average rank on both AUROC (1.1) and AUPRC (1.6), and this ranking advantage also holds on the full 42-dataset average (1.1 / 1.5). The two most informative reference points are the individual components of our framework: FEAWAD, relying solely on domain-specific features, ranks 5.6 on both metrics, showing that single-domain representations are insufficient under extreme label scarcity; while TabPFN, relying solely on universal semantics, already achieves rank 2.1 / 1.7, substantially better than all domain-only methods. Our method surpasses both, confirming that the two knowledge sources are genuinely complementary. The benefit is most pronounced on datasets where anomalies occupy semantically coherent regions in TabPFN space: InternetAds, Landsat, and Fault yield the largest gains over TabPFN (+0.0296, +0.0119, +0.0202 AUROC respectively), while Cover, Stamps, and Lymphography see our method lead on both metrics simultaneously. The one exception is Speech, where TabPFN outperforms our method
Universal Semantic Enhancement for Weakly Supervised Anomaly Detection
11
Table 1. Per-dataset AUROC on 20 representative ADBench datasets (|M| = 8, 10 runs). Bold = best, underline = second best. OOM = GPU out of memory. Avg. Rank (20) is computed over the 20 datasets shown, and Avg. Rank (42) over all 42 evaluated datasets. Dataset ALOI Campaign Cardio Cardiotocography Fault Hepatitis InternetAds Landsat Letter Lymphography Mammography Pima Cover SpamBase Speech Stamps Vertebral Waveform WPBC Yeast Avg. Rank (20) Avg. Rank (42)
RF 0.5130 0.5323 0.9256 0.8212 0.6519 0.8385 0.7989 0.6864 0.6692 0.9776 0.6354 0.6813 OOM 0.8395 0.4951 0.9476 0.7613 0.6759 0.5038 0.5444 6.4 6.4
CatBoost 0.5270 0.8741 0.9722 0.9239 0.7366 0.8154 0.8278 0.8385 0.7487 0.9724 0.9251 0.7715 OOM 0.9185 0.6083 0.9602 0.8258 0.9087 0.5968 0.6073 3.7 3.6
DevNet 0.5106 0.5868 0.8578 0.8060 0.5863 0.7718 0.7279 0.7293 0.5758 0.9241 0.8058 0.6021 0.8388 0.8030 0.5791 0.9694 0.7996 0.6915 0.6799 0.5666 6.5 6.0
FEAWAD 0.5187 0.5893 0.9469 0.8171 0.6286 0.7000 0.7049 0.7376 0.7745 0.9414 0.8630 0.6249 0.7268 0.8343 0.6174 0.9298 0.8147 0.8249 0.6319 0.5762 5.6 5.5
PReNet 0.4953 0.6809 0.9333 0.8659 0.6086 0.7846 0.6982 0.7412 0.7426 0.9897 0.8906 0.6126 0.6806 0.8949 0.5504 0.9723 0.8504 0.8265 0.7047 0.6261 4.9 5.1
DeepSAD 0.5388 0.6329 0.9545 0.8709 0.7574 0.6820 0.8206 0.8142 0.9195 0.9138 0.8591 0.6902 0.9412 0.7749 0.4730 0.9481 0.7369 0.8187 0.4921 0.6113 5.3 5.1
TabPFN 0.6098 0.8570 0.9870 0.9340 0.7624 0.8564 0.8587 0.8724 0.9455 0.9896 0.9262 0.7731 0.9984 0.9377 0.6250 0.9814 0.8833 0.9316 0.7242 0.6202 2.1 2.3
Ours 0.6466 0.8668 0.9964 0.9424 0.7826 0.8827 0.8883 0.8843 0.9588 0.9961 0.9386 0.8077 0.9995 0.9453 0.6104 0.9914 0.9091 0.9475 0.7385 0.6494 1.1 1.1
Table 2. Per-dataset AUPRC on 20 representative ADBench datasets (|M| = 8, 10 runs). Bold = best, underline = second best. OOM = GPU out of memory. Avg. Rank (20) is computed over the 20 datasets shown, and Avg. Rank (42) over all 42 evaluated datasets. Dataset ALOI Campaign Cardio Cardiotocography Fault Hepatitis InternetAds Landsat Letter Lymphography Mammography Pima Cover SpamBase Speech Stamps Vertebral Waveform WPBC Yeast Avg. Rank (20) Avg. Rank (42)
RF 0.0350 0.1431 0.8109 0.6910 0.5106 0.6221 0.6047 0.4440 0.1897 0.8123 0.1848 0.5283 OOM 0.8005 0.0216 0.8114 0.4531 0.1021 0.2823 0.3988 6.7 6.6
CatBoost 0.0360 0.4592 0.8523 0.7978 0.6175 0.5961 0.6932 0.6167 0.2229 0.7499 0.5355 0.6387 OOM 0.9121 0.0581 0.8411 0.5357 0.3308 0.3841 0.4503 4.3 3.9
DevNet 0.0386 0.1860 0.7716 0.6978 0.4954 0.6239 0.5681 0.5236 0.2377 0.7302 0.4172 0.4873 0.2744 0.7648 0.0745 0.7894 0.5475 0.2933 0.4815 0.4505 5.9 5.2
FEAWAD 0.0354 0.1886 0.8535 0.6567 0.5305 0.4598 0.5818 0.5517 0.3141 0.8152 0.4485 0.5036 0.0438 0.7973 0.1061 0.7240 0.5179 0.3470 0.4447 0.4426 5.6 5.4
PReNet 0.0347 0.2261 0.8541 0.7333 0.5175 0.5597 0.5781 0.4897 0.2597 0.8594 0.4678 0.5075 0.0606 0.8849 0.0926 0.8033 0.6253 0.3486 0.4906 0.4664 4.7 4.9
DeepSAD 0.0429 0.1949 0.8069 0.7385 0.6036 0.4396 0.6476 0.5888 0.5925 0.6420 0.3605 0.5541 0.6449 0.7112 0.0546 0.6286 0.5013 0.3425 0.2814 0.4475 5.7 5.5
TabPFN 0.0814 0.4173 0.9151 0.8271 0.6314 0.7078 0.7317 0.6805 0.6721 0.8594 0.5662 0.6466 0.8501 0.9328 0.1099 0.8907 0.7248 0.4688 0.5408 0.4698 1.7 2.3
Ours 0.0697 0.4419 0.9204 0.8375 0.6050 0.7143 0.7053 0.6171 0.6253 0.9605 0.4700 0.6624 0.9643 0.9335 0.1033 0.9363 0.6962 0.4721 0.5188 0.4702 1.6 1.5
12
S. Zhou et al. RF
CatBoost
AUROC
ALOI 0.72
0.96
0.66
0.88
0.60
0.80
0.54
0.72
0.48
815 30
60
120
Number of Known Anomalies
FEAWAD
PReNet
DeepSAD
HTTP
815 30
60
120
0.960
0.8
0.960
0.945
0.7
815 30
60
120
Number of Known Anomalies
0.75
0.9
0.88
0.09
0.50
0.8
0.80
0.06
0.25
0.7
0.72
0.6
0.64
815 30
60
120
Number of Known Anomalies
0.00
815 30
60
120
Number of Known Anomalies
815 30
60
120
Number of Known Anomalies
815 30
60
120
Number of Known Anomalies 0.96
0.03
0.9
0.975
0.930
WBC
1.0
0.975
1.0
0.12
Ours
0.990
0.990
Number of Known Anomalies
TabPFN
Stamps
1.00
0.15
AUPRC
DevNet
Cover
0.6
815 30
60
120
815 30
60
120
Number of Known Anomalies 0.8 0.7 0.6 0.5
815 30
60
120
Number of Known Anomalies
Number of Known Anomalies
Fig. 2. AUROC (top) and AUPRC (bottom) vs. number of labeled anomalies |M| on five representative datasets. Ours and TabPFN are shown with solid thick lines; all other baselines are shown with semi-transparent dashed lines.
on both metrics: Speech anomalies lack stable semantic coherence, so prototype conditioning could introduce a misleading modulation signal under extreme label scarcity, which is a known limitation of prototype-based designs under high intra-class variability [22]. 4.3
Label Efficiency
To investigate how performance varies with the number of available labeled anomalies, we evaluate all methods with |M| ∈ {8, 15, 30, 60, 120} on five representative datasets. All other settings follow Section 4.1. Figure 2 reports perdataset AUROC (top row) and AUPRC (bottom row). Across the tested values of |M|, our method maintains a clear advantage on most datasets. On Cover and HTTP, our method reaches near-ceiling AUROC and AUPRC even at |M| = 8, indicating that universal semantic features supply sufficient cross-domain context to identify anomalies before any domain-specific pattern can be reliably learned from so few labels. On Stamps and ALOI, the gap over FEAWAD is largest at |M| = 8 and gradually narrows as more labels are added, which directly confirms that universal semantic enhancement is most valuable precisely when domain-specific supervision is most scarce. The advantage over standalone TabPFN holds across most datasets and supervision levels, indicating that domain-specific autoencoder features provide complementary discriminative signals that remain beneficial even as the number of labeled anomalies increases. 4.4
Ablation Study
The goal of this experiment is to quantify the individual contribution of each proposed component and to examine how the components interact. Unlike Section 4.2, which compares our framework against external methods, this section
Universal Semantic Enhancement for Weakly Supervised Anomaly Detection
13
Table 3. Component ablation. Each row adds one design choice to the previous configuration. ∆ is relative to the ablation baseline AUROC (0.9174). Configuration AUROC AUPRC ∆ Baseline (concat + dev loss) 0.9174 0.7750 — + FiLM (static prototype) 0.9178 0.7703 +0.0004 + ProtoFiLM-Dynamic 0.9238 0.7775 +0.0064 + RoSAS (loss only) 0.9183 0.7745 +0.0009 + PDF (score fusion only) 0.9242 0.7782 +0.0068 + ProtoFiLM-Dynamic + PDF 0.9247 0.7776 +0.0073 + ProtoFiLM-Dynamic + RoSAS + PDF 0.9308 0.7799 +0.0134
t-SNE Feature Visualization (Waveform) Raw Input Features
Baseline (Concat Fusion)
Normal (n=669)
ProtoFiLM-Dynamic (Ours)
Anomaly (n=20)
Fig. 3. t-SNE [23] of the 32-dim penultimate scoring layer on the Waveform dataset (|M| = 8, one run). Blue: normal samples (n = 669); orange: anomalies (n = 20). Anomaly points in the raw feature space (left) are indistinguishable from normals. The Concat baseline (center) produces partial clustering but with significant normal–anomaly mixing. ProtoFiLM-Dynamic (right) yields a tight, spatially isolated anomaly cluster with a clean decision boundary.
holds all external comparisons fixed and instead ablates each internal design choice one at a time. The ablation baseline is TabPFN-FEAWAD (concat + dev loss, AUROC 0.9174); all other settings are identical to Section 4.2: 42 datasets, |M| = 8 labeled anomalies, 10 independent runs. Results are reported in Table 3. Fusion Module (ProtoFiLM-Dynamic). Replacing ProtoFiLM-Dynamic with a plain concat baseline (row 1 vs. row 3) reduces AUROC by 0.0064, confirming that per-sample prototype conditioning is the key driver of the improvement. Figure 3 visualizes the penultimate-layer embeddings and confirms that ProtoFiLM-Dynamic produces a tighter, more separable anomaly cluster than the concat baseline. Label Augmentation. RoSAS applied to the concat baseline alone yields only +0.0009 AUROC, indicating that pseudo-sample interpolation cannot by itself
14
S. Zhou et al. 0.935
0.790
=0.5 (best)
0.785 0.780
AUPR
0.925
0.775
0.920
0.770
0.915
0.760
0
0
0.765
5.0
(RoSAS loss weight)
3.0
0 0.5 0 0.7 0 1.0 0
0
0.3
0
0.2
0.1
0.0
5
0.910
0
AUROC Baseline AUROC (0.9174) AUPR Baseline AUPR (0.775)
2.0
AUROC
0.930
Fig. 4. Sensitivity of AUROC (left axis, blue) and AUPR (right axis, orange) to the RoSAS loss weight λ on 42 datasets (|M| = 8, 10 runs). Dashed lines mark the ablation baseline (concat + dev loss) without RoSAS.
bridge the representation gap. Its contribution becomes substantial in the full system (+0.0134 total), demonstrating that RoSAS is effective as a complement to ProtoFiLM-Dynamic rather than a standalone strategy. Inference-Time Score Fusion. PDF provides an additional gain on top of the full training-time system. This indicates that our model’s deviation-based score sd and TabPFN’s class probability pt are not redundant: even with no extra parameters or training, simply combining the two signals yields a further improvement. The full system (ProtoFiLM-Dynamic + RoSAS + PDF) achieves the best overall performance (+0.0134 AUROC over the ablation baseline). 4.5
Hyperparameter Sensitivity
The full training objective L = Ld + Le + λ · Lrosas introduces a single additional hyperparameter λ that controls the relative weight of the RoSAS augmentation loss. Figure 4 reports AUROC and AUPR on 42 datasets over 10 runs as λ varies across a 100× range from 0.05 to 5.0. According to the results, most tested values of λ outperform the ablation baseline (concat + dev loss). The curve is non-monotone rather than showing a clear degradation at either extreme: λ = 0.5 achieves the peak AUROC (0.9308) and λ = 2.0 is a close second (0.9303), while even the single dip at λ = 0.1 (0.9156) recovers quickly at λ = 0.2 (0.9286). This broad optimal region around 0.5–2.0 indicates that the RoSAS signal is beneficial across a wide range of strengths, and the method does not require careful tuning of this hyperparameter. We select λ = 0.5 as the default.
5
Conclusion
In this paper, we propose a universal semantic enhancement method for weakly supervised anomaly detection on tabular data, which combines the universal
Universal Semantic Enhancement for Weakly Supervised Anomaly Detection
15
knowledge from a frozen tabular foundation model with the domain-specific features learned by a target-dataset autoencoder. To integrate them under extreme label scarcity, we design ProtoFiLM-Dynamic, a prototype-conditioned modulation module that adaptively enhances each sample by grounding the modulation signal in fixed class prototypes, and adopt a RoSAS-style label-interpolation loss to densify the scarce supervision. On 42 public datasets with as few as eight labeled anomalies, the proposed method attains the best average rank among competitive baselines, with the universal semantics being most beneficial when domain labels are scarcest. Ablation studies further show that the persample conditioning of ProtoFiLM-Dynamic is complementary to a parameterfree inference-time score fusion, which brings an additional gain. One limitation of the current design is that class prototypes are computed once before joint training and remain fixed throughout. Future work could focus on online prototype refinement that updates class representations as the scoring network improves, which may further stabilize semantic enhancement under extremely sparse supervision. More broadly, we hope this work motivates further exploration of how universal semantic knowledge from large-scale pretrained models can be systematically integrated with domain-specific representations in other data-scarce detection settings.
References 1. Arevalo, J., Solorio, T., Montes-y-Gómez, M., González, F.A.: Gated multimodal units for information fusion. In: Workshop at ICLR (2017) 2. Breiman, L.: Random forests. Mach. Learn. 45(1), 5–32 (2001) 3. Deng, J., Dong, W., Socher, R., Li, L.J., Li, K., Fei-Fei, L.: ImageNet: A largescale hierarchical image database. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 248–255 (2009) 4. Devlin, J., Chang, M.W., Lee, K., Toutanova, K.: BERT: pre-training of deep bidirectional transformers for language understanding. In: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 4171–4186. ACL (2019) 5. Fu, Z., Chen, J., Yang, Y., Wen, J., Jing, X., He, R.: Predictive dynamic fusion. In: Proceedings of the 41st International Conference on Machine Learning. PMLR (2024) 6. Glorot, X., Bengio, Y.: Understanding the difficulty of training deep feedforward neural networks. In: Proceedings of the 13th International Conference on Artificial Intelligence and Statistics, pp. 249–256. PMLR (2010) 7. Han, S., Hu, X., Huang, H., Jiang, M., Zhao, Y.: ADBench: anomaly detection benchmark. In: Advances in Neural Information Processing Systems, vol. 35, pp. 32142–32159 (2022) 8. Hollmann, N., Müller, S., Purucker, L., Krishnakumar, A., Körfer, M., Hoo, S.B., Schirrmeister, R.T., Hutter, F.: Accurate predictions on small data with a tabular foundation model. Nature 637(8045), 319–327 (2025) 9. Jeong, J., Zou, Y., Kim, T., Zhang, D., Ravichandran, A., Dabeer, O.: WinCLIP: zero-/few-shot anomaly classification and segmentation. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 19606– 19616 (2023)
16
S. Zhou et al.
10. Kingma, D.P., Ba, J.: Adam: A method for stochastic optimization. In: Proceedings of the 3rd International Conference on Learning Representations. ICLR (2015) 11. Ma, X., Li, C., Yang, B., Wang, S., Zhang, J.: Feature encoding with autoencoders for weakly supervised anomaly detection. IEEE Trans. Knowl. Data Eng. 34(12), 5521–5532 (2022) 12. Pang, G., Shen, C., Cao, L., Hengel, A.V.D.: Deep anomaly detection with deviation networks. In: Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 353–362. ACM (2019) 13. Pang, G., Shen, C., Jin, H., Hengel, A.V.D.: Deep weakly-supervised anomaly detection. In: Proceedings of the 29th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 1795–1807. ACM (2023) 14. Perez, E., Strub, F., de Vries, H., Dumoulin, V., Courville, A.: FiLM: visual reasoning with a general conditioning layer. In: Proceedings of the 32nd AAAI Conference on Artificial Intelligence, pp. 3942–3951. AAAI Press (2018) 15. Prokhorenkova, L., Gusev, G., Vorobev, A., Dorogush, A.V., Gulin, A.: CatBoost: unbiased boosting with categorical features. In: Advances in Neural Information Processing Systems, vol. 31 (2018) 16. Qiao, H., Niu, C., Chen, L., Pang, G.: AnomalyGFM: graph foundation model for zero/few-shot anomaly detection. In: Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pp. 2326–2337 (2025) 17. Radford, A., Kim, J.W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., Krueger, G., Sutskever, I.: Learning transferable visual models from natural language supervision. In: Proceedings of the 38th International Conference on Machine Learning, pp. 8748–8763. PMLR (2021) 18. Ren, J., Tang, T., Jia, H., Xu, Z., Fayek, H., Li, X., Ma, S., Xu, X., Xia, F.: Foundation models for anomaly detection: vision and challenges. AI Mag. 46(4) (2025) 19. Roth, K., Pemula, L., Zepeda, J., Schölkopf, B., Brox, T., Gehler, P.: Towards total recall in industrial anomaly detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 14318–14328 (2022) 20. Ruff, L., Vandermeulen, R., Goernitz, N., Deecke, L., Siddiqui, S.A., Binder, A., Müller, E., Kloft, M.: Deep one-class classification. In: Proceedings of the 35th International Conference on Machine Learning, pp. 4393–4402. PMLR (2018) 21. Ruff, L., Vandermeulen, R.A., Görnitz, N., Binder, A., Müller, E., Müller, K.R., Kloft, M.: Deep semi-supervised anomaly detection. In: Proceedings of the 8th International Conference on Learning Representations. ICLR (2020) 22. Snell, J., Swersky, K., Zemel, R.S.: Prototypical networks for few-shot learning. In: Advances in Neural Information Processing Systems, vol. 30 (2017) 23. Van der Maaten, L., Hinton, G.: Visualizing data using t-SNE. J. Mach. Learn. Res. 9, 2579–2605 (2008) 24. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., Polosukhin, I.: Attention is all you need. In: Advances in Neural Information Processing Systems, vol. 30 (2017) 25. Wang, R., Shivanna, R., Cheng, D., Jain, S., Lin, D., Hong, L., Chi, E.: DCN V2: improved deep & cross network and practical lessons for web-scale learning to rank systems. In: Proceedings of the Web Conference 2021, pp. 1785–1797 (2021) 26. Xu, H., Pang, G., Wang, Y., Wang, Y.: RoSAS: deep semi-supervised anomaly detection with contamination-resilient continuous supervision. Inf. Process. Manag. 60(5), 103459 (2023)
Related documents
- TaskBridge: Bridging Unsupervised Tabular Anomaly Detection and In-Context Learning via Virtual Tasks#1132169
- PRA-TAM: prototype-regularised residual affinity maximisation for unsupervised graph anomaly detection#425890
- Is Real-World Training Data Necessary for Generalist Graph Anomaly Detection?#1249591
- Is Real-World Training Data Necessary for Generalist Graph Anomaly Detection?#1242770
- FOX: Visual Exploration of Data Fact Outliers#610033
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive