Learning Distributionally Robust Tractable Probabilistic Models in Continuous Domains

Hailiang Dong, James Amato, Vibhav Giridhar Gogate, Nicholas RuozziUAI 2024

TL;DR

This paper introduces a novel method for training "distributionally robust" probabilistic models in continuous domains, making them more resilient to shifts in data distribution at test time. By adapting the Distributionally Robust Supervised Learning (DRSL) framework, they achieve better performance on adversarial test sets and even match or exceed standard models on clean data.

What Problem Does This Paper Address?

Machine learning models, especially those that learn from data distributions, often struggle when the data they encounter in the real world differs from the data they were trained on. This "distribution shift" can lead to a significant drop in performance. Tractable Probabilistic Models (TPMs), which are great for reasoning and inference in polynomial time, are typically trained using Maximum Likelihood Estimation (MLE). However, MLE assumes the training data perfectly represents the underlying distribution, an assumption that often fails in practice due to issues like measurement errors or sample selection bias. While robust learning methods exist, they've largely been limited to discrete domains. This paper tackles the challenge of making TPMs robust to distribution shifts specifically in continuous domains.

Methods

The core of the paper's contribution lies in adapting the Distributionally Robust Supervised Learning (DRSL) framework to learn robust TPMs in continuous settings. DRSL aims to optimize for the worst-case scenario within a defined "uncertainty set" of possible test distributions, rather than just the single training distribution.

Here's a breakdown of their approach:

  • DRSL Formulation: They frame the problem as a minimax game. The "adversary" tries to find a reweighting of the training data (represented by r) that maximizes the loss, while the "learner" (the model parameters θ) tries to minimize this worst-case loss.
  • Adversarial Risk Minimization: They specifically tackle the adversarial risk minimization problem within DRSL. For continuous TPMs, this involves finding an optimal weight vector r that minimizes the expected loss under a perturbed distribution.
  • Efficient Algorithm: A key innovation is an efficient algorithm for solving the inner optimization problem (finding the optimal r). They derive a dual problem and propose a coordinate ascent approach combined with binary search, achieving linearithmic time complexity for this step. This is crucial for making the robust learning practical.
  • Learning Step: The outer optimization problem (finding the model parameters θ) is shown to be equivalent to a standard Maximum Likelihood Estimation (MLE) problem, but with weighted data. This means existing efficient learning algorithms for TPMs can be leveraged.

Datasets

The authors evaluated their approach on nine real-world datasets:

  • UCI Machine Learning Repository: Eight datasets were selected from here.
  • MNIST: The MNIST image dataset was used, but with a twist: each image was first encoded into a 20-dimensional feature vector using a variational autoencoder.

For all datasets, they used an 85% training, 15% testing split, with 20% of the training data reserved for validation. They also created two types of adversarial test sets:

  1. Gaussian Noise: Adding zero-mean Gaussian noise with a standard deviation of one, clipped to the interval [-0.2, 0.2].
  2. Jittered Input: Randomly picking 20% of input entries and assigning them a value uniformly sampled from [-0.2, 0.2].

Key Insights and Ideas

  • DRSL as a General Tool: The paper demonstrates that DRSL, a framework previously explored for classification, can be effectively adapted for learning robust probabilistic models in continuous domains. This broadens the applicability of DRSL.
  • Efficient Adversarial Step: The development of a linearithmic time algorithm for the adversarial step is a significant practical contribution. This overcomes a common bottleneck in robust optimization.
  • Robustness Doesn't Always Hurt Clean Performance: A surprising finding is that their robustly trained models not only perform better on adversarial test sets but often achieve comparable or even higher log-likelihoods on the original, uncorrupted test sets. This suggests that learning to be robust can lead to a more well-shaped and accurate underlying distribution.
  • Jittered Data is Harder: The robust models showed more substantial improvements on the "jittered" adversarial test sets compared to those with Gaussian noise, indicating better resilience to more significant data perturbations.
  • Smoothness as a Benefit: The robust models appear to learn distributions that are smoother around real data points, suggesting a more comprehensive understanding of the data's underlying structure beyond just isolated outliers.

Key Results

The paper reports strong empirical results across various datasets and model types (Mixture of Multivariate Gaussians - MixMG, and a Neural Network-based model - NN-GBN):

  • Improved Adversarial Performance: In most adversarial test scenarios (Gaussian noise, jittered input, worst neighbor, average neighbor), the DRSL-trained models consistently achieved higher average log-likelihood scores than their standard MLE-trained counterparts. For instance, on the "Worst NB" scenario for MixMG, DRSL achieved -290.95 ± 133.7 compared to MLE's -380.05 ± 130.6.
  • Comparable/Superior Clean Performance: Remarkably, DRSL models also achieved higher or similar average log-likelihoods on the original, uncorrupted test sets in many cases. For example, on the "Original Test" for MixMG, DRSL achieved 9.29 ± 4.6, while MLE got 9.53 ± 6.3, and for NN-GBN, DRSL achieved -1.16 ± 9.3 versus MLE's -1.23 ± 8.3.
  • Number of Wins: Across various scenarios and model types, the DRSL models won (achieved higher log-likelihood) more often than the MLE models. For example, in Table 2 (MixMG), DRSL won 8 out of 10 original test cases, while MLE won 1.

Limitations and Future Work

  • Parameter Learning Focus: The current work focuses on learning model parameters while assuming the model's structure is fixed.
  • Future Directions: The authors suggest extending this framework to:
  • Develop efficient structure learning algorithms for weighted data.
  • Apply the approach to other continuous TPMs, such as Sum Product Networks (SPNs).

Summary updated

BibTeX
@inproceedings{dong2024learning,
  author = {Hailiang Dong and James Amato and Vibhav Giridhar Gogate and Nicholas Ruozzi},
  title = {{Learning Distributionally Robust Tractable Probabilistic Models in Continuous Domains}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=SlxO1NpLiE},
}

Loading related content...

Figure