RGLD: Randomized Global-Local Density Estimation for Tabular Anomaly Detection

Quanling Zhao, Jiaying Yang, Ye Tian, Josh Victoria, Zhijun Wang, Pietro Mercati, Onat Gungor, Tajana RosingarXiv 2026

TL;DR

RGLD (Randomized Global-Local Density) is a fully unsupervised tabular anomaly detector that achieves state-of-the-art accuracy while running 50× to 580× faster than deep learning alternatives. By combining global density estimation and local neighborhood isolation across randomized, feature-bagged views, it successfully captures diverse anomaly mechanisms without the heavy training and tuning costs of deep models.

What Problem Does This Paper Address?

Detecting anomalies in tabular data without labels is a notoriously tricky problem. Traditional statistical methods (like $k$-Nearest Neighbors or Isolation Forests) are fast and interpretable, but they are rigid: they usually look at the data through a single fixed lens and define "abnormality" in only one way. On the flip side, deep learning detectors offer immense flexibility but come with massive computational overhead, optimization instability, and a lack of clear tuning signals in unsupervised settings.

Furthermore, real-world anomalies are slippery. An anomaly might be a "global" outlier (completely isolated from all normal data) or a "local" outlier (appearing normal globally but anomalous relative to its immediate neighbors). To make matters worse, an anomaly might only be visible when looking at a specific subset of features; looking at all features at once can dilute the signal with noise.

Figure 1: Unknown anomaly scale. Left: Fine- scale anomalies occur near a dense cluster, while broad-scale anomalies occur around a diffuse clus- ter. Right: Small and large bandwidths favor dif- ferent anomaly scales, while multi-sigma scoring provides a more balanced signal when the correct scale is unknown.

Methods

The authors introduce RGLD, a framework designed to capture multiple anomaly mechanisms efficiently through randomized computation. The architecture consists of two main parallel branches operating over multiple randomized views of the data:

Figure 3: RGLD Overview. RGLD constructs feature-bagged random views and processes them through two complementary branches. The global density branch uses random projections and density surrogates for multi-scale density scoring, capturing global rarity. The local neighbor branch uses projected views and sampled reference sets to measure local isolation. Scores are rank-aggregated within each branch and then rank-aggregated again to produce the final anomaly score.
  1. Randomized Multi-View Generation: For each view, RGLD randomly samples a subset of features (feature bagging) and applies a random projection matrix. This reduces dimensionality and forces the model to inspect different subspaces where anomalies might be hiding.
  2. Global Density Branch: Instead of calculating expensive pairwise distances for standard Kernel Density Estimation (KDE)—which scales quadratically ($O(n^2)$)—RGLD uses Random Fourier Features (RFF) to approximate the kernel space. This compresses the entire dataset into a single mean embedding vector, dropping the scoring complexity to linear time ($O(n)$). It also evaluates density across multiple bandwidth scales ($\sigma$) to catch both fine-grained and broad anomalies.
  3. Local Neighbor Branch: To catch locally isolated anomalies that might sit near normal clusters, this branch computes $k$NN isolation scores. To keep it scalable, distances are computed only within a small, randomly sampled reference set rather than the entire dataset.
  4. Rank-Based Aggregation: Because density scores and distance scores have entirely different scales and meanings, RGLD converts all outputs into normalized ranks. It averages these ranks within each branch and then aggregates them across both branches to produce a final, stable anomaly score.

Datasets

The authors evaluated RGLD using 47 tabular datasets from ADBench, a comprehensive real-world anomaly detection benchmark. These datasets span diverse domains including healthcare, finance, network security, linguistics, and image-derived features. No new datasets were introduced in this paper.

Key Insights and Ideas

  • Complementary Inductive Biases: Global rarity and local isolation are fundamentally different. A point can be globally rare but not locally isolated, or vice versa. RGLD's dual-branch approach ensures neither type is missed.
  • Randomization as an Efficiency Shortcut: The paper proves that you don't need exact, computationally heavy calculations to find anomalies. Approximating KDE via Random Fourier Features and approximating $k$NN via sampled reference sets preserves enough geometric signal to accurately rank anomalies while slashing runtimes.
  • Rank Over Magnitude: Merging heterogeneous statistical signals (like a density exponent vs. a geometric distance) by their raw values is unstable. Converting scores to relative dataset ranks acts as a natural equalizer, making the ensemble robust to scale mismatches.

Key Results

RGLD was benchmarked against 23 competing methods, including both classical statistical baselines and state-of-the-art deep learning models.

Main benchmark results table
  • Accuracy Leaderboard: RGLD achieved the highest number of dataset-level AUROC wins (8 first-place finishes) and ranked 2nd in AUPRC wins (5 first-place finishes).
  • Dramatic Speedups: RGLD proved to be incredibly lightweight, outperforming deep learning methods like SLAD, REPEN, and NeuTraL in speed by 50× to 580×. It processes complex datasets in fractions of a second on a standard CPU, making it highly competitive with ultra-fast marginal detectors (like COPOD or ECOD) while delivering superior accuracy.

Limitations and Future Work

  • Diffuse Anomaly Signals: RGLD relies heavily on feature bagging to find informative subspaces. If an anomaly signal is extremely weak and highly diffuse across a massive number of features, random subspace sampling might miss it.
  • Static Tabular Only: The current implementation is strictly for static tabular data. The authors note that extending RGLD to handle temporal dependencies (time series), graph structures, or streaming data would require additional architectural design choices.
  • Expanding Score Types: Future work could involve integrating other types of scalable anomaly signals—such as reconstruction errors or marginal tail behaviors—into RGLD's randomized rank-aggregation framework.

Summary updated

BibTeX
@misc{zhao2026rgld,
  author = {Quanling Zhao and Jiaying Yang and Ye Tian and Josh Victoria and Zhijun Wang and Pietro Mercati and Onat Gungor and Tajana Rosing},
  title = {{RGLD: Randomized Global-Local Density Estimation for Tabular Anomaly Detection}},
  year = {2026},
  eprint = {2606.28970},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.28970},
}
Figure