arXiv is now an independent nonprofit! Learn more
License: CC BY 4.0
arXiv:2204.00492v3 [cs.LG] 22 Jul 2022

Provable concept learning for interpretable predictions using variational autoencoders

Armeen Taeb Affiliation: Seminar for Statistics
ETH
Zürich, Switzerland
   Nicolò Ruggeri    Carina Schnuck Affiliation: Mathematics Dept.
ETH
Zürich, Switzerland
   Fanny Yang Affiliation: Computer Science Dept.
ETH
Zürich, Switzerland
Affiliation: Max-Planck-Institute for Intelligent Systems
Tübingen, Germany
Abstract

In safety-critical applications, practitioners are reluctant to trust neural networks when no interpretable explanations are available. Many attempts to provide such explanations revolve around pixel-based attributions or use previously known concepts. In this paper we aim to provide explanations by provably identifying high-level, previously unknown ground-truth concepts. To this end, we propose a probabilistic modeling framework to derive (C)oncept (L)earning and (P)rediction (CLAP) – a VAE-based classifier that uses visually interpretable concepts as predictors for a simple classifier. Assuming a generative model for the ground-truth concepts, we prove that CLAP is able to identify them while attaining optimal classification accuracy. Our experiments on synthetic datasets verify that CLAP identifies distinct ground-truth concepts on synthetic datasets and yields promising results on the medical Chest X-Ray dataset.

1 Introduction

Suppose a hospital aims to deploy a model that classifies diseases 𝐘\mathbf{Y} from medical images 𝐗\mathbf{X} and informs the doctor about relevant predictive features. There may be multiple diseases such as lung atelectasis and lung infiltration and multiple interpretable ground-truth features (or concepts) 𝐙c\mathbf{Z}_{c}, such as lung or heart shape, that are relevant for predicting each disease. Ideally, in addition to identifying and utilizing these interpretable features, the model should perform prediction in an interpretable manner itself. The domain expert can then check whether the model is reasonable and also potentially make new scientific discoveries – i.e. discover new factors relevant for prediction.

Thus, in this paper, we seek an interpretable predictive model that uses the ground-truth features for prediction. But what makes a predictive model interpretable from a practical perspective? Even though the definite answer depends on the application domain, practitioners often agree on the following desiderata: first of all, the model should be simple – e.g. additive in the predictive features with a small number of relevant features. Simplicity allows us to interpret the relevance of each variable [Rudin, 2018], and ensure that the interpretation is robust to small changes to the input [Alvarez-Melis and Jaakkola, 2018a, Alvarez-Melis and Jaakkola, 2018b]. Furthermore, the model ideally assigns global and local importance to the features used for prediction [Reyes et al., 2020, Stiglic et al., 2020]; in the context of medical imaging for example, the former corresponds to the population-level importance, the latter to the patient-level one.

While there have been many works on interpretable predictions, none of them provide a prediction model that identifies and uses these previously unknown ground-truth features (see relate works for more discussion). This paper tries to go bottom-up, starting from a generative model to derive a procedure based on variational inference that satisfies all the desiderata. Our proposed framework i) mathematically formalizes concept learning and ii) provably identifies the ground-truth concepts and provides an accurate and simple prediction model using these discovered concepts.

More concretely, we view the recovery of the ground-truth concepts as a latent variable estimation problem. We start by assuming an explicit graphical model for the joint distribution of (𝐗,𝐙,𝐘)(\mathbf{X},\mathbf{Z},\mathbf{Y}). Here, the latent variables 𝐙\mathbf{Z} include all ground-truth latent features, as well as others irrelevant for prediction. Together, the latent variables 𝐙\mathbf{Z} generate the raw observation 𝐗\mathbf{X}. The task of concept learning can then be mathematically thought of as obtaining identifiability and performing inference on the latent factors. Using a VAE-based architecture, we enable both visualization (and thus facilitate human interpretation) of the learned concepts, as well as prediction based on these.

In summary, we make the following contributions:

  1. 1.

    We present a framework to model ground-truth latent features 𝐙c\mathbf{Z}_{c} (Sec. 2), and derive C(oncept) (L)earning and (P)rediction (in short CLAP), an inherently interpretable prediction framework based on variational autoencoders (Sec. 3)

  2. 2.

    We prove that CLAP enables identification of the ground-truth concepts underlying the data and learns a simple optimal prediction model based on these. Importantly, our framework does not require knowing the number of latent features (Sec. 4)

  3. 3.

    We validate CLAP on various multi-task prediction scenarios on synthetic (MPI3D, Shapes3D and SmallNorbs) datasets that yield encouraging results on domain-specific application of the framework on real data (Sec. 5)

We believe that our theoretical framework is a useful step for formalizing interpretable predictions. In particular, in settings where it’s reasonable to assume that the ground-truth features are themselves interpretable by a domain expert, CLAP provably provides an end-to-end interpretable prediction model. Even when the assumption does not hold, we can still guarantee that CLAP finds a simple and accurate prediction model using ground-truth features.

1.1 Related work

In this section, we compare existing interpretable prediction methods with CLAP in detail, with a concise summary provided in Table 1. Previous methods proposed in the context of explainable/interpretable AI can be broadly divided into two categories: (i) providing post-hoc explanations for black-box prediction models and (ii) designing interpretable models that explicitly incorporate transparency into the model design, where the explanation is learned during training.

Post-hoc explanations Inherently interpretable
Desiderata pixel attribution+ counterfactual pre-defined concepts StyleGANs existing VAEs/ autoencoders CLAP
Learning visually distinct features ×\bm{\times} ×\bm{\times} {\checkmark}^{\star}
Global importance of predictive features ×\bm{\times} ×\bm{\times} ×\bm{\times}
Guarantees: concept learning+prediction ×\bm{\times} ×\bm{\times} ×\bm{\times} ×\bm{\times}
Table 1: Comparison of CLAP with post-hoc explanation methods and other inherently interpretable techniques. The symbol {\checkmark}^{\star} highlights that for learning visually distinct features, existing predictive VAEs require strong knowledge of the latent variables or auxiliary variables (in addition to labels).

Post-hoc methods The majority of work on interpretability so far has focused on (i), providing post-hoc explanations for a given prediction model. These include pixel attribution methods [Bach et al., 2015, Selvaraju et al., 2017, Simonyan et al., 2014], counterfactual explanations [Antoran et al., 2021, Chang et al., 2019], explanations based on pre-defined concepts [Kazhdan et al., 2020, Rezende et al., 2014, Yeh et al., 2020], and recently developed StyleGANs [Lang et al., 2021, Wu et al., 2021]. Post-hoc methods have a number of shortcomings given our desired objectives: First, it is unclear whether post-hoc explanations indeed reflect the black-box model’s true ”reasoning” [Kumar et al., 2020, Rudin, 2018]. Even if an expert deems the output of the explanation model as unreasonable, one is unable to determine whether the explanation method or the original model is at fault. Furthermore, by construction, post-hoc methods cannot come with statistical inference guarantees and ensure that the learned concepts align with the ground-truth features. Finally, post-hoc methods are typically used to explain complex classifiers; as a result, they are unable to provide meaningful global and local importance of features for prediction.

VAE-based methods for inherently interpretable prediction Our procedure CLAP is an inherently interpretable prediction model and similar in spirit to VAE-based prediction techniques. On a high level, existing procedures either are unable to identify the ground-truth latent features or require additional labels. Therefore, they are not applicable in the traditional supervised learning setting considered in this paper (where only 𝐗,𝐘\mathbf{X},\mathbf{Y} are available). Further, none of the existing methods provide simultaneous guarantees for learning the underlying concept and obtaining optimal predictions using these learned features. We provide more specific comparisons next.

Unsupervised VAEs [Kingma et al., 2014] can easily be used for prediction tasks by training a classifier on the latent features. A massive literature proposes various structural adjustments to improve disentanglement [Burgess et al., 2018, Chen et al., 2018, Higgins et al., 2017, Kim and Mnih, 2019, Kumar et al., 2017]. However, Locatello et al. [2019] empirically and theoretically demonstrate that these methods generally do not successfully identify the ground-truth latent features. Recently proposed VAE methods address the issue of non-identifiability by assuming access to additional data and improve identifiability. However, they either require the label as direct input [Joy et al., 2021], or labels for auxiliary variables that contain information about the ground-truth latent factors [Khemakhem et al., 2020, Mita et al., 2021] or the ground-truth factors themselves [Locatello et al., 2019]. None of these scenarios are applicable to the traditional supervised learning setting in our paper.

Other works With respect to model architecture, our method is similar to Self-Explaining Neural Networks (SENN) [Alvarez-Melis and Jaakkola, 2018b] which decomposes a complex prediction model into learning interpretable concepts (using an autoencoder) and a simple (linear) predictor. More broadly, methods based on contrastive learning or multi-view data (e.g. [Gresele et al., 2019, Hyvärinen et al., 2019, Locatello et al., 2020, Shu et al., 2020, von Kügelgen et al., 2021]) can identify underlying latent features, albeit with access to pairs of images that share similar sources. Furthermore, the focus of these methods is on representation learning rather than interpretable predictions.

2 Modeling interpretable and predictive concepts

We present a probabilistic graphical model that statistically relates the ground-truth latent features 𝐙c\mathbf{Z}_{c} to the labels and observed variables; our proposed method later uses this model to learn the latent concepts as well as a simple classifier based on these features. We remark that, although the methodology in this paper is presented under a specific generative model, the framework is general and flexible to other modeling choices.

Let 𝐗\mathbf{X} be raw observations and 𝐘𝒴\mathbf{Y}\in\mathcal{Y} be the associated label vector taking a finite collection of values. In general, 𝐗\mathbf{X} is comprised of style factors 𝐙s\mathbf{Z}_{s}, that should not be relevant for prediction, and high-level core factors 𝐙c\mathbf{Z}_{c} that are the desired ground-truth concepts. For example, in the context of medical imaging, 𝐘\mathbf{Y} are various disease labels such as the presence of lung atelectasis and lung infiltration. Core factors 𝐙c\mathbf{Z}_{c} that one can see in the X-ray image 𝐗\mathbf{X}, such as heart and lung shapes, are typically direct consequences of a patient contracting the disease. Style factors 𝐙s\mathbf{Z}_{s} such as physiological characteristics of the subject or specialities of the scanner are also factors that appear in the image but are not related to the disease.

A natural model for settings such as the one above is to assume an anti-causal model as in Fig. 1(a), where 𝐙c\mathbf{Z}_{c} is a child of 𝐘\mathbf{Y}, and combines with 𝐙s\mathbf{Z}_{s} to produce the raw observation 𝐗\mathbf{X}. We assume 𝐙c\mathbf{Z}_{c} to be independent conditionally on 𝐘\mathbf{Y}, as in the X-ray example, they may often vary independently (across patients) given a disease label. We instead allow arbitrary dependencies within 𝐙s\mathbf{Z}_{s} and 𝐘\mathbf{Y}.

Aggregating style and core factors in the vector 𝐙=(𝐙c,𝐙s)\mathbf{Z}=(\mathbf{Z}_{c},\mathbf{Z}_{s}), we impose the following structural equation model on the graph in Fig. 1(a):

(1) 𝐗=f(𝐙)+ϵwhere ϵ𝐙,𝐘 and for all y𝒴:\displaystyle\mathbf{X}=f^{\star}({\mathbf{Z}})+\epsilon~~\text{where }\epsilon\mathchoice{\mathrel{\hbox to0.0pt{$\displaystyle\perp$\hss}\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{$\textstyle\perp$\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptstyle\perp$\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptscriptstyle\perp$\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}\mathbf{Z},\mathbf{Y}\text{ and for all }y\in\mathcal{Y}:
𝐙|𝐘=y𝒩((μyμ),(Dy00G));Dydiagonal,\displaystyle\mathbf{Z}|\mathbf{Y}\hskip-2.168pt=\hskip-2.168pty\sim\mathcal{N}\left(\begin{pmatrix}\mu^{\star}_{y}\\ \mu^{\star}\end{pmatrix},\begin{pmatrix}D^{\star}_{y}&0\\ 0&G^{\star}\end{pmatrix}\right);D^{\star}_{y}\hskip 2.168pt\text{diagonal}\,,

for some continuous one-to-one function ff^{\star}, vectors μy,μ\mu^{\star}_{y},\mu^{\star}, and positive-definite matrices Dy,GD_{y}^{\star},G^{\star}. The model (1) encodes the conditional independence relationships in Fig. 1(a): the covariance of the distribution 𝐙c|𝐘\mathbf{Z}_{c}|\mathbf{Y} is diagonal; the mean and covariance corresponding to 𝐙s\mathbf{Z}_{s} are not a function of yy and the noise ϵ\epsilon is independent of 𝐘\mathbf{Y} so that 𝐗𝐘|𝐙c\mathbf{X}\mathchoice{\mathrel{\hbox to0.0pt{$\displaystyle\perp$\hss}\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{$\textstyle\perp$\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptstyle\perp$\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptscriptstyle\perp$\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}\mathbf{Y}|\mathbf{Z}_{c} and 𝐙s𝐘\mathbf{Z}_{s}\mathchoice{\mathrel{\hbox to0.0pt{$\displaystyle\perp$\hss}\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{$\textstyle\perp$\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptstyle\perp$\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptscriptstyle\perp$\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}\mathbf{Y}.

(a) Generative graphical model
(b) VAE architecture of CLAP
Figure 1: The graphical model in (a) describes how the desired high-level core latent features 𝐙c\mathbf{Z}_{c} are related to the remaining variables 𝐘,𝐗,𝐙s\mathbf{Y},\mathbf{X},\mathbf{Z}_{s}. The VAE architecture in (b) is derived by lower-bounding the evidence values p(𝐗,𝐘)p(\mathbf{X},\mathbf{Y}) and p(𝐗|𝐘)p(\mathbf{X}|\mathbf{Y}) and incorporating the generative assumptions from (a) (see main text). We utilize two separate encoders, correspondent to the cl\mathcal{L}_{cl} and p\mathcal{L}_{p} terms of objective (3), and impose sharing of the decoder. The two encoders define two different sets of latents 𝐙=(𝐙c,𝐙s)\mathbf{Z}=(\mathbf{Z}_{c},\mathbf{Z}_{s}), which are separately passed through ff to get the relative reconstructions. The two resulting objectives p\mathcal{L}_{p} and cl\mathcal{L}_{cl} are then summed in the full objective CLAP\mathcal{L}_{\emph{CLAP}}. A simple classifier based on 𝐙c\mathbf{Z}_{c} is trained as part of the model inside p\mathcal{L}_{p}.

3 CLAP: interpretable predictions using ground-truth
concepts

Given data of 𝐗\mathbf{X} and 𝐘\mathbf{Y} arising from the graphical model in Fig. 1(a), our objective is to identify the ground-truth concepts and learn a simple classifier that uses these to accurately predict 𝐘\mathbf{Y}. Additionally, to facilitate human interpretability, we aim to enable experts in the loop to visually interpret the learned concepts. For concreteness, we specialize our exposition to images, although our framework can in principle be used on other types of data.

Our proposed framework is based on variational autoencoders (VAEs) Kingma et al. [2014], Rezende et al. [2014]. VAEs offer a number of favorable properties for our objectives. First, they can be derived in a principled manner from the underlying data generating mechanism. Second, the encoder/decoder pair in VAEs provide an effective approach to visualize and thus interpret the learned latent features via latent traversals (see Sec. 3.4 for more details).

In that light, a natural first approach that might come to mind would be to train a VAE that uses the estimated latent features for prediction. In Sec. 3.1 we derive such a model, and show why, in its vanilla version, it can perform prediction but cannot identify the ground-truth core concepts. In Sec. 3.2, we overcome these challenges by introducing a novel VAE architecture CLAP shown in Fig. 1(b). Our proposed method combines the predictive VAE structure from earlier with a second VAE which helps with identifying the underlying ground-truth concepts.

3.1 Vanilla predictive VAE and its shortcomings

A natural first attempt at learning a predictive VAE procedure is to maximize the following ELBO of the log-evidence of (𝐗,𝐘)(\mathbf{X},\mathbf{Y}):

(2) logp(𝐗,𝐘)𝔼qϕp(𝐙|𝐗)logpf(𝐗|𝐙)pψ(𝐘|𝐙c)pθp(𝐙)qϕp(𝐙|𝐗)=:p(ϕp,θp,f,ψ,𝐗,𝐘).\log{p}(\mathbf{X},\mathbf{Y})\geq\mathbb{E}_{q_{{\phi}^{p}}(\mathbf{Z}|\mathbf{X})}\log\frac{p_{f}(\mathbf{X}|\mathbf{Z})p_{\psi}(\mathbf{Y}|\mathbf{Z}_{c})p_{{\theta}^{p}}(\mathbf{Z})}{q_{\phi^{p}}(\mathbf{Z}|\mathbf{X})}=:\mathcal{L}_{p}(\phi^{p},{\theta}^{p},f,{\psi};\mathbf{X},\mathbf{Y})\,.

The objective p\mathcal{L}_{p} corresponds to the VAE architecture in the red box in Fig. 1(b). Here, qq is the approximate posterior with encoder parameters ϕp\phi^{p}, ψ\psi parameterizes a simple classifier, ff is the decoder’s parameters, and θp\theta^{p} the prior distribution’s parameters. Specifically, from the data generating mechanism (1), the prior pθp(𝐙)p_{\theta^{p}}(\mathbf{Z}) is a density of a Gaussian mixture distribution with |𝐘||\mathbf{Y}| (number of labels) components, where the covariance corresponding to the core features for each mixture component is diagonal. The ELBO (2) is derived in a classical fashion by using Jensen’s inequality logp(𝐗,𝐘)𝔼q(𝐙|𝐗,𝐘)logp(𝐗,𝐘|𝐙)p(𝐙)q(𝐙|𝐗,𝐘)\log{p}(\mathbf{X},\mathbf{Y})\geq\mathbb{E}_{q(\mathbf{Z}|\mathbf{X},\mathbf{Y})}\log\frac{p(\mathbf{X},\mathbf{Y}|\mathbf{Z})p(\mathbf{Z})}{q(\mathbf{Z}|\mathbf{X},\mathbf{Y})} and leveraging the assumed generative model (1) to simplify the right-hand side.

The model learned by maximizing the objective p\mathcal{L}_{p} naturally yields a classifier pψ(𝐘|𝐙c)p_{\psi}(\mathbf{Y}|\mathbf{Z}_{c}) based on core features extracted from the encoder qϕp(𝐙|𝐗)q_{\phi^{p}}(\mathbf{Z}|\mathbf{X}), which should approximate the ground-truth ones. Since the encoder does not rely on 𝐘\mathbf{Y} as an input, we can readily use it for end-to-end classification during test time. In fact, under a regularity condition, we show in Supp. Mat. Sec. A.2.1 that this architecture is optimal for prediction. However, it does not guarantee that the estimated core features 𝐙^c\hat{\mathbf{Z}}_{c} correspond to the ground-truth factors 𝐙c\mathbf{Z}_{c}. In fact, they can be arbitrary linear transformations of 𝐙c\mathbf{Z}_{c} without sacrificing prediction performance Locatello et al. [2019] (see ablation studies in Sec. 4), thus not satisfying our desired properties. In addition, as the dimensionality of the core features 𝐙c\mathbf{Z}_{c} is typically unknown, a conservative choice for the number of latent features (over-parameterized setting) may wrongly include style features or redundant core features in the prediction model (see ablation study in Sec. 4). In the next section, we propose our framework CLAP that mitigates the aforementioned issues: it learns a prediction model using the ground-truth core concepts (even in the over-parameterized setting), without sacrificing classification accuracy.

3.2 CLAP to overcome shortcomings

To overcome the aforementioned challenges, we augment the objective p\mathcal{L}_{p} with two additional terms to arrive at our proposed objective function for CLAP:

(3) CLAP:=p+clλnρ.\mathcal{L}_{\emph{CLAP}}:=\mathcal{L}_{p}+\mathcal{L}_{cl}-\lambda_{n}\rho\,.

On a high level, the additional component cl\mathcal{L}_{cl} ensures identifiability of the ground-truth concepts 𝐙c\mathbf{Z}_{c} (concept learning) and the regularization term λnρ\lambda_{n}\rho helps to identify a minimal number of ground-truth concepts in an over-parameterized latent space. In the following, we formalize each term.

Concept-learning component cl\mathcal{L}_{cl} While the objective p\mathcal{L}_{p} is designed to maximize the full likelihood of image data 𝐗\mathbf{X} and target labels 𝐘\mathbf{Y}, the term cl\mathcal{L}_{cl} maximizes the likelihood of 𝐗\mathbf{X} conditioned on 𝐘\mathbf{Y}. The fact that the labels act as additional input data in this likelihood objective, plays a central role in provably obtaining identifiability. Furthermore, the conditional independence of 𝐙c\mathbf{Z}_{c} given 𝐘\mathbf{Y} can be more naturally captured when 𝐘\mathbf{Y} is considered as an input. Similarly to above, for any posterior qq, we can lower-bound the conditional log-evidence as logp(𝐗|𝐘)𝔼q(𝐙|𝐗,𝐘)logp(𝐗|𝐙,𝐘)p(𝐙|𝐘)q(𝐙|𝐗,𝐘),\log{p}(\mathbf{X}|\mathbf{Y})\geq\mathbb{E}_{q(\mathbf{Z}|\mathbf{X},\mathbf{Y})}\log\frac{p(\mathbf{X}|\mathbf{Z},\mathbf{Y})p(\mathbf{Z}|\mathbf{Y})}{q(\mathbf{Z}|\mathbf{X},\mathbf{Y})}\,, and incorporate the generative assumptions in (1) to obtain the final ELBO objective:

(4) logp(𝐗|𝐘)𝔼qϕcl(𝐙|𝐗,𝐘)logpf(𝐗|𝐙)pθcl(𝐙|𝐘)qϕcl(𝐙|𝐗,𝐘):=cl(ϕcl,θcl,f,𝐗,𝐘).\log p(\mathbf{X}|\mathbf{Y})\geq\mathbb{E}_{q_{\phi^{cl}}(\mathbf{Z}|\mathbf{X},\mathbf{Y})}\log\frac{p_{f}(\mathbf{X}|\mathbf{Z})p_{{\theta^{cl}}}(\mathbf{Z}|\mathbf{Y})}{q_{{\phi^{cl}}}(\mathbf{Z}|\mathbf{X},\mathbf{Y})}:=\mathcal{L}_{cl}({\phi}^{cl},{\theta}^{cl},f;\mathbf{X},\mathbf{Y})\,.

The component of CLAP corresponding to cl\mathcal{L}_{cl} is highlighted in blue in Fig. 1(b). Here, ϕcl\phi^{cl} are the parameters of the encoder, and ff those of the decoder. Appealing to the data generating mechanism (1), we can further factorize the prior in the form pθcl(𝐙|𝐘)=p(𝐙c|𝐘)p(𝐙s)p_{{\theta^{cl}}}(\mathbf{Z}|\mathbf{Y})=p(\mathbf{Z}_{c}|\mathbf{Y})p(\mathbf{Z}_{s}). Here, p(𝐙c|𝐘)p(\mathbf{Z}_{c}|\mathbf{Y}) is a Gaussian density function with diagonal covariance and different parameters for different 𝐘\mathbf{Y} while we model the prior p(𝐙s)p(\mathbf{Z}_{s}) as a standard Gaussian distribution without loss of generality. We aggregate all these parameters in θcl\theta^{cl}.

In general, maximizing the ELBO or even the true log-evidence would not allow for of identification the true concepts. However, a simple heterogeneity assumption can alleviate this issue, formally stated in Supp. Mat. Sec. A.1.

Assumption 1 (Concept learning, informal).

The functions f,ff,f^{\star} satisfy a regularity condition and the distribution of core features change ‘enough’ when conditioned on different realizations of 𝐘\mathbf{Y}.

We now utilize these assumptions to prove the following result.

Lemma 1 (Maximizing cl\mathcal{L}_{cl} identifies the ground-truth concepts).

Suppose the data is generated according to the model in (1) with no noise, i.e. ϵ0\epsilon\equiv 0 and Assumption 1 holds. Suppose cl\mathcal{L}_{cl} is maximized in the infinite data limit with the correct number of latent features included in the model. Then, the posterior samples 𝐙^c\hat{\mathbf{Z}}_{c} obtained from the encoder qϕ^clq_{\hat{\phi}^{cl}} are equal to the ground-truth features 𝐙c\mathbf{Z}_{c} up to permutation and scaling.

We prove this lemma in Supp. Mat. Sec. A.2.2, and also extend to the noisy setting in Supp. Mat. Sec. A.4. Theoretical results for identifibiality were previously established in Khemakhem et al. [2020]. We note that our guarantees differ substantially and refer to Supp. Mat. Sec. B for more details. Despite the concept-learning capabilities, a model trained only on cl\mathcal{L}_{cl} cannot be used for prediction since it requires the labels as input to the encoder qϕcl(𝐙|𝐗,𝐘)q_{\phi^{cl}}(\mathbf{Z}|\mathbf{X},\mathbf{Y}).

Therefore, we combine the objectives p\mathcal{L}_{p} and cl\mathcal{L}_{cl} by utilizing the same decoder ff in (2) and (4), as represented in Fig. 1(b). This coupling via a shared decoder is crucial, as it forces the p\mathcal{L}_{p} architecture to also perform concept learning. To see why, first note that in joint training, the two encoders of cl\mathcal{L}_{cl} and p\mathcal{L}_{p} learn approximately the same latent space. In fact, we show in Theorem 1 that the latent spaces align in the infinite data limit. 11 1 Informally speaking, the reason for this is that the latent features in each architecture reconstruct the image via the same decoder. Since the common decoder defines a generative model , the posteriors (i.e. the different encoders) need to be similar as well.Since cl\mathcal{L}_{cl} provably identifies the ground-truth features in the latent space, it then follows that the estimated core features obtained by the encoder of p\mathcal{L}_{p} closely align with 𝐙c\mathbf{Z}_{c}. Thus, after training the combined objective p+cl\mathcal{L}_{p}+\mathcal{L}_{cl}, the trained VAE architecture corresponding to p\mathcal{L}_{p} provides an interpretable prediction model: an input image is mapped to accurate ground-truth core features, which are then used on top of a simple classifier to predict the target label 𝐘\mathbf{Y}. We refer the reader to Sec. 3.4 for more discussion on how the trained CLAP is used at test time.

Sparsity penalty ρ\rho to account for overparameterized latent space We add a regularization term λnρ(f,ψ)\lambda_{n}\rho(f,\psi) to impose simultaneous group sparsity on the prediction weights and decoder weights – this ensures that if an estimated core feature feature is predictive, it has non-negligible effect in the reconstruction of the image and vice versa. In particular, let kc,ks{k}_{c},{k}_{s} be the conservative choice on the dimensionality of the core and style features in our VAE model, respectively. Further, let k=kc+ks{k}={k}_{c}+{k}_{s} be the total number of latent variables. We consider the following parameterization for the decoder f=fB,Bk×kf=f^{\prime}\circ B,\ B\in\mathbb{R}^{{k}\times{k}} and classifier ψ=ψC,Ckc×kc\psi=\psi^{\prime}\circ C,\ C\in\mathbb{R}^{k_{c}\times{k}_{c}}, where |𝐘||\mathbf{Y}| is the number of labels to be predicted and f,ψf^{\prime},\psi^{\prime} are one-to-one and continuous. Then, the sparsity inducing penalty ρ(f,ψ)\rho(f,\psi) in the combined objective function (3) takes the form:

(5) ρ(f,ψ):=i=1kc𝕀[(B:,iTC:,iT)2>0]+i=kc+1k𝕀[B:,iT2>0],\rho(f,\psi):=\sum_{i=1}^{{k}_{c}}\mathbb{I}\left[\left\|\begin{pmatrix}B_{:,i}^{T}&C_{:,i}^{T}\end{pmatrix}\right\|_{2}>0\right]+\sum_{i={k}_{c}+1}^{{k}}\mathbb{I}\left[\left\|B_{:,i}^{T}\right\|_{2}>0\right],

where the indicator function 𝕀[]\mathbb{I}[\cdot] counts the number of latent features effectively utilizes by the model. Note that the nonzero columns of CC correspond to core features in the model with predictive power, and the nonzero columns of BB correspond to core and style features that are used for reconstruction with the decoder ff. For practical considerations, we consider the following convex surrogate in our experiments: ρ(f,ψ)=i=1kc(B:,iTC:,iT)2\rho(f,\psi)=\sum_{i=1}^{{k}_{c}}\left\|\begin{pmatrix}B_{:,i}^{T}&C_{:,i}^{T}\end{pmatrix}\right\|_{2}.

3.3 Theoretical guarantees for CLAP

In Sec. 3.2, we described how after the training of CLAP, the component corresponding to p\mathcal{L}_{p} can be used as an interpretable prediction model. We next provide guarantees that this prediction model is optimal in terms of accuracy and is based on high-level features that align with the ground-truth concepts. In the sequel, we denote kc,ks{k_{c},k_{s}} to be the number of core and style features chosen in the VAE architecture and kc,ks{k}^{\star}_{c},{k}^{\star}_{s} to be the dimensions of the true features of the generative model in Fig. 1(a). Further, we use qϕ^pq_{\hat{\phi}^{p}}, qϕ^clq_{\hat{\phi}^{cl}} to denote the encoders obtained by maximizing the objective in (3) in the infinite data limit and let 𝐙^\hat{\mathbf{Z}} be the posterior samples obtained from qϕ^pq_{\hat{\phi}^{p}}. Finally, we denote the trained classifier as ψ^=ψ^C^\hat{\psi}=\hat{\psi}^{\prime}\circ\hat{C}, and the core features 𝐙^c\hat{\mathbf{Z}}_{c} are specified as the elements corresponding to nonzero columns of C^\hat{C}.

Our theory requires Assumption 1 for concept learning as well as an assumption about a simple classifier being optimal:

Assumption 2 (optimal classifier).

The Bayes optimal classifier for predicting 𝐘\mathbf{Y} using 𝐙c\mathbf{Z}_{c} belongs to the set of simple classifiers used in CLAP.

We utilize Assumptions 1 and 2 to prove the following result.

Theorem 1 (CLAP learns an optimal prediction model using interpretable ground-truth features).

Consider the same setup as Lemma 1. Suppose kckck_{c}\geq{k}^{\star}_{c}, ksksk_{s}\geq{k}^{\star}_{s}, and that Assumptions 1 and 2 hold. Then, the posterior samples 𝐙^\hat{\mathbf{Z}} obtained from the encoder qϕ^pq_{\hat{\phi}^{p}} are identical to the posterior samples obtained from the encoder qϕ^clq_{\hat{\phi}^{cl}}. Furthermore, the core features 𝐙^c\hat{\mathbf{Z}}_{c} are 1) optimally predictive: 𝐘|𝐙^c=dist𝐘|𝐗\mathbf{Y}|\hat{\mathbf{Z}}_{c}\stackrel{{\scriptstyle\text{dist}}}{{=}}\mathbf{Y}|\mathbf{X}, and 2) aligned with the ground truth: 𝐙^c\hat{\mathbf{Z}}_{c} is equal to 𝐙c\mathbf{Z}_{c} up to scaling and permutation.

The proof of Theorem 1 is presented in Supp. Mat. Sec. A.3. Our guarantees in Theorem 1 ensure that the prediction model obtained by CLAP is optimal. Furthermore, the core features 𝐙^c\hat{\mathbf{Z}}_{c} align with the ground-truth concepts. Finally, the number of predictive factors equals to the number of ground-truth concepts; that is, our model obtains the minimal set of predictive features.

3.4 Visualizing and evaluating CLAP’s output for interpretation

We now discuss how CLAP’s trained model can be used to produce an end-to-end interpretable prediction model pipeline, which we represent in Fig. 2.

At inference time, the part of CLAP’s model corresponding to p\mathcal{L}_{p} is utilized, since it does not require a label as an input (Fig. 2 left). As we describe in detail next, the learned concepts are visualized using latent traversals; to conclude the pipeline, a human expert visually inspects these traversals and assigns a meaning to the relative latent variables.

Interpretations via latent traversals Generally, the visual explanations provided by the model need to be evaluated by a human expert (see Sec. 1). As is customary for VAE models, we provide such visualizations via latent traversals. Specifically, let xx be an input image. The core concepts associated to xx are obtained via the posterior mean μ^(x):=𝔼qϕ^p(𝐙^c|x)[𝐙^c]\hat{\mu}(x):=\mathbb{E}_{q_{\hat{\phi}^{p}}(\hat{\mathbf{Z}}_{c}|x)}[\hat{\mathbf{Z}}_{c}]. The semantics of 𝐙^c\hat{\mathbf{Z}}_{c} are then discovered by performing latent traversals. In these, we change one component of μ^(x)\hat{\mu}(x) at a time, while keeping the others fixed, and observe the reconstructions obtained through the decoder f^\hat{f}. Owing to the concept-learning capabilities of CLAP, the traversals on the core latent features will produce distinct changes in the reconstructed images corresponding to the different discovered ground-truth concepts, which will allow the human expert to assign them with a semantic meaning. This procedure is represented in the top-right of Fig. 2. There, for example, upon visual inspection, the first latent is assigned the meaning of ”Shape” from the expert, the second ”Color”, and so on.

Interpretable predictions using learned concepts We note here that in our experiments, we found a linear classifier to be well-performing across all datasets. For this reason, the following description assumes ψ\psi to simply be the linear weights of the corresponding linear classifier pψ(𝐘|𝐙^c)p_{\psi}(\mathbf{Y}|\hat{\mathbf{Z}}_{c}). For each concept, we provide both a global and local relevance for prediction, as depicted in the bottom right of Fig. 2. The global relevance represents the importance of a concept for prediction at a population level (i.e. across images) and is thus directly encoded in the entries of ψ^\hat{\psi}. The local relevance is instead image-specific, and is observed in the summands of the linear combination μ^(x),ψ^\langle\hat{\mu}(x),\hat{\psi}\rangle. These two measures allow the practitioner to transparently assess the decision process of the model, as they assign a prediction weight to human interpretable features.

Refer to caption
Figure 2: We present how the prediction model obtained by training CLAP can be used and interpreted at test time. Supplying a test images xx to the component p\mathcal{L}_{p} of CLAP, we learn core features 𝐙^c\hat{\mathbf{Z}}_{c}. These features are visualized using latent traversals and interpreted by a human, who assigns them to high-level concepts. Furthermore, the estimated linear classifier predicts a label and provides global (population wise) and local (instance wise) importance for the interpreted concepts.

4 Experiments: using CLAP for interpretable predictions

Refer to caption
(a) CLAP traversals and interpretations
Refer to caption
(b) SENN prototypes
Figure 3: a) CLAP traversals on (in order) the MPI3D, Shapes3D and SmallNORB datasets, and b) SENN prototypes on (in order) the MPI3D and Shapes3D datasets.

We next present experiments on synthetic data to corroborate our theoretical results, and evaluate the ability of CLAP to learn an accurate prediction model using the ground-truth features. Since in most real-world datasets, ground-truth factors are unknown but necessary to verify whether CLAP can work in practice, we resort to three standard ”disentanglement” datasets MPI3D [Gondal et al., 2019], Shapes3D [Burgess and Kim, 2018] and SmallNORB [LeCun et al., 2004]. These datasets consist of collections of objects generated synthetically according to some ground-truth factors of variation. The images are a priori unlabeled; thus, we select some of the ground-truth factors, which represent the concepts 𝐙c\mathbf{Z}_{c} to be discovered, and generate artificial binary labels 𝐘\mathbf{Y}. The ground-truth factors 𝐙c\mathbf{Z}_{c} are object shape, size and color for MPI3D, object color and size for Shapes3D and object type and lighting for SmallNORB (see Supp. Mat. Sec. D). For all the experiments and baselines in Sec. 4, details on training and architectures employed are deferred to Supp. Mat. Sec. C22 2 Our code is publicly available at https://github.com/nickruggeri/CLAP-interpretable-predictions. In general, for all methods, we used neural network architectures comparable in complexity to those utilized in [Joy et al., 2021, Qiao et al., 2019].

As explained in Sec. 3.4, we proceed with the evaluation of CLAP by first generating latent traversals. The goal is to determine whether the discovered concepts have a one-to-one correspondence with the ground-truth 𝐙c\mathbf{Z}_{c} that we used to generate the data. In Fig. 3(a), every row corresponds to the traversal for one latent feature. As can be observed, the estimated core features indeed represent the ground-truth ones; this means that the model identifies the ground-truth concepts underlying the data generating mechanism. Importantly, we remark that the concept names assigned to the single rows (e.g. ”Size”, ”Shape”) are obtained by visual inspection; the model doesn’t have direct access to them, but only to the images 𝐗\mathbf{X} and labels 𝐘\mathbf{Y}.

Finally, the discovered 𝐙c\mathbf{Z}_{c} are also fully predictive, as CLAP achieves classification accuracy above 0.990.99 on all the datasets. We include additional traversals in Supp. Mat. Sec. D.1; there, we also show that, due to the sparsity regularization penalty ρ(f,ψ)\rho(f,\psi), the model accurately assigns negligible global and local weights (i.e. no predictive value) to the remaining latent features included in the model. This is in contrast to the concepts shown in Fig. 3(a) that have non-negligible global and local weights. In other words, in line with our theory, estimated core features that have prediction power align with the ground-truth concepts.

Comparison with baselines We compare the outputs of CLAP with those of SENN [Alvarez-Melis and Jaakkola, 2018b] and CCVAE [Joy et al., 2021], two prediction models in the existing literature that are closest to CLAP. To explain its predictions and visualize the learned concepts, SENN uses prototypes – a set of training images that “best represent” every latent variable. In Fig. 3(b), we depict the prototypes relative to some of these features. Similarly to CLAP, human inspection is needed to describe the concepts that such latents encode. However, the task here is substantially more difficult: for any of the latents, we can observe many different changes, e.g in the first row objects of different colors and shapes are observed, and from different camera angles. This indicates that not only SENN is not able to identify the ground-truth 𝐙c\mathbf{Z}_{c}, thus hindering interpretability, but also mixes them with non-predictive style features 𝐙s\mathbf{Z}_{s}. We also apply CCVAE on synthetic data and observe that its learned latent features do not align with the ground-truth ones; due to space constraints, we show these results in Supp. Mat. Sec. F.

Ablation studies In order to demonstrate the importance of each of our design choices, we also perform various ablation studies on the MPI3D dataset, presented in Supp. Mat. E. Firstly, we show that if the sparsity penalty λnρ(f,ψ)\lambda_{n}\rho(f,\psi) is removed from the learning objective, the resulting model utilizes separately some latent variables for visualization, and some others for prediction. On the other hand, with the use of λnρ(f,ψ)\lambda_{n}\rho(f,\psi), CLAP ensures correspondence between features utilized for prediction and visualization. Furthermore, we show latent traversals for a model trained only on p\mathcal{L}_{p}. As explained in Sec. 3.1, the learned features are fully predictive, but do not correspond to the ground-truth one. In fact, it can be observed that various ground-truth features change jointly within one single traversal. Further, we empirically confirm that the concept-learning capabilities of CLAP rely on the labels 𝐘\mathbf{Y} being informative enough, as highlighted by the assumptions in Sec. 3.2. Practically, this means that multiple labels help with more accurate recovery of the ground-truth 𝐙c\mathbf{Z}_{c}; we show that the concept learning capabilities of CLAP indeed decrease on a dataset where only one label is available.

5 Future Outlook

So far, we have evaluated CLAP in synthetic scenarios where we know the ground-truth data generating mechanism and the core factors are easy to recognize for a layperson. For many scientific scenarios such as the example in the introduction, evaluating whether learned concepts correspond to the ”ground-truth” can only be done by domain experts. Nevertheless, we provide the outputs of CLAP for some challenging real datasets to highlight some of its favorable properties compared to other competing methods.

Refer to caption
(a) CLAP traversals and interpretations
Refer to caption
(b) CCVAE traversals
Figure 4: Output of CLAP and traversals of CCVAE for the Chest X-ray dataset. In (a), we present the weights for both the atelectasis and lung infiltration disease predictions, as well as the human interpretations of the discovered concepts. For better visual comparison, we only show the images obtained at the extremes of the latent traversals. Moreover, we highlight the changes that occur during the traversals. We include magnified figures with full traversals in Supp. Mat. Sec. G, as well as a glossary on how to read the results.

In this section, we present results on the Chest X-ray dataset, and defer additional experiments on the PlantVillage dataset [Hughes et al., 2015] to Supp. Mat. Sec. H. The Chest X-ray dataset Wang et al. [2017] consists of radiography images; each image has 14 associated binary disease labels. We emphasize that only the disease labels may be used to learn the underlying concepts and no additional supervision is available. As explained in Sec. 1.1, many inherently interpretable models cannot be applied successfully in this setting, since they generally assume further information on the ground-truth factors. Due to the negative results for SENN in Sec. 4, we only compare our method with CCVAE.

Both CLAP and CCVAE attain similar classification accuracies of 0.903 and 0.898, respectively. In Fig. 4, we compare the traversals obtained by both methods. First we observe that CLAP manages to learn concepts that are localized in the X-Ray image, corresponding to separate properties, such as ”Heart shape” and ”Lung shape”. Instead, in both the traversals presented for CCVAE, characteristics that can be associated to both the heart and lung shapes vary together. Thus, while CCVAE finds similar concepts for prediction, they do not appear distinctly as separate components of 𝐙c\mathbf{Z}_{c}. For this reason, it is harder for a human expert to uniquely label the learned concepts and, consequently, interpret the model’s output.

Another desirable characteristic of CLAP is that the global and local weights reflect the importance of the concepts in predicting different diseases. For example, compared to atelectasis, the concept ”lung shape” has higher weight (both global and local) in determining the presence of lung infiltration. Since lung infiltration is a condition related to dense substances in the lungs, the concept ”lung shape” learned by CLAP is natural and indicative. Further, we remark that the discovered concepts manifest through very nuanced traversals. This is sensible, as it is to be expected that real life examples come with subtle and less pronounced features than synthetic and commonly used datasets. In conclusion, these experiments show the advancement and potential of CLAP compared to existing methods for providing real-life interpretable predictions.

There are a number of exciting future directions that can further improve CLAP for broader and more effective use in real-world scenarios. For example, the visualizations of the VAE are not optimally sharp compared to the status quo for GANs. Hence, it would be interesting to explore whether one can obtain provable concept learning when the VAE is replaced by a GAN structure. Further, in many scientific applications, the number of available images can be quite small. An interesting avenue for future research could be to develop solutions for the small data regime, e.g. via transfer learning.

Acknowledgements This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No. 786461). We thank Christina Heinze-Deml, Laura Manduchi and Ricards Marcinkevics for the useful discussions and feedback on our work. We thank Pietro Spolettini for helping in the interpretation of the Chest X-ray medical data.

References

  • Alvarez-Melis and Jaakkola [2018a] David Alvarez-Melis and Tomi Jaakkola. On the robustness of interpretability methods. In arXiv preprint arXiv:1806.08049, 2018a.
  • Alvarez-Melis and Jaakkola [2018b] David Alvarez-Melis and Tomi Jaakkola. Towards robust interpretability with self-explaining neural networks. In Neural Information Processing Systems, 2018b.
  • Antoran et al. [2021] Javier Antoran, Umang Bhatt, Tameem Adel, Adrian Weller, and José Miguel Hernández-Lobato. Getting a CLUE: A method for explaining uncertainty estimates. In International Conference in Learning Representations, 2021.
  • Bach et al. [2015] Sebastian Bach, Alexander Binder, Grégoire Montavon, Frederick Klauschen, Klaus-Robert Müller, and Wojciech Samek. On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation. PLOS ONE, 10(7):1–46, 07 2015.
  • Burgess and Kim [2018] Chris Burgess and Hyunjik Kim. 3D Shapes Dataset. https://github.com/deepmind/3dshapes-dataset/, 2018.
  • Burgess et al. [2018] Christopher Burgess, Irina Higgins, Arka Pal, Loïc Matthey, Nicholas Watters, Guillaume Desjardins, and Alexander Lerchner. Understanding disentangling in β\beta-VAE. In arXiv preprint arXiv:1804.03599, 2018.
  • Chang et al. [2019] Chun-Hao Chang, Elliot Creager, Anna Goldenberg, and David Kristjanson Duvenaud. Explaining image classifiers by counterfactual generation. In International Conference in Learning Representations, 2019.
  • Chen et al. [2018] Tian Qi Chen, Xuechen Li, Roger Grosse, and David Kristjanson Duvenaud. Isolating sources of disentanglement in variational autoencoders. In Neural Information Processing Systems, 2018.
  • Gondal et al. [2019] Muhammad Waleed Gondal, Manuel Wüthrich, DJ Miladinović, Francesco Locatello, Martin Breidt, Valentin Volchkov, Joel Akpo, Olivier Bachem, Bernhard Schölkopf, and Stefan Bauer. On the transfer of inductive bias from simulation to the real world: a new disentanglement dataset. In Neural Information Processing Systems, 2019.
  • Gresele et al. [2019] Luigi Gresele, Paul Rubenstein, Arash Mehrjou, Francesco Locatello, and Bernhard Schölkopf. The incomplete Rosetta stone problem: Identifiability results for multi-view nonlinear ICA. In Uncertainty in Artificial Intelligence, 2019.
  • Higgins et al. [2017] Irina Higgins, Loïc Matthey, Arka Pal, Christopher P. Burgess, Xavier Glorot, Matthew M. Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-VAE: Learning basic visual concepts with a constrained variational framework. In International Conference in Learning Representations, 2017.
  • Hughes et al. [2015] David Hughes, Marcel Salathé, et al. An open access repository of images on plant health to enable the development of mobile disease diagnostics. In arXiv preprint arXiv:1511.08060, 2015.
  • Hyvärinen et al. [2019] Aapo Hyvärinen, Hiroaki Sasaki, and Richard Turner. Nonlinear ICA using auxiliary variables and generalized contrastive learning. In International Conference on Artificial Intelligence and Statistics, 2019.
  • Joy et al. [2021] Tom Joy, Sebastian Schmon, Philip Torr, N Siddharth, and Tom Rainforth. Capturing label characteristics in VAEs. In International Conference in Learning Representations, 2021.
  • Kazhdan et al. [2020] Dmitry Kazhdan, Botty Dimanov, Mateja Jamnik, Pietro Liò, and Adrian Weller. Now you see me (CME): Concept-based model extraction. In International Conference on Information and Knowledge Management, 2020.
  • Khemakhem et al. [2020] Ilyes Khemakhem, Ricardo Kingma, Pio Monti, and Aapo Hyvärinen. Variational autoencoders and nonlinear ICA: A unifying framework. In International Conference on Artificial Intelligence and Statistics, 2020.
  • Kim and Mnih [2019] Hyunjik Kim and Andriy Mnih. Disentangling by factorising. In International Conference on Machine Learning, 2019.
  • Kingma et al. [2014] Diederik Kingma, Danilo Rezende, Shakir Mohamed, and Max Welling. Semi-supervised learning with deep generative models. In Neural Information Processing Systems, 2014.
  • Kumar et al. [2017] Abhishek Kumar, Prasanna Sattigeri, and Avinash Balakrishnan. Variational inference of disentangled latent concepts from unlabeled observations. In International Conference in Learning Representations, 2017.
  • Kumar et al. [2020] Indra Elizabeth Kumar, Suresh Venkatasubramanian, Carlos Eduardo Scheidegger, and Sorelle A. Friedler. Problems with Shapley-value-based explanations as feature importance measures. In International Conference in Machine Learning, 2020.
  • Lang et al. [2021] Oran Lang, Yossi Gandelsman, Michal Yarom, Yoav Wald, Gal Elidan, Avinatan Hassidim, William T. Freeman, Phillip Isola, Amir Globerson, Michal Irani, and Inbar Mosseri. Explaining in style: Training a GAN to explain a classifier in StyleSpace. In International Conference in Computer Vision, 2021.
  • LeCun et al. [2004] Yann LeCun, Fu Huang, and Léon Bottou. Learning methods for generic object recognition with invariance to pose and lighting. In Computer Vision and Pattern Recognition, 2004.
  • Locatello et al. [2019] Francesco Locatello, Stephan Bauer, Mario Lucic, Gunar Raetsch, Sylvain Gelly, Bernhard Schölkopf, and Olivier Bachem. Challenging common assumptions in the unsupervised learning of disentangled representations. In International Conference in Machine Learning, 2019.
  • Locatello et al. [2020] Francesco Locatello, Ben Poole, Gunnar Raetsch, Bernhard Schölkopf, Olivier Bachem, and Michael Tschannen. Weakly-supervised disentanglement without compromises. In International Conference in Machine Learning, 2020.
  • Mita et al. [2021] Graziano Mita, Maurizio Filippone, and Pietro Michiardi. An identifiable double VAE for disentangled representations. In International Conference on Machine Learning, 2021.
  • Qiao et al. [2019] Jie Qiao, Zijian Li, Boyan Xu, Ruichu Cai, and Kun Zhang. Disentanglement challenge: From regularization to reconstruction. arXiv preprint arXiv:1912.00155, 2019.
  • Reyes et al. [2020] Mauricio Reyes, Raphael Meier, Sérgio Pereira, Carlos Silva, Fried Dahlweid, Hendrik von Tengg-Kobligk, Ronald Summers, and Roland Wiest. On the interpretability of artificial intelligence in radiology: Challenges and opportunities. Radiology:Artificial intelligence, 23:e190043, 2020.
  • Rezende et al. [2014] Danilo Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In International Conference in Machine Learning, 2014.
  • Rudin [2018] Cynthia Rudin. Please stop explaining black box models for high stakes decisions. In arXiv preprint arXiv:1811.10154, 2018.
  • Selvaraju et al. [2017] Ramprasaath Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-CAM: Visual explanations from deep networks via gradient-based localization. In International Conference on Computer Vision, 2017.
  • Shu et al. [2020] Rui Shu, Yining Chen, Abhishek Kumar, Stefano Ermon, and Ben Poole. Weakly supervised disentanglement with guarantees. In International Conference on Learning Representations, 2020.
  • Simonyan et al. [2014] Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. In arXiv preprint arxiv:1312.6034, 2014.
  • Stiglic et al. [2020] Gregor Stiglic, Primoz Kocbek, Nino Fijavko, Marinka Zitnik, Katrien Verbert, and Leona Cilar. Interpretability of machine learning‐based prediction models in healthcare. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 10, 2020.
  • von Kügelgen et al. [2021] Julius von Kügelgen, Yash Sharma, Luigi Gresele, Wieland Brendel, Bernhard Scholkopf, Michel Besserve, and Francesco Locatello. Self-supervised learning with data augmentations provably isolates content from style. In Neural Information Processing Systems, 2021.
  • Wang et al. [2017] Xiaosong Wang, Yifan Peng, Le Lu, Zhiyong Lu, Mohammadhadi Bagheri, and Ronald Summers. ChestX-ray8: Hospital-scale chest X-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases. In Computer Vision and Pattern Recognition, 2017.
  • Wu et al. [2021] Zongze Wu, Dani Lischinski, and Eli Shechtman. StyleSpace analysis: Disentangled controls for StyleGAN image generation. In Conference on Computer Vision and Pattern Recognition, 2021.
  • Yeh et al. [2020] Chih Yeh, Been Kim, Sercan Arik, Chun-Liang Li, Tomas Pfister, and Pradeep Ravikumar. On completeness-aware concept-based explanations in deep neural networks. In Neural Information Processing Systems, 2020.

Supplementary Material for “Provable concept learning for interpretable predictions using variational inference”

Appendix A Proof of Theoretical results

For simplicity, we first prove guarantees for CLAP in the setting where the number of latent variables is specified correctly. Subsequently, we will extend the analysis to the setting where the number of latent variables is miss-specified (i.e. chosen conservatively).

Throughout, we use the following notation. Let 𝐗\mathbb{P}_{\mathbf{X}} be the distribution of 𝐗\mathbf{X}, 𝐘\mathbb{P}_{\mathbf{Y}} be the probability distribution of, 𝐗,𝐘\mathbb{P}_{\mathbf{X},\mathbf{Y}} be the joint probability distribution of and (𝐗,𝐘)(\mathbf{X},\mathbf{Y}), and 𝐗|𝐘\mathbb{P}_{\mathbf{X}|\mathbf{Y}} be the probability distribution of 𝐗|𝐘\mathbf{X}|\mathbf{Y}, all with respect to the data generating model. Associated with the probability distributions 𝐗\mathbb{P}_{\mathbf{X}} and 𝐗|𝐘\mathbb{P}_{\mathbf{X}|\mathbf{Y}} are the density functions with we denote by p(𝐗)p^{\star}({\mathbf{X}}) and p(𝐗|𝐘)p^{\star}({\mathbf{X}|\mathbf{Y}}). Finally, we use the notation 𝐙~\tilde{\mathbf{Z}} to denote latent variables that specify the VAE model.

A.1 Formal description of our assumptions

Let ff^{\prime} be the function from the decomposition f=fBf=f^{\prime}\circ B introduced in relation to the sparsity regularization term (BB is the identity matrix when the number of latents is correctly specified). Assumption 1 then is formally described as follows:

Assumption 1 (Concept learning, formal).
Assumption 1.1.The functions f,f are one-to-one and continuous\displaystyle\text{Assumption 1.1.}~~~~\text{The functions }f^{\prime},f^{\star}\text{ are one-to-one and continuous}
Assumption 1.2.There exists (y,y~)𝒴 s.t. Dy(Dy~)1 has distinct diagonal entries not equal to one.\displaystyle\text{Assumption 1.2.}~~~~\text{There exists }(y,\tilde{y})\in\mathcal{Y}\text{ s.t. }D_{y}^{\star}({D}_{\tilde{y}}^{\star})^{-1}\text{ has distinct diagonal entries not equal to one}.

Assumptions 1.1 is rather mild and ensures that the functions mapping from the latent space to the input space are injective. Assumption 1.2 states that variations in the label YY should impact the variance of all the core latent features (hence the exclusion of value “one”) and in a distinct manner. This type of assumption is similar in spirit to requiring “heterogeneous interventions” in causal structural learning. Specifically, in the context of our anti-causal graphical model 1(a), the labels y𝒴y\in\mathcal{Y} can be viewed as an “environment” variable where an environment dictates the distribution of the core latent features. A change in an environment can then be viewed as interventions on the core latent features. Thus, in this perspective, Assumption 1.2 requires the impact of the interventions to be on all of the core features and to be sufficiently heterogeneous. Furthermore, we note that Assumption 1.2 requires that changes to the label lead to simultaneous changes to all of the core features. This assumption can be relaxed so that not all of the core features must vary at once with a change in the label, as long as each feature varies for some change to the label. Mathematically, the assumption can be relaxed to the following: for every i,j[kc],iji,j\in[k_{c}],i\neq j, there exists y,y~𝒴y,\tilde{y}\in\mathcal{Y} such that [DyDy~1]i,i[DyDy~1]j,j[D^{\star}_{y}{D^{\star}_{\tilde{y}}}^{-1}]_{i,i}\neq[D^{\star}_{y}{D^{\star}_{\tilde{y}}}^{-1}]_{j,j} and [DyDy~1]i,i1[D^{\star}_{y}{D^{\star}_{\tilde{y}}}^{-1}]_{i,i}\neq 1, [DyDy~1]j,j1[D^{\star}_{y}{D^{\star}_{\tilde{y}}}^{-1}]_{j,j}\neq 1.

A.2 Analysis with known number of latent features

For building intuition, we first provide an analysis of CLAP in the setting where the number of latents is correctly specified. Along the way, we prove why maximizing p\mathcal{L}_{p} achieves optimal prediction and maximizing cl\mathcal{L}_{cl} learns the ground-truth concepts. Throughout, we denote kc,ksk^{\star}_{c},k^{\star}_{s} to be the dimension of the true core and style features and k=kc+ksk^{\star}=k^{\star}_{c}+k^{\star}_{s} to be the total number of latent features.

A.2.1 Maximizing p\mathcal{L}_{p} achieves optimal prediction

As described in Section 3.1, maximizing the objective p\mathcal{L}_{p} achieves optimal prediction. We formalize this below.

Lemma 2 (Maximizing p\mathcal{L}_{p} achieves optimal prediction).

Suppose the data is generated according to the model in (1) with no noise, i.e. ϵ0\epsilon\equiv 0 and Assumptions 1.1 and 2 hold. Suppose p\mathcal{L}_{p} is maximized in the infinite data limit with the correct number of latent features included in the model. Then, the posterior samples 𝐙^c\hat{\mathbf{Z}}_{c} obtained from the encoder qϕ^pq_{\hat{\phi}^{p}} are optimallly prediction: 𝐘|𝐙^c=dist𝐘|𝐗\mathbf{Y}|\hat{\mathbf{Z}}_{c}\stackrel{{\scriptstyle\text{dist}}}{{=}}\mathbf{Y}|\mathbf{X}.

Proof of Lemma 2.

We analyze the following estimator in the infinite data limit:

(6) argmaxϕp,θp,f,ψ𝔼𝐗,𝐘𝒫𝐗,𝐘[p(ϕp,θp,f,ψ,𝐗,𝐘)].\displaystyle\argmax_{\phi^{p},\theta^{p},f,\psi}{\mathbb{E}}_{\mathbf{X},\mathbf{Y}\sim\mathcal{P}_{\mathbf{X},\mathbf{Y}}}[\mathcal{L}_{\texttt{p}}(\phi^{p},{\theta}^{p},f,\psi;\mathbf{X},\mathbf{Y})].

The optimization program (6) can be equivalently expressed as:

(7) argmaxf,ψ,ϕp,θp\displaystyle\argmax_{\begin{subarray}{c}f,\psi,\phi^{p},\theta^{p}\end{subarray}} 𝔼𝐗𝐗[𝔼qϕp(𝐙~|𝐗)[logpf(𝐗|𝐙~)]KL(qϕp(𝐙~|𝐗),pθp(𝐙~))]reconstruction loss\displaystyle\underbrace{\mathbb{E}_{\mathbf{X}\sim\mathbb{P}_{\mathbf{X}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|{\mathbf{X}})}[\log{p_{f}}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{p}}(\tilde{\mathbf{Z}}|{\mathbf{X}}),p_{\theta^{p}}(\tilde{\mathbf{Z}})\right)\Bigg]}_{\text{reconstruction loss}}
+𝔼𝐗,𝐘𝐗,𝐘[𝔼qϕp(𝐙~|𝐗)[logpψ(𝐘|𝐙~c)]]classification term.\displaystyle+~\underbrace{\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|{\mathbf{X}})}[\log{p}_{\psi}(\mathbf{Y}|\mathbf{\tilde{Z}}_{c})]\Bigg]}_{\text{classification term}}.

Here, 𝐙~\tilde{\mathbf{Z}} is an approximation for the true latent variables 𝐙\mathbf{Z} with pf(x|𝐙~)=δf(𝐙~)p_{f}(x|\tilde{\mathbf{Z}})=\delta_{f(\tilde{\mathbf{Z}})}. Consider maximizing the reconstruction loss in (7). In this setting, the VAE model searches for an approximation f^(𝐙~)dist𝐗\hat{f}(\tilde{\mathbf{Z}})\stackrel{{\scriptstyle\text{dist}}}{{\approx}}\mathbf{X} where the parameters of the VAE model (e.g. posterior ϕp\phi^{p}, prior θp\theta^{p}, ff) are optimized to yield the best approximation of 𝐗\mathbf{X}. In other words, VAE training approximates the following optimization:

(8) argmaxf,θp\displaystyle\argmax_{f,\theta^{p}} 𝔼𝐗𝐗[logpf,θp(𝐗)],\displaystyle\mathbb{E}_{\mathbf{X}\sim\mathbb{P}_{\mathbf{X}}}[\log{p_{f,\theta^{p}}}(\mathbf{X})],

where the likelihood pf,θp(𝐗)p_{f,\theta^{p}}(\mathbf{X}) is defined with respect to the distribution 𝐗~=distf(𝐙~)\tilde{\mathbf{X}}\stackrel{{\scriptstyle\text{dist}}}{{=}}f(\tilde{\mathbf{Z}}) with 𝐙~\tilde{\mathbf{Z}} being a Gaussian mixture distribution with parameters θp\theta^{p}. Optimality for (8) is achieved if 𝐗~=dist𝐗\tilde{\mathbf{X}}\stackrel{{\scriptstyle\text{dist}}}{{=}}\mathbf{X}, i.e. pf,θp(𝐗)=p(𝐗)p_{f,\theta^{p}}(\mathbf{X})=p^{\star}({\mathbf{X}}). In particular, by definition this is achieved for f=ff=f^{\star} since 𝐗=distf(𝐙)\mathbf{X}\stackrel{{\scriptstyle\text{dist}}}{{=}}f^{\star}(\mathbf{Z}). Similarly, since 𝐗=dist[f(PD00N)](PD00N)1𝐙\mathbf{X}\stackrel{{\scriptstyle\text{dist}}}{{=}}\Bigg[f^{\star}\circ\begin{pmatrix}PD&0\\ 0&N\end{pmatrix}\Bigg]\begin{pmatrix}PD&0\\ 0&N\end{pmatrix}^{-1}\mathbf{Z} and the family of Gaussian mixture distributions is invariant to linear transformations, we can further conclude that f=f(PD00N)f=f^{\star}\circ\begin{pmatrix}PD&0\\ 0&N\end{pmatrix} for any permutation matrix PP and diagonal matrix DD is also an optimum of (8).

Since it is hard to maximize over pf,θpp_{f,\theta^{p}} directly, the VAE training approach uses a surrogate for the density pp via the ELBO approximation. Specifically, recall that the ELBO is a lower bound for the log-likelihood:

(9) log(p(𝐗))\displaystyle\log{}(p^{\star}({\mathbf{X}})) 𝔼qϕp(𝐙~|𝐗)[logpf(𝐗|𝐙~)]KL(qϕp(𝐙~|𝐗),pθp(𝐙~)).\displaystyle\geq\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X}),p_{\theta^{p}}(\tilde{\mathbf{Z}})\right).

Equality holds if the approximate posterior matches the true posterior, that is in the noiseless case, for any x𝒳x\in\mathcal{X}:

(10) qϕp(𝐙~|𝐗=x)=pf(𝐙~|𝐗~=x)=δf1(x).\displaystyle q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X}=x)=p_{f}(\tilde{\mathbf{Z}}|\tilde{\mathbf{X}}=x)=\delta_{f^{-1}(x)}.

Here, we have appealed to one-to-one property of the function f by Assumption 1.1 and that the number of latents is specified correctly. Hence, with the choice of the posterior in (10), and setting 𝐗~=dist𝐗\tilde{\mathbf{X}}\stackrel{{\scriptstyle\text{dist}}}{{=}}\mathbf{X}, the maximization over f,θpf,\theta^{p} of (8) and the reconstruction loss in (7) are equivalent.

We finally need to verify that ϕp\phi^{p} in (10) leads to an optimal prediction in the classification term in (7). This follows by noting that 𝐘|f1(𝐗)=dist𝐘|𝐗\mathbf{Y}|f^{-1}(\mathbf{X})\stackrel{{\scriptstyle\text{dist}}}{{=}}\mathbf{Y}|\mathbf{X} according to the graphical model in Figure 1(a), from the optimum (10) for qϕpq_{\phi^{p}}, and Assumption 2. ∎

A.2.2 Proof of Lemma 1: maximizing cl\mathcal{L}_{cl} identifies the true concepts

We analyze the following estimator in the infinite data limit

(11) argmaxϕcl,θcl,f\displaystyle\argmax_{\phi^{cl},\theta^{cl},f} y𝒴𝐘(𝐘=y)𝔼𝐗𝐗|𝐘=y[cl(ϕcl,θcl,f,𝐗,𝐘)]\displaystyle\sum_{y\in\mathcal{Y}}\mathbb{P}_{\mathbf{Y}}(\mathbf{Y}=y){\mathbb{E}}_{\mathbf{X}\sim\mathbb{P}_{\mathbf{X}|\mathbf{Y}=y}}[\mathcal{L}_{\texttt{cl}}(\phi^{cl},{\theta}^{cl},f;\mathbf{X},\mathbf{Y})]\,
y𝒴𝐘(𝐘=y)𝔼𝐗𝐗|𝐘[𝔼qϕcl(𝐙~|𝐗,𝐘=y)[logpf(𝐗|𝐙~)]\displaystyle\sum_{y\in\mathcal{Y}}\mathbb{P}_{\mathbf{Y}}(\mathbf{Y}=y)\mathbb{E}_{\mathbf{X}\sim\mathbb{P}_{\mathbf{X}|\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{cl}}}(\tilde{\mathbf{Z}}|\mathbf{X},\mathbf{Y}=y)}[\log{p_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]
KL(qϕcl(𝐙~|𝐗,𝐘=y),pθcl(𝐙~|𝐘=y))],\displaystyle-\mathrm{KL}\left(q_{\phi^{cl}}(\tilde{\mathbf{Z}}|{\mathbf{X}},\mathbf{Y}=y),p_{\theta^{cl}}(\tilde{\mathbf{Z}}|\mathbf{Y}=y)\right)\Bigg],

where equality follows from the definition of cl\mathcal{L}_{\texttt{cl}}. Here, 𝐙~\tilde{\mathbf{Z}} is an approximation for the underlying latent variables 𝐙\mathbf{Z} with 𝐙~|𝐘=y𝒩(μy,(Dy00G))\tilde{\mathbf{Z}}|\mathbf{Y}=y\sim\mathcal{N}\left(\mu_{y},\begin{pmatrix}D_{y}&0\\ 0&G\end{pmatrix}\right), for some vector μy\mu_{y} and (diagonal) matrix Dykc×kcD_{y}\in\mathbb{R}^{k_{c}^{\star}\times k_{c}^{\star}} and a general matrix Gks×ksG\in\mathbb{R}^{k_{s}^{\star}\times k_{s}^{\star}}, altogether accumulated in the parameter θcl\theta^{cl}. Finally, we have that p(𝐗|𝐙~)=δf(Z~)p(\mathbf{X}|\tilde{\mathbf{Z}})=\delta_{f(\tilde{Z})}.

The proof of Lemma 1 relies on the following lemmas, which we state below and prove later.

Lemma 3.

Let a,b+a,b\in\mathbb{N}_{+}. Suppose QD~=DQQ\tilde{D}=D{Q} for orthogonal matrix Q(a+b)×(a+b)Q\in\mathbb{R}^{(a+b)\times(a+b)} and diagonal matrices D,D~D,\tilde{D} where in the first aa coordinates, DD has unequal diagonal entries with no entry equal to one. Suppose that the last bb entries of D,D~D,\tilde{D} are equal to 11. Then, QQ takes the following form: Q=(P00Q~)Q=\begin{pmatrix}P&0\\ 0&\tilde{Q}\end{pmatrix} where Pa×aP\in\mathbb{R}^{a\times a} is a permutation matrix and Q~b×b\tilde{Q}\in\mathbb{R}^{b\times b} is an orthogonal matrix.

Lemma 4.

The following two statements are equivalent:

  1. 1.

    the parameters (ϕ^cl,f^,{μ^y,D^y,G^}y𝒴)(\hat{\phi}^{cl},\hat{f},\{\hat{\mu}_{y},\hat{D}_{y},\hat{G}\}_{y\in\mathcal{Y}}) are optimizers of (11).

  2. 2.

    for all y𝒴y\in\mathcal{Y}, 𝐗=distf^(𝐙~);𝐙~|𝐘=y𝒩(μ^y,(D^y00G^));ϕ^= parameters of 𝐙~|𝐗,𝐘=y\mathbf{X}\stackrel{{\scriptstyle\text{dist}}}{{=}}\hat{f}(\tilde{\mathbf{Z}})~;~\tilde{\mathbf{Z}}|\mathbf{Y}={y}\sim\mathcal{N}\left(\hat{\mu}_{y},\begin{pmatrix}\hat{D}_{y}&0\\ 0&\hat{G}\end{pmatrix}\right)~;~\hat{\phi}=\text{ parameters of }~\tilde{\mathbf{Z}}|\mathbf{X},\mathbf{Y}=y.

With Lemmas 3 and 4 at hand, we are ready to prove Lemma 1.

Proof of Lemma 1.

Lemma 4 states that in the noiseless case ϵ=0\epsilon=0, we have 𝐗=distf(𝐙)=distf^(𝐙~)\mathbf{X}\stackrel{{\scriptstyle\text{dist}}}{{=}}f^{\star}(\mathbf{Z})\stackrel{{\scriptstyle\text{dist}}}{{=}}\hat{f}(\tilde{\mathbf{Z}}) for 𝐙~|𝐘=y𝒩(μ^y,(D^y00G^))\tilde{\mathbf{Z}}|\mathbf{Y}=y\sim\mathcal{N}\left(\hat{\mu}_{y},\begin{pmatrix}\hat{D}_{y}&0\\ 0&\hat{G}\end{pmatrix}\right). We now show that the set of all possible solutions for f^\hat{f}, denoted by \mathcal{H}, is restricted to maps of the form f(PD00G)f^{\star}\circ\begin{pmatrix}PD&0\\ 0&G\end{pmatrix} for permutation and diagonal matrices of dimension kc×kck_{c}^{\star}\times k_{c}^{\star} and general ks×ksk_{s}^{\star}\times k_{s}^{\star} matrix GG.

Remember in the noiseless case 𝐗:=f(𝐙)\mathbf{X}:=f^{\star}(\mathbf{Z}). We then have the following equality:

\displaystyle\mathcal{H} ={continuous, one-to-one f|f1(𝐗)|𝐘=y𝒩(μy,(Dy00G));Dy diagonal for all y𝒴}\displaystyle=\Bigg\{\text{continuous, one-to-one }f~{\big|}~f^{-1}(\mathbf{X})|\mathbf{Y}=y\sim\mathcal{N}\left(\mu_{y},\begin{pmatrix}D_{y}&0\\ 0&G\end{pmatrix}\right);D_{y}\text{ diagonal}\text{ for all }y\in\mathcal{Y}\Bigg\}
=(a){fg for a continuous, one-to-one g|g1(𝐙)|𝐘=y𝒩(μy,(Dy00G));Dy diagonal for all y𝒴},\displaystyle{\displaystyle\stackrel{{\scriptstyle(a)}}{{=}}}\Bigg\{f^{\star}\circ g\text{ for a continuous, one-to-one }g~{\big|}~g^{-1}(\mathbf{Z})|\mathbf{Y}=y\sim\mathcal{N}\left(\mu_{y},\begin{pmatrix}D_{y}&0\\ 0&G\end{pmatrix}\right);D_{y}\text{ diagonal}\text{ for all }y\in\mathcal{Y}\Bigg\},

where for every y𝒴y\in\mathcal{Y}, Dykc×kcD_{y}\in\mathbb{R}^{k^{\star}_{c}\times k^{\star}_{c}} and Gks×ksG\in\mathbb{R}^{k^{\star}_{s}\times k^{\star}_{s}}. Here the relation =(a){\stackrel{{\scriptstyle(a)}}{{=}}} follows from ff^{\star} being one-to-one and continuous from Assumption 1.1 as well as 𝐗=distf(𝐙)\mathbf{X}\stackrel{{\scriptstyle\text{dist}}}{{=}}f^{\star}(\mathbf{Z}). We further have

(12) \displaystyle\mathcal{H} =(b){fM for invertible matrix M|M1(𝐙)|𝐘=y𝒩(μy,(Dy00G));Dy diagonal for all y𝒴}\displaystyle{\displaystyle\stackrel{{\scriptstyle(b)}}{{=}}}\Bigg\{f^{\star}\circ M\text{ for invertible matrix }M~{\big|}~M^{-1}(\mathbf{Z})|\mathbf{Y}=y\sim\mathcal{N}\left(\mu_{y},\begin{pmatrix}D_{y}&0\\ 0&G\end{pmatrix}\right);D_{y}\text{ diagonal}\text{ for all }y\in\mathcal{Y}\Bigg\}
=(c){fM|M=(Dy00G)1/2Qy(Dy00G)1/2;Dy diagonal,Qy orthogonal for all y𝒴}.\displaystyle{\displaystyle\stackrel{{\scriptstyle(c)}}{{=}}}\Bigg\{f^{\star}\circ M~{\big|}~M=\begin{pmatrix}D_{y}^{\star}&0\\ 0&G^{\star}\end{pmatrix}^{1/2}Q_{y}\begin{pmatrix}D_{y}&0\\ 0&G\end{pmatrix}^{-1/2};D_{y}\text{ diagonal},Q_{y}\text{ orthogonal}\text{ for all }y\in\mathcal{Y}\Bigg\}.

The relation =(b){\stackrel{{\scriptstyle(b)}}{{=}}} follows from the fact that the set of one-to-one continuous operators that preserve Gaussianity are linear; the relation =(c){\stackrel{{\scriptstyle(c)}}{{=}}} follows from 𝐙|𝐘=y𝒩(μy,(Dy00Gs))\mathbf{Z}|\mathbf{Y}=y\sim\mathcal{N}\left(\mu_{y}^{\star},\begin{pmatrix}D_{y}^{\star}&0\\ 0&G^{\star}_{s}\end{pmatrix}\right) and the following calculations:

(13) M1(Dy00G)MT=(Dy00G)\displaystyle M^{-1}\begin{pmatrix}D_{y}^{\star}&0\\ 0&G^{\star}\end{pmatrix}M^{-T}=\begin{pmatrix}D_{y}&0\\ 0&G\end{pmatrix}
(Dy00G)1/2M1(Dy00G)MT(Dy00G)1/2=Id\displaystyle\Leftrightarrow\begin{pmatrix}D_{y}&0\\ 0&G\end{pmatrix}^{-1/2}M^{-1}\begin{pmatrix}D_{y}^{\star}&0\\ 0&G^{\star}\end{pmatrix}M^{-T}\begin{pmatrix}D_{y}&0\\ 0&G\end{pmatrix}^{-1/2}=\mathrm{Id}
(Dy00G)1/2M1(Dy00G)1/2 is an orthogonal matrix.\displaystyle\Leftrightarrow\begin{pmatrix}D_{y}&0\\ 0&G\end{pmatrix}^{-1/2}M^{-1}\begin{pmatrix}D_{y}^{\star}&0\\ 0&G^{\star}\end{pmatrix}^{1/2}\text{ is an orthogonal matrix}.

Consider the pair y,y~y,\tilde{y} satisfying Assumption 1.2. Then, since MM doesn’t depend on yy, we have that:

(14) (Dy00G)1/2Qy(Dy00G)1/2=(Dy~00G)1/2Qy~(Dy~00G)1/2.\displaystyle\begin{pmatrix}D_{y}^{\star}&0\\ 0&G^{\star}\end{pmatrix}^{1/2}Q_{y}\begin{pmatrix}D_{y}&0\\ 0&G\end{pmatrix}^{-1/2}=\begin{pmatrix}D^{\star}_{\tilde{y}}&0\\ 0&G^{\star}\end{pmatrix}^{1/2}{Q}_{\tilde{y}}\begin{pmatrix}D_{\tilde{y}}&0\\ 0&G\end{pmatrix}^{-1/2}\,.

Define the quantities:

A:=((Dy)1Dy~00Id);A:=((Dy)1Dy~00Id).\displaystyle A^{\star}:=\begin{pmatrix}(D_{y}^{\star})^{-1}D_{\tilde{y}}^{\star}&0\\ 0&\mathrm{Id}\end{pmatrix}~~~;~~~A:=\begin{pmatrix}(D_{y})^{-1}D_{\tilde{y}}&0\\ 0&\mathrm{Id}\end{pmatrix}\,.

Then the relation (14) reduces to the following condition:

(15) (A)1/2QyA1/2 is an orthogonal matrix.(A^{\star})^{-1/2}Q_{y}A^{1/2}\text{ is an orthogonal matrix}.

The relation (15) leads to the conclusion:

(16) QyA=AQy.\displaystyle Q_{y}A=A^{\star}{Q}_{y}\,.

Since by Assumption 1.2, the first kck_{c}^{\star} diagonal elements of AA^{\star} are distinct, A,AA,A^{\star} satisfy the assumptions of Lemma 3. This implies that Qy=(Py00Q¯y)Q_{y}=\begin{pmatrix}P_{y}&0\\ 0&\bar{Q}_{y}\end{pmatrix} for some permutation matrices PyP_{y} and orthogonal matrices Q¯y\bar{Q}_{y} and hence

={fM|M=(PD00G);Dkc×kc diagonal,Pkc×kc permutation matrix,Gks×ks},\mathcal{H}=\Bigg\{f^{\star}\circ M~{\big|}~M=\begin{pmatrix}PD&0\\ 0&G\end{pmatrix};D\in\mathbb{R}^{k^{\star}_{c}\times k^{\star}_{c}}\text{ diagonal},P\in\mathbb{R}^{k^{\star}_{c}\times k^{\star}_{c}}\text{ permutation matrix},G\in\mathbb{R}^{k^{\star}_{s}\times k^{\star}_{s}}\Bigg\},

which concludes the proof. ∎

Proof of Lemma 3.

For convenience, we first decompose the matrices Q=(Q1Q12Q21Q2)Q=\begin{pmatrix}Q_{1}&Q_{12}\\ Q_{21}&Q_{2}\end{pmatrix} where Q1a×aQ_{1}\in\mathbb{R}^{a\times a} and similarly for D,D~D,\tilde{D}. We first show that Q12=0Q_{12}=0. The relation QD~=DQQ\tilde{D}={D}Q implies that for any pair of indices (i,j)(i,j) either [Q]ij=0[Q]_{ij}=0 or [Q]ij0&[D]ii=[D~]jj[Q]_{ij}\neq 0~~\&~~[D]_{ii}=[\tilde{D}]_{jj}. Consider i{1,2,,a}i\in\{1,2,\dots,a\} and j{a+1,a+2,,a+b}j\in\{a+1,a+2,\dots,a+b\}. By the above relation and the assumption that the first aa entries of DD are not equal to one and the last bb entries of D~\tilde{D} are equal to one, we conclude that [Q]ij=0[Q]_{ij}=0. Thus, we have established that Q12=0Q_{12}=0. Further, because QQ=IQQ^{\top}=I, we have that Q21=0Q_{21}=0.

It remains to show that Q1Q_{1} is diagonal. First note that since QQ is orthogonal, the matrix Q1Q_{1} must be orthogonal. The equality QD~=DQQ\tilde{D}=D{Q} now implies that Q1D1=D~1Q1Q_{1}D_{1}=\tilde{D}_{1}Q_{1}. In particular, Q1D1Q1T=D~1Q_{1}D_{1}Q_{1}^{T}=\tilde{D}_{1}, that is Q1D1Q1TQ_{1}D_{1}Q_{1}^{T} is an eigen-decomposition of a diagonal matrix with distinct eigenvalues. By the uniqueness of eigen-decompositions, Q1Q_{1} must therefore be a permutation matrix. ∎

Proof of Lemma 4.

Consider maximizing the reconstruction loss in (11). In this setting, the VAE model searches for an approximation f^(𝐙~)dist𝐗\hat{f}(\tilde{\mathbf{Z}})\stackrel{{\scriptstyle\text{dist}}}{{\approx}}\mathbf{X} where the parameters of the VAE model (e.g. posterior ϕcl\phi^{cl}, prior θcl\theta^{cl}, ff) are optimized to yield the best approximation of 𝐗\mathbf{X}. In other words, VAE training approximates the following optimization:

(17) argmaxf,θcl\displaystyle\argmax_{\begin{subarray}{c}f,\theta^{cl}\end{subarray}} y𝒴𝐘(𝐘=y)𝔼𝐗𝐗|𝐘=y[logpf,θcl(𝐗|𝐘=y)],\displaystyle\sum_{y\in\mathcal{Y}}\mathbb{P}_{\mathbf{Y}}(\mathbf{Y}=y)\mathbb{E}_{\mathbf{X}\sim\mathbb{P}_{\mathbf{X}|\mathbf{Y}=y}}[\log{p}_{f,\theta^{cl}}(\mathbf{X}|\mathbf{Y}=y)],

where the likelihood pf,θcl(𝐗)p_{f,\theta^{cl}}(\mathbf{X}) is defined with respect to the distribution 𝐗~=distf(𝐙~)\tilde{\mathbf{X}}\stackrel{{\scriptstyle\text{dist}}}{{=}}f(\tilde{\mathbf{Z}}) with 𝐙~|𝐘=y\tilde{\mathbf{Z}}|\mathbf{Y}=y being a Gaussian distribution with parameters θcl\theta^{cl}. Optimality for (17) is achieved if 𝐗~=dist𝐗\tilde{\mathbf{X}}\stackrel{{\scriptstyle\text{dist}}}{{=}}\mathbf{X}, i.e. pf,θcl(𝐗|𝐘=y)=p(𝐗|𝐘=y)p_{f,\theta^{cl}}(\mathbf{X}|\mathbf{Y}=y)=p^{\star}({\mathbf{X}|\mathbf{Y}=y}). Since it is hard to maximize over pf,θclp_{f,\theta^{cl}} directly, the VAE training approach uses a surrogate for the density pp via the ELBO approximation. Specifically, recall that the ELBO is a lower bound for the log-likelihood:

log(p(𝐗|𝐘=y))\displaystyle\log{}(p^{\star}({\mathbf{X}|\mathbf{Y}=y})) 𝔼qϕcl(𝐙~|𝐗)[logpf(𝐗|𝐙~)]KL(qϕcl(𝐙~|𝐗,𝐘=y),pθcl(𝐙~|𝐘=y)).\displaystyle\geq\mathbb{E}_{q_{\phi^{cl}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{cl}}(\tilde{\mathbf{Z}}|\mathbf{X},\mathbf{Y}=y),p_{\theta^{cl}}(\tilde{\mathbf{Z}}|\mathbf{Y}=y)\right).

Equality holds if the approximate posterior matches the true posterior, that is in the noiseless case, for any x𝒳x\in\mathcal{X}:

(18) qϕcl(𝐙~|𝐗=x,𝐘=y)=pf(𝐙~|𝐗~=x,𝐘=y)=δf1(x).\displaystyle q_{\phi^{cl}}(\tilde{\mathbf{Z}}|\mathbf{X}=x,\mathbf{Y}=y)=p_{f}(\tilde{\mathbf{Z}}|\tilde{\mathbf{X}}=x,\mathbf{Y}=y)=\delta_{f^{-1}(x)}.

where we have appealed to ff being one-to-one from Assumption 1.1.. Hence, with the choice of the posterior in (18), and setting 𝐗~=dist𝐗\tilde{\mathbf{X}}\stackrel{{\scriptstyle\text{dist}}}{{=}}\mathbf{X}, the maximization over f,θclf,\theta^{cl} of (17) and the reconstruction loss in (11) are equivalent.∎

A.2.3 Combining Lemma 2 and 1: concept learning and prediction guarantees

Notice the following basic inequality:

maxϕp,θp,f,ψ,ϕcl,θcl𝔼𝐗,𝐘[p(ϕp,θp,f,ψ,𝐗,𝐘)]+𝔼𝐗,𝐘[cl(ϕcl,θcl,f,𝐗,𝐘)]\displaystyle\max_{\phi^{p},\theta^{p},f,\psi,\phi^{cl},\theta^{cl}}{\mathbb{E}}_{\mathbf{X},\mathbf{Y}}[\mathcal{L}_{\texttt{p}}(\phi^{p},{\theta}^{p},f,\psi;\mathbf{X},\mathbf{Y})]+{\mathbb{E}}_{\mathbf{X},\mathbf{Y}}[\mathcal{L}_{\texttt{cl}}(\phi^{cl},{\theta}^{cl},f;\mathbf{X},\mathbf{Y})]
maxϕp,θp,f,ψ𝔼𝐗,𝐘[p(ϕp,θp,f,ψ,𝐗,𝐘)]+maxϕcl,θcl,f𝔼𝐗,𝐘[cl(ϕcl,θcl,f,𝐗,𝐘)],\displaystyle\leq\max_{\phi^{p},\theta^{p},f,\psi}{\mathbb{E}}_{\mathbf{X},\mathbf{Y}}[\mathcal{L}_{\texttt{p}}(\phi^{p},{\theta}^{p},f,\psi;\mathbf{X},\mathbf{Y})]+\max_{\phi^{cl},\theta^{cl},f}{\mathbb{E}}_{\mathbf{X},\mathbf{Y}}[\mathcal{L}_{\texttt{cl}}(\phi^{cl},{\theta}^{cl},f;\mathbf{X},\mathbf{Y})],

where equality holds if there exists a decoder ff that is optimal for the optimization problems with respect to p\mathcal{L}_{p} and with respect to cl\mathcal{L}_{cl}. Lemmas 2 and 1 guarantee this to be the case. We thus can conclude that the sum of the objectives p+cl\mathcal{L}_{p}+\mathcal{L}_{cl} inherits the predictive power of using the architecture corresponding to p\mathcal{L}_{p} and the concept learning capabilities of using the architecture corresponding to cl\mathcal{L}_{cl}.

A.3 Proof of Theorem 1: miss-specified number of latent variables

In this section, we analyze the regularized estimator:

(19) maxϕp,θp,ϕcl,θcl,f,ψ𝔼^𝐗,𝐘[p(ϕp,θp,f,ψ,𝐗,𝐘)]+𝔼^𝐗,𝐘[cl(ϕcl,θcl,f,𝐗,𝐘)]λnρ(f,ψ).\displaystyle\max_{\begin{subarray}{c}{\phi}^{p},{\theta}^{p},{\phi}^{cl},{\theta}^{cl}\end{subarray},f,\psi}{{\hat{\mathbb{E}}}_{\mathbf{X},\mathbf{Y}}[\mathcal{L}_{p}(\phi^{p},{\theta}^{p},f,\psi;\mathbf{X},\mathbf{Y})]}+{\hat{\mathbb{E}}_{\mathbf{X},\mathbf{Y}}\allowbreak[\mathcal{L}_{cl}({\phi}^{cl},{\theta}^{cl},f;\mathbf{X},\mathbf{Y})]}-\lambda_{n}\rho(f,\psi).

For our analysis, we define a few quantities. Let fextendf^{\star}_{\text{extend}} be one-to-one extension of ff^{\star} to a domain k\mathbb{R}^{k} where for any vkv\in\mathbb{R}^{k}:

fextendB(v)=f(v1:kcvkc+1:kc+ks) where B=(Idkc000000000Idks00000)k×k.f^{\star}_{\text{extend}}\circ B^{\star}(v)=f^{\star}\begin{pmatrix}v_{1:k_{c}^{\star}}\\ v_{k_{c}^{\star}+1:k_{c}+k_{s}^{\star}}\end{pmatrix}~~\text{ where }B^{\star}=\begin{pmatrix}\mathrm{Id}_{k_{c}^{\star}}&0&0&0\\ 0&0&0&0\\ 0&0&\mathrm{Id}_{k_{s}^{\star}}&0\\ 0&0&0&0\end{pmatrix}\in\mathbb{R}^{k\times k}.

Here, Id()\mathrm{Id}_{(\cdot)} denotes an identify matrix with its size specified in the subscript. Finally, we let 𝐙extendk\mathbf{Z}_{\text{extend}}\in\mathbb{R}^{k} be a random variable that is identical to 𝐙\mathbf{Z} (true core and style features) in certain coordinates, and a standard Gaussian in other coordinates. Specifically:

(Idkc00000Idks0)𝐙extend=𝐙;(0Idkckc00000Idksks)𝐙extend is standard Gaussian.\begin{pmatrix}\mathrm{Id}_{k_{c}^{\star}}&0&0&0\\ 0&0&\mathrm{Id}_{k_{s}^{\star}}&0\end{pmatrix}\mathbf{Z}_{\text{extend}}=\mathbf{Z}~~;\,~~~\begin{pmatrix}0&\mathrm{Id}_{k_{c}-k_{c}^{\star}}&0&0\\ 0&0&0&\mathrm{Id}_{k_{s}-k_{s}^{\star}}\end{pmatrix}\mathbf{Z}_{\text{extend}}\text{ is standard Gaussian}.

In the infinite data limit with the regularization parameter λn\lambda_{n} tending to zero with larger sample size, the optimal parameters of (19) are solutions to :

(20) argminf,ψ,ϕp,θp,ϕcl,θcl\displaystyle\argmin_{f,\psi,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}} ρ(f,ψ)\displaystyle{\displaystyle\rho(f,\psi)}
subject-to\displaystyle\text{subject-to} f,ψ,ϕp,θp,ϕcl,θclargmaxf,ψ,ϕp,θp,ϕcl,θcl𝔼𝐗,𝐘[p(ϕp,θp,f,ψ,𝐗,𝐘)]\displaystyle f,\psi,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}\in\argmax_{f,\psi,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}}\mathbb{E}_{\mathbf{X},\mathbf{Y}}[\mathcal{L}_{\texttt{p}}(\phi^{p},{\theta}^{p},f,\psi;\mathbf{X},\mathbf{Y})]
+𝔼𝐗,𝐘[cl(ϕp,θp,f,ψ,𝐗,𝐘)].\displaystyle+\mathbb{E}_{\mathbf{X},\mathbf{Y}}[\mathcal{L}_{\texttt{cl}}(\phi^{p},{\theta}^{p},f,\psi;\mathbf{X},\mathbf{Y})].


The proof of the corollary requires a few lemmas which we provide next and prove later.

Lemma 5.

We have the following equivalence for a set of parameters f,ψ,ϕp,θp,ϕcl,θclf,\psi,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}:

f,ψ,ϕp,θp,ϕcl,θcl\displaystyle f,\psi,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl} argmaxf,ψ,ϕp,θp,ϕcl,θcl𝔼𝐗,𝐘𝐗,𝐘[p(ϕp,θp,f,ψ,𝐗,𝐘)]+𝔼𝐗,𝐘𝐗,𝐘[cl(ϕp,θp,f,ψ,𝐗,𝐘)]\displaystyle\in\argmax_{f,\psi,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}}\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}[\mathcal{L}_{\texttt{p}}(\phi^{p},{\theta}^{p},f,\psi;\mathbf{X},\mathbf{Y})]+\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}[\mathcal{L}_{\texttt{cl}}(\phi^{p},{\theta}^{p},f,\psi;\mathbf{X},\mathbf{Y})]
\displaystyle\Leftrightarrow
f,ϕp,θp,ϕcl,θcl\displaystyle f,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl} argmaxϕp,θp,ϕcl,θcl,f𝔼𝐗𝐗[𝔼qϕp(𝐙~|𝐗)[logpf(𝐗|𝐙~)]KL(qϕp(𝐙~|𝐗),pθp(𝐙~))]\displaystyle\in\argmax_{\begin{subarray}{c}\phi^{p},\theta^{p},\phi^{cl},\theta^{cl},f\end{subarray}}\mathbb{E}_{\mathbf{X}\sim\mathbb{P}_{\mathbf{X}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{p}}(\tilde{\mathbf{Z}}|{\mathbf{X}}),p_{\theta^{p}}(\tilde{\mathbf{Z}})\right)\Bigg]
+𝔼𝐗,𝐘𝐗,𝐘[𝔼qϕcl(𝐙~|𝐗,𝐘)[logpf(𝐗|𝐙~)]KL(qϕcl(𝐙~|𝐗,𝐘),pθcl(𝐙~|𝐘))]\displaystyle+\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{cl}}(\tilde{\mathbf{Z}}|\mathbf{X},\mathbf{Y})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{cl}}(\tilde{\mathbf{Z}}|{\mathbf{X}},\mathbf{Y}),p_{\theta^{cl}}(\tilde{\mathbf{Z}}|\mathbf{Y})\right)\Bigg]
ψ,ϕp\displaystyle\psi,\phi^{p} argmaxψ,ϕp𝔼𝐗,𝐘𝐗,𝐘[𝔼qϕp(𝐙~|𝐗)[logpψ(𝐘|𝐙~c)]]\displaystyle\in\argmax_{\psi,\phi^{p}}\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{\psi}(\mathbf{Y}|\mathbf{\tilde{Z}}_{c})]\Bigg]
Lemma 6.

We have the following implication for the parameters ϕp,θp,ϕcl,θcl,f\phi^{p},\theta^{p},\phi^{cl},\theta^{cl},f:

ϕp,θp,ϕcl,θcl,fargmaxϕp,θp,ϕcl,θcl,f𝔼𝐗𝐗[𝔼qϕp(𝐙~|𝐗)[logpf(𝐗|𝐙~)]KL(qϕp(𝐙~|𝐗),pθp(𝐙~))]\displaystyle\phi^{p},\theta^{p},\phi^{cl},\theta^{cl},f\in\argmax_{\begin{subarray}{c}\phi^{p},\theta^{p},\phi^{cl},\theta^{cl},f\end{subarray}}\,~~~~\mathbb{E}_{\mathbf{X}\sim\mathbb{P}_{\mathbf{X}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{p}}(\tilde{\mathbf{Z}}|{\mathbf{X}}),p_{\theta^{p}}(\tilde{\mathbf{Z}})\right)\Bigg]
+𝔼𝐗,𝐘𝐗,𝐘[𝔼qϕcl(𝐙~|𝐗,𝐘)[logpf(𝐗|𝐙~)]KL(qϕcl(𝐙~|𝐗,𝐘),pθcl(𝐙~|𝐘))]\displaystyle+\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{cl}}(\tilde{\mathbf{Z}}|\mathbf{X},\mathbf{Y})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{cl}}(\tilde{\mathbf{Z}}|{\mathbf{X}},\mathbf{Y}),p_{\theta^{cl}}(\tilde{\mathbf{Z}}|\mathbf{Y})\right)\Bigg]
ψ,ϕpargmaxψ,ϕp𝔼𝐗,𝐘𝐗,𝐘[𝔼qϕp(𝐙~|𝐗)[logpψ(𝐘|𝐙~c)]]\displaystyle\psi,\phi^{p}\in\argmax_{\psi,\phi^{p}}\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{\psi}(\mathbf{Y}|\mathbf{\tilde{Z}}_{c})]\Bigg]
for every y𝒴f=fB,𝐗=distf(𝐙~) where 𝐙~|𝐘=y𝒩(μy,(Dy00G)) and\displaystyle\Rightarrow~~\text{for every }y\in\mathcal{Y}~~~f=f^{\prime}\circ{B},\mathbf{X}\stackrel{{\scriptstyle\text{dist}}}{{=}}f(\tilde{\mathbf{Z}})\text{ where }\tilde{\mathbf{Z}}|\mathbf{Y}=y\sim\mathcal{N}\left({\mu}_{y},\begin{pmatrix}{D}_{y}&0\\ 0&{G}\end{pmatrix}\right)\text{ and }
Dykc×kc,Gks×ks:qϕp(𝐙~|𝐗)=p(𝐙~|𝐗),qϕcl(𝐙~|𝐗,𝐘=y)=p(𝐙~|𝐗,𝐘=y).\displaystyle{\displaystyle D}_{y}\in\mathbb{R}^{k_{c}\times k_{c}},G\in\mathbb{R}^{k_{s}\times k_{s}}~~:~~q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})=p(\tilde{\mathbf{Z}}|\mathbf{X}),q_{\phi^{\text{cl}}}(\tilde{\mathbf{Z}}|\mathbf{X},\mathbf{Y}=y)=p(\tilde{\mathbf{Z}}|\mathbf{X},\mathbf{Y}=y).
Lemma 7.

Consider the following optimization problem:

(fopt,Bopt)=argminfone-to-one,B\displaystyle(f^{\prime}_{\text{opt}},B_{\text{opt}})=\argmin_{f^{\prime}\text{one-to-one},B} i=1k𝕀(B:,i2>0)\displaystyle\sum_{i=1}^{k}\mathbb{I}(\|B_{:,i}\|_{2}>0)
subject-to\displaystyle\text{subject-to}  there exists a random vector 𝐙~k with 𝐗=distfB(𝐙~)\displaystyle\text{ there exists a random vector }\tilde{\mathbf{Z}}\in\mathbb{R}^{k}\text{ with }\mathbf{X}\stackrel{{\scriptstyle\text{dist}}}{{=}}f^{\prime}\circ B(\tilde{\mathbf{Z}})
𝐙~|𝐘=y𝒩(μy,(Dy00G))for all y𝒴\displaystyle\tilde{\mathbf{Z}}|\mathbf{Y}=y\sim\mathcal{N}\left({\mu}_{y},\begin{pmatrix}{D}_{y}&0\\ 0&{G}\end{pmatrix}\right)\text{for all }y\in\mathcal{Y}

Then, the following statements hold:

  1. 1.

    Any feasible BB has kk^{\star} (nonzero) linearly independent columns.

  2. 2.

    Any optimal BoptB_{\text{opt}} has exactly kk^{\star} columns that are nonzero and linearly independent.

  3. 3.

    Letting Bopt.reducedB_{\text{opt.reduced}} be those nonzero columns, then, foptBopt.reduced=fextend(PD00000H0)Tf_{\text{opt}}^{\prime}\circ B_{\text{opt.reduced}}=f^{\star}_{\text{extend}}\circ\begin{pmatrix}PD&0&0&0\\ 0&0&H&0\end{pmatrix}^{T} for some diagonal matrix Dkc×kcD\in\mathbb{R}^{k_{c}^{\star}\times k_{c}^{\star}}, permutation matrix Pkc×kcP\in\mathbb{R}^{k_{c}^{\star}\times{k}_{c}^{\star}} and non-singular matrix Hks×ksH\in\mathbb{R}^{k_{s}^{\star}\times k_{s}^{\star}}.

  4. 4.

    Letting 𝐙~reduced\tilde{\mathbf{Z}}_{\text{reduced}} be the latent features corresponding to nonzero columns in BB,
    𝐙~reduced|𝐘=y𝒩(μy,(D1P1DyPTD100H1GHT))\tilde{\mathbf{Z}}_{\text{reduced}}|\mathbf{Y}=y\sim\mathcal{N}\left(\mu_{y},\begin{pmatrix}D^{-1}P^{-1}D^{\star}_{y}P^{-T}D^{-1}&0\\ 0&H^{-1}G^{\star}{H}^{-T}\end{pmatrix}\right) for all y𝒴y\in\mathcal{Y}.

Proof of Theorem 1.

Throughout the proof, we take f=fBf=f^{\prime}\circ B and ψ=ψC\psi=\psi^{\prime}\circ C. We consider the following reformulation of the minimal value of the optimization (20):

l(1):=min\displaystyle l^{(1)}:=\min t\displaystyle t
subject-to\displaystyle\text{subject-to } ρ(f,ψ)t\displaystyle\rho(f,\psi)\leq{t}
f,ψ,ϕp,θp,ϕcl,θclargmaxf,ψ,ϕp,θp,ϕcl,θcl𝔼𝐗,𝐘𝐗,𝐘[p(ϕp,θp,f,ψ,𝐗,𝐘)]\displaystyle f,\psi,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}\in\argmax_{f,\psi,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}}\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}[\mathcal{L}_{\texttt{p}}(\phi^{p},{\theta}^{p},f,\psi;\mathbf{X},\mathbf{Y})]
+𝔼𝐗,𝐘𝐗,𝐘[cl(ϕp,θp,f,ψ,𝐗,𝐘)],\displaystyle+\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}[\mathcal{L}_{\texttt{cl}}(\phi^{p},{\theta}^{p},f,\psi;\mathbf{X},\mathbf{Y})],

where we denote the set of feasible parameters (t,f,ψ,ϕp,θp,ϕcl,θcl)(t,f,\psi,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}) of the optimization problem above by 𝒮(1)\mathcal{S}^{(1)}. Our objective is to show that any optimal encoder produces core features that are permutation and scaling of the true core features. To that end, we consider the following optimization problem:

l(2):=min\displaystyle l^{(2)}:=\min t\displaystyle t
subject-to\displaystyle\text{subject-to } ρ(f,ψ)t\displaystyle\rho(f,\psi)\leq{t}
f,ϕp,θp,ϕcl,θclargmaxf,ϕp,θp,ϕcl,θcl𝔼𝐗𝐗[𝔼qϕp(𝐙~|𝐗)[logpf(𝐗|𝐙~)]KL(qϕp(𝐙~|𝐗),pθp(𝐙~))]\displaystyle f,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}\in\argmax_{f,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}}\mathbb{E}_{\mathbf{X}\sim\mathbb{P}_{\mathbf{X}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{p}}(\tilde{\mathbf{Z}}|{\mathbf{X}}),p_{\theta^{p}}(\tilde{\mathbf{Z}})\right)\Bigg]
+𝔼𝐗,𝐘𝐗,𝐘[𝔼qϕcl(𝐙~|𝐗,𝐘)[logpf(𝐗|𝐙~)]KL(qϕcl(𝐙~|𝐗,𝐘),pθcl(𝐙~|𝐘))]\displaystyle+\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{cl}}(\tilde{\mathbf{Z}}|\mathbf{X},\mathbf{Y})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{cl}}(\tilde{\mathbf{Z}}|{\mathbf{X}},\mathbf{Y}),p_{\theta^{cl}}(\tilde{\mathbf{Z}}|\mathbf{Y})\right)\Bigg]
ψ,ϕpargmaxψ,ϕp𝔼𝐗,𝐘𝐗,𝐘[𝔼qϕp(𝐙~|𝐗)[logpψ(𝐘|𝐙~)]],\displaystyle\psi,\phi^{p}\in\argmax_{\psi,\phi^{p}}\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{\psi}(\mathbf{Y}|\tilde{\mathbf{Z}})]\Bigg],

where the set of feasible parameters (t,f,ψ,ϕp,θp,ϕcl,θcl)(t,f,\psi,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}) are denoted by 𝒮(2)\mathcal{S}^{(2)}. By Lemma 5, we have that 𝒮(2)=𝒮(1)\mathcal{S}^{(2)}=\mathcal{S}^{(1)} so that l(2)=l(1)l^{(2)}=l^{(1)}. We then relax the constraint set as follows:

l(3):=min\displaystyle l^{(3)}:=\min t\displaystyle t
subject-to\displaystyle\text{subject-to } i=1k𝕀(B:,i2>0)t\displaystyle\sum_{i=1}^{k}\mathbb{I}(\|B_{:,i}\|_{2}>0)\leq{t}
f,ϕp,θp,ϕcl,θclargmaxf,ϕp,θp,ϕcl,θcl𝔼𝐗𝐗[𝔼qϕp(𝐙~|𝐗)[logpf(𝐗|𝐙~)]KL(qϕp(𝐙~|𝐗),pθp(𝐙~))]\displaystyle f,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}\in\argmax_{f,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}}\mathbb{E}_{\mathbf{X}\sim\mathbb{P}_{\mathbf{X}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{p}}(\tilde{\mathbf{Z}}|{\mathbf{X}}),p_{\theta^{p}}(\tilde{\mathbf{Z}})\right)\Bigg]
+𝔼𝐗,𝐘𝐗,𝐘[𝔼qϕcl(𝐙~|𝐗,𝐘)[logpf(𝐗|𝐙~)]KL(qϕcl(𝐙~|𝐗,𝐘),pθcl(𝐙~|𝐘))]\displaystyle+\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{cl}}(\tilde{\mathbf{Z}}|\mathbf{X},\mathbf{Y})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{cl}}(\tilde{\mathbf{Z}}|{\mathbf{X}},\mathbf{Y}),p_{\theta^{cl}}(\tilde{\mathbf{Z}}|\mathbf{Y})\right)\Bigg]
ψ,ϕpargmaxψ,ϕp𝔼𝐗,𝐘𝐗,𝐘[𝔼qϕp(𝐙~|𝐗)[logpψ(𝐘|𝐙~)]],\displaystyle\psi,\phi^{p}\in\argmax_{\psi,\phi^{p}}\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{\psi}(\mathbf{Y}|\tilde{\mathbf{Z}})]\Bigg],

where the set of feasible parameters (t,f,ψ,ϕp,θp,ϕcl,θcl)(t,f,\psi,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}) are denoted by 𝒮(3)\mathcal{S}^{(3)}. Evidently, 𝒮(3)𝒮(2)𝒮(1)\mathcal{S}^{(3)}\supseteq\mathcal{S}^{(2)}\supseteq\mathcal{S}^{(1)} and thus l(1)l(2)l(3)l^{(1)}\geq l^{(2)}\geq l^{(3)}. Let 𝒮opt(3)\mathcal{S}^{(3)}_{\text{opt}} be the optimal set of parameters in 𝒮(3)\mathcal{S}^{(3)}. Appealing to Lemma 6 and Lemma 7, the set 𝒮opt(3)\mathcal{S}^{(3)}_{\text{opt}} given by:

(21) 𝒮opt(3)={\displaystyle\mathcal{S}_{\text{opt}}^{(3)}=\Bigg\{ (t,f,ψ,ϕp,θp,ϕcl,θcl)|t=k,there exists a random vector 𝐙~k and matrices P,D,H s.t.\displaystyle(t,f,\psi,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl})~|~t=k,\text{there exists a random vector }\tilde{\mathbf{Z}}\in\mathbb{R}^{k}~\text{ and matrices }P,D,H\text{ s.t. }
𝐗=distfB𝐙~,fBreduced=fextend(PD00000H0)T where Breducedk×k\displaystyle\mathbf{X}\stackrel{{\scriptstyle\text{dist}}}{{=}}f^{\prime}\circ{B}\tilde{\mathbf{Z}}~~,~~f^{\prime}\circ{B}_{\text{reduced}}=f^{\star}_{\text{extend}}\begin{pmatrix}PD&0&0&0\\ 0&0&H&0\end{pmatrix}^{T}\text{ where }B_{\text{reduced}}\in\mathbb{R}^{k\times{k}^{\star}}
θcl parameters of the Gaussian random vector 𝐙~|𝐘=y where:\displaystyle\theta^{cl}\text{ parameters of the Gaussian random vector }\tilde{\mathbf{Z}}|\mathbf{Y}=y\text{ where: }
𝐙~reduced|𝐘=y𝒩(μy,(D1P1DyPTD100H1GHT))\displaystyle\tilde{\mathbf{Z}}_{\text{reduced}}|\mathbf{Y}=y\sim\mathcal{N}\left(\mu_{y},\begin{pmatrix}D^{-1}P^{-1}D^{\star}_{y}P^{-T}D^{-1}&0\\ 0&H^{-1}G^{\star}{H}^{-T}\end{pmatrix}\right)
θp parameters of the distribution of 𝐙~,qϕp(𝐙~|𝐗)=qϕcl(𝐙~|𝐗,𝐘)=p(𝐙~|𝐗)\displaystyle\theta^{p}\text{ parameters of the distribution of }\tilde{\mathbf{Z}}~~,~~q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})=q_{\phi^{cl}}(\tilde{\mathbf{Z}}|\mathbf{X},\mathbf{Y})=p(\tilde{\mathbf{Z}}|\mathbf{X})
ψargmax𝔼𝐗,𝐘𝐗,𝐘[𝔼qϕp(𝐙~|𝐗)[logpψ(𝐘|𝐙~c)]]}.\displaystyle\psi\in\argmax\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{\psi}(\mathbf{Y}|\mathbf{\tilde{Z}}_{c})]\Bigg]\Bigg\}.

Here, PP is a kc×kck_{c}^{\star}\times k_{c}^{\star} permutation matrix, DD is a kc×kck_{c}^{\star}\times k_{c}^{\star} diagonal matrix, and HH is a ks×ksk_{s}^{\star}\times k_{s}^{\star} non-singular matrix. Furthermore, BreducedB_{\text{reduced}} is the kk^{\star} nonzero columns of BB and 𝐙~reduced\tilde{\mathbf{Z}}_{\text{reduced}} are the components of 𝐙~\tilde{\mathbf{Z}} corresponding to the nonzero columns of BB. Take any optimal set of parameters in (21). Noting that 𝐗=distfextendB𝐙extend\mathbf{X}\stackrel{{\scriptstyle\text{dist}}}{{=}}f^{\star}_{\text{extend}}B^{\star}\mathbf{Z}_{\text{extend}}, it is straightforward to check that the first kck_{c}^{\star} components 𝐙~reduced|𝐗\tilde{\mathbf{Z}}_{\text{reduced}}|\mathbf{X} are a permutation and linear scaling of 𝐙c\mathbf{Z}_{c}, and thus the posterior samples are optimally predictive. As such, one possibility for an optimal predictor is ψ=ψC\psi=\psi^{\prime}\circ C where CC has the same nonzero columns as BB in (21). Notice that the resulting set of parameters is feasible in the set 𝒮(1)\mathcal{S}^{(1)} and yield the objective value t=kt=k. In other words, we have shown that l(1)=l(2)=l(3)=kl^{(1)}=l^{(2)}=l^{(3)}=k.

Now let 𝒮opt(1)\mathcal{S}^{(1)}_{\text{opt}} be the optimal set of parameters associated with l(1)l^{(1)}. By Lemmas 5, 6 and 7, any optimal BB should have at least kk nonzero linearly independent columns. Thus, to attain the lower bound l(1)=kl^{(1)}=k^{\star}, the optimal BB should indeed only have kk^{\star} nonzero columns. This observation implies that the constraint i=1k𝕀(B:,i2>0)t\sum_{i=1}^{k}\mathbb{I}(\|B_{:,i}\|_{2}>0)\leq{t} can be added to feasibility set 𝒮(1)\mathcal{S}^{(1)} without changing the optimal value. Thus, we have concluded that 𝒮opt(1)𝒮opt(4)\mathcal{S}^{(1)}_{\text{opt}}\subseteq\mathcal{S}^{(4)}_{\text{opt}}. Since any parameters in (21) lead to the posterior samples (Idkc0)𝐙~reduced|𝐗\begin{pmatrix}\mathrm{Id}_{k_{c}}&0\end{pmatrix}\tilde{\mathbf{Z}}_{\text{reduced}}|\mathbf{X} that are a permutation and linear scaling of the samples of 𝐙c\mathbf{Z}_{c}, we have the desired result. ∎

We now prove the Lemmas 5,6, and 7 that were used in the proof of the corollary.

Proof of Lemma 5.

The direction \leftarrow follows in a straightforward manner. For the direction \rightarrow, we introduce some notation. Define:

h(f,ϕp,θp,ϕcl,θcl)\displaystyle h(f,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}) :=𝔼𝐗𝐗[𝔼qϕp(𝐙~|𝐗)[logpf(𝐗|𝐙~)]KL(qϕp(𝐙~|𝐗),pθp(𝐙~))]\displaystyle:=\mathbb{E}_{\mathbf{X}\sim\mathbb{P}_{\mathbf{X}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{p}}(\tilde{\mathbf{Z}}|{\mathbf{X}}),p_{\theta^{p}}(\tilde{\mathbf{Z}})\right)\Bigg]
+𝔼𝐗,𝐘𝐗,𝐘[𝔼qϕcl(𝐙~|𝐗,𝐘)[logpf(𝐗|𝐙~)]KL(qϕcl(𝐙~|𝐗,𝐘),pθcl(𝐙~|𝐘))]\displaystyle+\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{cl}}(\tilde{\mathbf{Z}}|\mathbf{X},\mathbf{Y})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{cl}}(\tilde{\mathbf{Z}}|{\mathbf{X}},\mathbf{Y}),p_{\theta^{cl}}(\tilde{\mathbf{Z}}|\mathbf{Y})\right)\Bigg]
g(ϕp,ψ)\displaystyle g(\phi^{p},\psi) :=𝔼𝐗,𝐘𝐗,𝐘[𝔼qϕp(𝐙~|𝐗)[logpψ(𝐘|𝐙~)]]\displaystyle:=\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{\psi}(\mathbf{Y}|\tilde{\mathbf{Z}})]\Bigg]

Note that 𝔼𝐗,𝐘𝐗,𝐘[p(ϕp,θp,f,ψ,𝐗,𝐘)]+𝔼𝐗,𝐘𝐗,𝐘[cl(ϕp,θp,f,ψ,𝐗,𝐘)]=h(f,ϕp,θp,ϕcl,θcl)+g(ϕp,ψ)\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}[\mathcal{L}_{\texttt{p}}(\phi^{p},{\theta}^{p},f,\psi;\mathbf{X},\mathbf{Y})]+\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}[\mathcal{L}_{\texttt{cl}}(\phi^{p},{\theta}^{p},f,\psi;\mathbf{X},\mathbf{Y})]=h(f,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl})+g(\phi^{p},\psi). Thus, we have the following inequality:

(22) maxf,ψ,ϕp,θp,ϕcl,θcl𝔼𝐗,𝐘𝐗,𝐘[p(ϕp,θp,f,ψ,𝐗,𝐘)]+𝔼𝐗,𝐘𝐗,𝐘[cl(ϕp,θp,f,ψ,𝐗,𝐘)]\displaystyle\max_{f,\psi,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}}\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}[\mathcal{L}_{\texttt{p}}(\phi^{p},{\theta}^{p},f,\psi;\mathbf{X},\mathbf{Y})]+\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}[\mathcal{L}_{\texttt{cl}}(\phi^{p},{\theta}^{p},f,\psi;\mathbf{X},\mathbf{Y})]
maxϕp,θp,ϕcl,θcl,fh(f,ϕp,θp,ϕcl,θcl)+maxψ,ϕpg(ϕp,ψ).\displaystyle\leq\max_{\begin{subarray}{c}\phi^{p},\theta^{p},\phi^{cl},\theta^{cl},f\end{subarray}}h(f,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl})+\max_{\psi,\phi^{p}}g(\phi^{p},\psi).

Consider the parameters in (21). Notice that they optimize each term in the right hand side of the inequality above and are feasible in the optimization problem in left hand side of the inequality. Thus, the inequality in (22) is actually an equality. Let toptt_{\text{opt}} be the optimal value of either side of the equality.

Suppose for a proof of contradiction that the direction \rightarrow is not valid. In other words, consider a set of maximizers (fopt,ψopt,ϕoptp,θoptp,ϕoptcl,θoptcl)(f_{\text{opt}},\psi_{\text{opt}},\phi^{p}_{\text{opt}},\theta^{p}_{\text{opt}},\phi^{cl}_{\text{opt}},\theta^{cl}_{\text{opt}}) for the left hand side of the equation above that are not maximal in either term in the right hand side. Then:

topt\displaystyle t_{\text{opt}} =h(fopt,ϕoptp,θoptp,ϕoptcl,θoptcl)+g(ϕoptp,ψopt)\displaystyle=h(f_{\text{opt}},\phi^{p}_{\text{opt}},\theta^{p}_{\text{opt}},\phi^{cl}_{\text{opt}},\theta^{cl}_{\text{opt}})+g(\phi^{p}_{\text{opt}},\psi_{\text{opt}})
<maxϕp,θp,ϕcl,θcl,fh(f,ϕp,θp,ϕcl,θcl)+maxψ,ϕpg(ϕp,ψ).\displaystyle<\max_{\begin{subarray}{c}\phi^{p},\theta^{p},\phi^{cl},\theta^{cl},f\end{subarray}}h(f,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl})+\max_{\psi,\phi^{p}}g(\phi^{p},\psi).

This however contradicts the fact that the inequality (22) is an equality. ∎

Proof of Lemma 6.

We have the following inequality:

argmaxf,ϕp,θp,ϕcl,θcl𝔼𝐗𝐗[𝔼qϕp(𝐙~|𝐗)[logpf(𝐗|𝐙~)]KL(qϕp(𝐙~|𝐗),pθp(𝐙~))]\displaystyle\argmax_{f,\phi^{p},\theta^{p},\phi^{cl},\theta^{cl}}\mathbb{E}_{\mathbf{X}\sim\mathbb{P}_{\mathbf{X}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{p}}(\tilde{\mathbf{Z}}|{\mathbf{X}}),p_{\theta^{p}}(\tilde{\mathbf{Z}})\right)\Bigg]
+𝔼𝐗,𝐘𝐗,𝐘[𝔼qϕcl(𝐙~|𝐗,𝐘)[logpf(𝐗|𝐙~)]KL(qϕcl(𝐙~|𝐗,𝐘),pθcl(𝐙~|𝐘))]\displaystyle+\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{cl}}(\tilde{\mathbf{Z}}|\mathbf{X},\mathbf{Y})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{cl}}(\tilde{\mathbf{Z}}|{\mathbf{X}},\mathbf{Y}),p_{\theta^{cl}}(\tilde{\mathbf{Z}}|\mathbf{Y})\right)\Bigg]
argmaxϕp,θp,f𝔼𝐗𝐗[𝔼qϕp(𝐙~|𝐗)[logpf(𝐗|𝐙~)]KL(qϕp(𝐙~|𝐗),pθp(𝐙~))]Term 1\displaystyle\leq\underbrace{\argmax_{\begin{subarray}{c}\phi^{p},\theta^{p},f\end{subarray}}\mathbb{E}_{\mathbf{X}\sim\mathbb{P}_{\mathbf{X}}}\Bigg[\mathbb{E}_{q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{p}}(\tilde{\mathbf{Z}}|{\mathbf{X}}),p_{\theta^{p}}(\tilde{\mathbf{Z}})\right)\Bigg]}_{\text{Term 1}}
+argmaxϕcl,θcl,f𝔼𝐗,𝐘𝐗,𝐘[𝔼qϕcl(𝐙~|𝐗,𝐘)[logpf(𝐗|𝐙~)]KL(qϕcl(𝐙~|𝐗,𝐘),pθcl(𝐙~|𝐘))]Term 2.\displaystyle+\underbrace{\argmax_{\begin{subarray}{c}\phi^{cl},\theta^{cl},f\end{subarray}}\mathbb{E}_{\mathbf{X},\mathbf{Y}\sim\mathbb{P}_{\mathbf{X},\mathbf{Y}}}\Bigg[\mathbb{E}_{q_{\phi^{cl}}(\tilde{\mathbf{Z}}|\mathbf{X},\mathbf{Y})}[\log{p}_{f}(\mathbf{X}|\tilde{\mathbf{Z}})]-\mathrm{KL}\left(q_{\phi^{cl}}(\tilde{\mathbf{Z}}|{\mathbf{X}},\mathbf{Y}),p_{\theta^{cl}}(\tilde{\mathbf{Z}}|\mathbf{Y})\right)\Bigg]}_{\text{Term 2}}.

Notice that the different terms in the equation above have the common parameters ff. Thus, the inequality in the equation above is an equality if there exists an ff that is optimal for each of the terms in the relation above. Furthermore, from proof of Lemma 2, Term 1 is optimized when 𝐗=distf(𝐙~)\mathbf{X}\stackrel{{\scriptstyle\text{dist}}}{{=}}f(\tilde{\mathbf{Z}}) for 𝐙~\tilde{\mathbf{Z}} being a mixture Gaussian and qϕp(𝐙~|𝐗)=p(𝐙~|𝐗)q_{\phi^{p}}(\tilde{\mathbf{Z}}|\mathbf{X})=p(\tilde{\mathbf{Z}}|\mathbf{X}). From Lemma 4, Term 2 is maximized when 𝐗=distf(𝐙~)\mathbf{X}\stackrel{{\scriptstyle\text{dist}}}{{=}}f(\tilde{\mathbf{Z}}) for 𝐙~|𝐘=y\tilde{\mathbf{Z}}|\mathbf{Y}=y being a Gaussian distribution with appropriate covariance matrix. Consider the parameters in (21); they satisfy the properties above for the same decoder.

It remains to check that there exists a set of parameters in the right hand implication of Lemma 6 that are optimally predictive. This follows from taking the parameters (21) and noting that that the posterior samples 𝐙~|𝐗\tilde{\mathbf{Z}}|\mathbf{X} are optimally predictive. ∎

Proof of Lemma 7.

By definition, any feasible f=fBf=f^{\prime}\circ{B} satisfies:

𝐗=distfB(𝐙~)and𝐙~|𝐘=y𝒩(μy,(Dy00G)) where Dykc×kc and Gks×ks.\mathbf{X}\stackrel{{\scriptstyle\text{dist}}}{{=}}{f}^{\prime}\circ{B}(\tilde{\mathbf{Z}})~~\text{and}\,\tilde{\mathbf{Z}}|\mathbf{Y}=y\sim\mathcal{N}\left({\mu}_{y},\begin{pmatrix}{D}_{y}&0\\ 0&{G}\end{pmatrix}\right)\text{ where }D_{y}\in\mathbb{R}^{k_{c}\times k_{c}}\text{ and }G\in\mathbb{R}^{k_{s}\times k_{s}}.
Proof of 1.

Applying (fextend)1(f^{\star}_{\text{extend}})^{-1} to both sides of the relation 𝐗=distfB𝐙~\mathbf{X}\stackrel{{\scriptstyle\text{dist}}}{{=}}{f}^{\prime}\circ{B}\tilde{\mathbf{Z}} and noting that ff^{\prime} by Assumption 1.1 can be expressed as f=fextendgf^{\prime}=f^{\star}_{\text{extend}}\circ{g} for a continuous and one-to-one function g{g}, we have:

B𝐙extend=distgB𝐙~.B^{\star}\mathbf{Z}_{\text{extend}}\stackrel{{\scriptstyle\text{dist}}}{{=}}{g}\circ{B}\tilde{\mathbf{Z}}.

Since 𝐙|𝐘=y\mathbf{Z}|\mathbf{Y}=y and 𝐙~|𝐘=y\tilde{\mathbf{Z}}|\mathbf{Y}=y are Gaussian and g{g} is a continuous and one-to-one function, g{g} must be a linear map; we denote gg by the matrix Nk×kN\in\mathbb{R}^{k\times k}. By the definition of BB^{\star}, it is straightforward then to argue that B{B} must have kk^{\star} total number of linearly independent columns; these linearly independent columns are nonzero by definition. We have proven the first item in Lemma 7.

Proof of 2.

Gathering all the facts so far, we have that for any feasible f=fBf=f^{\prime}\circ B:

(23) f=fextendN;B𝐙extend=distNB𝐙~;rank(B)=kc+ks.f^{\prime}=f^{\star}_{\text{extend}}\circ N~~~;~~~B^{\star}\mathbf{Z}_{\text{extend}}\stackrel{{\scriptstyle\text{dist}}}{{=}}NB\tilde{\mathbf{Z}}~~;~~\text{rank}(B)=k_{c}+k_{s}.

Furthermore, by the objective of (20), we have that an optimal BB must have exactly k=kc+ksk=k_{c}+k_{s} total number of linearly independent nonzero columns (i.e. kk of the kk latent features have some visualization power). We have thus concluded the second item in the lemma.

Proof of 3.

Let Breducedk×kB_{\text{reduced}}\in\mathbb{R}^{k\times k^{\star}} be the non-zero columns of BB, so that B𝐙~=Breduced𝐙~reducedB\tilde{\mathbf{Z}}=B_{\text{reduced}}\tilde{\mathbf{Z}}_{\text{reduced}} where 𝐙~reducedk\tilde{\mathbf{Z}}_{\text{reduced}}\in\mathbb{R}^{k} and for every y𝒴y\in\mathcal{Y}:

𝐙~reduced|𝐘=y𝒩(μy,(Dy00G)).\tilde{\mathbf{Z}}_{\text{reduced}}|\mathbf{Y}=y\sim\mathcal{N}\left({\mu}_{y},\begin{pmatrix}{D}_{y}&0\\ 0&{G}\end{pmatrix}\right).

Here, Dy{D}_{y} is a diagonal matrix. Without loss of generality, we assume that every diagonal entry in Dy{D}_{y} has some variation across y𝒴y\in\mathcal{Y}; otherwise, we can concatenate the components that do not vary to the general matrix GG. The dimension of Dy{D}_{y} and GG corresponds to the number of core and style features that are selected by the nonzero columns of BB. Note that so far, we have only established that the dimensions of DyD_{y} and GG sum up to kk. In what follows we show that the numbers of estimated core and style features equal to kc,ksk_{c}^{\star},k_{s}^{\star}.

Let MM be the k×kk^{\star}\times k^{\star} matrix M:=(Idkc00000Idks0)NBreducedM:=\begin{pmatrix}\mathrm{Id}_{k_{c}}&0&0&0\\ 0&0&\mathrm{Id}_{k_{s}}&0\end{pmatrix}NB_{\text{reduced}}. By relation (23), 𝐙=distM𝐙~reduced\mathbf{Z}\stackrel{{\scriptstyle\text{dist}}}{{=}}M\tilde{\mathbf{Z}}_{\text{reduced}}. Since the distribution of 𝐙\mathbf{Z} is non-degenerate, MM is a non-singular matrix. Therefore, for every y𝒴y\in\mathcal{Y} we have

M1𝐙|𝐘=y𝒩(μy,(Dy00G)).\displaystyle M^{-1}\mathbf{Z}|\mathbf{Y}=y\sim\mathcal{N}\left(\mu_{y},\begin{pmatrix}{D}_{y}&0\\ 0&{G}\end{pmatrix}\right).

Following a similar analysis as in the proof of Lemma 1, we conclude that for every y𝒴y\in\mathcal{Y}, there exists an orthogonal matrix QyQ_{y} such that

(24) M=(Dy00G)1/2Qy(Dy00G)1/2.\displaystyle M=\begin{pmatrix}D_{y}^{\star}&0\\ 0&G^{\star}\end{pmatrix}^{1/2}Q_{y}\begin{pmatrix}{D}_{y}&0\\ 0&{G}\end{pmatrix}^{-1/2}.

Choosing y,y~𝒴y,\tilde{y}\in\mathcal{Y} that satisfy Assumption 1.2, relation (24) implies that

(25) A1/2QyA1/2 is an orthogonal matrix.{A^{\star}}^{-1/2}{Q}_{y}A^{1/2}\text{ is an orthogonal matrix}.

Here, A:=(A100A2)A^{\star}:=\begin{pmatrix}A^{\star}_{1}&0\\ 0&A^{\star}_{2}\end{pmatrix} where A1=Dy[Dy~]1A^{\star}_{1}=D_{y}^{\star}[D_{\tilde{y}}^{\star}]^{-1} and A2=IdA^{\star}_{2}=\mathrm{Id} and A=(A100A2)A=\begin{pmatrix}A_{1}&0\\ 0&A_{2}\end{pmatrix}, where A1=DyDy~1A_{1}={D}_{y}{D}_{\tilde{y}}^{-1} and A2=IdA_{2}=\mathrm{Id}. Relation (25) implies that:

QyA=AQy.Q_{y}A=A^{\star}{Q}_{y}.

Notice that the singular values of QyAQ_{y}A are equal to the singular values of AA, since product by orthogonal matrices preserves the singular values. Similarly, singular values of AQyA^{\star}{Q}_{y} are equal to the singular values of AA^{\star}. Thus, AA^{\star} and AA have the same singular values. In other words, since AA^{\star} has ksk_{s}^{\star} singular values equal to one and kck_{c}^{\star} singular values not equal to one (by Assumption 1.2), A1A_{1} must have exactly kck_{c}^{\star} diagonal elements not equal to one. This allows us to conclude that the dimensions of DyD_{y} are greater than or equal to kck_{c}^{\star}.

From the analysis above, we can partition the matrix AA as follows: (A~100Id)\begin{pmatrix}\tilde{A}_{1}&0\\ 0&\mathrm{Id}\end{pmatrix} where A~1\tilde{A}_{1} is a diagonal matrix of dimension kc×kck_{c}^{\star}\times k_{c}^{\star} with all distinct entries. Appealing to Lemma 3, we then conclude that Qy=(P00H)Q_{y}=\begin{pmatrix}P&0\\ 0&H\end{pmatrix} for a permutation matrix Pkc×kcP\in\mathbb{R}^{k_{c}^{\star}\times{k}_{c}^{\star}}, diagonal matrix Dkc×kcD\in\mathbb{R}^{k_{c}^{\star}\times k_{c}^{\star}} and a non-singular matrix Hks×ksH\in\mathbb{R}^{k_{s}^{\star}\times k_{s}^{\star}}. Combining this with the expression of MM (24) and the fact that the dimensions of DyD_{y} are greater than or equal to kck_{c}^{\star}, we conclude that MM takes the form:

M=(PD00H).M=\begin{pmatrix}PD&0\\ 0&H\end{pmatrix}.

Finally, combining the relation above with (23) and the fact that (0Idkckc00000Idksks)NB=0\begin{pmatrix}0&\mathrm{Id}_{k_{c}-k_{c}^{\star}}&0&0\\ 0&0&0&\mathrm{Id}_{k_{s}-k_{s}^{\star}}\end{pmatrix}NB=0 yields the third item of the lemma.

Proof of 4.

The final component of the lemma also follows from the relation 𝐙=distM𝐙~reduced\mathbf{Z}\stackrel{{\scriptstyle\text{dist}}}{{=}}M\tilde{\mathbf{Z}}_{\text{reduced}}. ∎

A.4 Analysis of cl\mathcal{L}_{cl} in the noisy setting

In this section, our objective is to show that the density qϕcl(𝐙~|𝐗,𝐘)q_{\phi^{cl}}(\tilde{\mathbf{Z}}|\mathbf{X},\mathbf{Y}) matches the density p(PD𝐙c|𝐗,𝐘)p^{\star}({PD\mathbf{Z}_{c}\allowbreak|\mathbf{X},\mathbf{Y}}) for some kc×kck_{c}^{\star}\times k_{c}^{\star} permutation matrix and kc×kck_{c}^{\star}\times k_{c}^{\star} diagonal matrix. Throughout the following discussion, p()p^{\star}(\cdot) represents the ground truth density corresponding to a specified random variable.

In addition to Assumptions 1, analysis of the noisy setting requires the following mild assumption:

Assumption 3 : the Fourier transform of the density of ϵ is non-negative everywhere.\displaystyle\text{Assumption 3 : the Fourier transform of the density of }\epsilon\text{ is non-negative everywhere}.

It is straightforward to extend the characterization in Lemma 4 to the noisy case and conclude that 𝐗=distf(𝐙)+ϵ=distf(𝐙~)+ϵ\mathbf{X}\stackrel{{\scriptstyle\text{dist}}}{{=}}f^{\star}(\mathbf{Z})+\epsilon\stackrel{{\scriptstyle\text{dist}}}{{=}}{f}(\tilde{\mathbf{Z}})+\epsilon where 𝐙~|𝐘=y𝒩(μy,(Dy00G))\tilde{\mathbf{Z}}|\mathbf{Y}=y\sim\mathcal{N}\left({\mu}_{y},\begin{pmatrix}{D}_{y}&0\\ 0&{G}\end{pmatrix}\right). Here, DyD_{y} is a kc×kck_{c}^{\star}\times k_{c}^{\star} diagonal matrix and GG is a ks×ksk_{s}^{\star}\times k_{s}^{\star} matrix. Since 𝐙~ϵ\tilde{\mathbf{Z}}\mathchoice{\mathrel{\hbox to0.0pt{$\displaystyle\perp$\hss}\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{$\textstyle\perp$\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptstyle\perp$\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptscriptstyle\perp$\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}\epsilon, 𝐙ϵ\mathbf{Z}\mathchoice{\mathrel{\hbox to0.0pt{$\displaystyle\perp$\hss}\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{$\textstyle\perp$\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptstyle\perp$\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptscriptstyle\perp$\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}\epsilon, we have that:

[p(f(𝐙)+ϵ)]\displaystyle\mathcal{F}[p({{f}^{\star}(\mathbf{Z})+\epsilon})] =[p(ϵ)][p(f(𝐙))]\displaystyle=\mathcal{F}[p(\epsilon)]\mathcal{F}[p({f^{\star}(\mathbf{Z})})]
[p(f(𝐙~)+ϵ)]\displaystyle\mathcal{F}[p({{f}(\tilde{\mathbf{Z}})+\epsilon})] =[p(ϵ)][p(f(𝐙~))],\displaystyle=\mathcal{F}[p(\epsilon)]\mathcal{F}[p({{f}(\tilde{\mathbf{Z}}))}],

where []\mathcal{F}[\cdot] represents the Fourier transform and p()p({\cdot}) represents the density function with respect to a random variable. Since p(f(𝐙)+ϵ)=p(f(𝐙~)+ϵ)p({{f}^{\star}(\mathbf{Z})+\epsilon})=p({{f}(\tilde{\mathbf{Z}})+\epsilon}), appealing to Assumption 3, we have that [p(f(𝐙))]=[p(f(𝐙~))]\mathcal{F}[p({{f}^{\star}({\mathbf{Z}})})]=\mathcal{F}[p({{f}(\tilde{\mathbf{Z}})})], or equivalently, f(𝐙~)=distf(𝐙){f}(\tilde{\mathbf{Z}})\stackrel{{\scriptstyle\text{dist}}}{{=}}f^{\star}(\mathbf{Z}). We then have from the chain of equalities in (A.2.2) that f=f(PD00N)1{f}=f^{\star}\circ\begin{pmatrix}PD&0\\ 0&N\end{pmatrix}^{-1}. Combining this with the fact that f(𝐙~)=distf(𝐙){f}(\tilde{\mathbf{Z}})\stackrel{{\scriptstyle\text{dist}}}{{=}}f^{\star}(\mathbf{Z}), we conclude that 𝐙~=dist(PD00N)𝐙\tilde{\mathbf{Z}}\stackrel{{\scriptstyle\text{dist}}}{{=}}\begin{pmatrix}PD&0\\ 0&N\end{pmatrix}\mathbf{Z}. Notice that:

(26) p(z~c|x,y)\displaystyle{p}(\tilde{z}_{c}|x,y) =p(z~c,z~s|x,y)zs=(a)pf(x|z~c,z~s)p(z~c|y)p(z~s)z~sp(x|y)=(b)pf(x|z~c;Nzs)p(z~c|y)p(zs)zsp(x|y),\displaystyle=\int{p}(\tilde{z}_{c},\tilde{z}_{s}|x,y)\partial{z_{s}}{\stackrel{{\scriptstyle(a)}}{{=}}}\frac{\int{p}_{f}(x|\tilde{z}_{c},\tilde{z}_{s}){p}(\tilde{z}_{c}|y){p}(\tilde{z}_{s})\partial{\tilde{z}_{s}}}{p^{\star}(x|y)}{\stackrel{{\scriptstyle(b)}}{{=}}}\frac{\int{p}_{f}\left(x|\tilde{z}_{c};N{z}_{s}\right){p}(\tilde{z}_{c}|y)p^{\star}({z}_{s})\partial{{z}_{s}}}{p^{\star}(x|y)},

The equality =(a){\stackrel{{\scriptstyle(a)}}{{=}}} follows from 𝐙c𝐙s\mathbf{Z}_{c}\mathchoice{\mathrel{\hbox to0.0pt{$\displaystyle\perp$\hss}\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{$\textstyle\perp$\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptstyle\perp$\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptscriptstyle\perp$\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}\mathbf{Z}_{s} and the equality =(b){\stackrel{{\scriptstyle(b)}}{{=}}} follows from the change of variables Nzsz~sN{z}_{s}\leftarrow\tilde{z}_{s}.

Now we examine the posterior density of PD𝐙c|𝐗,𝐘PD\mathbf{Z}_{c}|\mathbf{X},\mathbf{Y}. Appealing to the same line of reasoning as (26), we have that:

(27) p(zc|x,y)\displaystyle{p}^{\star}(z_{c}|x,y) =p(zc,zs|x,y)zs=(a)p(x|zc,zs)p(zc|y)p(zs)zsp(x|y)\displaystyle=\int p^{\star}(z_{c},z_{s}|x,y)\partial{z_{s}}{\stackrel{{\scriptstyle(a)}}{{=}}}\frac{\int{p}^{\star}(x|z_{c},z_{s}){p}^{\star}(z_{c}|y)p^{\star}(z_{s})\partial{z_{s}}}{p^{\star}(x|y)}
=(b)p(x|D1P1zc;zs)p(zc|y)p(zs)zsp(x|y)\displaystyle{\displaystyle\stackrel{{\scriptstyle(b)}}{{=}}}\frac{\int p^{\star}(x|D^{-1}P^{-1}z_{c};z_{s}){p}^{\star}(z_{c}|y){p}^{\star}(z_{s})\partial{z_{s}}}{p^{\star}(x|y)}
=(c)pf(x|zc;Nzs)p(zc|y)p(zs)zsp(x|y)=(d)pf(x|zc;Nzs)p(z~c|y)p(zs)zsp(x|y),\displaystyle{\displaystyle\stackrel{{\scriptstyle(c)}}{{=}}}\frac{\int{p}_{f}\left(x|z_{c};N{z}_{s}\right){p}^{\star}(z_{c}|y)p^{\star}({z}_{s})\partial{{z}_{s}}}{p^{\star}(x|y)}{\stackrel{{\scriptstyle(d)}}{{=}}}\frac{\int{p}_{f}\left(x|z_{c};N{z}_{s}\right){p}(\tilde{z}_{c}|y)p^{\star}({z}_{s})\partial{{z}_{s}}}{p^{\star}(x|y)},

where p(x|zc,zs){p}^{\star}(x|z_{c},z_{s}) is the density of the distribution 𝐗|PD𝐙c,𝐙s\mathbf{X}|PD\mathbf{Z}_{c},\mathbf{Z}_{s} and p(zc|y){p}^{\star}(z_{c}|y) is the density of the distribution PD𝐙c|𝐘PD\mathbf{Z}_{c}|\mathbf{Y}. Here, the equality =(a){\stackrel{{\scriptstyle(a)}}{{=}}} follows from PD𝐙c𝐙sPD\mathbf{Z}_{c}\mathchoice{\mathrel{\hbox to0.0pt{$\displaystyle\perp$\hss}\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{$\textstyle\perp$\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptstyle\perp$\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptscriptstyle\perp$\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}\mathbf{Z}_{s}, =(b){\stackrel{{\scriptstyle(b)}}{{=}}} follows from the density 𝐗|(PD𝐙c,𝐙s)=p(𝐗|(D1P1𝐙c;𝐙s))\mathbf{X}|(PD\mathbf{Z}_{c},\mathbf{Z}_{s})=p^{\star}(\mathbf{X}|(D^{-1}P^{-1}\mathbf{Z}_{c};\mathbf{Z}_{s})), and =(c){\stackrel{{\scriptstyle(c)}}{{=}}} follows from the relationship between f{f} and ff^{\star}. Finally, =(d){\stackrel{{\scriptstyle(d)}}{{=}}} follows from the equality p(zc|y)=p(z~c|y)p^{\star}(z_{c}|y)={p}(\tilde{z}_{c}|y) since PD𝐙c=dist𝐙~cPD\mathbf{Z}_{c}\stackrel{{\scriptstyle\text{dist}}}{{=}}\mathbf{\tilde{Z}}_{c} (due to the relation between 𝐙~,𝐙{\tilde{\mathbf{Z}},\mathbf{Z}} and that they are both Gaussian random variables after conditioning on a label). Comparing (26) and (27), we have the desired result.

Appendix B Comparisons with Khemakhem et al. [2020]

Previously, Khemakhem et al. [2020] proved that supervision enables identifiability of the latent features. The only similarity of our results with this work can be found in Lemma 1, although our guarantees distinguish core and style features and allow for more relaxed assumptions. In particular, while the target label can take two distinct values for Assumption 1.2 to be satisfied, the assumption in Khemakhem et al. [2020] – when specialized to the Gaussian prior – requires that the target label takes at least 2k2k distinct values where kk is the number of the latent features. On all the remaining theoretical and methodological aspects, our setting differs substantially from Khemakhem et al. [2020]. Importantly, while our method can be employed for interpretable predictions, their proposed I-VAE is simply not applicable in our setting, as it requires labels as inputs and thus cannot perform prediction. Furthermore, our methodology and theoretical guarantees (see Theorem 1) covers the case of overparameterized latent spaces, i.e. the case in which the model allows for mode latent features than the ground truth ones. This is another practically relevant novelty, as in general the number of ground truth features is unknown.

Appendix C Implementation details

C.1 Datasets and pre-processing

For all the datasets, pixels are transformed to have values between 0 and 1 and the image size of 64x64 is kept. We randomly fix train and test set with sizes respectively of 60%60\% and 40%40\% for MPI3D, 90%90\% and 10%10\% for shapes3D, SmallNORB and Plantvillage datasets. For the Chest X-ray dataset, we use the pre-defined train test splits.

C.2 Hyperparameter selection

Hyperparameter selection has been performed via visual inspection of the traversals on the training set. This is a correct validation of the algorithm, since no test data has been utilized for model selection. Furthermore, it reflects the procedure that we propose in the paper, where model selection is carried out with a human expert. All the traversals and results we report are then obtained on the test set as usual.

C.3 Hyper-parameters and training configuration

Most hyper-parameters and training configurations are kept fixed across datasets. An overview of hyper-parameter settings is shown in Table 2. We set a fixed dimension of (𝐙c,𝐙s)=(10,20)(\mathbf{Z}_{c},\mathbf{Z}_{s})=(10,20). Notice that, similar to the real-life setting where the exact dimension of the true underlying latent features is unknown we allow the latent dimension of core and style latent features to be higher than theoretically needed for all the synthetic datasets.
We set the following values of (prediction term weight, group sparsity regularization) for the experiments: (50, 0.05) for MPI3D; (10, 0.0001) for Shapes3D; (50, 0.01) for SmallNORB; (200, 0.01) for PlantVillage; (200, 0.05) for ChestXRay.

Table 2: Hyperparameter settings for all datasets.
Hyperparameter Value
Core latent space dimension 10
Style latent space dimension 20
Batch size 132
Optimizer ADAM
Learning rate 5e-4
Decoder type Bernoulli
Prediction loss binary cross entropy
Training steps 150,000150,000

C.4 CLAP model architecture

The architecture of CLAP consists of five main modules that share weights where appropriate. The five modules are: the encoder, decoder and predictor in the prediction VAE, and the encoder and decoder in the concept-learning VAE.

Predictor The predictor in the prediction VAE is a simple linear predictor mapping from core latent features to the labels where each label has a separate linear predictor.

Decoders The decoders in both the prediction VAE and the concept-learning VAE share weights with an architecture as depicted on the right in Table 3.

Encoders The encoder in the prediction VAE consists of a backbone with architecture as depicted on the left in Table 3 and two parallel fully connected layers. The output of the backbone is fed into the two separate fully connected layers where one is learning the posterior distribution of core latent features and one is learning the posterior distribution of style latent features.

The encoder in the concept-learning VAE shares all weights that are associated with style latent features with the encoder of the prediction VAE. In particular, the weights of the backbone and fully connected layer that output the posterior distribution of style latent features are shared across both. No weights are shared for that part of the concept-learning VAE associated with core latent features. Thus, a separate backbone and fully connected layer are used to learn the posterior distribution of core latent features in the concept-learning VAE. The label yy is incorporated in the concept-learning VAE by feeding it jointly with the output of the backbone to the fully connected layer that outputs the posterior distribution of the core latent features.

Table 3: Encoder backbone and decoder architecture. Abbreviations: cc denotes the channel size of the input image, k~c\tilde{k}_{c} the dimension of core latent factors, and k~s\tilde{k}_{s} the dimension of style latent factors. Layer parameters: For fully connected layers the first parameter denotes input dimension, and the second parameter output dimension. For LeakyReLU the parameter denotes its negative slope. For dropout layers the parameter denotes the probability that a whole channel is dropped out (2D dropout). For convolutional and transposed convolutional layers the parameters can be interpreted as follows: output channel size, kernel size, stride, padding.
Encoder backbone Decoder
Input size: 6464 x 6464 x cc Input size: 30=k~c+k~s30=\tilde{k}_{c}+\tilde{k}_{s}
Output size: 256 Output size: 6464 x 6464 x cc
Layer Parameters Layer Parameters
Conv 64, 3, 2, 1 FC 30, 512
LeakyReLU 0.01 ReLU
Dropout 0.1 FC 512, 1024
Conv 64, 3, 2, 1 ConvTranspose 64, 3, 2, 0
LeakyReLU 0.01 ReLU
Dropout 0.1 ConvTranspose 64, 3, 2, 1
Conv 64, 3, 2, 1 ReLU
LeakyReLU 0.01 ConvTranspose 64, 3, 2, 1
Dropout 0.1 ReLU
Conv 64, 3, 2, 1 ConvTranspose cc, 4, 2, 2
LeakyReLU 0.01
Dropout 0.1
Flatten
FC 1024, 256

C.5 SENN and CCVAE model architecture

For SENN, we employ the same architecture as for CLAP. In particular, we utilize the encoder backbone presented in Table 3, and map the encoding obtained from the backbone to the core and style features via two parallel linear layers. The decoder utilized is the same as in Table. Furthermore, SENN employs an additional mapping from the input 𝐗\mathbf{X} to the prediction weights utilized on top of the core features. This mapping is given by a neural network with structure Conv(32, 4, 2, 0), MaxPool(2, 2), ReLU, Conv(32, 4, 2, 0), MaxPool(2, 2), ReLU. To map to the prediction weights, we flatten and then utilize two linear layers with output dimension 288288 and 128128 and activations ReLU and Tanh respectively.

For CCVAE, we employ the publicly available architecture from the authors at
https://github.com/thwjoy/ccvae. We note that the encoder-decoder pair is roughly equivalent to that utilized for CLAP.

Appendix D Details on synthetic datasets

D.1 MPI3D traversals and details

The MPI3D dataset is an artificial dataset of images where the ground truth factors of variation are object color, shape and size, as well height of the camera, background color, horizontal and vertical axes of the camera. In Figure 5, we present some example images from the dataset.
We create synthetic labels according to the following rules: for the first label, y=1y=1 if color in {white, green, brown, olive} and shape in {cone, cube, cylinder, sphere} and size in {small}, and y=0y=0 otherwise; for the second label, y=1y=1 if color in {green, red, blue} and size in {large}, and y=0y=0 otherwise; for the third label, y=1y=1 if shape in {cone, pyramid}, and y=0y=0 otherwise; for the final label, y=1y=1 if shape in {cylinder, hexagonal, pyramid}, and y=0y=0 otherwise.
We present additional MPI3D traversals of CLAP for 𝐙c\mathbf{Z}_{c} (first row) and 𝐙s\mathbf{Z}_{s} (second row) in Figure 6.

Refer to caption
Refer to caption
Refer to caption
Figure 5: Some example images from the MPI3D dataset.
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Figure 6: CLAP traversals of 𝐙c\mathbf{Z}_{c} (first row) and 𝐙s\mathbf{Z}_{s} on MPI3D dataset.

D.2 Shapes3D

The Shapes3D dataset is composed of synthetic images of different 3D objects. The ground truth factors of variations are floor hue, background wall hue, orientation, and the object’s hue, scale, and shape. In Figure 7, we present some example images from the dataset.
We rescale all the factors of variation, which are already discrete, to take integer values starting from 0. In particular, hue and scale of the object have values in [0,9][0,9] and are used to create the synthetic labels. We create synthetic labels according to the following rules: for the first label, y=1y=1 if scale 5\leq 5 and hue 3\geq 3, y=0y=0 otherwise; for the second label, y=1y=1 if scale 3\geq 3 and hue 3\geq 3, y=0y=0 otherwise; for the second label, y=1y=1 if scale 4\leq 4 and hue 2\geq 2, y=0y=0 otherwise; for the final label, y=1y=1 if scale 5\geq 5, y=0y=0 otherwise.
We present CLAP traversals on the Shapes3D dataset for 𝐙c\mathbf{Z}_{c} (first row) and 𝐙s\mathbf{Z}_{s} (second row) in Figure 8.

Refer to caption
Refer to caption
Refer to caption
Figure 7: Some example images from the Shapes3D dataset.
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Figure 8: CLAP traversals of 𝐙c\mathbf{Z}_{c} (first row) and 𝐙s\mathbf{Z}_{s} on the Shapes3D dataset.

D.3 SmallNORB

The SmallNORB dataset is a dataset of black and white images. In Figure 9, we present some example images from the dataset.
The ground truth factors of variation are the object (9 classes), elevation of the camera (0 to 8), azimuth (even values from 0 to 34) and lightning condition (0 to 5). We create synthetic labels according to the following rules: for the first label, y=1y=1 if object type 5\geq 5 and lightning 3\geq 3, and y=0y=0 otherwise; for the second label, y=1y=1 if object type 5\geq 5 and lightning <3<3, and y=0y=0 otherwise; for the third label, y=1y=1 if object type <5<5 and lightning 3\geq 3, and y=0y=0 otherwise; for the final label, y=1y=1 if lightning <3<3, and y=0y=0 otherwise.
We present CLAP traversals on the SmallNORB dataset for 𝐙c\mathbf{Z}_{c} (first row) and 𝐙s\mathbf{Z}_{s} (second row) in Figure 10.

Refer to caption
Refer to caption
Refer to caption
Figure 9: Some example images from the SmallNORB dataset.
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Figure 10: CLAP traversals of 𝐙c\mathbf{Z}_{c} (first row) and 𝐙s\mathbf{Z}_{s} on the SmallNORB dataset.

Appendix E Ablation studies

E.1 No Group Sparsity

In Figure 11 we present traversals for CLAP trained without group sparsity, i.e. ρn(f,ψ)=0\rho_{n}(f,\psi)=0.

Refer to caption
Refer to caption
Refer to caption
Figure 11: No-group-sparsity CLAP traversals of 𝐙c\mathbf{Z}_{c} on the MPI3D dataset.

E.2 Prediction-Only Model

In Figure 12 we present traversals for CLAP trained only on the prediction part of the loss in Eq. 3.

Refer to caption
Refer to caption
Refer to caption
Figure 12: Prediction-only CLAP traversals of 𝐙c\mathbf{Z}_{c} on the MPI3D dataset.

E.3 MPI3D with One Label Only

In Figure 13 we present traversals for CLAP trained on the MPI3D dataset where only the first label is made available for supervision.

Refer to caption
Refer to caption
Refer to caption
Figure 13: Prediction-only CLAP traversals of 𝐙c\mathbf{Z}_{c} on the MPI3D dataset with only one label.

Appendix F CCVAE on Shapes3D

In Figure 14 we show the traversals of CCVAE on the Shapes3D dataset.

Refer to caption
Refer to caption
Refer to caption
Figure 14: CCVAE traversals of 𝐙c\mathbf{Z}_{c} on the Shapes3D dataset.

Appendix G Chest X-ray traversals

We include the complete CLAP traversals on the Chest X-ray dataset in Figure 15.

Figure 15: Complete CLAP traversals, corresponding to those shown in Figure 4(a).

We present additional Chest X-ray traversals of CLAP for 𝐙c\mathbf{Z}_{c} (first row) and 𝐙s\mathbf{Z}_{s} (second row) in Figure 16.

Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Figure 16: CLAP traversals of 𝐙c\mathbf{Z}_{c} (first row) and 𝐙s\mathbf{Z}_{s} on the Chest X-ray dataset.

G.1 Glossary and Reading of Chest X-ray

In Figure 17 we show the main thorax parts used for the analysis of the CLAP traversals. We also remark that left and right are intended from the patient’s viewpoint, which is reversed with respect to that of the reader.

Refer to caption
(a) Heart
Refer to caption
(b) Lungs
Refer to caption
(c) Liver and stomach
Figure 17: Chest X-ray annotations.

Appendix H PlantVillage traversals

In Figure 18 we present traversals of CLAP for 𝐙c\mathbf{Z}_{c} (first row) and 𝐙s\mathbf{Z}_{s} (second row) on the PlantVillage dataset [Hughes et al., 2015]. The dataset includes various plants’ leaves, we utilize the 10 binary labels (9 diseases plus healthy or not) of the tomato leaves. We include a magnified figure with human interpretations in Figure 19.

Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Figure 18: CLAP traversals of 𝐙c\mathbf{Z}_{c} (first row) and 𝐙s\mathbf{Z}_{s} on the PlantVillage dataset.
Refer to caption
Figure 19: Traversals and human intepretations of CLAP on the PlantVillage dataset. We include prediction weights for the Bacterial Spot and Yellow Leaf diseases.