Title: THEORY AND EVALUATION METRICS FOR LEARNING DISENTANGLED REPRESENTATIONS

Abstract: We make two theoretical contributions to disentanglement learning by (a) defining precise semantics of disentangled representations, and (b) establishing robust metrics for evaluation. First, we characterize the concept "disentangled representations" used in supervised and unsupervised methods along three dimensionsinformativeness, separability and interpretability-which can be expressed and quantified explicitly using information-theoretic constructs. This helps explain the behaviors of several well-known disentanglement learning models. We then propose robust metrics for measuring informativeness, separability, and interpretability. Through a comprehensive suite of experiments, we show that our metrics correctly characterize the representations learned by different methods and are consistent with qualitative (visual) results. Thus, the metrics allow disentanglement learning methods to be compared on a fair ground. We also empirically uncovered new interesting properties of VAE-based methods and interpreted them with our formulation. These findings are promising and hopefully will encourage the design of more theoretically driven models for learning disentangled representations.

1. INTRODUCTION:

Disentanglement learning holds the key for understanding the world from observations, transferring knowledge across different tasks and domains, generating novel designs, and learning compositional concepts (Bengio et al., 2013; Higgins et al., 2017b; Lake et al., 2017; Peters et al., 2017; Schmidhuber, 1992) . Assuming the observation x is generated from latent factors z via p(x|z), the goal of disentanglement learning is to correctly uncover a set of independent factors {z i } that give rise to the observation. While there has been a considerable progress in recent years, common assumptions about disentangled representations appear to be inadequate (Locatello et al., 2019) .

Unsupervised disentangling methods are highly desirable as they assume no prior knowledge about the ground truth factors. These methods typically impose constraints to encourage independence among latent variables. Examples of constraints include forcing the variational posterior q(z|x) to be similar to a factorial p(z) (Burgess et al., 2018; Higgins et al., 2017a) , forcing the variational aggregated prior q(z) to be similar to the prior p(z) (Makhzani et al., 2015) , adding total correlation loss (Kim & Mnih, 2018) , forcing the covariance matrix of q(z) to be close to the identity matrix (Kumar et al., 2017) , and using a kernel-based measure of independence (Lopez et al., 2018) . However, it remains unclear how the independence constraint affects other properties of representation. Indeed, more independence may lead to higher reconstruction error in some models (Higgins et al., 2017a; Kim & Mnih, 2018) . Worse still, the independent representations may mismatch human's predefined concepts (Locatello et al., 2019) . This suggests that supervised methods -which associate a representation (or a group of representations) z i with a particular ground truth factor y k -may be more adequate. However, most supervised methods have only been shown to perform well on toy datasets (Harsh Jha et al., 2018; Kulkarni et al., 2015; Mathieu et al., 2016) in which data are generated from multiplicative combination of the ground truth factors. It is still unclear about their performance on real datasets.

We believe that there are at least two major reasons for the current unsatisfying state of disentanglement learning: i) the lack of a formal notion of disentangled representations to support the design of proper objective functions (Tschannen et al., 2018; Locatello et al., 2019) , and ii) the lack of robust evaluation metrics to enable a fair comparison between models, regardless of their architectures or design purposes. To that end, we contribute by formally characterizing disentangled representations along three dimensions, namely informativeness, separability and interpretability, drawing from concepts in information theory (Section 2). We then design robust quantitative metrics for these properties and argue that an ideal method for disentanglement learning should achieve high performance on these metrics (Section 3).

We run a series of experiments to demonstrate how to compare different models using our proposed metrics, showing that the quantitative results provided by these metrics are consistent with visual results (Section 4). In the process, we gain important insights about some well-known disentanglement learning methods namely FactorVAE (Kim & Mnih, 2018) , β-VAE (Higgins et al., 2017a) , and AAE (Makhzani et al., 2015) .

2. RETHINKING DISENTANGLEMENT:

Inspired by (Bengio et al., 2013; Ridgeway, 2016) , we adopt the notion of disentangled representation learning as "a process of decorrelating information in the data into separate informative representations, each of which corresponds to a concept defined by humans". This suggests three important properties of a disentangled representation: informativeness, separability and interpretability, which we quantify as follows:

Informativeness We formulate the informativeness of a particular representation (or a group of representations) z i w.r.t. the data x as the mutual information between z i and x:

EQUATION

where q(z i ) = x p D (x)q(z i |x) dx. In order to represent the data faithfully, a representation z i should be informative of x, meaning I(x, z i ) should be large. Because I(x, z i ) = H(z i ) -H(z i |x), a large value of I(x, z i ) means that H(z i |x) ≈ 0 given that H(z i ) can be chosen to be relatively fixed. In other words, if z i is informative w.r.t. x, q(z i |x) usually has small variance. It is important to note that I(x, z i ) in Eq. 1 is defined on the variational encoder q(z i |x), and does not require a decoder. It implies that we do not need to minimize the reconstruction error over x (e.g., in VAEs) to increase the informativeness of a particular z i .

Separability and Independence Two representations z i , z j are separable w.r.t. the data x if they do not share common information about x, which can be formulated as follows:

EQUATION

where I(x, z i , z j ) denotes the multivariate mutual information (McGill, 1954) between x, z i and z j . I(x, z i , z j ) can be decomposed into standard bivariate mutual information terms as follows:

I(x, z i , z j ) = I(x, z i ) + I(x, z j ) -I(x, (z i , z j )) = I(z i , z j ) -I(z i , z j |x) I(x, z i , z j ) can be either positive or negative. It is positive if z i and z j contain redundant information about x. The meaning of a negative I(x, z i , z j ) remains elusive (Bell, 2003) .

Achieving separability with respect to x does not guarantee that z i and z j are separable in general. z i and z j are fully separable or statistically independent if and only if:

EQUATION

If we have access to all representations z, we can generally say that a representation z i is fully separable (from other representations z =i ) if and only if I(z i , z =i ) = 0.

Note that there is a trade-off between informativeness, independence and the number of latent variables which we discuss in Appdx. A.7.

Interpretability Obtaining informative and independent representations does not guarantee interpretability by human (Locatello et al., 2019) . We argue that in order to achieve interpretability, we should provide models with a set of predefined concepts y. In this case, a representation z i is interpretable with respect to y k if it only contains information about y k (given that z i is separable from all other z =i and all y k are distinct). Full interpretability can be formulated as follows:

I(z i , y k ) = H(z i ) = H(y k ) (4)

Eq. 4 is equivalent to the condition that z i is an invertible function of y k . If we want z i to generalize beyond the observed y k (i.e., H(z i ) > H(y k )), we can change the condition in Eq. 4 into:

I(z i , y k ) = H(y k ) or H(y k |z i ) = 0 (5)

which suggests that the model should accurately predict y k given z i . If z i satisfies the condition in Eq. 5, it is said to be partially interpretable w.r.t y k .

In real data, underlying factors of variation are usually correlated. For example, men usually have beard and short hair. Therefore, it is very difficult to match independent latent variables to different ground truth factors at the same time. We believe that in order to achieve good interpretability, we should isolate the factors and learn one at a time.

2.1. AN INFORMATION-THEORETIC DEFINITION OF DISENTANGLED REPRESENTATIONS:

Given a dataset

D = {x i } N i=1

, where each data point x is associated with a set of K labeled factors of variation y = {y 1 , ..., y K }. Assume that there exists a mapping from x to m groups of latent representations z = {z 1 , z 2 , ..., z m } which follows the distribution q(z|x). Denoting q(z i |x) = z =i q(z|x) and q(z i ) = E p D (x) [q(z i |x)]. We define disentangled representations for unsupervised cases as follows: Definition 1 (Unsupervised). A representation or a group of representations z i is said to be "fully disentangled" w.r.t a ground truth factor y k if z i is fully separable (from z =i ) and z i is fully interpretable w.r.t y k . Mathematically, this can be written as:

EQUATION

The definition of disentangled representations for supervised cases is similar as above except that now we model q(z|x, y) instead of q(z|x) and q(z) = x,y p D (x, y)q(z|x, y).

Recently, there have been several works (Eastwood & Williams, 2018; Higgins et al., 2018; Ridgeway & Mozer, 2018 ) that attempted to define disentangled representations. Higgin et. al. (Higgins et al., 2018) proposed a definition based on group theory (Cohen & Welling, 2014) which is (informally) stated as follows: "A representation z is disentangled w.r.t a particular subgroup y k (from a symmetry group y = {y k } K k=1 ) if z can be decomposed into different subspaces {z i } H i=1 in which the subspace z i should be independent of all other representation subspaces z =i , and z i should only be affected by the action of a single subgroup y k and not by other subgroups y =k .". Their definition shares similar observation as ours. However, it is less convenient for designing models and metrics than our information-theoretic definition.

Eastwood et. al. (Eastwood & Williams, 2018) did not provide any explicit definition of disentangled representations but characterizing them along three dimensions namely "disentanglement", "compactness", and "informativeness" (between z any y k ). A high "disentanglement" score (≈ 1) for z i indicates that it captures at most one factor, let's say y k . A high "completeness" score (≈ 1) for y k indicates that it is captured by at most one latent z j and j is likely to be i. A high "informativeness" score1 for y k indicates that all information of y k is captured by the representations z. Intuitively, when all the three notions achieve optimal values, there should be only a single representation z i that captures all information of the factor y k but no information from other factors y =k . However, even in that case, z i is still not fully interpretable w.r.t y k since z i may contain some information in x that does not appear in y k . This makes their notions only applicable to toy datasets on which we know that the data x are only generated from predefined ground truth factors y = {y k } K k=1 . Our definition can handle the situation where we only know some but not all factors of variation in the data. The notions in (Ridgeway & Mozer, 2018) follow those in (Eastwood & Williams, 2018) , hence, suffer from the same disadvantage.

3. ROBUST EVALUATION METRICS:

We argue that a robust metric for disentanglement should meet the following criteria: i) it supports both supervised/unsupervised models; ii) it can be applied for real datasets; iii) it is computationally straightforward, i.e. not requiring any training procedure; iv) it provides consistent results across different methods and different latent representations; and v) it agrees with qualitative (visual) results. Here we propose information-theoretic metrics to measure informativeness, independence and interpretability which meet all of these robustness criteria.

3.1. METRICS FOR INFORMATIVENESS:

We measure the informativeness of a particular representation z i w.r.t. x by computing I(x, z i ). If z i is discrete, we can compute I(x, z i ) exactly by using Eq. 1 but with the integral replaced by the sum. If z i is continuous, we estimate I(x, z i ) via sampling or quantization. Details about these estimations are provided in Appdx. A.10.

If H(z i ) is estimated via quantization, we will have 0 ≤ I(x, z i ) ≤ H(z i ). In this case, we can divide I(x, z i ) by H(z i ) to normalize it to the range [0, 1]. However, this normalization may change the interpretation of the metric and lead to a situation where a representation z i is less informative than z j (i.e., I(x, z i ) < I(x, z j )) but still has a higher rank than z j because H(z i ) < H(z j ). A better way is to divide I(x, z i ) by log(#bins).

3.2. METRICS FOR SEPARABILITY AND INDEPENDENCE:

MISJED We can characterize the independence between two latent variables z i , z j based on I(z i , z j ). However, a serious problem of I(z i , z j ) is that it generates the following order among pairs of representations:

I(z f,i , z f,j ) > I(z f,i , z n,j ) > I(z n,i , z n,j

) ≥ 0 where z f,i , z f,j are informative representations and z n,i , z n,j are uninformative (or noisy) representations. This means if we simply want z i , z j to be independent, the best scenario is that both are noisy and independent (e.g. q(z i |x) ≈ q(z j |x) ≈ N (0, I)). Therefore, we propose a new metric for independence named MISJED (which stands for Mutual Information Sums Joint Entropy Difference), defined as follows:

MISJED(z i , z j ) = Ĩ(z i , z j ) = H(z i ) + H(z j ) -H(z i , zj ) = H(z i ) + H(z j ) -H(z i , z j ) + H(z i , z j ) -H(z i , zj ) = I(z i , z j ) + H(z i , z j ) -H(z i , zj ) (7) where zi = E q(zi|x) [z i ] and q(z i ) = E p D (x) [q(z i |x)].

Since q(z i ) and q(z j ) have less variance than q(z i ) and q(z j ), respectively, H(z i , z j ) -H(z i , zj ) ≥ 0, making Ĩ(z i , z j ) ≥ 0.

To achieve a small value of Ĩ(z i , z j ), two representations z i , z j should be both independent and informative (or, in an extreme case, are deterministic given x). Using the MISJED metric, we can ensure the following order:

0 ≤ Ĩ(z f,i , z f,j ) < Ĩ(z f,i , z n,j ) < Ĩ(z n,i , z n,j ). If H(z i ), H(z j ),

and H(z i , zj ) in Eq. 7 are estimated via quantization, we will have Ĩ(z i , z j ) ≤ H(z i ) + H(z j ) ≤ 2 log(#bins). In this case, we can divide Ĩ(z i , z j ) by 2 log(#bins) to normalize it to [0, 1].

WSEPIN and WINDIN A theoretically correct way to verify that a particular representation z i is both separable from other z =i and informative w.r.t x is considering the amount of information in x but not in z =i that z i contains. This quantity is the conditional mutual information between x and z i given z =i , which can be decomposed as follows:

EQUATION

I(x, z i |z =i ) is useful for measuring how disentangled a representation z i is in the absence of ground truth factors. I(x, z i |z =i ) is close to 0 if z i is completely noisy and is high if z i is disentangled2 .

For models that use factorized encoders, z i and z =i are usually assumed to be independent given x, hence, I(z i , z =i |x) ≈ 0 and I(x, z i |z =i ) ≈ I(x, z i ) -I(z i , z =i ) which is merely the difference between the informativeness and full separability of z i . For models that use auto-regressive encoders, I(z i , z =i |x) > 0 which means z i and z =i can share information not in x.

We can also compute I(x, z i |z =i ) in a different way as follows:

I(x, z i |z =i ) = I(x, (z i , z =i )) -I(x, z =i ) = I(x, z) -I(x, z =i )

If we want z i to be both independence of z =i and informative w.r.t x, we can only use the first two terms in Eq. 8 to derive another quantitive measure:

EQUATION

However, unlike I(x, z i |z =i ), Î(x, z i |z =i ) can be negative.

To normalize I(x, z i |z =i ), we divide it by H(z i ) (H(z i ) must be estimated via quantization). Note that taking the average of I(z i , x|z =i ) over all representations to derive a single metric for the whole model is not appropriate because models with more noisy latent variables will be less favored. For example, if model A has 10 latent variables (5 of them are disentangled and 5 of them are noisy), and model B has 20 latent variables (5 of them are disentangled and 15 of them are noisy), B will always be considered worse than A despite the fact that both are equivalent in term of disentanglement (since 5 disentangled representations are enough to capture all information in x so additional latent variables should be noisy). We propose two solutions for this issue. In the first approach, we sort I(x, z i |z =i ) over all representations in descending order and only take the average over the top k latents (or groups of latents). This leads to a metric called SEPIN@k3 which is similar to Precision@k:

SEPIN@k = 1 k k-1 i=0 I(x, z ri |z =ri )

where r 1 , ..., r L is the rank indices of L latent variables by sorting I(x, z i |z =i ) (i = 1, ..., L).

In the second approach, we compute the average over all L representations z 0 , ..., z L-1 but weighted by their informativeness to derive a metric called WSEPIN:

WSEPIN = L-1 i=0 ρ i I(x, z i |z =i )

where ρ i = I(x,zi)

L-1 j=0 I(x,zj ) . If z i is a noisy representation, I(x, z i ) ≈ 0, thus, z i contributes almost nothing to the final WSEPIN.

Similarly, using the measure Î(x, z i |z =i ) in Eq. 9, we can derive other two metrics INDIN@k4 and WINDIN as follows:

INDIN@k = 1 k k-1 i=0 Î(x, z ri |z =ri ) and WINDIN = L-1 i=0 ρ i Î(x, z i |z =i ) 3.3 METRICS FOR INTERPRETABILITY

Recently, several metrics have been proposed to quantitatively evaluate the interpretability of representations by examining the relationship between the representations and manually labeled factors of variation. The most popular ones are Z-diff score (Higgins et al., 2017a; Kim & Mnih, 2018) , SAP (Kumar et al., 2017) , MIG (Chen et al., 2018) . Among them, only MIG is theoretically sound and provides correct computation of I(x, z i ). MIG also matches with our formulation of "interpretability" in Section 2 to some extent. However, MIG has only been used for toy datasets like dSprites (Matthey et al., 2017) . The main drawback comes from its probabilistic assumption p(z i , y k , x (n) ) = q(z i |x (n) )p(x (n) |y k )p(y k ) (see Fig. 1 ). Note that p(x (n) |y k ) is a distribution over the high dimensional data space, and is very hard to robustly estimate but the authors simplified it to be p(n|y k ) if x (n) ∈ D y k (D y k is the support set for a particular value y k ) and 0 otherwise. This equation only holds for toy datasets where we know exactly how x is generated from y. In addition, since p(n|y k ) depends on the value of y k , it will be problematic if y k is continuous.

RMIG Addressing the drawbacks of MIG, we propose RMIG (which stands for Robust MIG), formulated as follows:

EQUATION

)

where I(z i * , y k ) and I(z j • , y k ) are the highest and the second highest mutual information values computed between every z i and y k ; z i * and z j • are the corresponding latent variables. Like MIG, we can normalize RMIG(y k ) to [0, 1] by dividing it by H(y k ) but it will favor imbalanced factors (small H(y k )).

RMIG inherits the idea of MIG but differs in the probabilistic assumption (and other technicalities). RMIG assumes that p(z i , y k , x n) ) for unsupervised learning and p(z i , y k , x (n) ) = q(z i |y n) ) for supervised learning (see Fig. 1 ). Not only this eliminates all the problems of MIG but also provides additional advantages. First, we can estimate q(z i , y k ) using Monte Carlo sampling on p(x (n) ). Second, p(y k |x (n) ) is well defined for both discrete/continuous y k and deterministic/stochastic p(y k |x (n) ). If y k is continuous, we can quantize p(y k |x (n) ). If p(y k |x (n) ) is deterministic (i.e., a Dirac delta function), we simply set it to 1 for the value of y k corresponding to x (n) and 0 for other values of y k . Our metric can also use p(y k |x (n) ) from an external expert model. Third, for any particular value y k , we compute q(z i |x (n) ) for all x (n) ∈ D rather than just for x (n) ∈ D y k , which gives more accurate results.

(n) ) = q(z i |x (n) )p(y k |x (n) )p(x (

EQUATION

JEMMIG A high RMIG value of y k means that there is a representation z i * that captures the factor y k . However, z i * may also capture other factors y =k of the data. To make sure that z i * fits exactly to y k , we provide another metric for interpretability named JEMMIG (standing for Joint Entropy Minuses Mutual Information Gap), computed as follows:

JEMMIG(y k ) = H(z i * , y k ) -I(z i * , y k ) + I(z j • , y k )

where I(z i * , y k ) and I(z j • , y k ) are defined in Eq. 10.

If we estimate H(z i * , y k ) via quantization, we can bound JEMMIG(y k ) between 0 and H(y k ) + log(#bins) (please check Appdx. A.12 for details). A small JEMMIG(y k ) score means that z i * should match exactly to y k and z j • should not be related to y k . Thus, we can use JEMMIG(y k ) to validate whether a model can learn disentangled representations w.r.t a ground truth factor y k or not which satisfies the definition in Section 2.1. Note that if we replace H(z i * , y k ) by H(y k ) to account for the generalization of z i * over y k , we obtain a metric equivalent to RMIG (but in reverse order).

To compute RMIG and JEMMIG for the whole model, we simply take the average of RMIG(y k ) and JEMMIG(y k ) over all y k (k = 1, ..., K) as follows:

RMIG = 1 K K-1 k=0 RMIG(y k ) and JEMMIG = 1 K K-1 k=0 JEMMIG(y k )

3.4. COMPARISON WITH EXISTING METRICS:

In Table 1 , we compare our proposed metrics with existing metrics for learning disentangled representations. For deeper analysis of these metrics, we refer readers to Appdx. A.8. One can easily see that only our metrics satisfy the aforementioned robustness criteria. Most other metrics (except for MIG and Modularity) use classifiers, which can cause inconsistent results once the settings of the classifiers change. Moreover, most other metrics (except for MIG) use E q(zi|x) [z i ] instead of q(z i |x) for computing mutual information. This can lead to inaccurate evaluation results since E q(zi|x) [z i ] is theoretically different from z i ∼ q(z i |x). Among all metrics, JEMMIG is the only one that can quantify "disentangled representations" defined in Section. 2.1 on its own.

Metrics #classifiers classifier nonlinear relationship use q(zi|x) continuous factors real data Z-diff 1 linear/majority-vote × × × × SAP L × K threshold value × × MIG 0 none × × Disentanglement K LASSO/ random forest ×/ × × × Completeness Informativeness Modularity 0 none × × Explicitness K one-vs-rest logistic regressor × × × × WSEPIN † 0 none WINDIN † 0 none RMIG 0 none JEMMIG* 0 none

Table 1 : Analysis of different metrics for disentanglement learning. L and K are the numbers of latent variables and ground truth factors, respectively. Metrics marked with * are self-contained. Metrics marked with † do not require ground truth factors of variation.

4. EXPERIMENTS:

We use our proposed metrics to evaluate three representation learning methods namely FactorVAE (Kim & Mnih, 2018) , β-VAE (Higgins et al., 2017a) and AAE (Makhzani et al., 2015) on both real and toy datasets which are CelebA (Liu et al., 2015) and dSprites (Matthey et al., 2017) , respectively. A brief discussion of these models are given in Appdx. A.1. We would like to show the following points: i) how to compare models based on our metrics; ii) the advantages of our metrics compared to other metrics; iii) the consistence between qualitative results produced by our metrics and visual results; and iv) the ablation study of our metrics.

Due to space limit, we only present experiments for the first two points. The experiments for points (iii) and (iv) are put in Appdx. A.4 and Appdx. A.5, respectively. Details about the datasets and model settings are provided in Appdx. A.2 and Appdx. A.3, respectively. In all figures below, "TC" refers to the γ coefficient of the TC loss in FactorVAEs (Kim & Mnih, 2018) , "Beta" refers to the β coefficient in β-VAEs (Higgins et al., 2017a) .

Informativeness In Figs. 2a and 2b, we show the average amount of information (of x) that a representation z i contains (the mean of I(z i , x)) and the total amount of information that all representations z contain (I(z, x)). It is clear that adding the TC term to the standard VAE loss does not affect I(z, x) much (Fig. 2b ). However, because z i and z j in FactorVAEs are more separable than those in standard VAEs, FactorVAEs should produce smaller I(z i , x) than standard VAEs on average (Fig. 2a ). We also see that the mean of I(z i , x) and I(z, x) consistently decrease for β-VAEs with higher β.

Separability and Independence If we only evaluate models based on the separability of representations, β-VAE models with large β are among the best. These models force latent representations to be highly separable (as in Fig. 3a , we can see that the max/mean/min values of I(z i , z =i ) are equally small for β-VAEs with large β). In FactorVAEs, informative representations usually have poor separability (large value) and noisy representations usually have perfect separability (≈ 0) (Fig. 4a ). Increasing the weight of the TC loss improves the max and mean of I(z i , z =i ) but not significance (Fig. 3a ).

Using WSEPIN and SEPIN@3 gives us a more reasonable evaluation of the disentanglement capability of these models. In Fig. 3b , we see that β-VAE models with β = 10 achieve the highest WSEPIN and SEPIN@3 scores, which suggests that their informative representations usually contain large amount of information of x that are not shared by other representations. However, this type of information may not associate well with the ground truth factors of variation (e.g., z 3 , z 6 in Fig. 4c ). The representations of FactorVAEs, despite containing less information of x on their own, usually reflect the ground truth factors more accurately (e.g., z 5 , z 8 , z 7 in Fig. 4a ) than those of β-VAEs. These results suggest that ground truth factors should be used for proper evaluations of disentanglement. Interpretability Using JEMMIG and RMIG, we see that FactorVAE models can learn representations that are more interpretable than those learned by β-VAE models. Surprisingly, the worst FactorVAE models (with TC=10) clearly outperform the best β-VAE models (with β = 10). This result is sensible because it is accordant with the visualization in Figs. 4a and 4c .

Comparison with Z-diff In (Chen et al., 2018), the authors have already shown that MIG is more robust than Z-diff (Higgins et al., 2017a ) so we compare our metrics with MIG directly. Comparison with MIG On toy datasets like dSprites, RMIG produces similar results as MIG (Chen et al., 2018) . Please check Appdx. A.13 for more details. Figure 6 : Comparison between JEMMIG/RMIG and the metrics in (Eastwood & Williams, 2018) .

Because the competing metrics do not apply for categorical factors (see Appdx. A.8 for detailed analysis), we exclude the "shape" factor during computation. Following (Eastwood & Williams, 2018) , we use LASSO classifiers with the L1 coefficient is α = 0.002. Blue dots denote FactorVAE models and orange dots denote β-VAE models.

Comparison with "disentanglement", "completeness" and "informativeness" In Fig. 6 , we show the differences in evaluation results between JEMMIG/RMIG and the metrics in (Eastwood & Williams, 2018) . We can easily see that JEMMIG and RMIG are much better than "disentanglement", "completeness" and "informativeness" (or reversed classification error) in separating FactorVAE and β-VAE models. Among the three competing metrics, only "informativeness" (or I(z, y k )) seems to be correlated with JEMMIG and RMIG. This is understandable because when most representations are independent in case of FactorVAEs and β-VAEs, we have

I(z, y k ) ≈ I(z i * , y k ) ≈ I(z i * , y k ) - I(z j • , y k ).

"Disentanglement" and "completeness", by contrast, are strongly uncorrelated with JEMMIG and RMIG. While JEMMIG consistently grades standard VAEs (β = 1) worse than other models (Fig. 5a ), "disentanglement" and "completeness" usually grade standard VAEs better than some FactorVAE models, which seems inappropriate. Moreover, since "disentanglement" and "completeness" are not well aligned, using both of them at the same time may cause confusion. For example, the model "28_beta20" has lower "disentanglement" score yet higher "completeness" score 

I(z i , y k ) using E q(zi|x) [z i ] while the correct version compute I(z i , y k ) using q(z i |x).

than the model "32_beta50" (Figs. 6a and 6b ) so it is hard to know which model is better than the other at learning disentangled representations.

From Figs. 7a and 7b, we see that "disentanglement" and "completeness" blindly favor β-VAE models with high β without concerning about the fact that representations in these models are less informative than representations in FactorVAEs (Fig. 7c ). Thus, they are not good for characterizing disentanglement in general.

Disentanglement and "completeness" are computed based on a weight matrix with an assumption that the weight magnitudes for noisy representations are close to 0. However, this assumption is often broken in practice, thus, may lead to inaccurate results (please check Appdx. A.9 for details).

Comparison with "modularity" "modularity" and "explicitness" (Ridgeway & Mozer, 2018) are similar to "disentanglement" and "informativeness" (Eastwood & Williams, 2018) in terms of concept, respectively. However, they are different in terms of formulation. We exclude "explicitness" in our experiment because computing it on dSprites is time consuming. In Fig. 8a , we show the correlation between JEMMIG and "modularity". We consider two versions of "modularity". In the first version (Fig. 8b ), I(z i , y k ) is computed from the mean of z i ∼ q(z i |x). This is the original implementation provided by (Ridgeway & Mozer, 2018) . In the second version (Fig. 8c ), I(z i , y k ) is computed from q(z i |x). We can see that in either case, "modularity" often gives higher scores for standard VAEs than for FactorVAEs. It means that like "disentanglement", "modularity" itself does not fully specify "disentangled representations" defined in Section 2.1.

5. CONCLUSION:

We have proposed an information-theoretic definition of disentangled representations and designed robust metrics for evaluation, along three dimensions: informativeness, separability and interpretability.

We carefully analyze the properties of our metrics using well known representation learning models namely FactorVAE, β-VAE and AAE on both real and toy datasets. Compared with existing metrics, our metrics are more robust and produce more sensible evaluations that are compatible with visual results. Based on our definition of disentangled representation in Section 2.1, WSEPIN/JEMMIG are the two key metrics in case ground truth labels are unavailable/available, respectively.

A APPENDIX:

A.1 REVIEW OF FACTORVAES, β-VAES AND AAES Standard VAEs are trained by minimizing the variational upper bound L VAE of -log p θ (x) as follows:

EQUATION

where q φ (z|x) is an amortized variational posterior distribution. However, this objective does not lead to disentangled representations (Higgins et al., 2017a) .

β-VAEs (Higgins et al., 2017a) penalize the KL term in the original VAE loss more heavily with a coefficient β 1:

L β-VAE = E p D (x) E q φ (z|x) [-log p θ (x|z)] + βD KL (q φ (z|x) p(z)) Since E p D (x) [D KL (q φ (z|x) p(z))] = I φ (x, z) + D KL (q φ (z) p(z))

, more penalty on the KL term encourages q φ (z) to be factorized but also forces z to discard more information in x.

FactorVAEs (Kim & Mnih, 2018 ) add a constraint to the standard VAE loss to explicitly impose factorization of q φ (z):

EQUATION

where D KL (q φ (z) i q i (z i )) ≥ 0 is known as the total correlation (TC) of z. Intuitively, γ can be large without affecting the mutual information between z and x, making FactorVAE more robust than β-VAE in learning disentangled representations. Other related models that share similar ideas with FactorVAEs are are β-TCVAEs (Chen et al., 2018) and DIP-VAEs (Kumar et al., 2017) .

The loss of AAEs (Makhzani et al., 2015) is derived from the standard VAE loss by removing the term I φ (x, z):

L AAE = E p D (x) E q φ (z|x) [-log p θ (x|z)] + D KL (q φ (z) p(z))

Different from the losses of β-VAEs and FactorVAEs, AAE loss is not a valid upper bound on -log p θ (x).

A.2 DATASETS:

The CelebA dataset (Liu et al., 2015) consists of more than 200 thousands face images with 40 binary attributes. We resize these images to 64 × 64. The dSprites dataset (Matthey et al., 2017 ) is a toy dataset generated from 5 different factors of variation which are "shape" (3 values), "scale" (6 values), "rotation" (40 values), "x-position" (32 values), "y-position" (32 values). Statistics of these datasets are provided in 

A.3 MODEL SETTINGS:

For FactorVAE, β-VAE and AAE, we used the same architectures for the encoder and decoder (see Table 3 and Table 4 5 ), following (Kim & Mnih, 2018) . We trained the models for 300 epochs with mini-batches of size 64. The learning rate is 10 -3 for the encoder/decoder and is 10 -4 for the discriminator over z. We used Adam (Kingma & Ba, 2014) optimizer with β 1 = 0.5 and β 2 = 0.99. 

A.4.1 CELEBA:

Informativeness We sorted the representations of different models according to their informativeness scores in the descending order and plot the results in Fig. 9 . There are distinct patterns for different methods. AAE captures equally large amounts of information from the data while FactorVAE and β-VAE capture smaller and varying amounts. This is because FactorVAE and β-VAE penalize the informativeness of representations while AAE does not. Recall that

I(z i , x) = H(z i ) -H(z i |x).

For AAE, H(z i |x) = 0 and H(z i ) is equal to the entropy of N (0, I). For FactorVAE and β-VAE, H(z i |x) > 0 and H(z i ) is usually smaller than the entropy of N (0, I) due to a narrow q(z i )6 . In Fig. 9 , we see a sudden drop of the scores to 0 for some FactorVAE's and β-VAE's representations. These representations z i are totally random and contain no information about the data (i.e., q(z i |x) ≈ N (0, I)). We call them "noisy" representations and provide discussions in Appdx. A.7.

We visualize the top 10 most informative representations for these models in Fig. 10 . AAE's representations are more detailed than FactorVAE's and β-VAE's, suggesting the effect of high informativeness. However, AAE's representations mainly capture information within the support of p D (x). This explains why we still see a face when interpolating AAE's representations. By contrast, FactorVAE's and β-VAE's representations usually contain information outside the support of p D (x). Thus, when we interpolate these representations, we may see something not resembling a face. Separability and Independence Table 5 reports MISJED scores (Section 3.2) for the top most informative representations. FactorVAE achieves the lowest MISJED scores, AAE comes next and β-VAE is the worst. We argue that this is because FactorVAE learns independent and nearly deterministic representations, β-VAE learns strongly independent yet highly stochastic representations, and AAE, on the other extreme side, learns strongly deterministic yet not very independent representations. From Table 5 and Fig. 11 , it is clear that MISJED produces correct orders among pairs of representations according to their informativeness. Interpretability We report the RMIG scores and JEMMIG scores for several ground truth factors in the CelebA dataset in Tables 6 and 7 , respectively. In general, FactorVAE learns representations that agree better with the ground truth factors than β-VAE and AAE do. This is consistent with the qualitative results in Fig. 12 . However, all models still perform poorly for interpretability since their RMIG and JEMMIG scores are very far from 1 and 0, respectively. We provide the normalized JEMMIG and RMIG scores for all attributes in Fig. 13 Figure 13 : Normalized JEMMIG and RMIG scores for all attributes in the CelebA dataset. We sorted the JEMMIG and RMIG scores of the FactorVAE in ascending and descending orders, respectively.

MISJED (unnormalized):

z 1 , z 2 z 1 , z 3 z 1 , z -1 z 1 , z -2 z -1 , z -2 z -1 , z -3 FactorVAE 0.

needs only 5 representations but some are less informative than those of AAE. Note that the number of ground truth factors of variation in dSprites dataset is also 5. Separability and Independence Fig. 15 shows heat maps of MISJED scores for the three models.

Interpretability From Tables. 8 and 9, we see that FactorVAE is very good at disentangling "scale", "x-position" and "y-position" but fails to disentangling "shape" and "rotation". However, FactorVAE still performs much better than β-VAE and AAE. These results are consistent with the visual results in Fig. 16 .

Also note that in FactorVAE, the RMIG scores for "scale" and "x-position" are quite similar but the JEMMIG score for "scale" is higher than that for "x-position". This is because the quantized distribution (with 100 bins) of a particular representation z i fits better to the distribution of "x-position" (having 32 possible values) than to the distribution of "scale" (having only 6 possible values). 

Shape:



A.5 ABLATION STUDY OF OUR METRICS:

Sensitivity of the number of bins When estimating entropy and mutual information terms using quantization, we need to specify the value range and the number of bins (#bins) in advance. In this paper, we fix the value range to be [-4, 4] since most latent values fall within this range. We only investigate the effect of #bins on the RMIG and JEMMIG scores for different models and show the results in Fig. 17 (left, middle).

We can see that when #bins is small, RMIG scores are low. This is because the quantized distributions Q(z i * ) and Q(z j • ) look similar, causing I * (z i * , y k ) and I • (z j • , y k ) to be similar as well. When #bins is large, the quantized distribution Q(z i * ) and Q(z j • ) look more different, leading to higher RMIG scores. RMIG scores are stable when #bins > 200, which suggests that finer quantizations do not affect the estimation of I(z i , y k ) much.

Unlike RMIG scores, JEMMIG scores keep increasing when we increase #bins. Note that JEMMIG only differs from RMIG in the appearance of H(z i * , y k ). Finer quantizations of z i * introduce more information about z i * , hence, always lead to higher H(z i * , y k ) (see Fig. 17 (right) ). Larger JEMMIG scores also reflect the fact that finer quantizations of z i * make z i * look more continuous, thus, less interpretable w.r.t the discrete factor y k .

We provide a detailed explanation about the behaviors of RMIG and JEMMIG w.r.t #bins in Appdx. A.11. Despite the fact that #bins affects the RMIG and JEMMIG scores of a single model, the relative order among different models remains the same. It suggests that once we fixed the #bins, we can use RMIG and JEMMIG scores to rank different models. Sensitivity of the number of samples From Fig. 18 (left, right), it is clear that the sampling estimation is unbiased and is not affected much by the number of samples.

Sensitivity of sampling in high dimensional space One thing that we should concern about is the performance of our metrics when the number of latent representations (#latents) is large (or z is high-dimensional). In Fig. 19a , we see that the informativeness of an individual representations z i is not affected by #latents. When we increase #latents, additional representations are usually noisy (I(z i , x) ≈ 0). The total amount of information captured by the model (I(x, z)), by contrast, highly depends on #latents (Fig. 19b ). Unusually, increasing #latents reduces I(x, z) instead of increasing it. We have not found the final answer for this phenomenon but possible hypotheses are: i) On a high dimensional space where most latent representations are noisy (e.g. #latents=20), q(z|x) may look more similar to q(z), causing the wrong calculation of log q(z|x) q(z) , or ii) when #latents is large, q(z|x) = L-1 i=0 q(z i |x) is very tiny, thus, may lead to floating point imprecision 7 . In Fig. 19c , we 7 We tried q(z|x) = exp L-1 i=0 log q(zi|x) and it gives similar results as q(z|x) = L-1 i=0 q(zi|x). see that increasing #latents increases I(z i , z =i ). This makes sense because larger #latents means that z =i will contain more information. However, the change of I(z i , z =i ) is sudden when #latents change from 10 to 15, which is different from the change of #latents from 5 to 10 or 15 to 20. Recall that I(z i , z =i ) = H(z i ) + H(z =i ) -H(z). Since H(z i ) can be computed stably, we only plot H(z =i ) -H(z) and show it in Fig. 19d . We can see that when #latents = 20, H(z =i ) ≈ H(z) which means we cannot differentiate between q(z =i ) and q(z). The instability of computation for high dimensional latents becomes clearer in Fig. 19e as I(x, z i |z =i ) = I(x, z) -I(x, z =i ) can be < 0 when #latents = 15 or 20. This causes the instability of WSEPIN in Fig. 19f despite the results look reasonable. JEMMIG and RMIG are calculated on individual latents so they are not affected by #latents and can provide consistent evaluations for models with different #latents. 

A.6 EVALUATING INDEPENDENCE WITH CORRELATION MATRIX:

For every x (n) sampled from the training data, we generated m = 1 latent samples z (n,m) i ∼ q(z i |x (n) ) and built a correlation matrix from these samples for each of the models FactorVAE, β-VAE and AAE. We also built another version of the correlation matrix which is based on the E q(zi|x (n) ) [z i ] (called the conditional means) instead of samples from q(z i |x (n) ). Both are shown in Fig. 20 . We can see that the correlation matrices computed based on the conditional means incorrectly describe the independence between representations of FactorVAE and β-VAE. AAE is not affected because it learns deterministic z i given x. Using the correlation matrix is not a principled way to evaluate independence in disentanglement learning. Before starting our discussion, we provide the following fact:

Fact 2. Assume we try to fill a fixed-size pool with fixed-size balls given that all the balls must be inside the pool. The only way to increase the number of the balls without making them overlapped is reducing their size. In the context of representation learning, a pool is x with size H(x) which depends on the training data. Balls are z i with size H(z i ). Fact. 2 reflects the situation of AAE (see Fig. 21 left ). In AAE, all z i are deterministic given x so the condition "all balls are inside the pool" is met. H(z i ) ≈ the entropy of N (0, I) which is fixed so the condition "fixed-size balls" is also met. Therefore, when the number of latent variables in AAE increases, all z i must be less informative (i.e., H(z i ) must decrease) given that the independent constraint on the latent variables is still satisfied. This is empirically verified in Fig. 22 as we see the distribution of

AAE FactorVAE AAE FactorVAE:

E q(zi|x (n) ) [z i ] over all x (n) ∼ p D (x)

becomes narrower when we increase the number of representations from 65 to 200. Also note that increasing the number of latent variable from 65 to 100 does not change the distribution. This suggests that 65 or 100 latent variables are still not enough to capture all information in the data.

FactorVAE, however, handles the increasing number of latent variables in a different way. Thanks to the KL term in the loss function that forces q(z i |x) to be stochastic, FactorVAE can break the Figure 22 : Distribution of E q(zi|x (n) ) [z i ] over all x (n) ∼ p D (x) of a particular representation z i for different AAE models. constraint in Fact 2 and allows the balls to stay outside the pool (see Fig. 21 right ). If we increase the number of latent variables but still enforce the independence constraint on them, FactorVAE will keep a fixed number of informative representations and make all other representations "noisy" with zero informativeness scores. We refer to that capability of FactorVAE as code compression.

A.8 ANALYSIS OF EXISTING METRICS FOR DISENTANGLEMENT:

In this section, we analyze recent metrics, including Z-diff score (Higgins et al., 2017a; Kim & Mnih, 2018) , Separated Attribute Predictability (SAP) (Kumar et al., 2017) , Mutual Information Gap (MIG) (Chen et al., 2018) , Disentanglement/Compactness/Informativeness (Eastwood & Williams, 2018) , Modularity/Explicitness (Ridgeway & Mozer, 2018) .

The main idea behind the Z-diff score (Higgins et al., 2017a; Kim & Mnih, 2018) is that if a ground truth generative factor y k (k ∈ {0, 1, ..., K}) is well aligned with a particular disentangled representation z i (although we do not know which i), we can use a simple classifier to predict k using information from z. Higgins et al. (Higgins et al., 2017a ) use a linear classifier while Kim et. al. (Kim & Mnih, 2018 ) use a majority-vote classifier. The main drawback of this metric is that it assumes knowledge about all ground truth factors that generate the data. Hence, it is only applicable for a toy dataset like dSprites. Another drawback lies in the complex procedure to compute the metric, which requires training a classifier. Since the classifier is sensitive to the chosen optimizer, hyper-parameters and weight initialization, it is hard to ensure a fair comparison.

The SAP score (Kumar et al., 2017) is computed based on the correlation matrix C between the latent variables z and the ground truth factors y. If a latent z i and a factor y k are both continuous, the (square) correlation C i,k between them is equal to Cov 2 (zi,y k )

Var(z k )Var(y k ) and is in [0, 1]. However, if the factor y k is discrete, computing the correlation between continuous and discrete variables is not straightforward. The authors handled this problem by learning a classifier that predicts y k given z i and used the balanced8 prediction accuracy as a replacement. Then, for each factor y k , they sorted C :,k in the descending order and computed the difference between the top two scores. The mean of the difference scores for all factors was used as the final SAP score. The intuition for this metric is that if a latent z i is the most representative for a factor y k (due to the highest correlation score), then other latent variables z =i should not be related to y k , and thus, the difference score for y k should be high. We believe the SAP score is more sensible than Z-diff but it is only suitable when both the ground truth factors and the latent variables are continuous as no classifier is required. Moreover, if we have K discrete ground truth factors and L latent variables, the number of classifiers we need to learn is L × K, which is unmanageable when L is large.

The MIG score (Chen et al., 2018) shares the same intuition as the SAP score but is computed based on the mutual information between every pair of z i and y k instead of the correlation coefficient. Thus, the MIG score is theoretically more appealing than the SAP score since it can capture nonlinear relationships between latent variables and factors while the SAP score cannot. The MIG score, to some extent, reflects the concept "interpretability" that we discussed in Section 2 in the main text.

Eastwood et. al. (Eastwood & Williams, 2018) proposed three different metrics namely "disentanglement", "completeness", and "informativeness" to quantify disentangled representations. These metrics are computed based on a so-called "important matrix" R whose element R ik is the relative importance of z i (w.r.t other z =i ) in predicting y k . More concretely, for each factor y k (k = 0, ..., K -1), they train a regressor (LASSO or Random Forest) to predict y k from z and use the weight vector provided by this regressor to define R •k . The "disentanglement" score D i quantifies the degree to which a latent z i captures at most one generative factor y k . D i is computed as

D i = (1 -H K (P i• )) where H K (P i• ) = K-1 k=0 -P ik log P ik and P ik = R ik K-1 k =0 R ik

which can be seen as the "probability" of predicting y k instead of y =k from z i . Similarly, the "completeness" score C k quantifies the degree to which a ground truth factor y k is captured by a single latent z i (i = 0, ..., L -1), computed as

C k = 1 -H L ( P•k ) where H L ( P•k ) = L-1 i=0 -Pik log Pik and Pik = R ik L-1 i =0 R i k

. The "informativeness" score describes the total amount of information of a particular factor y k captured by all representations z. However, the authors use the prediction error E k of the k-th regressor to quantify "informativeness" instead of I(y k , z). Despite being well-motivated, these metrics still have several drawbacks. First, using three different metrics to quantify disentangled representations is not as convenient as using a single metric like MIG (Chen et al., 2018) . For example, how can we compare two models A and B if A has a better "disentanglement" score but a worse "completeness" score than B? Second, these metrics do not apply for categorical factors with C classes since in this case the model weight is not a vector but an L × C matrix. Third, defining the pseudo-distribution

P ik = R ik K-1 k =0 R ik

seems ad hoc because i) the weight magnitudes R ik are unbounded and can vary significantly (see Appdx. A.9), and ii) P ik strongly depends on the available ground truth factors (e.g. the value of P ik will change if we only consider 2 instead of 5 factors).

Ridgeway et. al. (Ridgeway & Mozer, 2018) proposed two metrics called "modularity" and "explicitness" that have similar interpretations as "disentanglement" and "informativeness" discussed above but differ in implementation. Specifically, they compute the "modularity" score

M i for a representation z i as M i = 1 - K-1 k=0 (I(zi,y k )-T ik ) 2 I 2 (zi,y k * )×(K-1)

where k * = argmax k I(z i , y k ) and

T ik = I(z i , y k * ) if k = k * 0 otherwise .

Like the "disentanglement" score D i , M i is also ad hoc and is undefined when the number of ground truth factors is 1. The "explicitness" score E k for each ground truth factor y k is computed as the ROC curve of a logistic classifier that predicts y k from z. It turns out that E k is just a way to bypass computing I(y k , z).

A.9 THE MUTUAL INFORMATION MATRIX I(z i , y k ) AND THE IMPORTANCE MATRIX R ik

In Fig. 23 , we compare our mutual information matrix I(z i , y k ) with the counterpart in (Ridgeway & Mozer, 2018) and the importance matrix R ik in (Eastwood & Williams, 2018) . It is clear that all matrices can capture disentangled representations (those highlighted in red) well since their corresponding values are high compared to other values in the same column. However, the matrix I(z i , y k ) in (Ridgeway & Mozer, 2018) usually overestimates noisy representations since it uses E q(zi|x) [z i ] instead of q(z i |x). The matrix R ik in (Eastwood & Williams, 2018) sometimes assign very high absolute values for noisy representations since the regressor's weights are unbounded. These flaws make the metrics in (Ridgeway & Mozer, 2018) and in (Eastwood & Williams, 2018) inaccurate and unstable, especially "modularity" and "disentanglement" since they require normalization over rows.

A.10 COMPUTING METRICS FOR INFORMATIVENESS, SEPARABILITY AND INTERPRETABILITY:

The metrics for informativeness, separability and interpretability in Section. 3 requires computing H(z i ), H(z i |x), H(z =i ), H(z), and H(z i , y k ). We can compute these entropies via quantization or sampling. Quantization is only applicable when z i is a scalar. If z i is a high-dimensional vector, we need to use sampling. Below, we describe how to compute H(z) via sampling and H(z i ) via quantization. Other cases can be derived similarly. The importance matrix R ik in (Eastwood & Williams, 2018) . In (a) and (b), the columns corresponding to the following ground truth factors: "shape", "scale", "rotation", "x-position", "y-position". In (c), the column for "shape" is excluded because the metrics in (Eastwood & Williams, 2018) do not support categorical factors. Values corresponding to disentangled representations are highlighted in red. Defective values are highlighted in green. The model is FactorVAE with TC=20.

Computing H(z) via sampling

EQUATION

In Eq. 13, we use Monte Carlo sampling to estimate the expectations outside and inside the log function. The corresponding sample sizes are M and N . In Eq. 14, we use the assumption q z (m) |x (n) = L i=1 q z (m) i |x (n) . Please note that the entropy H(z) computed via sampling can be negative if z is continuous since we use the density function q(z|x).

Computing H(z i ) via quantization We can compute H(z i ) via quantization as follows:

H(z i ) = - si∈S Q(s i ) log Q(s)

where S is a set of all quantized bins s i corresponding to z i ; Q(s i ) is the probability mass function of s i . To ensure consistency among different z i as well as different models, we apply the same value range for all latent variables. In practice, we choose the range [-4, 4] since most of the latent values fall within this range. We divide this range into equal-size bins to form S.

We can compute Q(s i ) as follows:

Q(s i ) = 1 N N n=1 Q s i |x (n)

We compute Q s i |x (n) based on its definition, which is:

Q(s i |x (n) ) = b a q(z i |x (n) ) dz i (15)

where a, b are two ends of the bin s i .

There are two ways to compute Q(s i |x (n) ). In the first way, we simply consider the unnormalized Q (s i |x (n) ) as the area of a rectangle whose width is b -a and height is q(z i |x (n) ) with zi at the center value of the bin s i . Then, we normalize Q (s i |x (n) ) over all bins to get Q(s i |x (n) ). In the second way, if q(z i |x (n) ) is a Gaussian distribution, we can estimate the above integral with a closed-form function (see Appdx. A.14 for detail). A.11 RELATIONSHIP BETWEEN SAMPLING AND QUANTIZATION Denote H s (z i |x) and H q (z i |x) to be the sampling and quantization estimations of an entropy H(z i |x), respectively. Because H s (z i |x) is the expectation of log q(z i |x), H q (z i |x) is the expectation of log Q(z i |x), and Q(z i |x) ≈ q(z i |x) × bin width if the bin width is small enough, there exists a gap between H s (z i |x) and H q (z i |x), specified as follows:

H q (z i |x) = H s (z i |x) -log(bin width) = H s (z i |x) -log value range #bins = H s (z i |x) -log (value range) + log (#bins) Since Q(z i ) = E p D (x) [Q(z i |x)] and q(z i ) = E p D (x) [q(z i |x)], we have Q(z i ) ≈ q(z i ) × bin width.

Thus, H q (z i ) and H s (z i ) also exhibit a similar gap as H s (z i |x) and H q (z i |x):

H q (z i ) = H s (z i ) -log(bin width)

However, this gap disappears when computing the mutual information I(z i , x) since:

I q (z i , x) = H q (z i ) -H q (z i |x) = (H s (z i ) -log(bin width)) -(H s (z i |x) -log(bin width)) = H s (z i ) -H s (z i |x) = I s (z i , x)

In fact, one can easily prove that:

lim #bins→+∞ I q (z i , x) = I s (z i , x)

.

Similar relationships between sampling and quantization also apply for H(z i , y k ) and I(z i , y k ). They are clearly shown in Fig. 24 .

In summary,

• Sampling entropies such as H s (z i |x) or H s (z i ) are usually fixed but can be negative since q(z i |x) or q(z i ) can be > 1. However, these entropies can still be used for ranking though it is not easy to interpret them. • Quantized entropies such as H q (z i |x) or H q (z i ) can be positive if the bin width is small enough (or #bins is large enough). The growth rate is -log(bin width) (or log(#bin)).

Because lim x→+∞ log x = +∞, H q (z i |x) and H q (z i ) cannot be upper-bounded.

• The mutual information I(z i , x) is consistent via either quantization or sampling. Unlike the entropies, I(z i , x) is well-bounded even when z i is continuous, thus, is suitable to be used in a metric. However, when #bins is small, the approximation Q(z i ) ≈ q(z i ) × bin width does not hold and quantization estimation can be inaccurate.

A.12 NORMALIZING JEMMIG Recall that the formula of the unnormalized JEMMIG(y k ) is H(z i * , y k ) -I(z i * , y k ) + I(z j • , y k ).

If we estimate H(z i * , y k ) via quantization, the value of the unnormalized JEMMIG(y k ) will vary according to the bin width (or value range and #bins) (as shown in Fig. 17 (left)). However, we can still rank models by forcing them using the same bin width (or the same value range and #bins).

To avoid setting these hyper-parameters, can estimate H(z i * , y) via sampling. In this case, the value of the unnormalized JEMMIG(y k ) only depends on q(z i |y) which is fixed after learning. Ranking disentanglement models using the unnormalized JEMMIG(y k ) is somewhat similar to ranking generative models using the log-likelihood.

Using the unnormalized JEMMIG(y k ) causes interpretation difficulty. We could normalize JEMMIG(y k ) as follows:

EQUATION

where H q (z i ) is a quantization estimation of H(z i ), hence, greater than 0; H q (u) is an entropy that bounds H q (z i ) but does not depend on q(z i |x). Intuitively, u should be uniform. The main problem is how to find an effective value range [a, b] of z i that satisfies 2 conditions: i) most of the mass of z i falls within that range, and ii) Come back to the main problem, since q(z i ) = E p D (x) [q(z i |x)] and q(z i |x) is usually a Gaussian distribution N (µ i , σ i ), we can choose a, b as follows:

H(u) is the bound of H(z i ) if u ∈ [a

a = min µ (1) i - σ (1) i 2 √ 2πe, ..., µ (N ) i - σ (N ) i 2 √ 2πe , and b = max µ (1) i + σ (1) i 2 √ 2πe, ..., µ (N ) i + σ (N ) i 2 √ 2πe

One may wonder that different methods can choose different value ranges [a, b] to normalize JEMMIG so how to ensure a fair comparison among them using the normalized JEMMIG. A simple solution is using the same value range [a, b] for different models. In this case, b -a should be large enough to cover various distributions. We can write Eq. 16 as follows: 

EQUATION

Since the fraction in Eq. 17 is smaller than 1, increasing #bins will increase this fraction but still ensure that it is smaller than 1. This means the normalized JEMMIG is always in [0, 1] despite #bins.

A.13 COMPARING RMIG WITH OTHER MIG IMPLEMENTATIONS RMIG has several advantages compared to the original MIG (Chen et al., 2018) which we refer as MIG1: i) RMIG works on real datasets, MIG1 does not; ii) RMIG supports continuous factors, MIG1 does not. On toy datasets such as dSprites, RMIG produces almost the same results as MIG1 (Fig. 25 (left)). We argue that the small differences between RMIG and MIG1 scores in some models are caused by either the quantization error of RMIG (when #bins=100) or the sampling error of MIG1 (when #samples=10000).

Locatello et. al. (Locatello et al., 2019) provided an implementation9 of MIG which we refer as MIG2. MIG2 is theoretically incorrect in two points: i) it only uses the mean of the distribution q(z i |x (n) ) instead of the whole distribution q(z i |x (n) ), and ii) the bin range and width varies for different z i .

The performance of MIG2 is, thus, unstable. We can easily see this problem by comparing the right plot with the left plot in Fig. 25 . MIG2 usually overestimates the true MIG1 when evaluating β-VAE models with a large β (e.g. β ∈ {20, 30, 50}). We guess the reason is that in these models, q(z i |x (n) ) usually has high variance, hence, using the mean of q(z i |x (n) ) like MIG2 leads to the wrong estimation of I(z i , y k ).

A.14 DEFINITE INTEGRAL OF A GAUSSIAN DENSITY FUNCTION:

Assume that we have a Gaussian distribution N (µ, σ). The definite integral of its density function within the range [a, b] denoted as G(a, b) can be computed as follows:

EQUATION

Although erf(•) does not have analytical form, we can compute its values with high precision using polynomial approximation. For example, the following approximation provides a maximum error of 5 × 10 -4 (Def, 2019):

erf(x) ≈ 1 - 1 (1 + a 1 x + a 2 x 2 + a 3 x 3 + a 4 x 4 ) 4 , x > 0

where a 1 = 0.278393, a 2 = 0.230389, a 3 = 0.000972, a4 = 0.078108.

A.15 REPRESENTATIONS LEARNED BY FACTORVAE:

We empirically observed that FactorVAE learns the same set of disentangled representations across different runs with varying numbers of latent variables (see Appdx. A.18) . This behavior is akin to that of deterministic PCA which uncovers a fixed set of linearly independent factors10 (or principal components). Standard VAE is theoretically similar to probabilistic PCA (pPCA) (Tipping & Bishop, 1999) as both assume the same generative process p(x, z) = p θ (x|z)p(z). Unlike deterministic PCA, pPCA learns a rotation-invariant family of factors instead of an identifiable set of factors. However, in a particular pPCA model, the relative orthogonality among factors is still preserved. This means that the factors learned by different pPCA models are statistically equivalent. We hypothesize that by enforcing independence among latent variables, FactorVAE can also learn statistically equivalent factors (or q(z i |x)) which correspond to visually similar results. We provide a proof sketch for the hypothesis in Appdx. A.16. We note that Rolinek et. al. (Rolinek et al., 2018 ) also discovered the same phenomenon in β-VAE.

A.16 WHY FACTORVAE CAN LEARN CONSISTENT REPRESENTATIONS?:

Inspired by the variational information bottleneck theory (Alemi et al., 2016) , we rewrite the standard VAE objective in an equivalent form as follows: where Rec(x) denotes the reconstruction loss over x and β is a scalar.

In the case of FactorVAE, since all latent representations are independent, we can decompose I(x, z) into i I(x, z i ). Thus, we argue that FactorVAE optimizes the following information bottleneck objective: min q(z|x) i

EQUATION

We assume that Rec(x) represents a fixed condition on all q i (z|x). Because I(x, z i ) is a convex function of q(z i |x) (see Appdx. A.17), minimizing Eq. 19 leads to unique solutions for all q(z i |x) (Note that we do not count permutation invariance among z i here).

To make Rec(x) a fixed condition on all q i (z|x), we can further optimize p(x|z) with z sampled from a fixed distribution like N (0, I). This suggests that we can add a GAN objective to the original FactorVAE objective to achieve more consistent representations.

A.17 I(x, z) IS A CONVEX FUNCTION OF p(z|x)

Let us first start with the definition of a convex function and some of its known properties. Definition 3. Let X be a set in the real vector space R D and f : X → R be a function that output a scalar. f is convex if ∀x 1 , x 2 ∈ X and ∀λ ∈ [0, 1], we have:

f (λx 1 + (1 -λ)x 2 ) ≤ λf (x 1 ) + (1 -λ)f (x 2 )

Proposition 4. A twice differentiable function f is convex on an interval if and only its second derivative is non-negative there.

Proposition 5 (Jensen's inequality). Let x 1 , ..., x n be real numbers and let a 1 , ..., a n be positive weights on x 1 , ..., x n such that n i a i = 1. If f is a convex function on the domain of x 1 , ..., x n , then

f n i=1 a i x i ≤ n i=1 a i f (x i )

Equality holds if and only if all x i are equal or f is a linear function. where the inequality in Eq. 20 is the log-sum inequality. This completes the proof.

A.18 EXPERIMENTS TO SHOW THAT FACTORVAE LEARNS CONSISTENT REPRESENTATIONS:

We first trained several FactorVAE models with 3 latent variables on the CelebA dataset. After training, for each model, we performed 2D interpolation on every pair of latent variables z i , z j (i ≤ j) and decoded the interpolated latent representations back to images for visualization. We found that the learned representations from these models share visually similar patterns, which is illustrated in Fig. 26 . It is apparent that all images in Fig. 26 are derived from a single one (e.g. we can choose the first image as a reference) by switching the rows and columns and/or flipping the whole image vertically/horizontally. The reason why switching happens is that all latent variables of FactorVAE are permutation invariant. Flipping happens due to the symmetry of q(z i ) which is forced to be similar to p(z i ) = N (0, I). n) .

We then repeated the above experiment on FactorVAE models containing 65, 100, 200 latent variables, but replacing 2D interpolation on pairs of latent variables with conditional 1D interpolation on individual latent variables to account for large numbers of combinations. We sorted the latent variables z i of each model according to the variance of the distribution of E q(zi|x (n) ) [z i ] over all data samples x (n) ∼ p D (x) in descending order. Fig. 27 shows results for the top 10 latent variables (of each model). We can see that some factors of variation are consistently learned by these models, for example, those that represent changes in color of the image background. Because these factors usually appear on top, we hypothesize that the learned factors should follow some fixed order. However, many pronounced factors do not appear at the top, suggesting that the sorting criterion is inadequate.

We then used the informativeness metric defined in Sec. 4.1 to sort the latent variables. Now the "visual consistency" and "ordering consistency" patterns emerge, (see Fig. 28 ). We also observed that the number of learned factors is relatively fixed (around 38-43) for all models despite that the number of latent variables varies significantly from 65 to 200. 

:

In(Eastwood & Williams,

2018), the authors consider the prediction error of y k given z instead. High "informativeness" score means this error should be close to 0.

Note that only informativeness and separability are considered in this case.

SEPIN stands for SEParability and INformativeness

INDIN stands for INDependence and INformativeness

Only FactorVAE and AAE use a discriminator over z

Note that H(zi) does not depend on whether q(zi) is zero-centered or not

To achieve balance, the classifier uses the same number of samples for all categories of y k during training and testing

https://github.com/google-research/disentanglement_lib

When we mention factors in this context, they are not really factors of variation. They refer to the columns of the projection matrix W in case of PCA and the component encoding functions q(zi|x) in case of deep generative models.

Figures and Tables:

Figure 1: Differences in probabilistic assumption of MIG and Robust MIG.

Figure2: The informativeness and the total information of some FactorVAE and β-VAE models. For each hyperparameter, we report the mean and the standard error of 4 different runs.

Figure 4: Visualization of the representations learned by representative FactorVAE, VAE, and β-VAE models with separability (I(z i , z =i )) and informativeness (I(z i , x)) scores. Representations are sorted by their separability scores.

Figure 5: (a) and (b): Unnormalized JEMMIG and RMIG scores of several FactorVAE and β-VAE models. (c): Correlation between JEMMIG and RMIG.

Figure7: "disentanglement", "completeness" and "informativeness" (error) scores of several Factor-VAE and β-VAE models.

Figure 9: Normalized informativeness scores (bins=100) of all latent variables sorted in descending order.

Figure 10: Visualization of the top informative representations. Scores are unnormalized.

Figure 11: Normalized MISJED scores of all latent pairs sorted by their informativeness.

Figure 12: Top 5 representations that are most correlated with some ground truth factors. For each representation, we show its mutual information with the ground truth factor.

Figure 14: Normalized informativeness scores (bins=100) of all latent variables sorted in descending order.

Figure 16: Top 3 representations sorted by their mutual information with different ground truth factors.

Figure 17: Dependences of RMIG (normalized), JEMMIG (normalized) and 1 K

Figure 18: Dependences of JEMMIG and WSEPIN on the number of samples. All models have 10 latent variables. The dataset is dSprites.

Figure 19: Dependences of various quantitative measures on the number of latents. All measures are computed via sampling. The model used in this experiment is β-VAE with β = 10.

Figure 20: Correlation matrix of representations learned by FactorVAE, β-VAE and AAE.

Figure 21: Illustration of representations learned by AAE and FactorVAE. A big red circle represents the total amount of information that x contains or H(x) which is limited by the amount of training data. Blue circles are informative representations z f and the size of these circle indicates the informativeness of z f . Green circles are noisy representations z n . AAE does not contain z n , only FactorVAE does.

Figure 23: (a): Our mutual information matrix I(z i , y k ), (b): The mutual information matrix I(z i , y k ) in (Ridgeway & Mozer, 2018), (c):The importance matrix R ik in(Eastwood & Williams, 2018). In (a) and (b), the columns corresponding to the following ground truth factors: "shape", "scale", "rotation", "x-position", "y-position". In (c), the column for "shape" is excluded because the metrics in(Eastwood & Williams, 2018) do not support categorical factors. Values corresponding to disentangled representations are highlighted in red. Defective values are highlighted in green. The model is FactorVAE with TC=20.

Figure24: Correlation between the sampling (#samples=10000) and quantized (value range=[-4, 4], #bins=100) estimations of JEMMIG/RMIG. In the subplot (a), the red line is y = x -log(bin width) while in the subplot (b), the red line is y = x. Blues denotes FactorVAE models and oranges denotes β-VAE models. The dataset is dSprites.

, b]. However, before solving this question, we try to answer a similar yet easier question: "Given a Gaussian random variable z ∼ N (µ, σ), what is the value range of a uniform random variable u such that H(u) ≥ H(z)?". Assume u ∈ [a, b], the entropy of u is H(u) = log(b -a) while the entropy of z is H(z) = 0.5 log(2πeσ 2 ). We have: H(z) ≤ H(u) ⇔0.5 log(2πeσ 2 ) ≤ log(b -a) ⇔σ √ 2πe ≤ b -a Thus, to ensure H(u) to be an upper bound of H(z), we should choose the value range of u to be at least σ √ 2πe. If σ = 1, this range is about 4.1327. If we also want [a, b] to capture most of the mass of z, a should be µ -σ 2 √ 2πe and b should be µ + σ 2 √ 2πe.

Figure 25: Left: Correlation between our RMIG (#bins=100) and the original MIG (Chen et al., 2018) (#samples=10000). Right: Correlation between our RMIG (#bins=100) and the implementation of MIG in (Locatello et al., 2019) (#bins=100). Experiments are conducted on the dSprites dataset.

Log-sum inequality). Let a 1 , ..., a n and b 1 , ..., b n be non-negative numbers. Denote a and only if ai bi are equal for all i.Armed with the definition and propositions, we can now prove that I(x, z) is a convex function of p(z|x). Let p 1 (z|x) and p 2 (z|x) be two distributions and let p (z|x) = λp 1 (z|x) + (1 -λ)p 2 (z|x) with λ ∈ [0, 1]. p (z|x) is a valid distribution since p (z|x) > 0 ∀z and x z p (z|x)p(x) dz dx = 1. In addition, we have:(z|x) + (1 -λ)p 2 (z|x)) p(x) dx = λ x p 1 (z|x)p(x) dx + (1 -λ) x p 2 (z|x)p(x) dx = λp 1 (z) + (1 -λ)p 2 (z)We write I(x, z) = λI 1 (x, z) + (1 -λ)I 2 (x, z) as follows:

Figure 26: Random traversal on the latent space of FactorVAE. We can easily see the visual resemblance among image regions corresponding the same number.

Figure 27: Top 10 representations sorted by the variance of the distribution of E q(zi|x (n) ) [z i ] over all x (n) .

Figure 28: Top 10 representations sorted by informativeness scores. We can clearly see the consistency of representations across different runs.



Table content: <table><tr><td>Dataset</td><td>#Train</td><td>#Test</td><td>Image size</td></tr><tr><td colspan="4">CelebA 162,770 19,962 64×64×3</td></tr><tr><td colspan="2">dSprites 737,280</td><td>0</td><td>64×64×1</td></tr></table>

Summary of datasets used in experiments.

Table content: <table/>

Unless explicitly mentioned, we use the following default settings: i) for CelebA: the number of latent variables is 65, the TC coefficient in FactorVAE is 50, the value for β in β-VAE is 50, and the coefficient for the generator loss over z in AAE is 50; ii) for dSprites: the number of latent variables is 10.

Table content: <table><tr><td>Encoder</td><td>Decoder</td><td>Discriminator Z</td></tr><tr><td>x dims: 64×64×3</td><td>z dim: 65</td><td>z dim: 65</td></tr><tr><td>conv (4, 4, 32), stride 2, ReLU</td><td>FC 1×1×256, ReLU</td><td>5×[FC 1000, LReLU]</td></tr><tr><td>conv (4, 4, 32), stride 2, ReLU</td><td>deconv (4, 4, 64), stride 1, valid, ReLU</td><td>FC 1</td></tr><tr><td>conv (4, 4, 64), stride 2, ReLU</td><td>deconv (4, 4, 64), stride 2, ReLU</td><td>D(z): 1</td></tr><tr><td>conv (4, 4, 64), stride 2, ReLU</td><td>deconv (4, 4, 32), stride 2, ReLU</td><td/></tr><tr><td>conv (4, 4, 256), stride 1, valid, ReLU</td><td>deconv (4, 4, 32), stride 2, ReLU</td><td/></tr><tr><td>FC 65</td><td>deconv (4, 4, 3), stride 2, ReLU</td><td/></tr><tr><td>z dim: 65</td><td>x dim: 64×64×3</td><td/></tr></table>

Model architectures for CelebA.

Table content: <table><tr><td>Encoder</td><td>Decoder</td><td>Discriminator Z</td></tr><tr><td>x dims: 64×64×1</td><td>z dim: 10</td><td>z dim: 10</td></tr><tr><td>conv (4, 4, 32), stride 2, ReLU</td><td>FC 128, ReLU</td><td>5×[FC 1000, LReLU]</td></tr><tr><td>conv (4, 4, 32), stride 2, ReLU</td><td>FC 4×4×64, ReLU</td><td>FC 1</td></tr><tr><td colspan="2">conv (4, 4, 64), stride 2, ReLU deconv (4, 4, 64), stride 2, ReLU</td><td>D(z): 1</td></tr><tr><td colspan="2">conv (4, 4, 64), stride 2, ReLU deconv (4, 4, 32), stride 2, ReLU</td><td/></tr><tr><td>FC 128, ReLU</td><td>deconv (4, 4, 32), stride 2, ReLU</td><td/></tr><tr><td>FC 10</td><td>deconv (4, 4, 1), stride 2, ReLU</td><td/></tr><tr><td>z dim: 10</td><td>x dim: 64×64×1</td><td/></tr></table>

Model architecture for dSprites.

Table content: <table/>



Table content: <table><tr><td/><td>008 0.009</td><td>2.476</td><td>2.443</td><td>4.858</td><td>4.892</td></tr><tr><td>β-VAE</td><td>0.113 0.131</td><td>3.413</td><td>3.401</td><td>6.661</td><td>6.739</td></tr><tr><td>AAE</td><td>0.022 0.023</td><td>0.022</td><td>0.021</td><td>0.021</td><td>0.020</td></tr></table>

.

Table content: <table><tr><td/><td/><td/><td colspan="2">RMIG (normalized)</td><td/><td/></tr><tr><td/><td>Bangs</td><td colspan="2">Black Hair Eyeglasses</td><td>Goatee</td><td>Male</td><td>Smiling</td></tr><tr><td/><td colspan="2">H=0.4256 H=0.5500</td><td colspan="4">H=0.2395 H=0.2365 H=0.6801 H=0.6923</td></tr><tr><td>FactorVAE</td><td>0.1742</td><td>0.0430</td><td>0.0409</td><td>0.0343</td><td>0.0060</td><td>0.0962</td></tr><tr><td>β-VAE</td><td>0.0176</td><td>0.0223</td><td>0.0045</td><td>0.0325</td><td>0.0094</td><td>0.0184</td></tr><tr><td>AAE</td><td>0.0035</td><td>0.0276</td><td>0.0018</td><td>0.0069</td><td>0.0060</td><td>0.0099</td></tr><tr><td colspan="7">Table 6: Normalized RMIG scores (#bins=100) for some factors. Higher is better.</td></tr><tr><td/><td/><td/><td colspan="2">JEMMIG (normalized)</td><td/><td/></tr><tr><td/><td>Bangs</td><td colspan="2">Black Hair Eyeglasses</td><td>Goatee</td><td>Male</td><td>Smiling</td></tr><tr><td/><td colspan="2">H=0.4256 H=0.5500</td><td colspan="4">H=0.2395 H=0.2365 H=0.6801 H=0.6923</td></tr><tr><td>FactorVAE</td><td>0.6118</td><td>0.6334</td><td>0.6041</td><td>0.6616</td><td>0.6875</td><td>0.6150</td></tr><tr><td>β-VAE</td><td>0.8632</td><td>0.8620</td><td>0.8602</td><td>0.8600</td><td>0.8690</td><td>0.8699</td></tr><tr><td>AAE</td><td>0.8463</td><td>0.8613</td><td>0.8423</td><td>0.8496</td><td>0.8644</td><td>0.8575</td></tr></table>

Normalized JEMMIG scores (bins=100).

Table content: <table><tr><td/><td/><td>Scale</td><td colspan="2">Rotation Pos X</td><td>Pos Y</td></tr><tr><td colspan="3">FactorVAE 0.2412 0.7139</td><td>0.0523</td><td>0.7198 0.7256</td></tr><tr><td>β-VAE</td><td colspan="2">0.0481 0.1533</td><td>0.0000</td><td>0.4127 0.4193</td></tr><tr><td>AAE</td><td colspan="2">0.0053 0.0786</td><td>0.0098</td><td>0.3932 0.4509</td></tr><tr><td colspan="5">Table 8: Normalized RMIG scores (bins=100).</td></tr><tr><td/><td>Shape</td><td>Scale</td><td colspan="2">Rotation Pos X</td><td>Pos Y</td></tr><tr><td colspan="3">FactorVAE 0.6841 0.3422</td><td>0.7204</td><td>0.2908 0.2727</td></tr><tr><td>β-VAE</td><td colspan="2">0.8642 0.8087</td><td>0.9199</td><td>0.5629 0.5576</td></tr><tr><td>AAE</td><td colspan="2">0.8426 0.8143</td><td>0.8665</td><td>0.5738 0.5258</td></tr></table>

Peer review (iclr2020):
Summary: The paper presents a new set of metrics for evaluating disentangled representations in both supervised and unsupervised settings. Disentangled representations are evaluated along three dimensions: informativeness, separability, and interpretability. While previous work offers metrics for similar dimensions (e.g., (Eastwood & Williams, 2018)), the paper suggests that the metrics of the submission are superior to (Eastwood & Williams, 2018), based on a comparison between FactorVAE and Beta-VAE. Strengths: (1) The metrics of the paper are well motivated from an information-theoretic standpoint. While, in some cases, the metrics themselves are straight applications of information theory (e.g., informativeness metric == mutual information), the authors came up with new metrics when existing information-theoretic definitions could be fooled by, e.g., introducing noisy and independent latent representations z. (2) Experimental results show that these metrics are better than previous metrics at discriminating between FactorVAE and Beta-VAE (in an experimental setting where the former is clearly superior to the latter). (3) As opposed to much of prior work, these metrics do not require any training, which can be considered a plus as they do not require adaptation for each (sub)domain. (4) The paper is overall well written and clear. I very much enjoyed reading it. Weaknesses: (1) My main concern with the paper, which makes me vote for “weak accept” instead of “accept”: The metrics of the paper are compared against previous metrics (Eastwood & Williams, 2018) on *only two* types of disentangled representations, namely FactorVAE and Beta-VAE, and in one experimental condition. (There is plenty of other experimental material in the appendix which also introduces AAE, but none of it seems to compare against previous *metrics*). I think comparing metrics on only two systems is somewhat problematic, and we don’t know how general the results are. I would have preferred to see FactorVAE and Beta-VAE evaluated with fewer hyperparameter choices to allow introducing more variational approaches. Could you (the authors) at least evaluate AAE against Eastwood & Williams too? This concern is not just mere quibbling, as the authors have shown (e.g., in Section 3.2) that specific edge cases can fool naïve metrics (e.g., by introducing noisy and independent latent variables), and there may be other edge cases that the authors have not considered. I think evaluating new metrics against previous work (i.e., metrics) on only two underlying systems is not very convincing. I acknowledge that the paper offers *lots* of experiments – the full pdf is 30 pages (!) – but I think some of the existing ones could go to leave space for evaluations using more underlying VAE/baselines/edge-case systems. (2) The paper presents six metrics (MI, MISJED, WSEPIN, WINDIN, RMIG, JEMMIG) along three dimensions. While each individual metric makes sense, I feel the paper lacks a discussion section that ties these pieces together and suggests a way of using these metrics conjointly across the three dimensions towards building better-disentangled representations (the paper has a “discussion” section, but it is very short and actually more of a conclusion). The more metrics we have, the more chances each underlying VAE model can “win” on one of the metrics, which is not particularly enlightening. (3) The paper is not self-contained, and some parts are almost impossible to understand without familiarity with (Kim & Mnih, 2018) and (Higgins et al., 2017a). It uses technical terms of these papers without explanations (e.g., TC is not even spelled out it seems). Hyperparameters of these papers (e.g., beta, gamma) are used without explanation. (4) There is no related work section. Such a section could, e.g., make what is borrowed from (Kim & Mnih, 2018; Higgins et al., 2017a) more understandable. Overall, I think it is a nice paper that makes significant contributions to the problem of building better disentangles representations thanks to better evaluation metrics. The empirical support for some of the claims (e.g., superiority to (Eastwood & Williams, 2018)) is a bit weak, but other strengths mentioned above largely make up for that. Minor comments: The definitions of SEPIN@k and INDIN@k don’t seem quite right. The summation iterates over z_0, …, z_k-1, leaving off z_k, …, z_L-1, but the latter variables might contain some z’s with lowest mutual information with x. The way the ‘sorted’ function is written only has the effect of reordering z_0, …, z_{k-1} among themselves, never considering any of the z_k and above whatever their MI’s are, which is probably not what the authors meant. Perhaps ‘sorted’ is intended to both sort and rename z’s, but if z’s are indeed renamed I think this should be indicated mathematically otherwise the equation is wrong (e.g., (z’_1, …, z’_{L-1}) = sorted_by_MI(z_1, …, z_{L_1})). Typos in WSEPIN and WINDIN definitions: “0 = 1” -> “i = 1”? Figure 1: “Image”? The paper is written in general terms and doesn’t seem to assume otherwise x is an image representation (or does it?). Section 3.4: “Table. 1” -> “Table 1” Table 1 vs. title of Section 3.1: The author’s informativeness metric doesn’t have a name, but the section title contains “informativeness,” which could be confusing vs. “informativeness” in Table 1 which is a completely different metric. Page 8, interpretability: “TC=10”. Do you mean “TC loss” here? I presume 10 is the value of a hyperparameter of the FactorVAE paper (gamma?), and not the actual value of the TC term. Same question for Figure 9 and later figures of the appendix.