A robust estimator of mutual information for deep learning interpretability
Abstract
We develop the use of mutual information (MI), a well-established metric in information theory, to interpret the inner workings of deep learning (DL) 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. 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 MI 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 DL 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 in this GitHub repository.
- Publication:
-
Machine Learning: Science and Technology
- Pub Date:
- June 2023
- DOI:
- 10.1088/2632-2153/acc444
- arXiv:
- arXiv:2211.00024
- Bibcode:
- 2023MLS&T...4b5006P
- Keywords:
-
- deep learning;
- mutual information;
- interpretability;
- representation learning;
- Physics - Data Analysis;
- Statistics and Probability;
- Astrophysics - Instrumentation and Methods for Astrophysics;
- Computer Science - Machine Learning
- E-Print:
- 30 pages, 8 figures. Minor changes to match version accepted for publication in Machine Learning: Science and Technology. GMM-MI available at https://github.com/dpiras/GMM-MI