arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:1806.01754v1 [stat.ML] 05 Jun 2018

Neural-Kernelized Conditional Density Estimation

Hiroaki Sasaki Email: hsasaki@is.naist.jp Affiliation: Div. of Info. Sci.NAIST, Japan Affiliation: Gatsby UnitUCL, UK    Aapo Hyvärinen Email: aapo.hyvarinen@helsinki.fi Affiliation: Gatsby UnitUCL, UK Affiliation:  Dept. of Comp. Sci.Univ. Helsinki, Finland
Abstract

Conditional density estimation is a general framework for solving various problems in machine learning. Among existing methods, non-parametric and/or kernel-based methods are often difficult to use on large datasets, while methods based on neural networks usually make restrictive parametric assumptions on the probability densities. Here, we propose a novel method for estimating the conditional density based on score matching. In contrast to existing methods, we employ scalable neural networks, but do not make explicit parametric assumptions on densities. The key challenge in applying score matching to neural networks is computation of the first- and second-order derivatives of a model for the log-density. We tackle this challenge by developing a new neural-kernelized approach, which can be applied on large datasets with stochastic gradient descent, while the reproducing kernels allow for easy computation of the derivatives needed in score matching. We show that the neural-kernelized function approximator has universal approximation capability and that our method is consistent in conditional density estimation. We numerically demonstrate that our method is useful in high-dimensional conditional density estimation, and compares favourably with existing methods. Finally, we prove that the proposed method has interesting connections to two probabilistically principled frameworks of representation learning: Nonlinear sufficient dimension reduction and nonlinear independent component analysis.

   

1 Introduction

Given observations of two random variables 𝒚\bm{y} and 𝒙\bm{x}, estimating the conditional probability density function of 𝒚\bm{y} given 𝒙\bm{x} is a general framework for solving various problems in machine learning. In particular, when the conditional density p(𝒚|𝒙)p(\bm{y}|\bm{x}) is multimodal, the conventional prediction by the conditional mean of 𝒚\bm{y} given 𝒙\bm{x} is rather useless, and conditional density estimation becomes very useful (Carreira-Perpiñán, 2000; Einbeck and Tutz, 2006; Chen et al., 2016). Also, in regression problems where noise is heavy-tailed or asymmetric, the conditional mean is not necessarily a suitable quantity for prediction, and again, one may want to estimate the conditional density p(𝒚|𝒙)p(\bm{y}|\bm{x}) (Yao et al., 2012; Feng et al., 2017).

However, the importance of conditional density estimation is not limited to supervised learning. A well-known example is structure estimation in graphical models (Bishop, 2006). Furthermore, conditional density estimation seems to be closely related to representation learning (or feature learning), which has recently received a great deal of attention due to the success of deep neural networks (Bengio et al., 2013). For example, sufficient dimension reduction (SDR) is a rigorous framework for supervised dimension reduction based on the conditional density, where the goal is to estimate a lower-dimensional representation of 𝒙\bm{x} without losing information to predict 𝒚\bm{y} (Li, 1991; Cook, 1998). In addition, nonlinear independent component analysis (ICA) provides a principled way for representation learning in unsupervised learning, which is aimed at recovering latent nonlinear sources (or representation) that generated the input data 𝒙\bm{x}. Hyvärinen and Morioka (2016) recently proposed a nonlinear ICA method with a rigorous proof of recovering the sources (i.e., identifiability) where the conditional probability density of 𝒙\bm{x} given time-segment labels is estimated via logistic regression. Thus, we see that conditional density estimation is closely related to representation learning as well. In this paper, we restrict ourselves to the case where 𝒚dy\bm{y}\in\mathbb{R}^{d_{\mathrm{y}}} and 𝒙dx\bm{x}\in\mathbb{R}^{d_{\mathrm{x}}} are both continuous-valued.

In a nonparametric setting, a number of methods for conditional density estimation have been proposed. Fan et al. (1996) estimates conditional densities based on a local polynomial expansion. However, it is known that the local polynomial expansion does not scale well with the dimensionality of data. Sugiyama et al. (2010) proposed another method called the least-squares conditional density estimation (LSCDE), which directly fits a kernel model to the true conditional density ratio under the squared loss. Another method with reproducing kernels has been proposed recently based on the Fisher divergence, estimating conditional densities up to their partition functions (Arbel and Gretton, 2018). A drawback is that since these methods rely on reproducing kernels, it is not easy to apply them to large datasets. The Nyström approximation (Rudi et al., 2015), where only a subset of data samples is used as the centers of kernel functions, is a remedy to make kernel methods more scalable, but it may not allow us to accurately estimate highly complex functions (Bengio et al., 2006), especially with high-dimensional data.

To accurately estimate conditional densities, we need models which have high expressive power, yet are scalable to a large amount of data—such as deep neural networks. However, since such a model is often very complex, it may be almost impossible to compute the partition function of the conditional density, which is the fundamental challenge in learning deep neural networks (Goodfellow et al., 2016, Chapter 18). Presumably due to this reason, some previous work has combined neural networks with a parametric density model: The mixture density network (MDN) (Bishop, 1994) employs a mixture model for the conditional density, and each parameter in the mixture density model is estimated as a feedforward neural network. Another approach is based on variational methods (Tang and Salakhutdinov, 2013; Sohn et al., 2015), which also makes parametric assumptions on the densities. Although these methods may work rather well in some applications, the parametric assumption on the densities seems too restrictive to us.

In this paper, we propose a novel method of estimating a conditional density function up to the partition function. In stark contrast to previous work, we use neural networks but do not make explicit parametric assumptions on the probability densities. Our approach is to employ the Fisher divergence, and more precisely its computation by score matching (Cox, 1985; Hyvärinen, 2005; Sasaki et al., 2014; Sriperumbudur et al., 2017), for conditional density estimation. However, the significant challenge is that score matching requires us to compute the first- and second-order derivatives of the model with respect to each coordinate in 𝒚\bm{y}, and thus it is difficult to apply to learning neural networks (Martens et al., 2012). Here, we tackle this challenge by combining the benefits of the neural network approach with those of reproducing kernel Hilbert spaces (RKHS). Basically, we develop a neural-kernelized approach in which the dependence of the conditional density on 𝒚\bm{y} is modelled in an RKHS and the dependence on 𝒙\bm{x} by a neural network. This means the derivatives only need to be computed in the RKHS, which is computationally easy, while the neural network part still allows for powerful deep representation learning to happen in high-dimensional spaces and with big data sets. Since 𝒚\bm{y} usually has much lower dimension than 𝒙\bm{x} as seen especially in supervised learning problems, our method is efficient in many applications of conditional density estimation.

We prove that our function approximator following the neural-kernelized approach has the universal approximation capability under certain conditions, and thus potentially approximates a wide range of continuous functions of 𝒚\bm{y} and 𝒙\bm{x}. We further prove that our method for conditional density estimation is consistent. In artificial and benchmark data comparisons based on conditional likelihood, our method is demonstrated to be useful in high-dimensional conditional density estimation, and compares favourably with competing methods. Finally, we explore very interesting connections of our method to representation learning. It turns out that under some conditions, our method for conditional density estimation automatically provides novel methods for two different principled frameworks related to representation learning: nonlinear SDR and nonlinear ICA. More specifically, the neural network in our model provides a useful lower-dimensional representation as in SDR, while it recovers the latent independent sources as in ICA.

2 Neural-Kernelized Conditional Density Estimator

We start by formulating the problem of conditional density estimation. Then, we propose a simple function approximation framework, and validate it using the well-known concept of universal approximation capability. Next, a statistical divergence is proposed based on score matching. Finally, a practical learning algorithm is developed by combining neural networks with reproducing kernels, together with the score matching divergence.

Problem Formulation:

Suppose that we are given TT pairs of data samples drawn from the joint distribution with density p(𝒚,𝒙)p(\bm{y},\bm{x}):

𝒟:={(𝒚(t),𝒙(t))|𝒚(t)=(y1(t),,ydy(t)),𝒙(t)=(x1(t),,xdx(t))}t=1T,\displaystyle\mathcal{D}:=\left\{(\bm{y}(t)^{\top},\bm{x}(t)^{\top})^{\top}~|~\bm{y}(t)=(y_{1}(t),\dots,y_{d_{\mathrm{y}}}(t))^{\top},\bm{x}(t)=(x_{1}(t),\dots,x_{d_{\mathrm{x}}}(t))^{\top}\right\}_{t=1}^{T}, (1)

where 𝒙(t)\bm{x}(t) and 𝒚(t)\bm{y}(t) denote the tt-th observations of 𝒙\bm{x} and 𝒚\bm{y}, respectively, and dxd_{\mathrm{x}} and dyd_{\mathrm{y}} denote the dimensions of 𝒙\bm{x} and 𝒚\bm{y}, respectively. For example, in supervised learning, 𝒚\bm{y} would be the output data. We will also consider the case of unsupervised learning, where following Hyvärinen and Morioka (2016), 𝒚\bm{y} could a time index (more on this below). Our primary interest is to estimate the logarithmic conditional density of 𝒚\bm{y} given 𝒙\bm{x} up to the partition function from 𝒟\mathcal{D}:

logp(𝒚|𝒙)=logq(𝒚|𝒙)logZ(𝒙),\displaystyle\log p(\bm{y}|\bm{x})=\log q(\bm{y}|\bm{x})-\log Z(\bm{x}), (2)

where qq is an unnnormalized conditional density, and Z(𝒙)Z(\bm{x}) is the partition function.

Function Approximation Framework:

In this paper, we propose a function approximation framework where we estimate logq(𝒚|𝒙)\log q(\bm{y}|\bm{x}) under the following form:

logq(𝒚|𝒙)=𝒘(𝒚)𝒉(𝒙)=i=1dwi(𝒚)hi(𝒙),\displaystyle\log q(\bm{y}|\bm{x})=\bm{w}(\bm{y})^{\top}\bm{h}(\bm{x})=\sum_{i=1}^{d}w_{i}(\bm{y})h_{i}(\bm{x}), (3)

where 𝒘(𝒚)=(w1(𝒚),,wd(𝒚))\bm{w}(\bm{y})=(w_{1}(\bm{y}),\dots,w_{d}(\bm{y}))^{\top} and 𝒉(𝒙)=(h1(𝒙),,hd(𝒙))\bm{h}(\bm{x})=(h_{1}(\bm{x}),\dots,h_{d}(\bm{x}))^{\top} are vector-valued functions.

The model (3) in our framework may seem to be of a restricted form, and unable to express general continuous functions of 𝒚\bm{y} and 𝒙\bm{x}. However, we next prove that the model can actually approximate a wide range of continuous functions. To this end, we employ the well-known concept of universal approximation capability:

Definition 1 (Universal approximation capability).

Let 𝒞(𝒳)\mathcal{C}(\mathcal{X}) be the set of all continuous functions on a domain 𝒳\mathcal{X}. Then, a set of functions on 𝒳\mathcal{X}, (𝒳)\mathcal{F}(\mathcal{X}) has the universal approximation capability to 𝒞(𝒳)\mathcal{C}(\mathcal{X}) if (𝒳)\mathcal{F}(\mathcal{X}) is a dense subset of 𝒞(𝒳)\mathcal{C}(\mathcal{X}), i.e., for all function g𝒞(𝒳)g\in\mathcal{C}(\mathcal{X}) and ϵ>0\epsilon>0, there always exists f(𝒳)f\in\mathcal{F}(\mathcal{X}) such that sup𝐱𝒳|f(𝐱)g(𝐱)|ϵ\sup_{\bm{x}\in\mathcal{X}}|f(\bm{x})-g(\bm{x})|\leq\epsilon.

Let us express two sets of functions on domains 𝒚𝒴\bm{y}\in\mathcal{Y} and 𝒙𝒳\bm{x}\in\mathcal{X} by wiy(𝒴)w_{i}\in\mathcal{F}_{\mathrm{y}}(\mathcal{Y}) and hix(𝒳)h_{i}\in\mathcal{F}_{\mathrm{x}}(\mathcal{X}) for all ii, respectively. Eq.(3) indicates that logq(𝒚|𝒙)\log q(\bm{y}|\bm{x}) is estimated as an element in the following set of functions:

y(𝒴)x(𝒳):={wh|wy(𝒴),hx(𝒳)}.\displaystyle\mathcal{F}_{\mathrm{y}}(\mathcal{Y})\odot\mathcal{F}_{\mathrm{x}}(\mathcal{X}):=\left\{w\cdot h~|~w\in\mathcal{F}_{\mathrm{y}}(\mathcal{Y}),h\in\mathcal{F}_{\mathrm{x}}(\mathcal{X})\right\}.

y(𝒴)x(𝒳)\mathcal{F}_{\mathrm{y}}(\mathcal{Y})\odot\mathcal{F}_{\mathrm{x}}(\mathcal{X}) does not necessarily have the universal approximation capability to 𝒞(𝒴×𝒳)\mathcal{C}(\mathcal{Y}\times\mathcal{X}) in general. Thus, it is important to understand under what conditions y(𝒴)x(𝒳)\mathcal{F}_{\mathrm{y}}(\mathcal{Y})\odot\mathcal{F}_{\mathrm{x}}(\mathcal{X}) has the universal approximation capability. The following proposition states sufficient conditions.

Proposition 2.

Assume that (i) both 𝒴\mathcal{Y} and 𝒳\mathcal{X} are compact, (ii) every function in y(𝒴)\mathcal{F}_{\mathrm{y}}(\mathcal{Y}) and x(𝒳)\mathcal{F}_{\mathrm{x}}(\mathcal{X}) is continuous, and (iii) both y(𝒴)\mathcal{F}_{\mathrm{y}}(\mathcal{Y}) and x(𝒳)\mathcal{F}_{\mathrm{x}}(\mathcal{X}) have the universal approximation capability to 𝒞(𝒴)\mathcal{C}(\mathcal{Y}) and 𝒞(𝒳)\mathcal{C}(\mathcal{X}), respectively. Then, y(𝒴)x(𝒳)\mathcal{F}_{\mathrm{y}}(\mathcal{Y})\odot\mathcal{F}_{\mathrm{x}}(\mathcal{X}) has the universal approximation capability to 𝒞(𝒴×𝒳)\mathcal{C}(\mathcal{Y}\times\mathcal{X}), i.e., y(𝒴)x(𝒳)\mathcal{F}_{\mathrm{y}}(\mathcal{Y})\odot\mathcal{F}_{\mathrm{x}}(\mathcal{X}) is a dense subset of 𝒞(𝒴×𝒳)\mathcal{C}(\mathcal{Y}\times\mathcal{X}).

We omit the proof because it is essentially the same as Waegeman et al. (2012, Thereom II.I).

Proposition 2 implies that the model (3) can approximate a wide range of continuous functions on 𝒴×𝒳\mathcal{Y}\times\mathcal{X} when both y(𝒴)\mathcal{F}_{\mathrm{y}}(\mathcal{Y}) and x(𝒳)\mathcal{F}_{\mathrm{x}}(\mathcal{X}) have the universal approximation capability. Thus, we should use function approximators for wiw_{i} and hih_{i} such that both of them have the universal approximation capability.

It is well-known that the function set of feedforward neural networks have the universal approximation capability (Hornik, 1991). Another example of function sets with the universal approximation capability is reproducing kernel Hilbert spaces (RKHSs) with universal kernels whose example is the Gaussian kernel (Micchelli et al., 2006). Motivated by these facts and Proposition 2, we employ both neural networks and RKHSs in the learning algorithm below.

Statistical Divergence based on Score Matching

To estimate logq(𝒚|𝒙)\log q(\bm{y}|\bm{x}), we employ score matching (Hyvärinen, 2005). It is based on fitting a model g(𝒚,𝒙)g(\bm{y},\bm{x}) to logq(𝒚|𝒙)\log q(\bm{y}|\bm{x}) under the Fisher divergence (Cox, 1985; Sasaki et al., 2014; Sriperumbudur et al., 2017), defined as

J(g):=12𝒚g(𝒚,𝒙)𝒚logq(𝒚|𝒙)2p(𝒚,𝒙)𝑑𝒚𝑑𝒙,\displaystyle J(g):=\frac{1}{2}\iint\|\nabla_{\bm{\bm{y}}}g(\bm{y},\bm{x})-\nabla_{\bm{y}}\log q(\bm{y}|\bm{x})\|^{2}p(\bm{y},\bm{x})\mathrm{d}\bm{y}\mathrm{d}\bm{x},

where 𝒚:=(y1,,ydy)\nabla_{\bm{y}}:=\left(\frac{\partial}{\partial y_{1}},\dots,\frac{\partial}{\partial y_{d_{\mathrm{y}}}}\right). A useful property is that the minimizer of J(g)J(g) coincides with logp(𝒚|𝒙)\log p(\bm{y}|\bm{x}) up to the partition function, which is stated by the following proposition:

Proposition 3.

Assume that p(𝐲,𝐱)>0p(\bm{y},\bm{x})>0 for all 𝐲𝒴\bm{y}\in\mathcal{Y} ans 𝐱𝒳\bm{x}\in\mathcal{X}. Let us express the minimizer of J(g)J(g) with respect to gg by

g^:=argmingJ(g).\displaystyle\widehat{g}:=\mathop{\rm argmin}\limits_{g}J(g).

Then, g^(𝐲,𝐱)\widehat{g}(\bm{y},\bm{x}) equals to logp(𝐲|𝐱)\log p(\bm{y}|\bm{x}) up to the partition function, i.e., g^(𝐲,𝐱)\widehat{g}(\bm{y},\bm{x}) satisfies the following equation:

𝒚g^(𝒚,𝒙)=𝒚logq(𝒚|𝒙)=𝒚logp(𝒚|𝒙).\displaystyle\nabla_{\bm{y}}\widehat{g}(\bm{y},\bm{x})=\nabla_{\bm{y}}\log q(\bm{y}|\bm{x})=\nabla_{\bm{y}}\log p(\bm{y}|\bm{x}). (4)

The proof can be seen in the supplementary material.

Proposition 3 implies that minimising JJ asymptotically yields a consistent estimator. However, in practice, we need to estimate JJ from finite samples. Following score matching (Hyvärinen, 2005) and further developments by Arbel and Gretton (2018), we can derive an easily computable version of JJ under some mild assumptions as follows:

J~(g)\displaystyle\tilde{J}(g) :=J(g)C\displaystyle:=J(g)-C
=j=1dy[12{yjg(𝒚,𝒙)}2p(𝒚,𝒙)𝑑𝒚𝑑𝒙{yjg(𝒚,𝒙)}yjp(𝒚,𝒙)𝑑𝒚𝑑𝒙]\displaystyle=\sum_{j=1}^{d_{\mathrm{y}}}\left[\frac{1}{2}\iint\left\{\frac{\partial}{\partial y_{j}}g(\bm{y},\bm{x})\right\}^{2}p(\bm{y},\bm{x})\mathrm{d}\bm{y}\mathrm{d}\bm{x}-\iint\left\{\frac{\partial}{\partial y_{j}}g(\bm{y},\bm{x})\right\}\frac{\partial}{\partial y_{j}}p(\bm{y},\bm{x})\mathrm{d}\bm{y}\mathrm{d}\bm{x}\right]
=j=1dy[12{yjg(𝒚,𝒙)}2p(𝒚,𝒙)𝑑𝒚𝑑𝒙+{2yj2g(𝒚,𝒙)}p(𝒚,𝒙)𝑑𝒚𝑑𝒙],\displaystyle=\sum_{j=1}^{d_{\mathrm{y}}}\left[\frac{1}{2}\iint\left\{\frac{\partial}{\partial y_{j}}g(\bm{y},\bm{x})\right\}^{2}p(\bm{y},\bm{x})\mathrm{d}\bm{y}\mathrm{d}\bm{x}+\iint\left\{\frac{\partial^{2}}{\partial y_{j}^{2}}g(\bm{y},\bm{x})\right\}p(\bm{y},\bm{x})\mathrm{d}\bm{y}\mathrm{d}\bm{x}\right],

where C=12𝒚logq(𝒚|𝒙)2p(𝒚,𝒙)𝑑𝒚𝑑𝒙C=\frac{1}{2}\iint\|\nabla_{\bm{y}}\log q(\bm{y}|\bm{x})\|^{2}p(\bm{y},\bm{x})\mathrm{d}\bm{y}\mathrm{d}\bm{x}, and we used the relation 𝒚logq(𝒚|𝒙)=𝒚logp(𝒚|𝒙)\nabla_{\bm{y}}\log q(\bm{y}|\bm{x})=\nabla_{\bm{y}}\log p(\bm{y}|\bm{x}) and applied the integration by parts on the second line under a mild assumption that lim|yj|yjg(𝒚,𝒙)p(𝒚,𝒙)=0\lim_{|y_{j}|\rightarrow\infty}\frac{\partial}{\partial y_{j}}g(\bm{y},\bm{x})p(\bm{y},\bm{x})=0 for all 𝒙\bm{x} and jj. After substituting the model 𝒘𝒉\bm{w}^{\top}\bm{h} into gg, the empirical version of J~\tilde{J} can be obtained as

J^(𝒘,𝒉)\displaystyle\widehat{J}(\bm{w},\bm{h}) :=1Tt=1Tj=1dy[12{yj𝒘(𝒚(t))𝒉(𝒙(t))}2+2yj2𝒘(𝒚(t))𝒉(𝒙(t))].\displaystyle:=\frac{1}{T}\sum_{t=1}^{T}\sum_{j=1}^{d_{\mathrm{y}}}\left[\frac{1}{2}\left\{\frac{\partial}{\partial y_{j}}\bm{w}(\bm{y}(t))^{\top}\bm{h}(\bm{x}(t))\right\}^{2}+\frac{\partial^{2}}{\partial y_{j}^{2}}\bm{w}(\bm{y}(t))^{\top}\bm{h}(\bm{x}(t))\right].

Thus, an estimator can be obtained by minimising J^\widehat{J} with respect to wiw_{i} and hih_{i} for all ii.

Learning Algorithm with Neural Networks and Reproducing Kernels:

Motivated by Proposition 2, we model hi(𝒙)h_{i}(\bm{x}) by a feedforward neural network (fNN), hi(𝒙,𝜽i)h_{i}(\bm{x};\bm{\theta}_{i}) where 𝜽i\bm{\theta}_{i} denotes a vector of parameters in the fNN. On the other hand, modelling wi(𝒚)w_{i}(\bm{y}) by fNNs is problematic because J^\widehat{J} includes the partial derivatives of wi(𝒚)w_{i}(\bm{y}), and computation of the (particularly second-order) derivatives are highly complicated in learning fNNs (Martens et al., 2012). Alternatively, following Proposition 2, we estimate wiw_{i} as an element in an RKHS with a universal kernel, which has the universal approximation capability (Micchelli et al., 2006). This approach greatly simplifies the derivative computation in J^\widehat{J} because of the representer theorem: Inspired by the representer theorem for derivatives (Zhou, 2008)11 1 If we exactly follow the representer theorem in Zhou (2008), wiw_{i} should have the following form: wi(𝒚)=t=1Tj=1dyαi,(j1)T+tyjk(𝒚,𝒚)|𝒚=𝒚(t)+βi,(j1)T+t2yj2k(𝒚,𝒚)|𝒚=𝒚(t)w_{i}(\bm{y})=\sum_{t=1}^{T}\sum_{j=1}^{d_{\mathrm{y}}}\alpha_{i,(j-1)T+t}\frac{\partial}{\partial y_{j}^{\prime}}k(\bm{y},\bm{y}^{\prime})\Bigr|_{\bm{y}^{\prime}=\bm{y}(t)}+\beta_{i,(j-1)T+t}\frac{\partial^{2}}{\partial y_{j}^{\prime 2}}k(\bm{y},\bm{y}^{\prime})\Bigr|_{\bm{y}^{\prime}=\bm{y}(t)}, where βi,j\beta_{i,j} denotes coefficients. To decrease the computational costs, we simplify the model by setting all βi,j=0\beta_{i,j}=0 and using only a randomly chosen subset of {𝒚(t)}t=1T\{\bm{y}(t)\}_{t=1}^{T} as the centers in the kernel function. The same simplification under the Fisher divergence is previously performed and theoretically shown not to incur the performance degeneration under some conditions (Sutherland et al., 2018)., we employ the following linear-in-parameter model for wiw_{i}:

wi(𝒚,𝜶i)=b=1Bj=1dyαi,(j1)B+byjk(𝒚,𝒚)|𝒚=𝒚~(b)=𝜶i𝒌(𝒚),\displaystyle w_{i}(\bm{y};\bm{\alpha}_{i})=\sum_{b=1}^{B}\sum_{j=1}^{d_{\mathrm{y}}}\alpha_{i,(j-1)B+b}\frac{\partial}{\partial y_{j}^{\prime}}k(\bm{y},\bm{y}^{\prime})\Bigr|_{\bm{y}^{\prime}=\tilde{\bm{y}}(b)}=\bm{\alpha}_{i}^{\top}\bm{k}^{\prime}(\bm{y}), (5)

where kk and αi,j\alpha_{i,j} are the kernel function and coefficients respectively. To decrease the computation cost, we follow the Nystöm approximation (Rudi et al., 2015) and use {𝒚~(b)}b=1B\{\tilde{\bm{y}}(b)\}_{b=1}^{B} as the center points in kk by randomly choosing B(T)B(\ll T) points from {𝒚(t)}t=1T\{\bm{y}(t)\}_{t=1}^{T}.

By substituting an fNN hi(𝒙,𝜽i)h_{i}(\bm{x};\bm{\theta}_{i}) and the linear-in-parameter model wi(𝒚,𝜶i)w_{i}(\bm{y};\bm{\alpha}_{i}) into J^({wi,hi}i=1d)\widehat{J}(\{w_{i},h_{i}\}_{i=1}^{d}), the optimal parameters are obtained as

{𝜽^i,𝜶^i}i=1d:=argmin{𝜽i,𝜶i}i=1dJ^({𝜽i,𝜶i}i=1d).\displaystyle\{\widehat{\bm{\theta}}_{i},\widehat{\bm{\alpha}}_{i}\}_{i=1}^{d}:=\mathop{\rm argmin}\limits_{\{\bm{\theta}_{i},\bm{\alpha}_{i}\}_{i=1}^{d}}\widehat{J}(\{\bm{\theta}_{i},\bm{\alpha}_{i}\}_{i=1}^{d}).

Setting 𝒘^(𝒚):=(w1(𝒚,𝜶^1),,wd(𝒚,𝜶^d))\widehat{\bm{w}}(\bm{y}):=(w_{1}(\bm{y};\widehat{\bm{\alpha}}_{1}),\dots,w_{d}(\bm{y};\widehat{\bm{\alpha}}_{d}))^{\top} and 𝒉^(𝒙):=(h1(𝒙,𝜽^1),,hd(𝒙,𝜽^d))\widehat{\bm{h}}(\bm{x}):=(h_{1}(\bm{x};\widehat{\bm{\theta}}_{1}),\dots,h_{d}(\bm{x};\widehat{\bm{\theta}}_{d}))^{\top}, the estimator is finally given by

𝒘^(𝒚)𝒉^(𝒙)=i=1dwi(𝒚,𝜶^i)hi(𝒙,𝜽^i).\displaystyle\widehat{\bm{w}}(\bm{y})^{\top}\widehat{\bm{h}}(\bm{x})=\sum_{i=1}^{d}w_{i}(\bm{y};\widehat{\bm{\alpha}}_{i})h_{i}(\bm{x};\widehat{\bm{\theta}}_{i}).

We call this method the neural-kernelized conditional density estimator (NKC).

3 Simulations

This section investigates the practical performance of NKC, and compares it with existing methods.

Algorithms, settings, and evaluation:

We report the results on the following three methods:

  • NKC (Proposed method): 𝒉\bm{h} was modelled by a feedforward neural network with three layers: The numbers of hidden units in the three layers were 100,50100,50 and dd, where dd was either 33 or 55 (we performed preliminary experiments for d=1d=1 as well, but the results were often worse than d=3,5d=3,5). The activation functions were all ReLU. For 𝒘\bm{w}, we employed the Gaussian kernel, and fixed the number of the kernel centers at B=100B=100. To perform stochastic gradient descent, RMSprop (Hinton et al., 2012) was used with 128128 minibatches. When learning 𝒉\bm{h} and 𝒘\bm{w}, model selection was also performed for the learning rate and the width parameter in the Gaussian kernel with a early stopping technique: The datasets were first divided into the training (80%) and validation (20%) datasets, and then 𝒉\bm{h} and 𝒘\bm{w} were learned using the training datasets for 100100 epochs. Finally, the best epoch result was chosen as the final result using the validation dataset in terms of J^\widehat{J}. Other details are given in the supplementary material.

  • Conditional variational autoencoder (CVAE) (Sohn et al., 2015): This is a conditional density estimator based on variational methods, shown for comparison. In CVAE, three conditional densities related to latent variables, which are called recognition, prior and generation networks, were modelled by parametric Gaussian densities: the means and the logarithms of standard deviations in the Gaussian densities of the recognition and generation networks were expressed by neural networks, while the prior network was modelled by the normal density independent of 𝒙\bm{x} as in (Kingma et al., 2014; Sohn et al., 2015). The neural networks had two layers with 5050 hidden units. The activation function was ReLU in the middle layer, while no activation function was applied in the final layer. The dimensionality of latent variables was 5050. The same optimisation procedures as in NKC was applied. It should be noted that the number of parameters in CVAE was a bit, but not much, larger than in NKC (the exact numbers of parameters are given in the supplementary material).

  • LSCDE (Sugiyama et al., 2010)22 2 http://www.ms.k.u-tokyo.ac.jp/software.html#LSCDE: This is a least-squares estimation method for conditional densities based on the Gaussian kernel, shown for comparison. In the default setting, LSCDE only uses min(100,T)\min(100,T) centers in the Gaussian kernel (Sugiyama et al., 2010), but to apply LSCDE to a large amount of and high-dimensional data, we set min(1000,T)\min(1000,T) centers, which were randomly chosen from the whole data. The bandwidth in the Gaussian kernel, as well as the regularisation parameters, were determined by five-fold cross-validation.

The performance of each method was evaluated by the log-likelihood using test data. To estimate the log-likelihood in NKC, we estimated the partition function by importance sampling, while the log-likelihood in CVAE is estimated as in Sohn et al. (2015, Eq.(6)).

Multimodal Density Estimation on Artificial Data:

Conditional density estimation is particularly useful compared to simple conditional mean estimation in the case where conditional densities are multimodal. Therefore, we first numerically demonstrate the performance of NKC on multimodal density estimation. To this end, we first generated data samples of 𝒙\bm{x} from the normal density, and then data samples of yy was drawn from a mixture of three Gaussians: p(y|𝒙)=k=13ck2πσ2exp((yμk(𝒙))22σ2)p(y|\bm{x})=\sum_{k=1}^{3}\frac{c_{k}}{\sqrt{2\pi\sigma^{2}}}\exp\left(-\frac{(y-\mu_{k}(\bm{x}))^{2}}{2\sigma^{2}}\right) where dy=1d_{\mathrm{y}}=1, ck=1/3c_{k}=1/3 for all kk and σ=0.25\sigma=0.25. The dimension dxd_{\mathrm{x}} took the value 5050, 100100, 200200 or 300300. Here, μk(𝒙)\mu_{k}(\bm{x}) were modelled by a three layer neural network with leaky ReLU where the number of hidden units is dxd_{\mathrm{x}}, dxd_{\mathrm{x}} and 11, and the parameter values were randomly determined in each run. The total number of samples was fixed at T=30,000T=30,000.

The results are presented in the left panel of Table 1. As dxd_{\mathrm{x}} increases, the performance of LSCDE gets worse, as would be expected from a method based on Gaussian kernels. On the other hand, NKC and CVAE work well even in dx=100d_{\mathrm{x}}=100. When dx=200,300d_{\mathrm{x}}=200,300, NKC performs better than CVAE. Thus, NKC should be a useful method for multimodal density estimation with high-dimensional data. Regarding the computational time, LSCDE was the fastest because the optimal solution in LSCDE is analytically computed. On the other hand, NKC and CVAE had comparable time if any model selection was not used.

Table 1: Simulation on artificial data (left panel) and experiments on benchmark datasets (right panel). The mean values of the log-likelihood over 1010 runs. A larger value indicates a better result. The best and comparable methods judged by the Wilcoxon signed-rank test at the significance level 5% are described in boldface. NKC3 and NKC5 denote NKC with d=3d=3 and d=5d=5, respectively.
NKC3 NKC5 CVAE LSCDE
dx=50d_{\mathrm{x}}=50 -0.75 -0.75 -0.79 -0.96
dx=100d_{\mathrm{x}}=100 -0.76 -0.76 -0.77 -1.25
dx=200d_{\mathrm{x}}=200 -0.81 -0.82 -0.89 -1.28
dx=300d_{\mathrm{x}}=300 -0.81 -0.82 -0.93 -1.69
NKC3 NKC5 CVAE LSCDE
Ail. -0.52 -0.52 -0.50 -1.00
Fri. -0.34 -0.34 -0.41 -1.01
Kin. -0.62 -0.63 -0.65 -0.96
Pum. -1.53 -1.58 -0.97 -1.59

Benchmark Dataset:

Second, we evaluate the performance of NKC on benchmark datasets. The datasets were the publicly available33 3 http://www.dcc.fc.up.pt/~ltorgo/Regression/DataSets.html datasets Ailerons (dx=26,T=13,750)(d_{\mathrm{x}}=26,T=13,750), Friedman (dx=10,T=40,768)(d_{\mathrm{x}}=10,T=40,768), Kinematics(dx=8,T=8,192)(d_{\mathrm{x}}=8,T=8,192), and Pumadyn(dx=32,T=8,192)(d_{\mathrm{x}}=32,T=8,192). Before performing conditional density estimation, we first standardised the datasets by subtracting the means and dividing each variable by its standard deviation. Then, in each dataset, 10% of the data samples was used for test and the remaining data samples were for training.

The results are summarised in the right panel of Table 1, showing that NKC compares favourably with CVAE, and clearly beats LSCDE.

4 Insights on Representation Learning

Next we provide interesting insights on how NKC is related to representation learning. In fact, we show that NKC has interesting connections to two frameworks called sufficient dimension reduction (SDR) and independent component analysis (ICA). More specifically, we prove that the internal representation given by 𝒉^\widehat{\bm{h}} in NKC can provide a useful lower-dimensional representation of 𝒙\bm{x} for supervised learning, if the dimension of the internal representation is restricted. On the other hand, if the data comes from a nonlinear ICA model, and the dimension is not reduced, the internal representation corresponds to an estimate of nonlinear independent components in unsupervised learning.

4.1 Nonlinear Sufficient Dimension Reduction

Problem Formulation in Sufficient Dimension Reduction:

Sufficient dimension reduction (SDR) is a rigorous framework of supervised dimension reduction (Li, 1991; Cook, 1998). The goal of SDR is to estimate a lower-dimensional representation of 𝒙\bm{x} satisfying the following condition:

p(𝒚|𝒙)=p(𝒚|𝒛)or equivalently𝒚𝒙|𝒛,\displaystyle p(\bm{y}|\bm{x})=p(\bm{y}|\bm{z})\quad\text{or equivalently}\quad\bm{y}\perp\bm{x}|\bm{z}, (6)

where \perp denotes statistical independence, 𝒛=(z1,,zd)\bm{z}=(z_{1},\dots,z_{d})^{\top}, and d<dxd<d_{\mathrm{x}}. The SDR condition (6) intuitively means that 𝒛\bm{z} has the same amount of information to predict 𝒚\bm{y} as 𝒙\bm{x}.

Connection to SDR:

Here, we show a connection of NKC to nonlinear SDR. In fact, the following theorem, which is proven in the supplementary material, implies that 𝒉^\widehat{\bm{h}} in NKC is a useful lower-dimensional representation on SDR:

Theorem 4.

Suppose that d<dxd<d_{\mathrm{x}}, there exists a lower-dimensional representation 𝐳\bm{z} such that the SDR condition (6) is satisfied, the domains of 𝐲\bm{y} and 𝐱\bm{x} are compact, logq(𝐲|𝐱)\log q(\bm{y}|\bm{x}) and 𝐰(𝐲)𝐡(𝐱)\bm{w}(\bm{y})^{\top}\bm{h}(\bm{x}) are both continuous, and in the limit of infinite data, 𝐲logq(𝐲|𝐱)\nabla_{\bm{y}}\log q(\bm{y}|\bm{x}) is universally approximated as

𝒚logq(𝒚|𝒙)=𝒚𝒘(𝒚)𝒉(𝒙)=i=1d𝒚wi(𝒚)hi(𝒙).\displaystyle\nabla_{\bm{y}}\log q(\bm{y}|\bm{x})=\nabla_{\bm{y}}\bm{w}(\bm{y})^{\top}\bm{h}(\bm{x})=\sum_{i=1}^{d}\nabla_{\bm{y}}w_{i}(\bm{y})h_{i}(\bm{x}). (7)

Then, 𝐡\bm{h} satisfies the SDR condition.

Propositions 2 and 3 imply that 𝒚𝒘^(𝒚)𝒉^(𝒙)\nabla_{\bm{y}}\widehat{\bm{w}}(\bm{y})^{\top}\widehat{\bm{h}}(\bm{x}) approximates 𝒚logq(𝒚|𝒙)\nabla_{\bm{y}}\log q(\bm{y}|\bm{x}) well as the number of data samples increases. Thus, the universal approximation assumption (7) would be realistic. Interestingly, Thereom 4 shows that NKC estimates the log-conditional density, while implicitly performing nonlinear dimensionality reduction. This would imply that if there exists a lower-dimensional structure (manifold), the log-conditional density can be accurately estimated with a small dd, i.e., small parameters. To the best of our knowledge, this work is the first attempt to explicitly connect neural networks to nonlinear SDR.

Relation with Existing Nonlinear SDR Methods:

Kernel sliced inverse regression (KSIR) is a nonlinear extension of a classical linear SDR method called sliced inverse regression (SIR) (Li, 1991) via the kernel trick (Wu, 2008; Yeh et al., 2009; Wu et al., 2007). As in kernel PCA (Schölkopf and Smola, 2002), input data 𝒙\bm{x} is mapped to a high-dimensional feature space \mathcal{F} by ϕ(𝒙)\bm{\phi}(\bm{x}), and then SIR is performed in \mathcal{F}. As in SIR, KSIR makes an assumption that the probability density function of ϕ(𝒙)\bm{\phi}(\bm{x}) is elliptically symmetric (Wu, 2008, pp.594), while NKC does not have explicit assumptions on densities. Other nonlinear SDR methods have been proposed in Lee et al. (2013). A drawback of these methods as well as KSIR require to compute the eigenvectors of a TT by TT matrix. Therefore, it is not straightforward to apply them to a large amount of data. In contrast, a possible advantage of NKC would be applicability to large datasets.

4.2 Nonlinear Independent Component Analysis

Problem Formulation and Background in Independent Component Analysis:

Independent component analysis (ICA) is a successful framework in unsupervised learning. ICA assumes that data 𝒙\bm{x} is generated from

𝒙=𝒇(𝒔),\displaystyle\bm{x}=\bm{f}(\bm{s}), (8)

where 𝒇(𝒔)=(f1(𝒔),,fd(𝒔))\bm{f}(\bm{s})=(f_{1}(\bm{s}),\dots,f_{d}(\bm{s}))^{\top}, fif_{i} denotes a smooth and invertible nonlinear function, and 𝒔=(s1,,sd)\bm{s}=(s_{1},\dots,s_{d})^{\top} is a vector of the source components. In classical ICA, sis_{i} are assumed to be statistically independent each other. Then, the problem is to estimate 𝒇\bm{f} or 𝒔\bm{s} from observations of 𝒙\bm{x} only. When 𝒇(𝒔)=𝑨𝒔\bm{f}(\bm{s})=\bm{A}\bm{s} with an invertible dd by dd matrix 𝑨\bm{A}, the identifiability conditions are well-understood (Comon, 1994). On the other hand, for general nonlinear functions fif_{i}, the problem is considerably more difficult: There exist infinitely many solutions and therefore the problem is ill-posed without any additional information (Hyvärinen and Pajunen, 1999). Recently, some identifiability conditions were found by Hyvärinen and Morioka (2016); Hyvärinen and Morioka (2017). The key idea is to use time information as additional information. Below, we show novel identifiability conditions by connecting NKC with nonlinear ICA.

Connection to Nonlinear ICA:

Here, suppose that 𝒚\bm{y} contains some additional variables which are not of primary interest, but are dependent on 𝒙\bm{x}, thus providing extra information that helps in identifiability. For example, following Hyvärinen and Morioka (2016), 𝒚\bm{y} could be the time index for time series data. We show next that 𝒉^\widehat{\bm{h}} in NKC recovers the source vector 𝒔\bm{s} up to some indeterminancies with a new identifiability proof. To this end, we make the following assumptions:

  1. (I1)

    Given 𝒚\bm{y}, sis_{i} are statistically independent each other: p(𝒔|𝒚)=i=1dp(si|𝒚)p(\bm{s}|\bm{y})=\prod_{i=1}^{d}p(s_{i}|\bm{y}).

  2. (I2)

    The conditional density of sis_{i} given 𝒚\bm{y} belongs to the exponential family as

    logp(si|𝒚)=λi(𝒚)q~i(si)logZ(λi(𝒚)),\displaystyle\log p(s_{i}|\bm{y})=\lambda_{i}(\bm{y})\tilde{q}_{i}(s_{i})-\log Z(\lambda_{i}(\bm{y})),

    where ZZ is the partition function and q~i\tilde{q}_{i} is a nonlinear scalar function.

  3. (I3)

    There exists the inverse of the generative model, i.e., 𝒔=𝒈(𝒙)\bm{s}=\bm{g}(\bm{x}) where 𝒈:=𝒇1\bm{g}:=\bm{f}^{-1}.

  4. (I4)

    In the limit of infinite data, 𝒚logq(𝒚|𝒙)\nabla_{\bm{y}}\log q(\bm{y}|\bm{x}) is universally approximated as in (7).

  5. (I5)

    There exist NN points, 𝒚(1),𝒚(2),,𝒚(N)\bm{y}(1),\bm{y}(2),\dots,\bm{y}(N) such that the following dd by dd matrix is invertible: n=1N𝒚𝝀(𝒚(n))(𝒚𝝀(𝒚(n)))\sum_{n=1}^{N}\nabla_{\bm{y}}\bm{\lambda}(\bm{y}(n))(\nabla_{\bm{y}}\bm{\lambda}(\bm{y}(n)))^{\top}, where 𝝀(𝒚):=(λ1(𝒚),,λd(𝒚))\bm{\lambda}(\bm{y}):=(\lambda_{1}(\bm{y}),\dots,\lambda_{d}(\bm{y}))^{\top}.

Then, the following theorem elucidates the relationship between NKC and nonlinear ICA:

Theorem 5.

Suppose that assumptions (I1-I5) hold. Then, in the limit of infinite data, 𝐡(𝐱)\bm{h}(\bm{x}) in (7) equals to 𝐪(𝐬)\bm{q}(\bm{s}) up to an invertible linear transformation, i.e.,

𝒒~(𝒔)=𝑩𝒉(𝒙)+𝒃,\displaystyle\tilde{\bm{q}}(\bm{s})=\bm{B}\bm{h}(\bm{x})+\bm{b},

where 𝐪~(𝐬)=(q~1(s1),q~2(s2),,q~d(sd))\tilde{\bm{q}}(\bm{s})=(\tilde{q}_{1}(s_{1}),\tilde{q}_{2}(s_{2}),\dots,\tilde{q}_{d}(s_{d}))^{\top}, 𝐁d×d\bm{B}\in\mathbb{R}^{d\times d} and 𝐛d\bm{b}\in\mathbb{R}^{d}.

The proof can be seen in the supplementary material:

Relation with Existing Nonlinear ICA Methods:

Theorem 5 states that q~i(si)\tilde{q}_{i}(s_{i}) are identified up to linear transformation, as in the previous proof for a nonlinear ICA method called time contrastive learning (TCL) (Hyvärinen and Morioka, 2016). Thus, in practice, after estimating logq(𝒚|𝒙)\log q(\bm{y}|\bm{x}), we might apply some linear ICA method to 𝒉^(𝒙)\widehat{\bm{h}}(\bm{x}) to get closer to the independent components. For that purpose we should further assume the sis_{i} are marginally independent, while the Theorem assumed only their conditional independent. The assumption of an exponential family model for the sources is also very similar to TCL. The fundamental difference of the present Theorem compared to TCL is that here we have a continuous-valued additional variable 𝒚\bm{y}, while TCL is based on a discrete variable (time-segmentation label). Thus, the current proof is related to the TCL theory but not a simple modification.

5 Conclusion

We proposed a novel method based on score matching to estimate conditional densities in a general setting where no particular (parametric) assumptions on the density need to be made. We developed a novel neural-kernelized approach, which combines neural networks with reproducing kernels to apply score matching. In particular, using neural networks allows for powerful function approximation which is scalable for large dataset, while using kernels avoids the complications related to the derivatives needed in score matching. We proved that the model combining neural networks with reproducing kernels has the universal approximation capability, and that the ensuing estimation method is consistent. The practical performance of the proposed method was investigated both on artificial and benchmark datasets, and it was useful in high-dimensional conditional density estimation and compared favourably to existing methods. Finally, we showed that the proposed method has interesting connections to two rigorous probabilistic frameworks of representation learning, nonlinear sufficient dimension reduction and nonlinear independent component analysis, thus opening new avenues for theoretical analysis of representation learning.

References

  • Arbel and Gretton (2018) M. Arbel and A. Gretton. Kernel conditional exponential family. In Proceedings of the 21st International Conference on Artficial Intelligence and Statistics, volume 84, pages 1337–1346. PMLR, 2018.
  • Bengio et al. (2006) Y. Bengio, O. Delalleau, and N. L. Roux. The curse of highly variable functions for local kernel machines. In Advances in neural information processing systems (NIPS), pages 107–114, 2006.
  • Bengio et al. (2013) Y. Bengio, A. Courville, and P. Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798–1828, 2013.
  • Bishop (1994) C. Bishop. Mixture density networks. Neural Computing Research Group Report, 1994.
  • Bishop (2006) C. Bishop. Pattern Recognition and Machine Learning. Springer, 2006.
  • Carreira-Perpiñán (2000) M. Carreira-Perpiñán. Reconstruction of sequential data with probabilistic models and continuity constraints. In Advances in neural information processing systems, pages 414–420, 2000.
  • Chen et al. (2016) Y.-C. Chen, C. Genovese, R. Tibshirani, and L. Wasserman. Nonparametric modal regression. The Annals of Statistics, 44(2):489–514, 2016.
  • Comon (1994) P. Comon. Independent component analysis, a new concept? Signal Processing, 36(3):287–314, 1994.
  • Cook (1998) R. D. Cook. Regression Graphics: Ideas for Studying Regressions Through Graphics. John Wiley & Sons, 1998.
  • Cox (1985) D. D. Cox. A penalty method for nonparametric estimation of the logarithmic derivative of a density function. Annals of the Institute of Statistical Mathematics, 37(1):271–288, 1985.
  • Einbeck and Tutz (2006) J. Einbeck and G. Tutz. Modelling beyond regression functions: an application of multimodal regression to speed–flow data. Journal of the Royal Statistical Society: Series C (Applied Statistics), 55(4):461–475, 2006.
  • Fan et al. (1996) J. Fan, Q. Yao, and H. Tong. Estimation of conditional densities and sensitivity measures in nonlinear dynamical systems. Biometrika, 83(1):189–206, 1996.
  • Feng et al. (2017) Y. Feng, J. Fan, and J. A. Suykens. A statistical learning approach to modal regression. arXiv:1702.05960, 2017.
  • Goodfellow et al. (2016) I. Goodfellow, Y. Bengio, and A. Courville. Deep learning. MIT press, 2016.
  • Hinton et al. (2012) G. Hinton, N. Srivastava, and K. Swersky. Lecture 6d - a separate, adaptive learning rate for each connection. Slides of lecture neural networks for machine learning, 2012.
  • Hornik (1991) K. Hornik. Approximation capabilities of multilayer feedforward networks. Neural networks, 4(2):251–257, 1991.
  • Hyvärinen (2005) A. Hyvärinen. Estimation of non-normalized statistical models by score matching. Journal of Machine Learning Research, 6:695–709, 2005.
  • Hyvärinen and Morioka (2016) A. Hyvärinen and H. Morioka. Unsupervised feature extraction by time-contrastive learning and nonlinear ICA. In Advances in Neural Information Processing Systems, pages 3765–3773, 2016.
  • Hyvärinen and Morioka (2017) A. Hyvärinen and H. Morioka. Nonlinear ICA of temporally dependent stationary sources. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, volume 54, pages 460–469. PMLR, 2017.
  • Hyvärinen and Pajunen (1999) A. Hyvärinen and P. Pajunen. Nonlinear independent component analysis: Existence and uniqueness results. Neural Networks, 12(3):429–439, 1999.
  • Kingma et al. (2014) D. P. Kingma, S. Mohamed, D. J. Rezende, and M. Welling. Semi-supervised learning with deep generative models. In Advances in Neural Information Processing Systems (NIPS), pages 3581–3589, 2014.
  • Lee et al. (2013) K.-Y. Lee, B. Li, and F. Chiaromonte. A general theory for nonlinear sufficient dimension reduction: Formulation and estimation. Annals of Statistics, 41(1):221–249, 2013.
  • Li (1991) K. Li. Sliced inverse regression for dimension reduction. Journal of the American Statistical Association, 86(414):316–327, 1991.
  • Martens et al. (2012) J. Martens, I. Sutskever, and K. Swersky. Estimating the Hessian by back-propagating curvature. In Proceedings of the 29th International Coference on International Conference on Machine Learning (ICML), pages 1783–1790. Omnipress, 2012.
  • Micchelli et al. (2006) C. A. Micchelli, Y. Xu, and H. Zhang. Universal kernels. Journal of Machine Learning Research, 7:2651–2667, 2006.
  • Rudi et al. (2015) A. Rudi, R. Camoriano, and L. Rosasco. Less is more: Nyström computational regularization. In Advances in Neural Information Processing Systems, pages 1657–1665, 2015.
  • Sasaki et al. (2014) H. Sasaki, A. Hyvärinen, and M. Sugiyama. Clustering via mode seeking by direct estimation of the gradient of a log-density. In Machine Learning and Knowledge Discovery in Databases Part III- European Conference, ECML/PKDD 2014, volume 8726, pages 19–34, 2014.
  • Schölkopf and Smola (2002) B. Schölkopf and A. J. Smola. Learning with kernels: support vector machines, regularization, optimization, and beyond. MIT press, 2002.
  • Sohn et al. (2015) K. Sohn, H. Lee, and X. Yan. Learning structured output representation using deep conditional generative models. In Advances in Neural Information Processing Systems (NIPS), pages 3483–3491, 2015.
  • Sriperumbudur et al. (2017) B. Sriperumbudur, K. Fukumizu, A. Gretton, A. Hyvärinen, and R. Kumar. Density estimation in infinite dimensional exponential families. Journal of Machine Learning Research, 18(57):1–59, 2017.
  • Strang (1991) G. Strang. Calculus. Wellesley-Cambridge Press, 1991.
  • Sugiyama et al. (2010) M. Sugiyama, I. Takeuchi, T. Suzuki, T. Kanamori, H. Hachiya, and D. Okanohara. Least-squares conditional density estimation. IEICE Transactions on Information and Systems, 93(3):583–594, 2010.
  • Sutherland et al. (2018) D. Sutherland, H. Strathmann, M. Arbel, and A. Gretton. Efficient and principled score estimation with nyström kernel exponential families. In Proceedings of the 21st International Conference on Artficial Intelligence and Statistics (AISTATS), volume 84, pages 652–660. PMLR, 2018.
  • Tang and Salakhutdinov (2013) Y. Tang and R. R. Salakhutdinov. Learning stochastic feedforward neural networks. In Advances in Neural Information Processing Systems (NIPS), pages 530–538, 2013.
  • Waegeman et al. (2012) W. Waegeman, T. Pahikkala, A. Airola, T. Salakoski, M. Stock, and B. De Baets. A kernel-based framework for learning graded relations from data. IEEE Transactions on Fuzzy Systems, 20(6):1090–1101, 2012.
  • Wu (2008) H.-M. Wu. Kernel sliced inverse regression with applications to classification. Journal of Computational and Graphical Statistics, 17(3):590–610, 2008.
  • Wu et al. (2007) Q. Wu, F. Liang, and S. Mukherjee. Regularized sliced inverse regression for kernel models. Technical report, Technical Report, Duke Univ, 2007.
  • Yao et al. (2012) W. Yao, B. G. Lindsay, and R. Li. Local modal regression. Journal of nonparametric statistics, 24(3):647–663, 2012.
  • Yeh et al. (2009) Y.-R. Yeh, S.-Y. Huang, and Y.-J. Lee. Nonlinear dimension reduction with kernel sliced inverse regression. IEEE Transactions on Knowledge and Data Engineering, 21(11):1590–1603, 2009.
  • Zhou (2008) D. Zhou. Derivative reproducing properties for kernel methods in learning theory. Journal of Computational and Applied Mathematics, 220(1-2):456–463, 2008.

Appendix A Proof of Proposition 3

Proof.

The minimizer g^\widehat{g} should satisfy the following optimality condition for the Gâteaux derivative of JJ along with an arbitrary direction ff:

ddϵJ(g^+ϵf)|ϵ=0=0.\displaystyle\frac{\mathrm{d}}{\mathrm{d}\epsilon}J(\widehat{g}+\epsilon f)\Bigr|_{\epsilon=0}=0. (9)

The left-hand side of (9) shows that

J(g^+ϵf)\displaystyle J(\widehat{g}+\epsilon f)
=J(g^)+ϵj=1dy𝒴𝒳{yjf(𝒚,𝒙)}{yjg^(𝒚,𝒙)yjlogq(𝒚|𝒙)}p(𝒚,𝒙)𝑑𝒚𝑑𝒙+o(ϵ2).\displaystyle=J(\widehat{g})+\epsilon\sum_{j=1}^{d_{\mathrm{y}}}\int_{\mathcal{Y}}\int_{\mathcal{X}}\left\{\frac{\partial}{\partial y_{j}}f(\bm{y},\bm{x})\right\}\left\{\frac{\partial}{\partial y_{j}}\widehat{g}(\bm{y},\bm{x})-\frac{\partial}{\partial y_{j}}\log q(\bm{y}|\bm{x})\right\}p(\bm{y},\bm{x})\mathrm{d}\bm{y}\mathrm{d}\bm{x}+o(\epsilon^{2}).

Since ff is arbitrary and p(𝒚,𝒙)>0p(\bm{y},\bm{x})>0, substituting the equation above into the optimality condition (9) yields

yjg^(𝒚,𝒙)=yjlogq(𝒚|𝒙)=yjlogp(𝒚|𝒙),j.\displaystyle\frac{\partial}{\partial y_{j}}\widehat{g}(\bm{y},\bm{x})=\frac{\partial}{\partial y_{j}}\log q(\bm{y}|\bm{x})=\frac{\partial}{\partial y_{j}}\log p(\bm{y}|\bm{x}),\quad\forall j. (10)

Furthermore, the positive assumption of p(𝒚,𝒙)p(\bm{y},\bm{x}) ensures that g^\widehat{g} is the unique minimizer. Thus, the proof is completed. ∎

Appendix B Simulation Details

Regarding simulations on artificial data, in model selection, we set the candidates of the learning rate and width parameter at {103,5×104,104,5×105,105}\{10^{-3},5\times 10^{-4},10^{-4},5\times 10^{-5},10^{-5}\} and {0.5,1.0,3.0,5.0}\{0.5,1.0,3.0,5.0\}, respectively. The 2\ell_{2} regularisation was applied to only {𝜶i}i=1d\{\bm{\alpha}_{i}\}_{i=1}^{d} in the kernel part 𝒘\bm{w} with 10410^{-4} decay, while no regularisation was used in the neural network part 𝒉\bm{h}. For benchmark datasets, the candidates of the learning rate is the same , but the width parameter is selected from {0.5,1.0,2.0,3.0}\{0.5,1.0,2.0,3.0\} multiplied by σmedy\sigma_{\mathrm{med}}^{\mathrm{y}} which is the median of |y(t)y(t)||y(t)-y(t^{\prime})| with respect to tt and tt^{\prime}. In addition, no 2\ell_{2} regularisation was used for any parameters in benchmark datasets.

The following table shows the number of parameters of NKC and CVAE in simulations on artificial data (Section 3).

NKC3 NKC5 CVAE
dx=50d_{\mathrm{x}}=50 1060310603 1090510905 1285212852
dx=100d_{\mathrm{x}}=100 1560315603 1590515905 1785217852
dx=200d_{\mathrm{x}}=200 2560325603 2590525905 2785227852
dx=300d_{\mathrm{x}}=300 3560335603 3590535905 3785237852

Appendix C Proof of Theorem 4

Proof.

We first use the standard path integral formula [Strang, 1991]: For the vector field 𝒚logq(𝒚|𝒙)\nabla_{\bm{y}}\log q(\bm{y}|\bm{x}) and a differentiable curve 𝜸(t),t[0,s]{\bm{\gamma}}(t),\,t\in[0,s] connecting a fixed point 𝒚c\bm{y}_{\mathrm{c}} and arbitrary point 𝒚\bm{y},

0s𝒚logq(𝜸(t)|𝒙),𝜸˙(t)𝑑t=logq(𝒚|𝒙)logq(𝒚c|𝒙),\displaystyle\int_{0}^{s}\langle\nabla_{\bm{y}}\log q({\bm{\gamma}}(t)|\bm{x}),\,\dot{\bm{\gamma}}(t)\rangle\mathrm{d}t=\log q(\bm{y}|\bm{x})-\log q(\bm{y}_{\mathrm{c}}|\bm{x}),

where 𝜸˙(t)=ddt𝜸(t)\dot{\bm{\gamma}}(t)=\frac{\mathrm{d}}{\mathrm{d}t}\bm{\gamma}(t) and ,\langle\cdot,\cdot\rangle denotes the inner product. Then, applying the path integral formula to both sides in the universal approximation assumption (7) yields

logq(𝒚|𝒙)=𝒘(𝒚)𝒉(𝒙)+A(𝒙),\displaystyle\log q(\bm{y}|\bm{x})=\bm{w}(\bm{y})^{\top}\bm{h}(\bm{x})+A(\bm{x}),

where A(𝒙):=logq(𝒚c|𝒙)𝒘(𝒚c)𝒉(𝒙)A(\bm{x}):=\log q(\bm{y}_{\mathrm{c}}|\bm{x})-\bm{w}(\bm{y}_{\mathrm{c}})^{\top}\bm{h}(\bm{x}), and is independent of 𝒚\bm{y} because 𝒚c\bm{y}_{\mathrm{c}} is a fixed point. This equation gives

q(𝒚|𝒙)exp(A(𝒙))=exp(𝒘(𝒚)𝒉(𝒙)).\displaystyle q(\bm{y}|\bm{x})\cdot\exp\left(-A(\bm{x})\right)=\exp\left(\bm{w}(\bm{y})^{\top}\bm{h}(\bm{x})\right). (11)

Integrating the both sides yields

Zx(𝒙):=q(𝒚|𝒙)exp(A(𝒙))𝑑𝒚=exp(𝒘(𝒚)𝒉(𝒙))𝑑𝒚=:Zh(𝒉).\displaystyle Z_{\mathrm{x}}(\bm{x}):=\int q(\bm{y}|\bm{x})\cdot\exp\left(-A(\bm{x})\right)\mathrm{d}\bm{y}=\int\exp\left(\bm{w}(\bm{y})^{\top}\bm{h}(\bm{x})\right)\mathrm{d}\bm{y}=:Z_{\mathrm{h}}(\bm{h}).

By the definition of the conditional density,

p(𝒚|𝒙)=q(𝒚|𝒙)exp(A(𝒙))Zx(𝒙)=exp(𝒘(𝒚)𝒉(𝒙))Zx(𝒙)=exp(𝒘(𝒚)𝒉(𝒙))Zh(𝒉)=p(𝒚|𝒉)\displaystyle p(\bm{y}|\bm{x})=\frac{q(\bm{y}|\bm{x})\cdot\exp\left(-A(\bm{x})\right)}{Z_{\mathrm{x}}(\bm{x})}=\frac{\exp\left(\bm{w}(\bm{y})^{\top}\bm{h}(\bm{x})\right)}{Z_{\mathrm{x}}(\bm{x})}=\frac{\exp\left(\bm{w}(\bm{y})^{\top}\bm{h}(\bm{x})\right)}{Z_{\mathrm{h}}(\bm{h})}=p(\bm{y}|\bm{h})

Thus, 𝒉\bm{h} satisfies the SDR condition (6), and the proof is completed. ∎

Appendix D Proof of Thereom 5

Proof.

Bayes theorem shows that

logp(𝒙|𝒚)=logp(𝒚|𝒙)+logp(𝒙)logp(𝒚).\displaystyle\log p(\bm{x}|\bm{y})=\log p(\bm{y}|\bm{x})+\log p(\bm{x})-\log p(\bm{y}).

After taking the gradient with respect to 𝒚\bm{y} above, the universal approximator assumption (I4) gives

𝒚logp(𝒙|𝒚)\displaystyle\nabla_{\bm{y}}\log p(\bm{x}|\bm{y}) =𝒚logq(𝒚|𝒙)𝒚logp(𝒚)=(𝒚𝒘(𝒚))𝒉(𝒙)𝒚logp(𝒚),\displaystyle=\nabla_{\bm{y}}\log q(\bm{y}|\bm{x})-\nabla_{\bm{y}}\log p(\bm{y})=(\nabla_{\bm{y}}\bm{w}(\bm{y}))^{\top}\bm{h}(\bm{x})-\nabla_{\bm{y}}\log p(\bm{y}), (12)

where the (i,j)(i,j)-th element in 𝒚𝒘(𝒚)\nabla_{\bm{y}}\bm{w}(\bm{y}) is yjwi(𝒚)\frac{\partial}{\partial y_{j}}w_{i}(\bm{y}). Interestingly, the gradient with respect to 𝒚\bm{y} deletes logp(𝒙)\log p(\bm{x}) in (12). On the other hand, the exponential family assumption yields another form of logp(𝒙|𝒚)\log p(\bm{x}|\bm{y}) as

logp(𝒙|𝒚)=i=1d[λi(𝒚)q~i(gi(𝒙))+log|𝑱𝒈(𝒙)|logZ(λi(𝒚))],\displaystyle\log p(\bm{x}|\bm{y})=\sum_{i=1}^{d}\left[\lambda_{i}(\bm{y})\tilde{q}_{i}(g_{i}(\bm{x}))+\log|\bm{J}{\bm{g}}(\bm{x})|-\log Z(\lambda_{i}(\bm{y}))\right],

where 𝑱𝒈(𝒙)\bm{Jg}(\bm{x}) denotes the Jacobian. By taking the gradient with respect to 𝒚\bm{y}, we have

𝒚logp(𝒙|𝒚)=i=1d[𝒚λi(𝒚)q~i(gi(𝒙))𝒚logZ(λi(𝒚))].\displaystyle\nabla_{\bm{y}}\log p(\bm{x}|\bm{y})=\sum_{i=1}^{d}\left[\nabla_{\bm{y}}\lambda_{i}(\bm{y})\tilde{q}_{i}(g_{i}(\bm{x}))-\nabla_{\bm{y}}\log Z(\lambda_{i}(\bm{y}))\right]. (13)

A notable point is that log|𝑱𝒈(𝒙)|\log|\bm{J}{\bm{g}}(\bm{x})| disappeared after taking the gradient. Equating (12) with (13) yields

(𝒚𝝀(𝒚))𝒒~(𝒔)i=1d{𝒚logZ(λi(𝒚))}=(𝒚𝒘(𝒚))𝒉(𝒙)𝒚logp(𝒚),\displaystyle(\nabla_{\bm{y}}\bm{\lambda}(\bm{y}))^{\top}\tilde{\bm{q}}(\bm{s})-\sum_{i=1}^{d}\left\{\nabla_{\bm{y}}\log Z(\lambda_{i}(\bm{y}))\right\}=(\nabla_{\bm{y}}\bm{w}(\bm{y}))^{\top}\bm{h}(\bm{x})-\nabla_{\bm{y}}\log p(\bm{y}), (14)

where the (i,j)(i,j)-th element in 𝒚𝝀(𝒚)\nabla_{\bm{y}}\bm{\lambda}(\bm{y})is yjλi(𝒚)\frac{\partial}{\partial y_{j}}\lambda_{i}(\bm{y}). By taking the summation over NN points 𝒚(1),𝒚(2),,𝒚(N)\bm{y}(1),\bm{y}(2),\dots,\bm{y}(N) after multiplying 𝒚𝝀(𝒚)\nabla_{\bm{y}}\bm{\lambda}(\bm{y}) to the both sides of (14), we have

[n=1N𝒚𝝀(𝒚(n))(𝒚𝝀(𝒚(n)))]\displaystyle\left[\sum_{n=1}^{N}\nabla_{\bm{y}}\bm{\lambda}(\bm{y}(n))(\nabla_{\bm{y}}\bm{\lambda}(\bm{y}(n)))^{\top}\right] 𝒒~(𝒔)=[n=1N𝒚𝝀(𝒚(n))(𝒚𝒘(𝒚(n)))]𝒉(𝒙)\displaystyle\tilde{\bm{q}}(\bm{s})=\left[\sum_{n=1}^{N}\nabla_{\bm{y}}\bm{\lambda}(\bm{y}(n))(\nabla_{\bm{y}}\bm{w}(\bm{y}(n)))^{\top}\right]\bm{h}(\bm{x})
+n=1N𝒚𝝀(𝒚(n))[i=1d{𝒚logZ(λi(𝒚(n)))}𝒚logp(𝒚(n))].\displaystyle\hskip-28.45274pt+\sum_{n=1}^{N}\nabla_{\bm{y}}\bm{\lambda}(\bm{y}(n))\left[\sum_{i=1}^{d}\left\{\nabla_{\bm{y}}\log Z(\lambda_{i}(\bm{y}(n)))\right\}-\nabla_{\bm{y}}\log p(\bm{y}(n))\right].

Taking the inverse of 𝑬:=[n=1N𝒚𝝀(𝒚(n))(𝒚𝝀(𝒚(n)))]\bm{E}:=\left[\sum_{n=1}^{N}\nabla_{\bm{y}}\bm{\lambda}(\bm{y}(n))(\nabla_{\bm{y}}\bm{\lambda}(\bm{y}(n)))^{\top}\right] on both sides completes the proof as

𝒒~(𝒔)\displaystyle\tilde{\bm{q}}(\bm{s}) =𝑬1[n=1N𝒚𝝀(𝒚(n))(𝒚𝒘(𝒚(n)))]𝑩𝒉(𝒙)\displaystyle=\underbrace{\bm{E}^{-1}\left[\sum_{n=1}^{N}\nabla_{\bm{y}}\bm{\lambda}(\bm{y}(n))(\nabla_{\bm{y}}\bm{w}(\bm{y}(n)))^{\top}\right]}_{\bm{B}}\bm{h}(\bm{x})
+𝑬1n=1N𝒚𝝀(𝒚(n))[i=1d{𝒚logZ(λi(𝒚(n)))}𝒚logp(𝒚(n))].𝒃\displaystyle+\underbrace{\bm{E}^{-1}\sum_{n=1}^{N}\nabla_{\bm{y}}\bm{\lambda}(\bm{y}(n))\left[\sum_{i=1}^{d}\left\{\nabla_{\bm{y}}\log Z(\lambda_{i}(\bm{y}(n)))\right\}-\nabla_{\bm{y}}\log p(\bm{y}(n))\right].}_{\bm{b}}