A robust estimator of mutual information for deep learning interpretability

Davide Piras, Hiranya V. Peiris, Andrew Pontzen, Luisa Lucie-Smith, Ningyuan Guo +1 more
10/31/2022
physics.data-anastro-ph.IMcs.LG

Official code: dpiras/GMM-MI (24 stars, Jupyter Notebook, GPL-3.0, last commit 2025-04-01).

Abstract

We develop the use of mutual information (MI), a well-established metric in information theory, to interpret the inner workings of deep learning models. To accurately estimate MI from a finite number of samples, we present GMM-MI (pronounced $``$Jimmie$"$), an algorithm based on Gaussian mixture models that can be applied to both discrete and continuous settings.

Show full abstract

GMM-MI is computationally efficient, robust to the choice of hyperparameters and provides the uncertainty on the MI estimate due to the finite sample size. We extensively validate GMM-MI on toy data for which the ground truth MI is known, comparing its performance against established mutual information estimators. We then demonstrate the use of our MI estimator in the context of representation learning, working with synthetic data and physical datasets describing highly non-linear processes. We train deep learning models to encode high-dimensional data within a meaningful compressed (latent) representation, and use GMM-MI to quantify both the level of disentanglement between the latent variables, and their association with relevant physical quantities, thus unlocking the interpretability of the latent representation. We make GMM-MI publicly available.

View on arXivView PDF

Code Implementations(1)

dpiras/GMM-MIOfficial100%
GPL-3.0

Estimation of mutual information (MI) distribution with Gaussian mixture models (GMMs)

244Jupyter Notebook, PythonMar 14, 20221 years agoGPL-3.0
deep-learninggmmmutual-information

Similar Papers

Cite this paper

@article{piras2022robust,
  title  = {A robust estimator of mutual information for deep learning interpretability},
  author = {Davide Piras and Hiranya V. Peiris and Andrew Pontzen and Luisa Lucie-Smith and Ningyuan Guo and Brian Nord},
  year   = {2022},
  eprint = {2211.00024},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.00024}
}

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/2211.00024.svg)](https://codeofpaper.com/paper/2211.00024)

Discussion