Learning Restricted Boltzmann Machines with Arbitrary External Fields
Surbhi Goel

TL;DR
This paper introduces an optimal-sample-complexity algorithm for learning ferromagnetic and antiferromagnetic Restricted Boltzmann Machines with arbitrary external fields, overcoming previous limitations to consistent external fields.
Contribution
It presents the first algorithm capable of learning RBMs with arbitrary external fields, utilizing a new structural property and covariance-based neighborhood construction.
Findings
Algorithm has optimal dependence on dimension for sample complexity and runtime.
Successfully learns RBMs with arbitrary external fields, extending prior work.
Relies on covariance properties even with arbitrary external fields.
Abstract
We study the problem of learning graphical models with latent variables. We give the first algorithm for learning locally consistent (ferromagnetic or antiferromagnetic) Restricted Boltzmann Machines (or RBMs) with {\em arbitrary} external fields. Our algorithm has optimal dependence on dimension in the sample complexity and run time however it suffers from a sub-optimal dependency on the underlying parameters of the RBM. Prior results have been established only for {\em ferromagnetic} RBMs with {\em consistent} external fields (signs must be same)\cite{bresler2018learning}. The proposed algorithm strongly relies on the concavity of magnetization which does not hold in our setting. We show the following key structural property: even in the presence of arbitrary external field, for any two observed nodes that share a common latent neighbor, the covariance is high. This enables us to…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGenerative Adversarial Networks and Image Synthesis · Model Reduction and Neural Networks · Domain Adaptation and Few-Shot Learning
\AtAppendix
Learning Restricted Boltzmann Machines with Arbitrary External Fields
Surbhi [email protected]
Abstract
We study the problem of learning graphical models with latent variables. We give the first algorithm for learning locally consistent (ferromagnetic or antiferromagnetic) Restricted Boltzmann Machines (or RBMs) with arbitrary external fields. Our algorithm has optimal dependence on dimension in the sample complexity and run time however it suffers from a sub-optimal dependency on the underlying parameters of the RBM.
Prior results have been established only for ferromagnetic RBMs with consistent external fields (signs must be same)[3]. The proposed algorithm strongly relies on the concavity of magnetization which does not hold in our setting. We show the following key structural property: even in the presence of arbitrary external field, for any two observed nodes that share a common latent neighbor, the covariance is high. This enables us to design a simple greedy algorithm that maximizes covariance to iteratively build the neighborhood of each vertex.
1 Introduction
Graphical models are a popular framework for expressing high dimensional distributions by using an underlying graph to represent conditional dependencies among the variables. Learning the underlying dependency structure of a graphical model using samples drawn from the distribution is a core problem in understanding graphical models. Much progress has been made in the recent years towards developing efficient algorithms for learning fundamental models such as Ising model and Markov random fields (MRFs) with near optimal sample and time complexity under the assumptions of sparsity and/or correlation decay.
The structure learning problem becomes even more challenging when the underlying model is allowed to have latent (or hidden) variables. Compared to fully observed models, latent variable models can induce more complex dependencies among the observed variables once the latent variables are marginalized. In this work we restrict ourselves to a special class of latent variable models known as Restricted Boltzmann machines (RBMs). RBMs have been used for various unsupervised learning tasks [7, 10, 15, 8] since their inception in the early 2000s by Geoffrey Hinton. In RBMs, the interactions are restricted to be pairwise between observed and latent variables. More formally, a RBM induces a probability distribution over observed variables and latent variables as follows,
[TABLE]
Here is the interaction matrix, are the external fields and is the partition function. Alternatively, a RBM can be viewed as a bipartite graph between the set of observed and latent variables with edge weights given by .
Recently Bresler et. al. [3] proposed an algorithm that learns ferromagnetic RBMs () with non-negative external fields (). They apply the famous Griffiths-Hurst-Sherman correlation inequality to prove that a certain influence function is submodular and use a simple greedy algorithm to maximize the same. Their work relies heavily on the GHS inequality which requires the external fields to be consistent, that is, have the same sign.
In this paper we focus on learning locally consistent RBMs (outgoing edges of each latent variable have the same sign) with arbitrary external fields. The presence of inconsistent external fields allows for different biases on different hidden nodes potentially creating more conflicts between the observed nodes making the problem more challenging. It is well-known that the presence of arbitrary external fields can greatly change the complexity of closely related problems such as approximating the partition function [5].
Our Results.
The main contribution of our paper is the following key structural property of locally consistent RBMs with arbitrary external fields.
Lemma 1** (Informal version of Lemma 2).**
For any observed node in a locally consistent RBM, for all observed nodes that share a common neighbor with in the underlying graph, the covariance between and is at least some positive constant independent of the dimension .
The above key property gives us the following structure learning result for locally consistent RBMs.
Theorem 1** (Informal version of Theorem 2).**
Consider a locally consistent RBM with arbitrary external fields such that all non-zero interactions are bounded below by and the sum of absolute weights of outgoing edges of every node (plus absolute value of external field) is bounded above by then there is an algorithm that recovers the markov blanket of each observed variable in time and sample complexity 222The sub-script indicates that the dependency on is suppressed. Also hides logarithmic dependencies..
Here the dependence on is exponential and that on is doubly exponential. Singly exponential dependence is necessary for learning. Note that our bounds are similar to those in [2]. However, we note that for ferromagnetic RBMs with consistent fields, [3] have a singly exponential dependence on which is optimal. The question to improve the dependence on for locally consisitent RBMs with arbitrary external fields is an outstanding open question.
Our Techniques.
For our key structural result, we define a transformation on the variables that enables us to use symmetry arguments in order to prove the non-negativity of the covariance. A more involved analysis lets us go further and bound the covariance by a constant independent of the input dimension.
For learning RBMs, in the spirit of the influence maximization algorithm due to Bresler [2], we maximize covariance to iteratively build the neighborhood of each observed vertex. Using an entropy argument, we can show that our iterative algorithm returns us the exact neighborhood of each vertex.
Related Work.
Structure learning for graphical models is a well studied problem, with major focus on the fully-observed model. The first algorithms were proposed by Chow and Liu [4] for learning undirected graphical models on trees. Subsequently, various algorithms were proposed for structure learning under varying assumptions on the underlying model [11, 14, 19, 2, 17, 9, 6, 18]. Bresler [2] proposed a simple greedy algorithm based on influence maximization for assumption-free structure learning of Ising models. His algorithm achieved optimal sample/time complexity in terms of the dimension however depended doubly exponentially on the degree of the underlying graph. Subsequently Vuffray et. al. [17] and Klivans and Meka [9] proposed alternative techniques to remove the doubly exponential dependence.
The problem of structure recovery in the presence of latent variables is not as well understood as the fully-observed setting. For locally tree-like models, Anandkumar and Valluvan [1] gave efficient algorithms for recovery under correlation decay assumption. Assuming that the latent variables are distributed according to a Gaussian distribution, Nussbaum and Giesen [12] proposed a likelihood model for sparse + low rank model for stucture learning. The most relevant to our work is that of [3] which proposed the first algorithm to recover the structure of ferromagnetic RBMs with non-negative external fields using concavity of magnetization. Unlike their setup, we allow the external fields to be arbitrary and relax the ferromagnetic condition to a locally-consistent condition at the cost of a worse dependence on .
2 Preliminaries
We consider a RBM on underlying bipartite graph over observed variables and latent variables with and . Each configuration of observed/latent variables is assigned probability
[TABLE]
where is the interaction matrix and are external fields. In this work, we consider the following class of locally consistent RBMs.
Definition 1**.**
A RBM is said to be -locally consistent if the following conditions are satisfied:
- •
* is locally consistent, that is, for each , for all (ferromagnetic) or for all (anti-ferromagnetic).*
- •
For all such that .
- •
For all , .
- •
For all , .
Define to be the graph-theoretic neighborhood of observed node and define to be the two-hop graph-theoretic neighborhood. We also define to be the two-hop Markov neighborhood, that is, the smallest set such that conditioned on , is independent of for all .
Our objective is to recover the two-hop Markov neighborhood of each observed variable. In our setting, this will correspond to the two-hop graph-theoretic neighborhood of each observed variables.
Remark.
We can WLOG assume since if there exists such that for all (locally consistent) then we can map without affecting the marginal on and the model is ferromagnetic at . The change of variable will reverse the external field at however since we do not make any assumption on the sign of the external field, our model assumptions still hold. We can repeat this for all such and the model can therefore be made globally ferromagnetic. We will subsequently assume that .
3 Conditional Covariance
In this section we present our main structural result. We show that for two observed nodes sharing a common latent neighbor, the covariance is positive and bounded away from 0. The main motivation to believe that such a structural result holds is the famous FKG inequality [13, 16] which states that for ferromagnetic Ising models with arbitrary external field the covariance of any two nodes is non-negative.
Define the conditional covariance for observed nodes and a subset of observed nodes with configuration as follows,
[TABLE]
We also define the notion of average conditional covariance as follows, . We will prove the following useful property of the conditional covariance:
Lemma 1**.**
For fixed node and any fixed subset of observed nodes with configuration , then for all ,
[TABLE]
Proof.
It is easy to verify that on conditioning over a set of observed variables ()), an -locally consistent RBM remains an -locally consistent RBM. Moreover, the edges between the the remaining nodes remain the same with the same edge weights. Thus, we can restrict to looking at . Also, we will WLOG assume as discussed before.
Consider the direct sum of two RBM with two copies of such that the probability of a configuration under this new distribution is
[TABLE]
Define and . Then we have
[TABLE]
Observe that . Thus under this transformation, we have
[TABLE]
Now we will bound the numerator (N) and denominator (D) separately. Since , there exists such that . Let and . We have,
[TABLE]
The following lemma is the main observation to bound the above term, it shows that each term in the summation is non-negative.
Lemma 2**.**
For all and function over such that ,
[TABLE]
Proof.
Observe that for any , exchanging does not change the summation, however it changes while leaving unchanged. Thus, if is odd, then the summation will be 0. Therefore, for the term to be non-zero, for all , must be even. Similarly, for all , must be even. Now since and there are only even powers, the summation must be positive. ∎
It is easy to see that can be expanded as a multivariate polynomial over with non-negative coefficients (since )333Since is an exponential function of a polynomial with non-negative coefficients, using taylor expansion of , we will overall get a polynomial with all non-negative coefficients.. Therefore, applying Lemma 2, we have for all ,
[TABLE]
This implies that the covariance is indeed non-negative.
Now we will show that in fact the covariance is at least a constant independent of . Since all terms are non-negative, we can lower bound the numerator by the term corresponding to and . This yields only squares of as follows,
[TABLE]
Here the second inequality follows from noting that by our assumption and hence must be at least . Lastly we bound . Define and . We have
[TABLE]
Here denote the restriction of to all indices in and similarly denote the sub-matrix obtained by restricting to the rows and columns indexed by respectively. We can show that each of the last three terms in the product can be straightforwardly bounded in . Observe that
[TABLE]
Similarly we can bound . As for the last term, we have
[TABLE]
Now, setting
[TABLE]
we have
[TABLE]
Here the second equality follows from observing that (similarly for and ). Similarly, the denominator can be bounded as follows,
[TABLE]
Combining, we have . ∎
Corollary 1**.**
For such that there exists with and a subset of observed nodes , .
Proof.
Since for any , by Lemma 2, the covariance is bounded below by , hence the expectation is also bounded by the same quantity. ∎
Remark.
Observe that the above lemma also shows that . It is not hard to see that by the structure of the RBM therefore .
Remark.
The key structural result can be extended to the setting in which there are edges between hidden and observed variables using the same techniques, however now the bound will depend on the length of the shortest path connecting two observed nodes similar to [3].
4 Algorithm
In this section we present the main algorithm (Algorithm 1) and a proof of its correctness. Our algorithm and analysis is similar to the influence maximization algorithms for learning ising models as in [2]. However, instead of maximizing influence, our algorithm exploits the key property to maximize conditional covariance. For completeness, we give the full proof.
Theorem 2**.**
Consider samples drawn from an -locally consistent RBM, . For , with probability , outputs exactly the two-hop neighborhood of each observed variable as long as
[TABLE]
Moreover, the algorithm runs in time for each node .
Proof.
The proof follows along the same lines as [2]. We will first show that our estimates of conditional covariance are close to the true values with the given samples. We will then show that after iterations, set contains a superset of the two-hop neighbors. Lastly we will show that our refining step removes all nodes except the two-hop neighbors. This will complete our proof.
Closeness of Estimates.
Denote by the event such that for all and with , simultaneously, .
Lemma 1**.**
For fixed , if the number of samples is . then .
We defer the proof of the above lemma to the appendix. Choosing , we have holds for with probability . From now om we assume holds.
Entropy Gain.
We will show that the conditional mutual information is bounded below by a function of the average conditional covariance thus at each iteration of the algorithm we are increasing the overall entropy of .
Lemma 2**.**
For and a subset of observed nodes with configuration ,
[TABLE]
Proof.
We have
[TABLE]
Here the first inequality follows using Jensen’s and the second inequality follows from the Pinsker’s inequality and the rest follow from simple algebraic manipulations. ∎
Upper Bound on Size of .
We will show that . Let the sequence of added nodes be for some and for . For each , we have (by Step 3). If , then we have for all (since holds). Thus we have,
[TABLE]
Here the inequalities follow from standard properties of entropy and mutual information. This leads to a contradiction since . Thus, we have . Observe that each iteration requires time and at most iterations take place prior to pruning. Also pruning takes time, giving us a total runtime of .
Recovery of Two-hop Neighborhood.
We will show that . Suppose , then there exists . By Lemma 1, we know that . Since holds and , we have , thus the algorithm would not have terminated. This is a contradiction, thus before pruning.
Now if then since conditional on the 2-hop neighborhood, and are independent, therefore they will be removed. Whereas, by Lemma 1, if then and our test will not remove it (estimates of covariance are correct withing ). Thus we will exactly obtain the neighborhood at the end of the algorithm. ∎
5 Hardness of Learning General RBMs
In this section we will discuss why our model does not violate the hardness result stated in [3]. The hardness result in the paper reduces the problem of learning sparse parities with noise over the uniform distribution to the problem of structure recovery of a RBM.
Suppose is the subset on which the parity problem is defined. The main technique used for the reduction is the observation from [9] that the joint distribution on the input and noisy parity can be represented as a single term MRF (term ). Further [3] showed that every MRF can be represented as a RBM with sufficiently many hidden units. Here we show that even if the external fields are arbitrary, any ferromagnetic RBM when expressed as an MRF has pairwise potentials for every two-hop neighbor pair. This implies that it cannot represent the MRF corresponding to the noisy parity.
Lemma 1** ([3]).**
Given a RBM, with , we have,
[TABLE]
Let us look at the potential corresponding to , . We will show that when you expand the term over the monomial basis, the coefficient corresponding to for any is non-negative and the coefficient corresponding to for such that is strictly positive. More formally,
Lemma 2**.**
* when expressed in the monomial basis with coefficients for every monomial satisfies: for all , moreover, for such that .*
We defer the proof of the above lemma to the appendix. Since we sum such potentials, this positive coefficient cannot be canceled and cannot represent the parity MRF as in the reduction. This raises the question of understanding the exact class of RBMs for which the hardness results truly holds.
6 Conclusions and Open Problems
In this work we presented a key structural property of locally consistent RBMs with arbitrary external fields and subsequently showed how to use this property to iteratively build the two-hop neighborhood of each node. Our algorithm runs in optimal time and sample complexity in terms of the dimension however pays doubly exponentially in the upper bound on the weights. This seems to be an artifact of the approach of maximizing influence in general whereas algorithms using convex optimization are able to avoid this dependence for fully-observed graphical models. A natural open question is to improve this dependency potentially using tools from convex optimization. Alternatively, proving a stronger structural result such as weak-submodularity could lead to the currect dependency. More broadly, understanding the most expressive class of RBMs that allow efficient structure learning while not violating the hardness result is a worthwhile future direction to pursue.
Acknowledgements.
The author would like to thank Sumegha Garg and Jessica Hoffmann for comments on the initial draft, and Adam Klivans, Frederic Koehler and Josh Vekhter for useful discussions.
Appendix A Omitted Proofs
Proof of Lemma 1.
The proof follows essentially from [2]. Let denote the number of samples. Using standard concentration inequalities, we know that for any subset and configuration , we have
[TABLE]
We need the above to hold over all possible choices of and with . There are at most many choices. Thus for , with probability, , for all and with , we have .
Now assuming that the above is true, we will show that is bounded for all . We have
[TABLE]
The second term can be bounded as follows,
[TABLE]
Choosing , we get,
[TABLE]
Thus, we have for ∎
Proof of Lemma 2.
Let be the coefficient corresponding to and , then using standard fourier expansion, we have
[TABLE]
Observe that is an increasing function of , since (), therefore . Thus the above term in non-negative. Also notice if then the sum is strictly greater than 0. Thus we have the desired property for . ∎
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Animashree Anandkumar, Ragupathyraj Valluvan, et al. Learning loopy graphical models with latent variables: Efficient methods and guarantees. The Annals of Statistics , 41(2):401–435, 2013.
- 2[2] Guy Bresler. Efficiently learning ising models on arbitrary graphs. In Proceedings of the forty-seventh annual ACM symposium on Theory of computing , pages 771–782. ACM, 2015.
- 3[3] Guy Bresler, Frederic Koehler, Ankur Moitra, and Elchanan Mossel. Learning restricted boltzmann machines via influence maximization. ar Xiv preprint ar Xiv:1805.10262 , 2018.
- 4[4] C Chow and Cong Liu. Approximating discrete probability distributions with dependence trees. IEEE transactions on Information Theory , 14(3):462–467, 1968.
- 5[5] Leslie Ann Goldberg and Mark Jerrum. The complexity of ferromagnetic ising with local fields. Combinatorics, Probability and Computing , 16(1):43–61, 2007.
- 6[6] Linus Hamilton, Frederic Koehler, and Ankur Moitra. Information theoretic properties of markov random fields, and their algorithmic applications. In Advances in Neural Information Processing Systems , pages 2463–2472, 2017.
- 7[7] Geoffrey E Hinton and Ruslan R Salakhutdinov. Reducing the dimensionality of data with neural networks. science , 313(5786):504–507, 2006.
- 8[8] Geoffrey E Hinton and Ruslan R Salakhutdinov. Replicated softmax: an undirected topic model. In Advances in neural information processing systems , pages 1607–1614, 2009.
