Skip to main content
QUICK REVIEW

[Paper Review] Robust Variational Autoencoder for Tabular Data with Beta Divergence

Haleh Akrami, Sergül Aydöre|arXiv (Cornell University)|Jun 15, 2020
Anomaly Detection Techniques and ApplicationsComputer Science17 references5 citations
TL;DR

This paper proposes a Robust Variational Autoencoder for Tabular Data (RTVAE) that uses β-divergence to improve training robustness against outliers in mixed categorical and continuous tabular data. By replacing the standard KL divergence with β-divergence in the reconstruction loss, the model maintains accurate anomaly detection performance even when training data contains up to 1% contamination, outperforming standard VAEs in AUC on KDDCup 99, NSL-KDD, and UNSW-NB15 datasets.

ABSTRACT

We propose a robust variational autoencoder with $β$ divergence for tabular data (RTVAE) with mixed categorical and continuous features. Variational autoencoders (VAE) and their variations are popular frameworks for anomaly detection problems. The primary assumption is that we can learn representations for normal patterns via VAEs and any deviation from that can indicate anomalies. However, the training data itself can contain outliers. The source of outliers in training data include the data collection process itself (random noise) or a malicious attacker (data poisoning) who may target to degrade the performance of the machine learning model. In either case, these outliers can disproportionately affect the training process of VAEs and may lead to wrong conclusions about what the normal behavior is. In this work, we derive a novel form of a variational autoencoder for tabular data sets with categorical and continuous features that is robust to outliers in training data. Our results on the anomaly detection application for network traffic datasets demonstrate the effectiveness of our approach.

Motivation & Objective

  • Address the vulnerability of standard Variational Autoencoders (VAEs) to outliers in training data, which can distort learned representations of normal behavior.
  • Extend the robust β-divergence framework—previously applied to image data—to tabular datasets with mixed categorical and continuous features.
  • Develop a unified training mechanism for RTVAE that handles both categorical and continuous variables using β-divergence-based reconstruction losses.
  • Demonstrate improved robustness in anomaly detection under data contamination, particularly in network traffic datasets where labeled anomalies are scarce.

Proposed method

  • Replace the standard KL-divergence in VAE reconstruction loss with β-divergence to reduce sensitivity to large reconstruction errors from outliers.
  • Derive a β-divergence-based reconstruction loss for categorical variables using a β-cross-entropy formulation that accounts for discrete probability distributions.
  • Formulate a continuous-variable reconstruction loss under Gaussian assumption, adapting the β-divergence to Gaussian likelihoods via a modified log-likelihood term.
  • Combine categorical and continuous reconstruction losses into a single objective function for mixed tabular data, enabling end-to-end training.
  • Use a fully connected neural network architecture with tanh and softmax activations for continuous and categorical decoders, respectively.
  • Train the model using Adam optimizer with β hyperparameter tuned via validation AUC, and apply early stopping to prevent overfitting.

Experimental results

Research questions

  • RQ1Can β-divergence improve the robustness of VAEs when training data contains outliers in tabular datasets with mixed feature types?
  • RQ2How does the performance of RTVAE compare to standard VAEs under increasing levels of data contamination in network traffic datasets?
  • RQ3Does the proposed β-divergence-based reconstruction loss maintain high anomaly detection accuracy when the true normal distribution is corrupted by outliers?
  • RQ4Can the RTVAE effectively learn meaningful low-dimensional representations of normal behavior even when training data includes malicious or noisy samples?

Key findings

  • The standard VAE's AUC performance degrades significantly with as little as 1% contamination in the training data, indicating high sensitivity to outliers.
  • RTVAE maintains stable and high AUC performance across all tested datasets (KDDCup 99, NSL-KDD, UNSW-NB15) even under 1% training contamination.
  • The model's robustness is attributed to β-divergence's ability to downweight the influence of large reconstruction errors from outliers during training.
  • Hyperparameter tuning of β in the range [1e-5, 0.1] via validation AUC leads to optimal performance, with the best results achieved at low β values.
  • The RTVAE achieves superior anomaly detection performance on benchmark network traffic datasets compared to standard VAEs, particularly in scenarios with data poisoning or noisy data collection.
  • The proposed method successfully generalizes β-divergence from image-based VAEs to tabular data with mixed categorical and continuous features, enabling robust representation learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.