Jensen-Shannon Divergence Based Novel Loss Functions for Bayesian Neural Networks

Ponkrshnan Thiagarajan, Susanta Ghosh
9/23/2022
cs.LG
bayesian

Official code: ponkrshnan/JS_BNNs (0 stars, Python, last commit 2025-01-27).

Abstract

Bayesian neural networks (BNNs) are state-of-the-art machine learning methods that can naturally regularize and systematically quantify uncertainties using their stochastic parameters. Kullback-Leibler (KL) divergence-based variational inference used in BNNs suffers from unstable optimization and challenges in approximating light-tailed posteriors due to the unbounded nature of the KL divergence.

Show full abstract

To resolve these issues, we formulate a novel loss function for BNNs based on a new modification to the generalized Jensen-Shannon (JS) divergence, which is bounded. In addition, we propose a Geometric JS divergence-based loss, which is computationally efficient since it can be evaluated analytically. We found that the JS divergence-based variational inference is intractable, and hence employed a constrained optimization framework to formulate these losses. Our theoretical analysis and empirical experiments on multiple regression and classification data sets suggest that the proposed losses perform better than the KL divergence-based loss, especially when the data sets are noisy or biased. Specifically, there are approximately 5% and 8% improvements in accuracy for a noise-added CIFAR-10 dataset and a regression dataset, respectively. There is about a 13% reduction in false negative predictions of a biased histopathology dataset. In addition, we quantify and compare the uncertainty metrics for the regression and classification tasks.

View on arXivView PDF

Code Implementations(1)

ponkrshnan/JS_BNNsOfficial100%

Repository containing the implementation of JS divergance based loss function for BNNs

00PythonDec 13, 20241 years ago

Similar Papers

Cite this paper

@article{thiagarajan2022jensenshannon,
  title  = {Jensen-Shannon Divergence Based Novel Loss Functions for Bayesian Neural Networks},
  author = {Ponkrshnan Thiagarajan and Susanta Ghosh},
  year   = {2022},
  eprint = {2209.11366},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.11366}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.11366.svg)](https://codeofpaper.com/paper/2209.11366)

Discussion