Adversarial α-divergence minimization for Bayesian approximate inference

Simón Rodríguez Santana, Daniel Hernández-LobatoNeurocomputing 2019 · DOI

TL;DR

This paper introduces Adversarial α-divergence Minimization (AADM), a novel Bayesian approximate inference method for neural networks. AADM generalizes existing techniques by minimizing a broader class of divergences (α-divergences) and allowing for flexible, implicit approximate posterior distributions, leading to improved uncertainty estimation in predictions, particularly in regression tasks.

What Problem Does This Paper Address?

Modern neural networks excel at making predictions, but they often struggle to quantify the uncertainty associated with those predictions. This lack of uncertainty estimation is a significant drawback in applications where understanding confidence is crucial, such as in safety-critical systems or active learning. Bayesian approaches offer a principled way to estimate this uncertainty by inferring a posterior distribution over model parameters. However, these posterior distributions are typically intractable and must be approximated. Existing methods like Variational Inference (VI) and Adversarial Variational Bayes (AVB) use the Kullback-Leibler (KL) divergence to approximate the posterior, but this can limit the flexibility of the approximate distribution and potentially lead to biased estimates. The paper aims to address this by proposing a more general and flexible framework for approximate Bayesian inference.

Methods

The core contribution is the Adversarial α-divergence Minimization (AADM) method. AADM builds upon the Adversarial Variational Bayes (AVB) framework, which uses a discriminator network to estimate the KL divergence between an implicit approximate posterior distribution and the prior. The key innovation in AADM is the generalization of the KL divergence to the α-divergence, controlled by a parameter α.

Here's a breakdown of the approach:

  • Implicit Approximate Posterior: AADM, like AVB, uses implicit models for the approximate posterior distribution $q(w)$. These models are easy to sample from (e.g., by transforming Gaussian noise through a neural network) but lack a closed-form probability density function (PDF), which is a challenge for standard inference.
  • α-divergence Minimization: Instead of solely minimizing the KL divergence (which corresponds to α → 0), AADM minimizes the α-divergence. This allows for a more flexible trade-off between approximating local modes of the true posterior (exclusive behavior, favored by low α) and covering the entire posterior distribution (inclusive behavior, favored by high α).
  • Discriminator Network: Similar to AVB, AADM employs a discriminator network. However, this discriminator is trained to estimate the α-divergence (or a related quantity) between the implicit approximate posterior and the target posterior, rather than just the KL divergence.
  • Reparameterization Trick: The paper utilizes a reparameterization of the objective function, inspired by Black-box α-divergence minimization, to enable approximate minimization of the α-divergence even with implicit models. This involves using a "cavity distribution" and leads to an objective function that can be optimized using standard stochastic gradient descent.
  • Annealing Factor: To improve convergence and avoid bad local optima, an annealing factor is introduced. This factor gradually increases the weight of the KL divergence term (or a related term) during training, allowing the model to initially focus on fitting the data before strongly enforcing the prior.

Datasets

The paper evaluates AADM on a variety of datasets:

  • Synthetic Datasets: Two toy regression problems were generated: one with heteroscedastic noise and another with a bimodal predictive distribution.
  • UCI Datasets (Regression): Eight standard UCI regression datasets were used: Boston, Concrete, Energy Efficiency, Kin8nm, Naval, Combined Cycle Power Plant, Wine, and Yatch.
  • UCI Datasets (Classification): Six binary classification datasets from the UCI repository were used: Australian, Breast, Crabs, Iono, Pima, and Sonar.
  • Big Datasets: Two large datasets were used for evaluating performance on big data: Airlines Delay and Year Prediction MSD.

Key Insights and Ideas

  • Flexibility through α-divergence: The α-divergence offers a powerful knob to tune the approximate posterior. Different values of α can lead to distinct behaviors, allowing for a better balance between capturing complex posterior shapes and ensuring good predictive performance, especially in regression.
  • Implicit Models are Beneficial: The experiments consistently show that methods allowing for flexible, implicit approximate posteriors (like AVB and AADM) generally outperform methods using simpler, parametric posteriors (like VI with a factorizing Gaussian). This highlights the importance of model expressiveness for accurate uncertainty estimation.
  • Regression vs. Classification Performance: The benefits of AADM, particularly the impact of the α parameter, are more pronounced in regression tasks. In classification, the choice of α has a less significant impact, suggesting that the problem structure or data characteristics play a role.
  • Trade-off between Metrics: The optimal value of α appears to depend on the desired performance metric. Lower α values (closer to 0) tend to favor minimizing RMSE, while higher α values (closer to 1) are better for maximizing test log-likelihood. This suggests that users can tune α to prioritize specific aspects of predictive quality.

Key Results

  • Regression: AADM often achieves better test log-likelihood and sometimes better squared error compared to VI and AVB, especially with intermediate values of α. For instance, on the toy regression problems, intermediate α values recovered the heteroscedastic noise and bimodal distribution more accurately than α=10⁻⁴ (close to AVB/VI). On UCI datasets, AADM with α values closer to 1 generally outperformed AVB and VI in terms of test log-likelihood.
  • Classification: AADM achieves competitive results in classification tasks, performing similarly to AVB. While VI generally underperforms, the choice of α in AADM has a less pronounced effect compared to regression.
  • Big Data: On large datasets, AADM's performance is comparable to AVB and VI in terms of computational time. It shows better test log-likelihood when α approaches 1, but large values of α can lead to unstable behavior in RMSE on noisy data.
  • Average Rank: Analysis across UCI datasets shows that intermediate α values often yield better average ranks for both RMSE and test log-likelihood, reinforcing the idea of a trade-off and the benefit of tuning α.

Limitations and Future Work

  • Data Dependency: The authors note that for binary classification tasks, AADM might require more data to fully leverage its generalized approach, and noise in the data can also impact performance.
  • Tuning α: The optimal value of α is dataset and task-dependent. Future work could involve developing methods to automatically select the best α value or further analyzing how optimal α values change with dataset characteristics.
  • Computational Cost: While AADM is efficient, the implicit models and discriminator training add computational overhead compared to simpler methods like VI.
  • Future Work: The authors suggest a detailed analysis of optimal α values based on dataset characteristics, size, and complexity. They also mention exploring other similar relevant features that might influence the optimal α.

Summary updated

BibTeX
@inproceedings{santana2019adversarial,
  author = {Simón Rodríguez Santana and Daniel Hernández-Lobato},
  title = {{Adversarial α-divergence minimization for Bayesian approximate inference}},
  booktitle = {Neurocomputing},
  year = {2019},
  doi = {10.1016/j.neucom.2020.09.076},
}
Figure