Dependency-Aware Mutual Information Gap (DMIG)
- The paper introduces DMIG, a metric that adjusts the Mutual Information Gap by incorporating conditional entropy to account for attribute dependencies.
- It overcomes MIG’s limitations by providing a more realistic disentanglement assessment when semantic attributes are statistically correlated.
- Empirical results, such as those on the NSynth dataset, demonstrate that DMIG better reflects improvements in latent representation quality compared to traditional MIG.
The Dependency-Aware Mutual Information Gap (DMIG) is an evaluation metric for quantifying disentanglement in latent space representations, specifically designed to account for interdependencies among semantic attributes. Developed as a modification of the standard Mutual Information Gap (MIG), DMIG addresses the inadequacy of MIG and similar metrics when attributes are statistically dependent, a scenario frequently encountered in real-world data such as music timbre analysis. By replacing MIG’s independence assumption-based normalization with a conditional entropy term, DMIG provides a more faithful estimate of disentanglement quality in the presence of attribute correlations (Watcharasupat et al., 2021).
1. Foundations: Mutual Information Gap and Its Limitations
The Mutual Information Gap (MIG) was introduced to measure how well individual latent dimensions in representations disentangle known generative factors or semantic attributes . In this metric, each latent dimension is ideally associated with one attribute such that captures . For discrete attributes, the MIG for attribute is computed as: where is the Shannon entropy and is the mutual information between and . The denominator assumes that the maximal possible gap between relevant and irrelevant dimensions aligns with attribute entropy, only valid if attributes are statistically independent.
In practical settings, semantic attributes (e.g., brightness and depth in music) are often correlated, violating the independence assumption. Under such correlations, mutual information between an attribute and non-primary latent dimensions (0 for 1) is nonzero, not due to faulty encoding but because of the structural relationship among the attributes themselves. This systematically underestimates the disentanglement as measured by MIG.
2. Dependency-Aware Renormalization: Motivating DMIG
The normalization in MIG, via 2, acts as an upper bound on the MI gap only under perfect attribute independence. In cases where attributes 3 and 4 are correlated, latent dimensions associated with 5 unavoidably encode information about 6. Proper evaluation requires allowing for the irreducible information shared due to such dependencies. DMIG renormalizes the MI gap by the conditional entropy 7, which reflects the residual uncertainty in 8 given knowledge of its entangled partner 9. This calibrates the gap measurement so that models are not penalized for encoding unavoidable attribute correlations.
3. DMIG Metric Formulation
For each attribute 0, let 1 denote its maximally informative latent dimension, and let 2 denote the runner-up, defined as 3. DMIG is then defined as: 4 When 5 and 6 are independent, 7, so DMIG reduces to MIG. The normalization by conditional entropy directly compensates for the shared information, providing a more accurate measure in the presence of attribute entanglement (Watcharasupat et al., 2021).
4. Computation Procedure
DMIG computation follows these steps:
- Encoding: Project 8 samples 9 through encoder 0 to obtain 1.
- Mutual Information Estimation: For each attribute 2, estimate 3 for all 4.
- Gap Calculation:
- Identify primary dimension 5.
- Identify runner-up 6.
- Compute the MI gap 7.
- Normalization:
- If 8 (runner-up corresponds to a regularized attribute), compute denominator as 9.
- Else, use 0.
- DMIG Assignment: 1 (denominator).
Estimation of MI and (conditional) entropy typically employs discretization or nonparametric strategies such as 2-nearest neighbors or kernel density estimation, as implemented in standard tools (e.g., scikit-learn, PyInform).
5. Theoretical Properties
- Upper Bound: In cases where 3 corresponds to a regularized attribute, the maximal possible MI gap equals 4, ensuring 5. When 6, the bound is 7, consistent with MIG.
- Behavior Under Independence: If 8, then 9 and 0.
- Continuous Variable Caveat: As differential entropy can be negative, empirical estimates in continuous cases may yield 1. This is identified as a limitation and indicates the need for care in entropy estimation or alternative normalization for continuous domains.
6. Empirical Demonstration
On the NSynth dataset, brightness and depth were extracted as correlated attributes using the AudioCommons timbral model. A convolutional VAE (2) with attribute-regularized 3-VAE loss (4, 5) assigned 6 to brightness and 7 to depth. Three disentanglement measures were tracked:
- Spearman correlation coefficient (SCC) between each attribute and its assigned 8
- MIG
- DMIG
Results indicated that SCCs rapidly approached 9, confirming successful encoding. MIG remained near zero throughout training (0) due to attribute correlation penalizing the numerator relative to 1, while DMIG increased toward 2 and closely followed improvements in SCC. The linear relation between MIG and DMIG demonstrates that DMIG is a renormalized MIG tailored for dependent attributes. Qualitative analysis showed that MIG substantially underreports disentanglement when attributes are correlated, whereas DMIG accurately reflects the model’s performance (Watcharasupat et al., 2021).
7. Practical Considerations and Limitations
DMIG is recommended whenever semantic attributes are plausibly dependent, and functions as a drop-in replacement for MIG. For discrete attributes, entropy and conditional entropy estimation are reliable and DMIG is bounded by 3. For continuous attributes, negative differential entropy may lead to 4, motivating the use of capping or alternative denominator adjustments if needed. DMIG retains MIG’s susceptibility to inaccuracies in mutual information estimation; sufficient samples and robust density estimation techniques are crucial. Notably, DMIG does not address all challenges in disentanglement evaluation (e.g., it does not capture multimodality in latents), but corrects the normalization bias that arises from attribute dependencies.
In summary, DMIG preserves MIG’s core focus on the information gap between primary and secondary latent dimensions, while adopting normalization based on conditional entropy to correct for attribute entanglement. This adjustment yields more accurate and interpretable disentanglement metrics in complex, real-world data scenarios where statistical independence among semantic factors cannot be assumed (Watcharasupat et al., 2021).