Revisiting Energy-based Tabular Anomaly Detection: Energy and Reconstruction are Complementary

arXiv cs.LG 论文

摘要

This paper revisits energy-based models for tabular anomaly detection, demonstrating that combining Deep Boltzmann Machine energy scores with autoencoder reconstruction scores significantly improves performance on benchmark datasets.

arXiv:2608.14186v1 Announce Type: new Abstract: Tabular anomaly detection is dominated by classical density-proxy methods (Isolation Forest, OCSVM, LOF), reconstruction-based detectors (Autoencoders, VAEs), and modern non-parametric scorers (COPOD, ECOD, Deep SVDD), all of which approximate the inlier distribution only indirectly; explicit energy-based models are largely absent. Motivated by the recent revival of EBMs in deep learning (e.g., Energy-Based Transformers, JEPA), we revisit the classical Deep Boltzmann Machine (DBM) for this task and hypothesize that its mean-field energy combines more effectively with a reconstruction-based score than same-lineage pairs do. We evaluate a two-hidden-layer DBM on two tabular benchmarks spanning distinct domains (UCI Bank Marketing and NSL-KDD) against eight classical and modern baselines across twenty random seeds. The DBM mean-field energy matches the strongest baseline (the Autoencoder) on Bank Marketing and statistically beats it on NSL-KDD, while significantly outperforming the remaining seven on both datasets. When fused with the Autoencoder via rank fusion, the DBM energy yields a statistically significant improvement on both datasets (AUROC=+0.014, p<0.01 on Bank Marketing; +0.002, p<0.001 on NSL-KDD); every non-DBM-derived base model instead fails to improve or significantly degrades the AE-paired ensemble. Our position is that classical EBMs, exemplified by the DBM, deserve a place in the tabular anomaly detection toolbox as a non-redundant complementary view to the reconstruction-based scores that dominate current practice.
查看原文
查看缓存全文

缓存时间: 2026/08/17 10:22

# Revisiting Energy-based Tabular Anomaly Detection: Energy and Reconstruction are Complementary
Source: [https://arxiv.org/html/2608.14186](https://arxiv.org/html/2608.14186)
Junichiro NiimiAffiliation:Meijo University, Nagoya Aichi 4688502, JapanEmail:[jniimi@meijo\-u\.ac\.jp](mailto:)Affiliation:https://orcid\.org/0000\-0002\-4618\-6272

###### Abstract

Tabular anomaly detection is dominated by classical density\-proxy methods \(Isolation Forest, OCSVM, LOF\), reconstruction\-based detectors \(Autoencoders, VAEs\), and modern non\-parametric scorers \(COPOD, ECOD, Deep SVDD\), all of which approximate the inlier distribution only indirectly; explicit energy\-based models are largely absent\. Motivated by the recent revival of EBMs in deep learning \(e\.g\., Energy\-Based Transformers, JEPA\), we revisit the classical Deep Boltzmann Machine \(DBM\) for this task and hypothesize that its mean\-field energy combines more effectively with a reconstruction\-based score than same\-lineage pairs do\. We evaluate a two\-hidden\-layer DBM on two tabular benchmarks spanning distinct domains \(UCI Bank Marketing and NSL\-KDD\) against eight classical and modern baselines across twenty random seeds\. The DBM mean\-field energy matches the strongest baseline \(the Autoencoder\) on Bank Marketing and statistically beats it on NSL\-KDD, while significantly outperforming the remaining seven on both datasets\. When fused with the Autoencoder via rank fusion, the DBM energy yields a statistically significant improvement on both datasets \(AUROC=\+0\.014, p<0\.01 on Bank Marketing; \+0\.002,p<0\.001p<0\.001on NSL\-KDD\); every non\-DBM\-derived base model instead fails to improve or significantly degrades the AE\-paired ensemble\. Our position is that classical EBMs, exemplified by the DBM, deserve a place in the tabular anomaly detection toolbox as a non\-redundant complementary view to the reconstruction\-based scores that dominate current practice\.

*Keywords*Deep Boltzmann Machine⋅\\cdotEnergy\-based Model⋅\\cdotAnomaly Detection⋅\\cdotEnsemble Learning

Preprint note\.This is the author’s version of a paper accepted at the 33rd International Conference on Neural Information Processing \(ICONIP 2026\)\. The final authenticated version will appear in Springer*Communications in Computer and Information Science*\(CCIS\)\. It additionally includes the supplementary material as Appendices[A](https://arxiv.org/html/2608.14186#A1)–[C](https://arxiv.org/html/2608.14186#A3)\.

## 1Introduction

### 1\.1Background

Anomaly detection aims to identify samples that deviate from the majority of the data, particularly in settings where anomalies are rare and unlabeled\[[1](https://arxiv.org/html/2608.14186#bib.bib1),[2](https://arxiv.org/html/2608.14186#bib.bib2)\]\. While structured data \(e\.g\., images or text\) provides natural inductive biases, tabular data consists of heterogeneous features with no inherent spatial or temporal relationships, forcing detectors to learn the joint inlier distribution from scratch\[[3](https://arxiv.org/html/2608.14186#bib.bib3)\]\.

Three lineages currently dominate tabular anomaly detection\. Classical density\-proxy methods, such as Isolation Forest\[[4](https://arxiv.org/html/2608.14186#bib.bib4)\], One\-Class Support Vector Machine \(OCSVM\)\[[5](https://arxiv.org/html/2608.14186#bib.bib5)\], and Local Outlier Factor \(LOF\)\[[6](https://arxiv.org/html/2608.14186#bib.bib6)\], approximate inlier density through partitioning, support boundaries, or local density\. Reconstruction\-based methods, including Autoencoders \(AEs\)\[[7](https://arxiv.org/html/2608.14186#bib.bib7)\]and Variational Autoencoders \(VAEs\)\[[8](https://arxiv.org/html/2608.14186#bib.bib8)\], instead rely on reconstruction error from a bottleneck network; the Autoencoder has proven particularly strong in anomaly detection benchmarks such as ADBench\[[9](https://arxiv.org/html/2608.14186#bib.bib9)\]\. A third, more recent family of non\-parametric scorers includes COPOD\[[10](https://arxiv.org/html/2608.14186#bib.bib10)\], ECOD\[[11](https://arxiv.org/html/2608.14186#bib.bib11)\], and Deep SVDD\[[12](https://arxiv.org/html/2608.14186#bib.bib12)\]\. All three families approximate the inlier distribution only indirectly, however, lacking an explicit, differentiable energy over the joint feature configuration\.

To fill this gap, energy\-based models \(EBMs\) offer a promising candidate\. Rooted in Boltzmann learning\[[13](https://arxiv.org/html/2608.14186#bib.bib13)\], EBMs define an unnormalized log\-density through a scalar energy functionEθ​\(x\)E\_\{\\theta\}\(x\)\. The Deep Boltzmann Machine \(DBM\)\[[14](https://arxiv.org/html/2608.14186#bib.bib14)\]is a canonical multi\-layer bidirectional instantiation built from stacked Restricted Boltzmann Machines \(RBMs\)\[[15](https://arxiv.org/html/2608.14186#bib.bib15),[16](https://arxiv.org/html/2608.14186#bib.bib16)\]\. Crucially, a trained DBM yields a tractable scalar score—the mean\-field energyEθ​\(v,μ\)E\_\{\\theta\}\(v,\\mu\), obtained by replacing the hidden units with their mean\-field expectationsμ\\mu—that can be evaluated at any input without auxiliary objectives, and therefore serves directly as an anomaly score\.

Beyond Boltzmann\-machine variants, EBMs more broadly have undergone a noticeable revival in modern deep learning, including Energy\-Based Transformers\[[17](https://arxiv.org/html/2608.14186#bib.bib17)\]and the Joint Embedding Predictive Architecture \(JEPA\) family\[[18](https://arxiv.org/html/2608.14186#bib.bib18),[19](https://arxiv.org/html/2608.14186#bib.bib19),[20](https://arxiv.org/html/2608.14186#bib.bib20)\]\. We therefore revisit classical DBMs in the tabular anomaly detection setting\. Our primary score is the DBM’s mean\-field energy on the original sample, denotedFbefore​\(v\)=Eθ​\(v,μ\)F\_\{\\text\{before\}\}\(v\)=E\_\{\\theta\}\(v,\\mu\); the subscript distinguishes it fromFafterF\_\{\\text\{after\}\}values computed after the column\-wise interventions used later for per\-attribute attribution\. The mechanism we expect to makeFbeforeF\_\{\\text\{before\}\}useful is structural: it aggregates evidence over the joint hidden\-unit configuration via mean\-field inference onEθE\_\{\\theta\}, whereas reconstruction error is computed coordinate\-wise on a feed\-forward bottleneck—two structurally different views of the same inlier distribution\.

This paper evaluates a two\-hidden\-layer DBM on two tabular benchmarks spanning distinct application domains—UCI Bank Marketing \(direct marketing of bank term deposits\)\[[21](https://arxiv.org/html/2608.14186#bib.bib21)\]and NSL\-KDD \(network intrusion detection, restricted to the normal vs DoS\-attack subset\)\[[22](https://arxiv.org/html/2608.14186#bib.bib22)\]—against eight standard baselines \(Isolation Forest, OCSVM, LOF, AE, VAE, COPOD, ECOD, Deep SVDD\) using a multi\-seed protocol with twenty random seeds\. From the mechanism above we derive a sharper, testable hypothesis: a*cross\-lineage*hybrid combiningFbeforeF\_\{\\text\{before\}\}with reconstruction error should outperform either component alone, while*same\-lineage*hybrids \(two density\-proxy methods, or two reconstruction\-based methods, or a mix that excludes the DBM\) should not\. Our position is that classical EBMs deserve a place in tabular anomaly detection: not as a replacement for reconstruction\-based methods, but as a non\-redundant complementary view grounded in explicit joint energy\.

### 1\.2Contributions

Our findings are threefold\. First,FbeforeF\_\{\\text\{before\}\}statistically ties the strongest single baseline \(the Autoencoder\) on Bank Marketing and statistically beats it on NSL\-KDD, while significantly outperforming the remaining seven baselines on both datasets \(Section[3\.2](https://arxiv.org/html/2608.14186#S3.SS2)\)\. Second, combiningFbeforeF\_\{\\text\{before\}\}with the Autoencoder’s reconstruction error via either parameter\-free rank fusion or a leave\-one\-seed\-out tuned convex combination significantly outperforms either single method on both datasets \(Section[3\.3](https://arxiv.org/html/2608.14186#S3.SS3)\)\. Third, when we exhaustively rank\-fuse each of the eight baseline scores with the Autoencoder,FbeforeF\_\{\\text\{before\}\}\(together with the DBM’s own reconstruction error\) is the only productive AE\-paired partner on both datasets; every non\-DBM\-derived score either fails to improve or significantly degrades the AE\-paired ensemble \(Section[3\.3](https://arxiv.org/html/2608.14186#S3.SS3)\)\. Together, these findings support the consistent superiority of the DBM–AE hybrid across two domains and highlight the value of combining energy\-based and reconstruction\-based perspectives in tabular anomaly detection\.

## 2Related Work

### 2\.1Tabular anomaly detection: density proxies and reconstruction

Classical density\-proxy detectors approximate the inlier distributionpin​\(x\)p\_\{\\text\{in\}\}\(x\)through geometric or combinatorial constructs\. Isolation Forest measures how readily a sample can be isolated by random axis\-aligned splits; OCSVM fits a hypersphere boundary around the inliers in kernel space; and LOF identifies anomalies by comparing local density with that of neighbors\. These methods do not learn an explicit parametric likelihood; instead, each translates a different geometric notion of “unusualness” into an anomaly score\.

Reconstruction\-based detectors take a complementary approach by training a bottleneck network on inliers and using reconstruction error as the anomaly score\. The Autoencoder\[[7](https://arxiv.org/html/2608.14186#bib.bib7)\]and Variational Autoencoder\[[8](https://arxiv.org/html/2608.14186#bib.bib8)\]are the most established instances\. Recent tabular\-specific designs have also explored alternative objectives such as internal contrastive learning\[[3](https://arxiv.org/html/2608.14186#bib.bib3)\]\. The ADBench benchmark\[[9](https://arxiv.org/html/2608.14186#bib.bib9)\]evaluates both families under a unified protocol and identifies the Autoencoder as one of the strongest unsupervised baselines\.

A key commonality across both lineages is thatpin​\(x\)p\_\{\\text\{in\}\}\(x\)is approximated only*indirectly*via isolation paths, support boundaries, local density ratios, or coordinate\-wise reconstruction error\. Crucially, none of these approaches provides an explicit, differentiable scalar energy defined over the joint configuration of all input features, nor a score directly grounded in the likelihood of a generative model\.

### 2\.2Energy\-based models: foundations and revival

EBMs define an unnormalized log\-density via a scalar energy function−Eθ​\(x\)\-E\_\{\\theta\}\(x\), which can be used directly as a likelihood\-proportional score\[[23](https://arxiv.org/html/2608.14186#bib.bib23)\]\. Although training EBMs is challenging due to the intractable partition function, recent advances have renewed interest in the framework\[[24](https://arxiv.org/html/2608.14186#bib.bib24)\]\.

Outside the tabular domain, EBMs are experiencing a noticeable revival\[[19](https://arxiv.org/html/2608.14186#bib.bib19),[20](https://arxiv.org/html/2608.14186#bib.bib20),[17](https://arxiv.org/html/2608.14186#bib.bib17),[18](https://arxiv.org/html/2608.14186#bib.bib18)\]\. Energy\-Based Transformers demonstrate that explicit energy parameterizations can scale competitively on generative tasks, while the JEPA family uses energy\-based objectives to unify self\-supervised representation learning\. These developments suggest that explicit energy formulations remain a powerful modeling primitive in modern deep learning\.

However, two important caveats apply when using EBM\-style scores for anomaly detection\. First, Nalisnick et al\.\[[25](https://arxiv.org/html/2608.14186#bib.bib25)\]famously showed that deep generative models can sometimes assign higher likelihood to out\-of\-distribution \(OOD\) samples than to in\-distribution ones, indicating that an explicit energy score should be viewed as one informative view rather than a standalone solution\. Second, EBM\-based anomaly detectors already exist in the literature\. Notably, Zhai et al\.\[[26](https://arxiv.org/html/2608.14186#bib.bib26)\]reinterpret denoising Autoencoders as deep energy networks and apply them to anomaly detection across image, time\-series, and tabular data\. Importantly, this line of work builds on feed\-forward energy networks that are structurally distinct from the Boltzmann\-machine family \(stacked RBMs with bipartite connections\) studied in this paper\.

### 2\.3Boltzmann machines: a deep EBM lineage absent from tabular AD

Boltzmann machines\[[27](https://arxiv.org/html/2608.14186#bib.bib27)\]offer a distinct lineage of deep energy\-based models that are fully bidirectional, in contrast to feed\-forward architectures\. The original Boltzmann machine\[[13](https://arxiv.org/html/2608.14186#bib.bib13)\]defines a symmetric energy function over jointly stochastic visible and hidden units\. Its bipartite restriction, the Restricted Boltzmann Machine \(RBM\)\[[16](https://arxiv.org/html/2608.14186#bib.bib16),[15](https://arxiv.org/html/2608.14186#bib.bib15)\], allows efficient mean\-field inference and is trainable via contrastive divergence\. Stacking RBMs with subsequent joint fine\-tuning produces the Deep Boltzmann Machine \(DBM\)\[[14](https://arxiv.org/html/2608.14186#bib.bib14)\]\.

A key property of the DBM is that it exposes a tractable mean\-field energyEθ​\(v,μ\)E\_\{\\theta\}\(v,\\mu\)—an efficient surrogate for the proper variational free energy, obtained by replacing the hidden units with their mean\-field expectations—that can be evaluated directly on any visible samplevv\. This quantity provides a natural scalar score reflecting the sample’s compatibility with the model’s learned joint distribution, making it well\-suited for use as an anomaly score\.

Despite this structural advantage, DBMs have been studied almost exclusively for representation learning in image classification and multimodal tasks\[[28](https://arxiv.org/html/2608.14186#bib.bib28)\], with very limited exploration as anomaly detectors in tabular data\. The DBM mean\-field energy was preliminarily explored as an anomaly signal in a prior study on consumer behaviour coherence\[[29](https://arxiv.org/html/2608.14186#bib.bib29)\], and the same free energy has been used as a consistency score over tabular consumer\-behaviour trajectories inside a DBM\-based world model\[[30](https://arxiv.org/html/2608.14186#bib.bib30)\]—in both cases as a diagnostic alongside another objective rather than as a detector evaluated in its own right\. However, to our knowledge, a systematic evaluation on standard tabular datasets against strong unsupervised baselines, using a multi\-seed protocol with statistical significance testing, remains largely unreported\. The present paper conducts precisely this evaluation on the UCI Bank Marketing dataset and NSL\-KDD intrusion\-detection dataset, with particular emphasis on whether the energy\-based perspective offers a non\-redundant complementary view to the reconstruction\-based scores that currently dominate the field\.

## 3Experiments

### 3\.1Experimental design

We use two tabular anomaly\-detection benchmarks spanning distinct application domains\.*UCI Bank Marketing*\(id=222\)\[[21](https://arxiv.org/html/2608.14186#bib.bib21)\]records 45,211 customers of a Portuguese banking institution’s direct\-mail campaigns with 16 input attributes \(9 categorical, 7 numerical\); following ADBench\[[9](https://arxiv.org/html/2608.14186#bib.bib9)\]we treat the minority subscriber class \(5,2895\{,\}289rows,11\.7%11\.7\\%\) as the anomaly and train on the 39,922 non\-subscriber inliers\.*NSL\-KDD*\[[22](https://arxiv.org/html/2608.14186#bib.bib22)\]is the cleaned successor to the KDD Cup ’99 network\-intrusion dataset; we restrict toKDDTrain\+, keep only the “normal” and DoS\-attack rows, and randomly down\-sample DoS rows to an anomaly rate of10%10\\%, yielding74,82674\{,\}826connections \(67,343 normal inliers, 7,483 DoS anomalies\) with 41 input attributes \(3 categorical:protocol\_type,service,flag; 38 numerical\)\. Both datasets are converted to fixed\-width binary vectors by the same pipeline: categorical columns are one\-hot encoded with an explicit<NA\>level, numerical columns are quantile\-binned \(target 5 bins per column, deduplicated edges\), and columns that collapse to a single bin \(e\.g\.,pdays,previouson BM;num\_outbound\_cmdson NSL\-KDD\) contribute one always\-on bit\. The resulting visible dimensions areD=69D=69for Bank Marketing \(14 effectively\-active source columns\) andD=144D=144for NSL\-KDD \(40 effectively\-active source columns\)\.

On both datasets the DBM has one visible layer of widthDDand two hidden layers \(H1=48H\_\{1\}=48,H2=24H\_\{2\}=24units\), a moderate\-bottleneck architecture selected by a preliminary single\-seed ablation on Bank Marketing against expansion, aggressive\-bottleneck, and three\-layer alternatives \(Table[1](https://arxiv.org/html/2608.14186#S3.T1); full discussion in Appendix[A](https://arxiv.org/html/2608.14186#A1)\)\. The energy function is

E⁡\(v,h\(1\),h\(2\)\)=−v⊤​W\(1\)​h\(1\)−h\(1\)⊤​W\(2\)​h\(2\)−b⊤​v−c\(1\)⊤​h\(1\)−c\(2\)⊤​h\(2\),E\(v,h^\{\(1\)\},h^\{\(2\)\}\)=\-v^\{\\top\}W^\{\(1\)\}h^\{\(1\)\}\-h^\{\(1\)\\top\}W^\{\(2\)\}h^\{\(2\)\}\-b^\{\\top\}v\-c^\{\(1\)\\top\}h^\{\(1\)\}\-c^\{\(2\)\\top\}h^\{\(2\)\},\(1\)and the model is trained in two phases following\[[14](https://arxiv.org/html/2608.14186#bib.bib14)\]: \(1\) greedy layer\-wise pretraining of each layer as a Restricted Boltzmann Machine via Persistent Contrastive Divergence \(PCD\) with Adam \(lr=10−2\\text\{lr\}=10^\{\-2\},k=5k=5Gibbs steps\), and \(2\) joint fine\-tuning of the full DBM via PCD on the mean\-field energy with Adam \(lr=10−3\\text\{lr\}=10^\{\-3\}, 10 mean\-field iterations\)\. Both phases use patience\-based early stopping on held\-out reconstruction binary cross\-entropy \(patience 30 / 20 for pretraining / fine\-tuning on Bank Marketing and 50 / 30 on NSL\-KDD, with epoch budgets of 150 / 60 and 300 / 100 respectively\), and the best\-validation checkpoint is restored before evaluation\.

Table 1:Single\-seed ablation of five DBM hidden\-layer configurations on Bank Marketing\.*epoch*= last epoch with val reconstruction\-BCE improvement \(max 60\); a value of33signals immediate fine\-tune termination\.Δ​F\\Delta F\-sum is the AUROC of∑c\|Δ​Fc\|\\sum\_\{c\}\|\\Delta F\_\{c\}\|, the column\-wise intervention aggregate used in\[[29](https://arxiv.org/html/2608.14186#bib.bib29)\]\. Bold marks the selected configuration\. Full discussion in Appendix[A](https://arxiv.org/html/2608.14186#A1)\.The primary anomaly score isFbefore​\(v\)=E⁡\(v,μ\)F\_\{\\text\{before\}\}\(v\)=E\(v,\\mu\), the energy \([1](https://arxiv.org/html/2608.14186#S3.E1)\) evaluated with each hidden unit replaced by its mean\-field expectationμ\\muafter 10 iterations of mean\-field inference\[[14](https://arxiv.org/html/2608.14186#bib.bib14)\]; higherFFindicates lower likelihood under the model\. This score omits the entropy term that appears in the proper variational free energyE⁡\(v,μ\)−H⁡\(μ\)E\(v,\\mu\)\-H\(\\mu\); Section[3\.5](https://arxiv.org/html/2608.14186#S3.SS5)\(with full details in Appendix[B](https://arxiv.org/html/2608.14186#A2)\) shows that subtractingH⁡\(μ\)H\(\\mu\)in fact degrades anomaly\-detection performance becauseH⁡\(μ\)H\(\\mu\)is systematically larger for anomalies and therefore partially cancels the discriminative signal carried byE⁡\(v,μ\)E\(v,\\mu\)\.

We compare against eight established tabular anomaly detectors covering the three lineages of Section[2](https://arxiv.org/html/2608.14186#S2): classical density\-proxy detectors are Isolation Forest\[[4](https://arxiv.org/html/2608.14186#bib.bib4)\]\(nestimators=200n\_\{\\text\{estimators\}\}=200\), One\-Class SVM\[[5](https://arxiv.org/html/2608.14186#bib.bib5)\]\(RBF kernel,ν=0\.1\\nu=0\.1\), and Local Outlier Factor\[[6](https://arxiv.org/html/2608.14186#bib.bib6)\]\(k=35k=35\); reconstruction\-based detectors are an unsupervised Autoencoder\[[7](https://arxiv.org/html/2608.14186#bib.bib7)\]\(hidden\[64,32\]\[64,32\], 30 epochs\) and a Variational Autoencoder\[[8](https://arxiv.org/html/2608.14186#bib.bib8)\]\(encoder\[64,32\]\[64,32\], decoder\[32,64\]\[32,64\], latent dimension 8, 30 epochs\); and the modern non\-parametric line is represented by COPOD\[[10](https://arxiv.org/html/2608.14186#bib.bib10)\], ECOD\[[11](https://arxiv.org/html/2608.14186#bib.bib11)\]\(both parameter\-free\), and Deep SVDD\[[12](https://arxiv.org/html/2608.14186#bib.bib12)\]\(hidden\[64,32\]\[64,32\], 30 epochs\)\. All baselines are accessed through PyOD\[[31](https://arxiv.org/html/2608.14186#bib.bib31)\], except Isolation Forest and One\-Class SVM which come from scikit\-learn\. All are trained on the same inlier\-only split as the DBM—the neural detectors \(AE, VAE, Deep SVDD\) on the full split, and the five non\-neural ones on a fixed random8,0008\{,\}000\-sample subsample of it, since OCSVM isO⁡\(n2\)O\(n^\{2\}\)—and scored on the full dataset, with outputs signed so that higher values denote more anomalous samples\.

We report mean±\\pmstandard error of AUROC, PR\-AUC, and F1 at the best operating point acrossn=20n=20random seeds\. Within a seed, all methods receive the same 90/10 train/val split of the inlier population \(the val split is used by the DBM for early stopping but is otherwise inert\), the same input binarisation, and the samerandom\_statefor the stochastic baselines, so per\-seed pairings between methods are valid for paired statistical testing\. Significance is assessed by paired two\-sidedtt\-tests on the per\-seed metric values, with markers∗p<0\.05\{\}^\{\*\}p<0\.05,p∗⁣∗<0\.01\{\}^\{\*\*\}p<0\.01,∗∗∗p<0\.001\{\}^\{\*\*\*\}p<0\.001\.

### 3\.2Single\-method anomaly detection

Tables[2](https://arxiv.org/html/2608.14186#S3.T2)and[3](https://arxiv.org/html/2608.14186#S3.T3)report the per\-method results on the two datasets\.

#### Bank Marketing\.

DBMFbeforeF\_\{\\text\{before\}\}is statistically indistinguishable from the strongest single baseline \(the AutoEncoder\) on every reported metric \(AUROCp=0\.10p=0\.10, PR\-AUCp=0\.97p=0\.97, F1p=0\.26p=0\.26\), while significantly outperforming the remaining seven baselines on AUROC \(p≤0\.01p\\leq 0\.01\)\.

#### NSL\-KDD\.

Although all methods are pushed near the AUROC ceiling, DBMFbeforeF\_\{\\text\{before\}\}in fact*beats*the AutoEncoder on*all three metrics*:Δ​AUROC=\+0\.0016\\Delta\\text\{AUROC\}=\+0\.0016\(p=1\.8×10−5p=1\.8\\times 10^\{\-5\}\),Δ​PR\-AUC=\+0\.022\\Delta\\text\{PR\-AUC\}=\+0\.022\(p=7\.1×10−14p=7\.1\\times 10^\{\-14\}\), andΔ​F1=\+0\.010\\Delta\\text\{F1\}=\+0\.010\(p=0\.0015p=0\.0015\)\. It also significantly outperforms the remaining seven baselines on all three metrics\. We deliberately include NSL\-KDD as a high\-saturation regime alongside the lower\-baseline Bank Marketing: confirming that DBM\-side complementarity persists when every method is already at the AUROC ceiling is itself non\-trivial evidence that the energy view carries information the reconstruction view does not, and rules out a reading in which the gains seen on Bank Marketing are an artefact of weak baselines\.

Table 2:Single\-method performance on Bank Marketing \(n=20n=20seeds\)\. Mean±\\pmSE; significance markers from paired two\-sidedtt\-tests vs\. DBMFbeforeF\_\{\\text\{before\}\}:∗p<0\.05\{\}^\{\*\}p<0\.05,p∗⁣∗<0\.01\{\}^\{\*\*\}p<0\.01,∗∗∗p<0\.001\{\}^\{\*\*\*\}p<0\.001\. Best per column in bold\.Table 3:Single\-method performance on NSL\-KDD DoS subset \(n=20n=20seeds\)\. Conventions as in Table[2](https://arxiv.org/html/2608.14186#S3.T2)\.

### 3\.3Hybrid scoring: energy and reconstruction are complementary

If DBMFbeforeF\_\{\\text\{before\}\}and Autoencoder reconstruction error reflect different aspects of the inlier distribution, combining the two scores should outperform either alone\. We test this with two leakage\-free protocols: parameter\-free rank fusion \(within\-run percentile ranks of both scores, averaged\) and a convex combinationSα=α⋅FDBMstd\+\(1−α\)⋅FAEstdS\_\{\\alpha\}=\\alpha\\cdot F^\{\\mathrm\{std\}\}\_\{\\text\{DBM\}\}\+\(1\-\\alpha\)\\cdot F^\{\\mathrm\{std\}\}\_\{\\text\{AE\}\}overzz\-standardised scores withα∈\{0,0\.1,…,1\}\\alpha\\in\\\{0,0\.1,\\ldots,1\\\}and leave\-one\-seed\-out tuning ofα⋆\\alpha^\{\\star\}\. The chosenα⋆\\alpha^\{\\star\}is stable on both datasets:α⋆=0\.4\\alpha^\{\\star\}=0\.4in18/2018/20Bank Marketing seeds andα⋆=0\.6\\alpha^\{\\star\}=0\.6in17/1917/19NSL\-KDD seeds\.

Tables[4](https://arxiv.org/html/2608.14186#S3.T4)and[5](https://arxiv.org/html/2608.14186#S3.T5)report the results\. Both fusion variants significantly outperform either single method on*both*datasets, although the magnitude of improvement is smaller on NSL\-KDD where every method is already near the AUROC ceiling\. Rank fusion gives the highest mean AUROC in both cases \(0\.7450\.745on Bank Marketing,0\.99530\.9953on NSL\-KDD\)\. Figure[1](https://arxiv.org/html/2608.14186#S3.F1)plots the convex AUROC sweep on both datasets: each forms a smooth concave curve whose peak lies strictly above the two endpoints, consistent with the two scores carrying genuinely complementary signal\.

Figure 1:AUROC ofSα=α​FDBMstd\+\(1−α\)​FAEstdS\_\{\\alpha\}=\\alpha F^\{\\mathrm\{std\}\}\_\{\\text\{DBM\}\}\+\(1\{\-\}\\alpha\)F^\{\\mathrm\{std\}\}\_\{\\text\{AE\}\}on Bank Marketing \(*left*\) and NSL\-KDD \(*right*\); shaded band=±1=\\pm 1SE, star marks the peak, dashed red line shows the parameter\-free rank\-fusion reference\. On both datasets the peak sits above the AE\-only \(α=0\\alpha\{=\}0\) and DBM\-only \(α=1\\alpha\{=\}1\) endpoints\.Table 4:Hybrid scoring on Bank Marketing \(n=20n=20seeds\)\. Mean±\\pmSE of AUROC;pp\-values from paired two\-sidedtt\-tests against AE alone and DBM alone\. Best in bold\.Table 5:Hybrid scoring on NSL\-KDD DoS subset \(n=20n=20seeds\)\. Conventions as in Table[4](https://arxiv.org/html/2608.14186#S3.T4)\.
### 3\.4AE\-paired comparison: only DBM\-derived partners are productive

An immediate concern is that any two diverse anomaly scores should beat either alone, in which case the DBM’s involvement would not be doing the work\. Table[6](https://arxiv.org/html/2608.14186#S3.T6)addresses this by repeating the rank\-fusion experiment with all candidate partners for the AutoEncoder \(the strongest non\-DBM baseline on both datasets, as Tables[2](https://arxiv.org/html/2608.14186#S3.T2)and[3](https://arxiv.org/html/2608.14186#S3.T3)establish\): the seven other baselines we compared against, the DBM’sFbeforeF\_\{\\text\{before\}\}, and—critically—the DBM’s own*reconstruction error*obtained by clamping each sample to the visible layer, running mean\-field inference, and computing the binary cross\-entropy between the input and the reconstructed visible probabilities\. Including DBM\-reconstruction lets us ask whether*any*signal extracted from the trained DBM helps, or whether the energy signal specifically is what matters\.

The pattern across the partners is consistent across the two datasets\. The only AE\-paired ensembles that significantly improve on AE alone are those whose partner is DBM\-derived \(FbeforeF\_\{\\text\{before\}\}or DBM\-reconstruction\)\. Every non\-DBM partner \(VAE, LOF, IF, OCSVM, COPOD, ECOD, Deep SVDD\) either fails to improve or significantly degrades the AE\-paired ensemble\. Within the DBM,FbeforeF\_\{\\text\{before\}\}outperforms DBM\-reconstruction on Bank Marketing \(\+0\.010\+0\.010, pairedp=0\.09p=0\.09borderline; full BM\-side analysis in Section[3\.5](https://arxiv.org/html/2608.14186#S3.SS5)\), while on NSL\-KDD both DBM scores attain the same boost over AE\. The two\-dataset pattern is therefore that DBM\-derived signals are the only ones that productively augment AE; among DBM signals,FbeforeF\_\{\\text\{before\}\}is at least as effective as the DBM’s reconstruction error on both datasets\.

Table 6:AE\-paired rank\-fusion ensembles on Bank Marketing and NSL\-KDD \(n=20n=20\)\.*Solo*= partner AUROC;*Ens\.*= ensemble with AE;Δ,p\\Delta,p= paired test of ensemble vs\. AE alone\. DBM\-recon\. = BCE between input and DBM mean\-field reconstruction\. Only the two DBM\-derived partners significantly improve AE; every non\-DBM partner significantly degrades it\.Bank MarketingNSL\-KDD \(DoS\)Partner of AESoloEns\.Δ\\DeltappSoloEns\.Δ\\Deltapp*\(AE alone\)*0\.7310\.7310\.7310\.731——0\.9930\.9930\.9930\.993——DBMFbeforeF\_\{\\text\{before\}\}0\.7130\.7130\.745\\mathbf\{0\.745\}\+0\.014\\mathbf\{\+0\.014\}0\.008∗⁣∗\\mathbf\{0\.008^\{\*\*\}\}0\.9950\.9950\.995\\mathbf\{0\.995\}\+0\.002\\mathbf\{\+0\.002\}𝟔×𝟏𝟎−𝟗∗∗∗\\mathbf\{6\{\\times\}10^\{\-9\\,\*\*\*\}\}DBM\-recon\.0\.7140\.7140\.7350\.735\+0\.004\+0\.0040\.090\.090\.9950\.9950\.9950\.995\+0\.002\+0\.0022×10−12∗∗∗2\{\\times\}10^\{\-12\\,\*\*\*\}VAE0\.6850\.6850\.7170\.717−0\.013\-0\.013<10−6∗∗∗\{<\}10^\{\-6\\,\*\*\*\}0\.9840\.9840\.9900\.990−0\.003\-0\.0038×10−12∗∗∗8\{\\times\}10^\{\-12\\,\*\*\*\}LOF0\.6730\.6730\.7160\.716−0\.015\-0\.015<10−6∗∗∗\{<\}10^\{\-6\\,\*\*\*\}0\.7670\.7670\.9570\.957−0\.036\-0\.0361×10−14∗∗∗1\{\\times\}10^\{\-14\\,\*\*\*\}DeepSVDD0\.6500\.6500\.7120\.712−0\.018\-0\.0186×10−4∗∗∗6\{\\times\}10^\{\-4\\,\*\*\*\}0\.9400\.9400\.9770\.977−0\.016\-0\.0164×10−6∗∗∗4\{\\times\}10^\{\-6\\,\*\*\*\}COPOD0\.6370\.6370\.7010\.701−0\.030\-0\.030<10−11∗∗∗\{<\}10^\{\-11\\,\*\*\*\}0\.9610\.9610\.9830\.983−0\.010\-0\.0103×10−17∗∗∗3\{\\times\}10^\{\-17\\,\*\*\*\}ECOD0\.6370\.6370\.7000\.700−0\.031\-0\.031<10−11∗∗∗\{<\}10^\{\-11\\,\*\*\*\}0\.9680\.9680\.9850\.985−0\.008\-0\.0084×10−16∗∗∗4\{\\times\}10^\{\-16\\,\*\*\*\}Isolation Forest0\.6150\.6150\.6920\.692−0\.039\-0\.039<10−9∗∗∗\{<\}10^\{\-9\\,\*\*\*\}0\.9640\.9640\.9890\.989−0\.004\-0\.0046×10−9∗∗∗6\{\\times\}10^\{\-9\\,\*\*\*\}One\-Class SVM0\.6100\.6100\.6870\.687−0\.044\-0\.044<10−14∗∗∗\{<\}10^\{\-14\\,\*\*\*\}0\.9830\.9830\.9890\.989−0\.004\-0\.004<10−21∗∗∗\{<\}10^\{\-21\\,\*\*\*\}

This is direct evidence that*DBM\-derived scores as a family*carry information that the AutoEncoder’s reconstruction error does not: bothFbeforeF\_\{\\text\{before\}\}and DBM\-reconstruction aggregate evidence through the same bipartite hidden\-unit configuration via mean\-field inference on \([1](https://arxiv.org/html/2608.14186#S3.E1)\), whereas the AutoEncoder’s reconstruction error is computed point\-wise on a feed\-forward bottleneck\. A sample plausible globally but unusual locally—or vice versa—is captured by the joint\-configuration view but not by point\-wise reconstruction, and rank fusion exploits the asymmetry\. Among the two DBM\-derived signals,FbeforeF\_\{\\text\{before\}\}is the cleaner representative of the joint\-configuration view: on Bank Marketing it outperforms DBM\-reconstruction as an AE partner by roughly an order of magnitude in the improvement \(\+0\.014\+0\.014vs\.\+0\.004\+0\.004, pairedp=0\.07p=0\.07; Section[3\.5](https://arxiv.org/html/2608.14186#S3.SS5)and Appendix[B](https://arxiv.org/html/2608.14186#A2)\); on NSL\-KDD the two converge to the same boost because the AUROC ceiling collapses any margin between near\-perfect scores\.

### 3\.5Mean\-field energy vs\. proper variational free energy

A subtle but consequential design choice is to useFbefore​\(v\)=E⁡\(v,μ\)F\_\{\\text\{before\}\}\(v\)=E\(v,\\mu\)rather than the proper variational free energyFproper​\(v\)=E⁡\(v,μ\)−H⁡\(μ\)F\_\{\\text\{proper\}\}\(v\)=E\(v,\\mu\)\-H\(\\mu\), whereH\(μ\)=−∑l∑j\[μj\(l\)logμj\(l\)\+\(1−μj\(l\)\)log\(1−μj\(l\)\)\]H\(\\mu\)=\-\\sum\_\{l\}\\sum\_\{j\}\[\\mu\_\{j\}^\{\(l\)\}\\log\\mu\_\{j\}^\{\(l\)\}\+\(1\{\-\}\\mu\_\{j\}^\{\(l\)\}\)\\log\(1\{\-\}\\mu\_\{j\}^\{\(l\)\}\)\]is the Bernoulli entropy of the mean\-field posterior\. Using the 20 already\-trained Bank\-Marketing DBMs and re\-evaluating both scores \(no retraining\),FproperF\_\{\\text\{proper\}\}*degrades*performance on every metric \(Table[7](https://arxiv.org/html/2608.14186#S3.T7)\): the gap is borderline\-significant on AUROC and significant on PR\-AUC and F1\. The cause is a systematic asymmetry inH⁡\(μ\)H\(\\mu\)between classes: anomalous inputs elicit less\-confident mean\-field posteriors than inliers \(Hanomaly−Hinlier=\+0\.43±0\.02H\_\{\\text\{anomaly\}\}\-H\_\{\\text\{inlier\}\}=\+0\.43\\pm 0\.02nats, pairedt=19\.95t=19\.95,p≈3×10−14p\\approx 3\\times 10^\{\-14\}, positive in20/2020/20seeds\), so subtractingH⁡\(μ\)H\(\\mu\)removes more from anomaly scores than from inlier scores and partially cancels the discriminative signal thatE⁡\(μ\)E\(\\mu\)carries\.FproperF\_\{\\text\{proper\}\}remains the appropriate quantity for ELBO\-style likelihood optimisation; for anomaly*ranking*, the mean\-field energy is the cleaner choice\. Full setup, mechanism, and per\-seed numbers are in Appendix[B](https://arxiv.org/html/2608.14186#A2)\.

#### How far does this generalise?

Two questions follow: whether the effect is tied to the two\-hidden\-layer DBM, and whether it is tied to these datasets\. The*mechanism*is not architecture\-specific: the depth\-1 ablation—a single RBM \(H1=48H\_\{1\}=48, Appendix[A](https://arxiv.org/html/2608.14186#A1)\) over 20 seeds on the same two datasets—reproduces the entropy asymmetry unchanged \(Hanomaly−Hinlier=\+0\.42±0\.04H\_\{\\text\{anomaly\}\}\-H\_\{\\text\{inlier\}\}=\+0\.42\\pm 0\.04nats on Bank Marketing,\+1\.27±0\.11\+1\.27\\pm 0\.11on NSL\-KDD, positive in20/2020/20seeds,p<10−8p<10^\{\-8\}\)\. This is what the mechanism predicts:H⁡\(μ\)H\(\\mu\)measures posterior confidence, and an input off the inlier manifold drivesμj\\mu\_\{j\}towards12\\tfrac\{1\}\{2\}however many hidden layers produced it\. The argument therefore extends to any latent\-variable EBM scored through a variational bound—slack that grows with anomalousness is subtracted from exactly the samples the score should rank highest—but not to latent\-free energy networks such as DSEBM\[[26](https://arxiv.org/html/2608.14186#bib.bib26)\], where no entropy term arises\. What*is*dataset\-dependent is the size of the effect, which turns on how the class gap inH⁡\(μ\)H\(\\mu\)compares with that inE⁡\(μ\)E\(\\mu\): on NSL\-KDD the penalty is small but significant for both architectures \(Δ​AUROC=−0\.0003\\Delta\\text\{AUROC\}=\-0\.0003,p≤10−3p\\leq 10^\{\-3\}\), whereas on Bank Marketing it is borderline for the DBM \(Table[7](https://arxiv.org/html/2608.14186#S3.T7)\) and zero within noise for the RBM\. We therefore scope the claim:E⁡\(μ\)E\(\\mu\)is never significantly worse thanFproperF\_\{\\text\{proper\}\}on either dataset and the mechanism favouring it is generic, but the magnitude is a per\-dataset empirical question—in preliminary runs on further tabular benchmarks we observed both signs of the difference\. Per\-architecture numbers are in Appendix[B](https://arxiv.org/html/2608.14186#A2)\.

Table 7:Mean\-field energyFE=E⁡\(μ\)F\_\{E\}=E\(\\mu\)vs\. proper variational free energyFproper=E⁡\(μ\)−H⁡\(μ\)F\_\{\\text\{proper\}\}=E\(\\mu\)\-H\(\\mu\)on Bank Marketing\. Mean±\\pmSE acrossn=20n=20seeds;ppfrom paired two\-sidedtt\-tests\.

### 3\.6Computational cost

A DBM is more expensive to train than any baseline considered here, and the case for using one has to account for that explicitly\. Table[8](https://arxiv.org/html/2608.14186#S3.T8)times every method in the paper end to end\. Since the reported results were produced on heterogeneous hardware, all timings were re\-measured on one machine \(Apple M2 Max, 12\-core CPU; PyTorch 2\.12\) with*every*method on CPU—PyOD’s neural detectors have no Metal path—so that only relative cost is compared; the protocol, split, and hyperparameters are those of Section[3\.1](https://arxiv.org/html/2608.14186#S3.SS1), and no detection metric is affected\.

The training gap is large and in the expected direction: the DBM costs176176s on Bank Marketing and468468s on NSL\-KDD, roughly11×11\\timesand17×17\\timesthe AutoEncoder and three orders of magnitude more than the classical density proxies, which fit in well under a second\. This is intrinsic to the model: PCD requires Gibbs sampling in the pretraining phase and mean\-field inference in every fine\-tuning step, over233\+60233\+60and249\+100249\+100epochs respectively\. The GPU does not rescue this at the scale studied: the same run takes683683s on the machine’s Metal backend, the model being far too small to amortise dispatch overhead\.

*Inference*runs the other way\. Scoring needs 10 mean\-field sweeps and one energy evaluation, no sampling, which is22–3×3\\times*cheaper*than the AutoEncoder and an order of magnitude cheaper than OCSVM; only Deep SVDD, a single feed\-forward pass, is faster\. The consequence for the hybrid of Section[3\.3](https://arxiv.org/html/2608.14186#S3.SS3)is therefore mild: rank\-fusing the DBM energy into an AutoEncoder deployment raises per\-sample scoring cost by about a third \(5\.985\.98vs\.4\.424\.42ms per 1,000 on Bank Marketing\) on top of a one\-off training cost of minutes\. Where training budget rather than serving cost binds, the DBM is the wrong tool; where a detector is fitted once and then served, its energy is among the cheaper scores to compute\.

Table 8:Wall\-clock cost of every method, measured on one machine \(Apple M2 Max, CPU only\)\.*Train*= fit from scratch, including the DBM’s pretraining and fine\-tuning \(233\+60233\{\+\}60/249\+100249\{\+\}100epochs under the early stopping of Section[3\.1](https://arxiv.org/html/2608.14186#S3.SS1)\);*Score*= scoring all45,21145\{,\}211/74,82674\{,\}826samples, per1,0001\{,\}000\.nfitn\_\{\\text\{fit\}\}is the training\-set size each method receives\. Means over 3 seeds \(BM\) and 1 seed \(NSL\-KDD\)\.

## 4Conclusion

### 4\.1Key findings

#### \(i\) Competitive single\-method detector across two domains\.

Even though it is a*classical*model from 2009\[[14](https://arxiv.org/html/2608.14186#bib.bib14)\]that we adopt without any tabular\-specific modification, the DBM’s mean\-field energyFbeforeF\_\{\\text\{before\}\}matches the AutoEncoder on Bank Marketing \(all paired\-testp≥0\.10p\\geq 0\.10\) and statistically beats it on NSL\-KDD on*all three metrics*\(Δ​AUROC=\+0\.002\\Delta\\text\{AUROC\}=\+0\.002,Δ​PR\-AUC=\+0\.022\\Delta\\text\{PR\-AUC\}=\+0\.022,Δ​F1=\+0\.010\\Delta\\text\{F1\}=\+0\.010, allp≤0\.002p\\leq 0\.002\), while significantly outperforming the remaining seven baselines—including the modern non\-parametric scorers COPOD, ECOD, and Deep SVDD on both datasets \(Section[3\.2](https://arxiv.org/html/2608.14186#S3.SS2)\)\.

#### \(ii\) HybridFbeforeF\_\{\\text\{before\}\}\+ AE outperforms either alone on both domains\.

Combining the two scores by parameter\-free rank fusion or by leave\-one\-seed\-out tuned convex combination significantly improves on either single method on both datasets \(Section[3\.3](https://arxiv.org/html/2608.14186#S3.SS3)\); the improvement is larger on Bank Marketing \(\+0\.014\+0\.014,p=0\.008p=0\.008\) than on the AUROC\-ceiling NSL\-KDD \(\+0\.0021\+0\.0021,p<10−8p<10^\{\-8\}\) but significant in both cases, with stable non\-degenerateα⋆=0\.4\\alpha^\{\\star\}=0\.4on BM and0\.60\.6on NSL\-KDD\.

#### \(iii\) Only DBM\-derived signals productively augment AE\.

Among the eight non\-AE candidate partners, onlyFbeforeF\_\{\\text\{before\}\}and DBM\-reconstruction significantly improve the AE\-paired ensemble; every non\-DBM partner either fails to improve or significantly degrades it on both datasets \(Section[3\.4](https://arxiv.org/html/2608.14186#S3.SS4), Table[6](https://arxiv.org/html/2608.14186#S3.T6)\)\.*DBM\-derived scores as a family*are therefore the unique productive partners for AE; among themFbeforeF\_\{\\text\{before\}\}is the cleaner representative of the joint\-configuration view, outperforming DBM\-reconstruction by an order of magnitude on Bank Marketing \(Section[3\.5](https://arxiv.org/html/2608.14186#S3.SS5)\) while converging to the same boost on the AUROC\-ceiling NSL\-KDD\.

Together, these findings reinforce the central position: the EBM revival visible in language and vision should percolate into tabular anomaly detection as well—not as a replacement for existing tools, but as a second perspective whose energy\-based view of the joint configuration is reliably non\-redundant with the coordinate\-wise reconstruction view that dominates current practice\.

### 4\.2Limitations

The empirical study spans two tabular AD benchmarks \(Bank Marketing and NSL\-KDD\), covering distinct application domains but not exhausting the range of tabular AD settings; whether the complementarity claim holds on other ADBench\[[9](https://arxiv.org/html/2608.14186#bib.bib9)\]datasets is dataset\-dependent, and we treat the present results as evidence of cross\-domain generalisation rather than a universal claim\. The comparison panel includes eight baselines \(Isolation Forest, OCSVM, LOF, Autoencoder, VAE, COPOD, ECOD, Deep SVDD\) covering the three dominant lineages discussed in Section[2](https://arxiv.org/html/2608.14186#S2); tabular\-specific neural designs such as the internal contrastive learning of Shenkar and Wolf\[[3](https://arxiv.org/html/2608.14186#bib.bib3)\]and ADBench\-style learned\-rejection methods are not included, nor are the diffusion\- and transformer\-based detectors proposed since, such as diffusion\-time estimation\[[32](https://arxiv.org/html/2608.14186#bib.bib32)\]and non\-parametric\-transformer detection\[[33](https://arxiv.org/html/2608.14186#bib.bib33)\]\. The panel therefore represents established practice rather than the current frontier: whether a recent deep tabular detector would also prove a productive AE partner is untested here\. Finally, the DBM as instantiated has a Bernoulli visible layer, so continuous attributes are quantile\-binned \(target 5 bins per column, deduplicated\) before being passed to the model \(Section[3\.1](https://arxiv.org/html/2608.14186#S3.SS1)\); this discards ordinal information within each bin and is sensitive to the chosen bin count\. Replacing the visible layer with a Gaussian or Gaussian–Bernoulli mixture would lift this restriction but is left to future work\.

## Acknowledgments

This study is supported by JSPS KAKENHI \(Grant No\. JP24K16472\)\.

## Disclosure of Interests

The author serves as a technical advisor to a company in the manufacturing sector; this role is unrelated to the models, data, methodology, and results reported in this study\.

## Appendix AArchitecture ablation

The hidden\-layer widths used throughout the paper \(H1=48H\_\{1\}=48,H2=24H\_\{2\}=24\) were chosen by a preliminary single\-seed ablation \(seed=0\\text\{seed\}=0\) on Bank Marketing\. We compared five configurations summarised in Table[1](https://arxiv.org/html/2608.14186#S3.T1): an*expansion*stack \(H1=96H\_\{1\}=96,H2=128H\_\{2\}=128\) mirroring the784→500→1000784\\to 500\\to 1000MNIST convention of the original DBM paper\[[14](https://arxiv.org/html/2608.14186#bib.bib14)\]; a*strong bottleneck*\(H1=32H\_\{1\}=32,H2=16H\_\{2\}=16\) tyingH2H\_\{2\}to the count of effectively\-active source columns; the*moderate bottleneck*\(H1=48H\_\{1\}=48,H2=24H\_\{2\}=24\) that we ultimately adopt, with roughly2×2\\timescompression per layer; a*three\-layer*extension \(H1=48H\_\{1\}=48,H2=24H\_\{2\}=24,H3=12H\_\{3\}=12\); and a*single\-RBM*depth\-1 ablation \(H1=48H\_\{1\}=48\) that drops the second hidden layer and skips joint fine\-tuning, to address whether a single RBM\[[15](https://arxiv.org/html/2608.14186#bib.bib15),[16](https://arxiv.org/html/2608.14186#bib.bib16)\]is already sufficient\. All five were trained with the protocol described in Section[3\.1](https://arxiv.org/html/2608.14186#S3.SS1), then scored on the full Bank Marketing dataset\. The single\-seed AUROCs reported here differ slightly from then=20n=20AUROCs in Tables[2](https://arxiv.org/html/2608.14186#S3.T2)and[3](https://arxiv.org/html/2608.14186#S3.T3)\(theH1=48H\_\{1\}=48,H2=24H\_\{2\}=24row\); the values here come from one preliminary run per configuration, whose purpose was to select the architecture rather than estimate variance\.

Three observations motivate the selection\. Expansion underperforms moderate compression on every metric \(AUROC0\.6630\.663vs\.0\.7370\.737\), suggesting that wider top layers—standard in image\-domain DBM applications—are poorly matched to tabular AD where low\-dimensional joint structure is what the model should extract\. Configurations whose deepest layer is at or below the number of source attributes \(H2=16H\_\{2\}=16,H3=12H\_\{3\}=12\) stop improving at epoch 3 of joint fine\-tuning and never recover, with full\-dataset AUROC dropping to0\.6770\.677and0\.6080\.608respectively\. The single\-RBM variant matches most of the two\-layer aggregate accuracy \(Δ​AUROC=0\.005\\Delta\\text\{AUROC\}=0\.005in favour of the DBM\), confirming that the first hidden layer captures the bulk of the inlier signal, but the gap widens modestly on theΔ​F\\Delta F\-sum \(\+0\.020\+0\.020\) and only the two\-layer model exposes the non\-additive structure analysed in Appendix[C](https://arxiv.org/html/2608.14186#A3)\. We therefore retain theH1=48H\_\{1\}=48,H2=24H\_\{2\}=24moderate bottleneck\.

## Appendix BMean\-field energy vs proper variational free energy

The variational free energy of a DBM with mean\-field posteriorq⁡\(h∣v\)=∏l∏jBernoulli​\(μj\(l\)\)q\(h\\mid v\)=\\prod\_\{l\}\\prod\_\{j\}\\text\{Bernoulli\}\(\\mu\_\{j\}^\{\(l\)\}\)is

Fproper​\(v\)=E⁡\(v,μ\)−H⁡\(μ\),F\_\{\\text\{proper\}\}\(v\)\\;=\\;E\(v,\\mu\)\\;\-\\;H\(\\mu\),\(2\)whereE⁡\(v,μ\)E\(v,\\mu\)is the energy of Eq\. \([1](https://arxiv.org/html/2608.14186#S3.E1)\) evaluated with each hidden unit replaced by its mean\-field expectation, andH\(μ\)=−∑l∑j\[μj\(l\)logμj\(l\)\+\(1−μj\(l\)\)log\(1−μj\(l\)\)\]H\(\\mu\)=\-\\sum\_\{l\}\\sum\_\{j\}\[\\mu\_\{j\}^\{\(l\)\}\\log\\mu\_\{j\}^\{\(l\)\}\+\(1\-\\mu\_\{j\}^\{\(l\)\}\)\\log\(1\-\\mu\_\{j\}^\{\(l\)\}\)\]is the Bernoulli entropy of the mean\-field posterior summed over both hidden layers\. The score used in the main paper,Fbefore​\(v\)=E⁡\(v,μ\)F\_\{\\text\{before\}\}\(v\)=E\(v,\\mu\), drops the entropy term and is therefore not the proper variational free energy; the convention is inherited from our prior workshop paper\[[29](https://arxiv.org/html/2608.14186#bib.bib29)\]\. Section[3\.5](https://arxiv.org/html/2608.14186#S3.SS5)summarises the empirical justification; this appendix gives the full setup, the per\-seed sanity check, and the mechanism analysis\.

Using the 20 already\-trained DBMs from the protocol of Section[3\.1](https://arxiv.org/html/2608.14186#S3.SS1), we re\-evaluate each model on the full Bank Marketing dataset with both scores:FE=E⁡\(v,μ\)F\_\{E\}=E\(v,\\mu\)\(the choice used throughout the paper\) andFproper=E⁡\(v,μ\)−H⁡\(μ\)F\_\{\\text\{proper\}\}=E\(v,\\mu\)\-H\(\\mu\)\. No retraining is performed—only the score function changes\. Mean\-field inference uses 10 iterations exactly as in the main experiments, with a numerical clampμ∈\[10−7,1−10−7\]\\mu\\in\[10^\{\-7\},\\,1\-10^\{\-7\}\]before evaluatinglog⁡μ\\log\\mu\. A sanity check confirms that the recomputedFEF\_\{E\}matches the storedFbeforeF\_\{\\text\{before\}\}from the main runs to within5×10−55\\times 10^\{\-5\}on every seed\. Table[7](https://arxiv.org/html/2608.14186#S3.T7)reports the comparison: subtractingH⁡\(μ\)H\(\\mu\)*reduces*performance on every metric, statistically significantly so on PR\-AUC and F1 \(p<0\.01p<0\.01\) and borderline\-significantly on AUROC \(p=0\.055p=0\.055\), with14/2014/20seeds favouringFEF\_\{E\}on AUROC and no seed showing a meaningful win forFproperF\_\{\\text\{proper\}\}\.

The degradation reflects a systematic asymmetry inH⁡\(μ\)H\(\\mu\)between inliers and anomalies\. The mean per\-sample entropy of the mean\-field posterior isHinlier=6\.04±0\.15H\_\{\\text\{inlier\}\}=6\.04\\pm 0\.15nats andHanomaly=6\.48±0\.15H\_\{\\text\{anomaly\}\}=6\.48\\pm 0\.15nats, a difference of\+0\.43±0\.02\+0\.43\\pm 0\.02nats that is positive in every seed \(t=19\.95t=19\.95,p≈3×10−14p\\approx 3\\times 10^\{\-14\}\): when the DBM is presented with an anomalous input, mean\-field inference converges to a less\-confident posterior \(per\-unitμj\\mu\_\{j\}closer to12\\tfrac\{1\}\{2\}\), soH⁡\(μ\)H\(\\mu\)is larger\. BecauseFproper=E⁡\(μ\)−H⁡\(μ\)F\_\{\\text\{proper\}\}=E\(\\mu\)\-H\(\\mu\), the larger anomaly\-side entropy is subtracted off the anomaly score, partially cancelling the discriminative signal thatE⁡\(μ\)E\(\\mu\)carries\.FproperF\_\{\\text\{proper\}\}remains the correct upper bound on−log⁡p⁡\(v\)\-\\log p\(v\), but its looseness varies systematically with the sample in a direction that hurts ranking; for DBM\-based anomaly detection on Bank Marketing the mean\-field energy is therefore preferable, and we adoptFbefore=E⁡\(μ\)F\_\{\\text\{before\}\}=E\(\\mu\)throughout the paper on this basis\.

### Architecture and dataset scope

Section[3\.5](https://arxiv.org/html/2608.14186#S3.SS5)scopes this finding along two axes: architecture and dataset\. Table[9](https://arxiv.org/html/2608.14186#A2.T9)gives the underlying numbers\. The comparison is repeated on the depth\-1 ablation of Appendix[A](https://arxiv.org/html/2608.14186#A1)—a single RBM \(H1=48H\_\{1\}=48, no second hidden layer, hence no joint fine\-tuning stage\) trained over 20 seeds on the same binarised inputs—and on both datasets\. The entropy asymmetryHanomaly\>HinlierH\_\{\\text\{anomaly\}\}\>H\_\{\\text\{inlier\}\}holds in20/2020/20seeds in all four settings, so it is a property of the mean\-field posterior rather than of network depth\. The consequence for ranking is smaller and less uniform: significant in favour ofFEF\_\{E\}on NSL\-KDD for both architectures, borderline on Bank Marketing for the DBM, and indistinguishable from zero on Bank Marketing for the RBM\. The two entropies are not comparable across rows in absolute terms, since a two\-layer model sumsH⁡\(μ\)H\(\\mu\)over more hidden units than a one\-layer model; only the within\-row class difference is meaningful\.

Table 9:Scope of the entropy\-term comparison across architectures and datasets \(n=20n=20seeds each\)\.Δ​H=Hanomaly−Hinlier\\Delta H=H\_\{\\text\{anomaly\}\}\-H\_\{\\text\{inlier\}\}\(nats\), mean±\\pmSE; “pos\.” = seeds withΔ​H\>0\\Delta H\>0\.Δ​AUROC=AUROC​\(FE\)−AUROC​\(Fproper\)\\Delta\\text\{AUROC\}=\\text\{AUROC\}\(F\_\{E\}\)\-\\text\{AUROC\}\(F\_\{\\text\{proper\}\}\), withppfrom a paired two\-sidedtt\-test\. The Bank Marketing / DBM\-2L row is the one reported in Table[7](https://arxiv.org/html/2608.14186#S3.T7)\.

## Appendix CPairwise column interactions in the DBM

A natural per\-attribute interpretability handle for the DBM is the single\-column interventionΔ​Fc​\(v\)=Fafterc​\(v\)−Fbefore​\(v\)\\Delta F\_\{c\}\(v\)=F\_\{\\text\{after\}\}^\{c\}\(v\)\-F\_\{\\text\{before\}\}\(v\)obtained by replacing columnccof samplevvwith its inlier\-mode value\. This appendix extends the construction to*pairs*of columns on Bank Marketing, with the goal of exposing the non\-additive joint structure that the DBM has learned — a quantity that is, by construction, zero for any score whose dependence on inputs is column\-separable, and therefore a structural interpretability handle that feed\-forward reconstruction\-based detectors cannot provide\.

For each pair of effectively\-active columns\(c,c′\)\(c,c^\{\\prime\}\), letvc,c′v^\{c,c^\{\\prime\}\}denote the sample obtained fromvvby simultaneously replacing both columns with their inlier modes\. We define the pairwise intervention and its non\-additive component as

Δ​Fc,c′​\(v\)\\displaystyle\\Delta F\_\{c,c^\{\\prime\}\}\(v\)=Fc,c′​\(v\)−Fbefore​\(v\),\\displaystyle=F^\{c,c^\{\\prime\}\}\(v\)\-F\_\{\\text\{before\}\}\(v\),\(3\)Ic,c′​\(v\)\\displaystyle I\_\{c,c^\{\\prime\}\}\(v\)=Δ​Fc,c′​\(v\)−Δ​Fc​\(v\)−Δ​Fc′​\(v\)\.\\displaystyle=\\Delta F\_\{c,c^\{\\prime\}\}\(v\)\-\\Delta F\_\{c\}\(v\)\-\\Delta F\_\{c^\{\\prime\}\}\(v\)\.\(4\)Ic,c′​\(v\)=0I\_\{c,c^\{\\prime\}\}\(v\)=0identically for any energy that is additive across columns, and so its magnitude measures*how non\-additively*the trained DBM uses the joint occurrence of columnsccandc′c^\{\\prime\}\. To target the anomaly\-detection question specifically, we report the class\-difference statisticI¯c,c′=𝔼anom​\[Ic,c′\]−𝔼inlier​\[Ic,c′\]\\bar\{I\}\_\{c,c^\{\\prime\}\}=\\mathbb\{E\}\_\{\\text\{anom\}\}\[I\_\{c,c^\{\\prime\}\}\]\-\\mathbb\{E\}\_\{\\text\{inlier\}\}\[I\_\{c,c^\{\\prime\}\}\]aggregated within each seed and then averaged across the 20 seeds of the main protocol\.

Of the\(142\)=91\\binom\{14\}\{2\}=91pairs of effectively\-active columns,57/9157/91are individually significant atα=0\.05\\alpha=0\.05uncorrected, and31/9131/91remain significant under Bonferroni correction \(α/91≈5\.5×10−4\\alpha/91\\approx 5\.5\\times 10^\{\-4\}\) on a paired two\-sidedtt\-test of per\-seed anomaly\-vs\-inlier means\. Among those 31 pairs, the sign ofI¯c,c′\\bar\{I\}\_\{c,c^\{\\prime\}\}is stable in every seed for the headline entries \(top five pairs:20/2020/20seeds agree on sign\), and across all 31 the fraction of seeds agreeing on sign is at least0\.90\.9\. The remaining 60 pairs have small\|I¯c,c′\|\|\\bar\{I\}\_\{c,c^\{\\prime\}\}\|\(median0\.020\.02nats\) and frequently flip sign across seeds, so the non\-additive signal is concentrated in a small, robust subset rather than diffused across all pairs\. Figure[2](https://arxiv.org/html/2608.14186#A3.F2)visualisesI¯c,c′\\bar\{I\}\_\{c,c^\{\\prime\}\}across all 91 pairs; Table[10](https://arxiv.org/html/2608.14186#A3.T10)lists the top five pairs by\|I¯c,c′\|\|\\bar\{I\}\_\{c,c^\{\\prime\}\}\|\.

![Refer to caption](https://arxiv.org/html/2608.14186v1/pairwise_interaction_heatmap.png)Figure 2:Pairwise interaction effectI¯c,c′\\bar\{I\}\_\{c,c^\{\\prime\}\}acrossn=20n=20seeds\. Red: pairs whose non\-additive coupling contributes more to the anomaly score than to the inlier score; blue: the reverse\. Bonferroni\-significant cells \(p<5\.5×10−4p<5\.5\{\\times\}10^\{\-4\}\) account for31/9131/91pairs\.Table 10:Top five column pairs by\|I¯c,c′\|\|\\bar\{I\}\_\{c,c^\{\\prime\}\}\|\. “frac\. pos\.” = fraction of the 20 seeds for which the per\-seed statistic is positive \(0\.000\.00/1\.001\.00= full sign stability\)\.The top pairs recover*a priori*plausible joint structure:job×\\timeseducationcaptures the occupational–educational correlation,job×\\timesageandmarital×\\timesagecapture demographic co\-occurrence, andmonth×\\times\{day\_of\_week,contact,housing\}\\\{\\texttt\{day\\\_of\\\_week\},\\texttt\{contact\},\\texttt\{housing\}\\\}captures the temporal–channel structure of a direct\-marketing campaign\. The per\-pair\|Δ​Fc,c′\|\|\\Delta F\_\{c,c^\{\\prime\}\}\|on its own reaches AUROC at most0\.710\.71\(poutcome×\\timesduration\), well below the headlineFbeforeF\_\{\\text\{before\}\}score, so we frameI¯c,c′\\bar\{I\}\_\{c,c^\{\\prime\}\}as a structural interpretability diagnostic rather than a competing predictor\.

## References

- Chandola et al\. \[2009\]Varun Chandola, Arindam Banerjee, and Vipin Kumar\.Anomaly detection: A survey\.*ACM computing surveys \(CSUR\)*, 41\(3\):1–58, 2009\.
- Pang et al\. \[2021\]Guansong Pang, Chunhua Shen, Longbing Cao, and Anton Van Den Hengel\.Deep learning for anomaly detection: A review\.*ACM computing surveys \(CSUR\)*, 54\(2\):1–38, 2021\.
- Shenkar and Wolf \[2022\]Tom Shenkar and Lior Wolf\.Anomaly detection for tabular data with internal contrastive learning\.In*International conference on learning representations*, 2022\.
- Liu et al\. \[2008\]Fei Tony Liu, Kai Ming Ting, and Zhi\-Hua Zhou\.Isolation forest\.In*IEEE International Conference on Data Mining*, 2008\.
- Schölkopf et al\. \[2001\]Bernhard Schölkopf, John C Platt, John Shawe\-Taylor, Alex J Smola, and Robert C Williamson\.Estimating the support of a high\-dimensional distribution\.*Neural Computation*, 13\(7\):1443–1471, 2001\.
- Breunig et al\. \[2000\]Markus M Breunig, Hans\-Peter Kriegel, Raymond T Ng, and Jörg Sander\.LOF: Identifying density\-based local outliers\.In*ACM SIGMOD International Conference on Management of Data*, pages 93–104, 2000\.
- Hinton and Salakhutdinov \[2006\]Geoffrey E Hinton and Ruslan R Salakhutdinov\.Reducing the dimensionality of data with neural networks\.*science*, 313\(5786\):504–507, 2006\.
- Kingma and Welling \[2014\]Diederik P\. Kingma and Max Welling\.Auto\-encoding variational bayes\.In*Proceedings of the 2nd International Conference on Learning Representations \(ICLR 2014\)*, 2014\.
- Han et al\. \[2022\]Songqiao Han, Xiyang Hu, Hailiang Huang, Minqi Jiang, and Yue Zhao\.ADBench: Anomaly detection benchmark\.In*Advances in Neural Information Processing Systems*, 2022\.
- Li et al\. \[2020\]Zheng Li, Yue Zhao, Nicola Botta, Cezar Ionescu, and Xiyang Hu\.COPOD: Copula\-based outlier detection\.In*IEEE International Conference on Data Mining \(ICDM\)*, 2020\.
- Li et al\. \[2022\]Zheng Li, Yue Zhao, Xiyang Hu, Nicola Botta, Cezar Ionescu, and George H\. Chen\.ECOD: Unsupervised outlier detection using empirical cumulative distribution functions\.*IEEE Transactions on Knowledge and Data Engineering*, 2022\.
- Ruff et al\. \[2018\]Lukas Ruff, Robert Vandermeulen, Nico Görnitz, Lucas Deecke, Shoaib Ahmed Siddiqui, Alexander Binder, Emmanuel Müller, and Marius Kloft\.Deep one\-class classification\.In*International Conference on Machine Learning \(ICML\)*, 2018\.
- Ackley et al\. \[1985\]David H Ackley, Geoffrey E Hinton, and Terrence J Sejnowski\.A learning algorithm for boltzmann machines\.*Cognitive science*, 9\(1\):147–169, 1985\.
- Salakhutdinov and Hinton \[2009\]Ruslan Salakhutdinov and Geoffrey Hinton\.Deep boltzmann machines\.In*Artificial intelligence and statistics*, pages 448–455\. PMLR, 2009\.
- Smolensky \[1986\]Paul Smolensky\.Information processing in dynamical systems: Foundations of harmony theory\.Technical report, 1986\.
- Hinton \[2012\]Geoffrey E Hinton\.A practical guide to training restricted boltzmann machines\.In*Neural Networks: Tricks of the Trade: Second Edition*, pages 599–619\. Springer, 2012\.
- Gladstone et al\. \[2026\]Alexi Gladstone, Ganesh Nanduru, Md Mofijul Islam, Peixuan Han, Hyeonjeong Ha, Aman Chadha, Yilun Du, Heng Ji, Jundong Li, and Tariq Iqbal\.Energy\-based transformers are scalable learners and thinkers\.In*The Fourteenth International Conference on Learning Representations*, 2026\.URL[https://openreview\.net/forum?id=ZBj3Qp1bYg](https://openreview.net/forum?id=ZBj3Qp1bYg)\.
- LeCun \[2022\]Yann LeCun\.A path towards autonomous machine intelligence\.OpenReview[https://openreview\.net/forum?id=BZ5a1r\-kVsf](https://openreview.net/forum?id=BZ5a1r-kVsf), 2022\.
- Assran et al\. \[2023\]Mahmoud Assran, Quentin Duval, Ishan Misra, Piotr Bojanowski, Pascal Vincent, Michael Rabbat, Yann LeCun, and Nicolas Ballas\.Self\-supervised learning from images with a joint\-embedding predictive architecture\.In*IEEE/CVF Conference on Computer Vision and Pattern Recognition*, 2023\.
- Bardes et al\. \[2024\]Adrien Bardes, Quentin Garrido, Jean Ponce, Xinlei Chen, Michael Rabbat, Yann LeCun, Mahmoud Assran, and Nicolas Ballas\.Revisiting feature prediction for learning visual representations from video\.*arXiv preprint arXiv:2404\.08471*, 2024\.
- Moro et al\. \[2014\]Sérgio Moro, Paulo Cortez, and Paulo Rita\.A data\-driven approach to predict the success of bank telemarketing\.*Decision Support Systems*, 62:22–31, 2014\.
- Tavallaee et al\. \[2009\]Mahbod Tavallaee, Ebrahim Bagheri, Wei Lu, and Ali A\. Ghorbani\.A detailed analysis of the KDD CUP 99 data set\.In*IEEE Symposium on Computational Intelligence for Security and Defense Applications*, 2009\.
- LeCun et al\. \[2006\]Yann LeCun, Sumit Chopra, Raia Hadsell, M Ranzato, Fujie Huang, et al\.A tutorial on energy\-based learning\.*Predicting structured data*, 2006\.
- Song and Kingma \[2021\]Yang Song and Diederik P Kingma\.How to train your energy\-based models\.*arXiv preprint arXiv:2101\.03288*, 2021\.
- Nalisnick et al\. \[2019\]E Nalisnick, A Matsukawa, Y Teh, D Gorur, and B Lakshminarayanan\.Do deep generative models know what they don’t know?In*International Conference on Learning Representations*, 2019\.
- Zhai et al\. \[2016\]Shuangfei Zhai, Yu Cheng, Weining Lu, and Zhongfei Zhang\.Deep structured energy based models for anomaly detection\.In*International conference on machine learning*, pages 1100–1109\. PMLR, 2016\.
- Hinton \[2025\]Geoffrey Hinton\.Nobel lecture: Boltzmann machines\.*Reviews of Modern Physics*, 97\(3\):030502, 2025\.
- Srivastava and Salakhutdinov \[2012\]Nitish Srivastava and Russ R Salakhutdinov\.Multimodal learning with deep boltzmann machines\.*Advances in neural information processing systems*, 25, 2012\.
- Niimi \[2026a\]Junichiro Niimi\.the mouth is not the brain: Bridging energy\-based world models and language generation\.In*ICLR 2026 the 2nd Workshop on World Models: Understanding, Modelling and Scaling*, 2026a\.URL[https://openreview\.net/forum?id=GjyyyRyrWO](https://openreview.net/forum?id=GjyyyRyrWO)\.
- Niimi \[2026b\]Junichiro Niimi\.Three\-in\-one world model: Energy\-based consistency, prediction, and counterfactual inference for marketing intervention\.In*International Conference on Neural Information Processing \(ICONIP\)*, 2026b\.URL[https://arxiv\.org/abs/2605\.07199](https://arxiv.org/abs/2605.07199)\.To appear\.
- Zhao et al\. \[2019\]Yue Zhao, Zain Nasrullah, and Zheng Li\.PyOD: A Python toolbox for scalable outlier detection\.*Journal of Machine Learning Research*, 20\(96\):1–7, 2019\.
- Livernoche et al\. \[2024\]Victor Livernoche, Vineet Jain, Yashar Hezaveh, and Siamak Ravanbakhsh\.On diffusion modeling for anomaly detection\.In*International Conference on Learning Representations*, volume 2024, pages 25836–25866, 2024\.
- Thimonier et al\. \[2023\]Hugo Thimonier, Fabrice Popineau, Arpad Rimmel, and Bich\-Liên DOAN\.Beyond individual input for deep anomaly detection on tabular data\.In*NeurIPS 2023 Second Table Representation Learning Workshop*, 2023\.

相似文章

建模时空图异常检测中的频谱能量偏移

arXiv cs.LG

提出了一种节点级频谱能量公式,用于检测图中的伪装异常,并将其扩展到具有能量驱动消息传递的时空设置。在大规模基准测试上证明了其有效性。