Robust Bayesian Inference for Discrete Outcomes with the Total Variation Distance

Jeremias Knoblauch, Lara VomfellarXiv 2020

Standard Bayesian inference is notoriously sensitive to outliers and model misspecification, especially when dealing with discrete data like counts or classification labels. This paper introduces a robust generalized Bayesian inference method that swaps the standard Kullback-Leibler Divergence (KLD) for the Total Variation Distance (TVD). By pairing TVD with Nonparametric Bayesian Learning (NPL), the authors deliver a computationally efficient, highly robust algorithm that ignores severe outliers and improves predictive performance.

The Problem: Sensitivity to Outliers

When modeling discrete outcomes—such as the number of rainfall days or medical diagnoses—real-world data is rarely perfect. It often contains zero-inflation, overdispersion, or corrupted data points (outliers).

Standard Maximum Likelihood Estimation (MLE) and conventional Bayesian inference both implicitly minimize the KLD between the model and the data. KLD is highly sensitive to outliers because it heavily penalizes models that assign low probability to observed data points, even if those points are anomalies. While robust alternatives exist for continuous data, they are often computationally prohibitive for discrete data or models outside the exponential family.

Comparison of TVD and KLD fits on a distribution with outliers. TVD focuses on the primary probability mass, whereas KLD is pulled toward the outlier cluster.

Methodology: TVD and Nonparametric Learning

The proposed framework replaces KLD with the Total Variation Distance (TVD), which measures the average absolute difference between the candidate probability model and the true data-generating distribution. To make this approach practical, the authors introduce two key innovations:

  1. A Fast TVD Estimator: Calculating true TVD requires knowing the true data-generating process. The authors prove that a simple "naive" empirical estimator converges almost surely and retains TVD's robustness properties while being orders of magnitude faster than previous kernel-based methods.
  2. Nonparametric Bayesian Learning (NPL): To avoid placing priors on potentially misspecified model parameters, the authors use NPL (specifically, the Posterior Bootstrap). This places a Dirichlet Process prior directly on the data-generating mechanism. Practically, this results in an embarrassingly parallel algorithm: one draws bootstrap weights for the dataset and optimizes the TVD for each set to obtain posterior samples.

Key Insights: Bounded Vulnerability

The most striking theoretical property of TVD is that its error is strictly bounded by $2\epsilon$, where $\epsilon$ is the proportion of contaminated data. This means the severity of an outlier does not matter—only its frequency. A massive outlier skews KLD infinitely, but TVD remains stable. This "bounded vulnerability" makes TVD an ideal objective for robust inference.

Experimental Results

The authors evaluated their method on synthetic benchmarks and ten real-world datasets from the UCI Machine Learning Repository, including Probit regression and Neural Networks.

Synthetic Robustness

In a contaminated Poisson model with 15% corrupted data, the error of standard Bayesian inference (KLD) skyrocketed as the severity of the outliers ($k$) increased. In contrast, the TVD method's error remained flat, successfully recovering the true parameters of the uncorrupted data.

Performance metrics under increasing outlier severity (k). TVD maintains stable absolute error and predictive likelihoods, while KLD performance degrades significantly.

Real-World Performance

Across all 10 UCI datasets, models trained with the TVD objective consistently achieved better out-of-sample predictive likelihoods than those trained with KLD. This held true for both simple Probit models and single-layer Neural Networks. Importantly, in the absence of misspecification (clean data), the TVD method matches the performance of KLD, acting as a "free" insurance policy against outliers.

Limitations and Future Work

Despite its robustness, the TVD objective function is non-convex and can be perfectly flat for many parameter values, making optimization challenging. The authors currently use MLE estimates as initializers to mitigate this. Additionally, while empirical results for continuous covariates are strong using the naive estimator, there is a slight theoretical gap between the implementation and the concentration inequalities derived for kernel density surrogates.

Summary updated

BibTeX
@misc{knoblauch2020robust,
  author = {Jeremias Knoblauch and Lara Vomfell},
  title = {{Robust Bayesian Inference for Discrete Outcomes with the Total Variation Distance}},
  year = {2020},
  eprint = {2010.13456},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.13456},
}
Figure