Introduction
Biomedical studies such as omics profiling and medical imaging measure hundreds or thousands of variables on each subject. The dependence among these variables is often concentrated within groups of related variables, such as genes in the same pathway or measures from the same brain region. The scientific questions behind these studies go beyond individual variances and pairwise correlations. We want to know which molecular features or imaging-derived phenotypes vary together, which latent processes drive their joint variation, and whether the resulting dependence structure can predict the missing measurements of a new subject. Factor analysis is a latent variable approach that explains the correlations among many observed variables through a small number of unobserved common factors. The model implies Cov ( x i ) = Λ Φ Λ T + Ψ \operatorname{Cov}(x_i) = \Lambda\Phi\Lambda^{\mathsf{T}} + \Psi Cov ( x i ) = ΛΦ Λ T + Ψ , where x i x_i x i is the vector of p p p variables for subject i i i , Λ \Lambda Λ is the p × K p \times K p × K matrix of loadings with K K K much smaller than p p p , Φ \Phi Φ is the factor covariance, and Ψ \Psi Ψ is the diagonal matrix of residual variances. This representation is useful when each factor corresponds to one such group, for example a pathway or a brain region, so that Φ \Phi Φ describes how these groups co-vary.
In practice, the factor structure is often found in two steps [15 , 10 ] . Exploratory factor analysis (EFA) chooses the number of factors and assigns factor memberships to the variables. Confirmatory factor analysis (CFA) then estimates the loadings of this structure and computes the factor scores. Through these two steps, we represent each subject by K K K factor scores instead of p p p correlated variables, and each factor stays interpretable through the variables assigned to it.
Methodological work on factor analysis, both frequentist and Bayesian, has focused mainly on the EFA step. Frequentist work has developed estimators of the number of factors, the loadings, and the covariance matrix in high dimensions [2 , 1 , 11 ] . Bayesian work has chosen the number of factors by model comparison [27 ] and has introduced shrinkage and sparsity-inducing priors on Λ \Lambda Λ that determine the number of factors and the pattern of nonzero loadings jointly [5 , 3 , 33 , 13 ] . These priors can improve covariance estimation, but the factors are then defined by the learned loadings and need not correspond to a recognizable group of variables [9 ] . The confirmatory step has received less attention. Its Bayesian formulations have been developed largely for structural equation models whose loading pattern is specified in advance [25 , 29 ] , so the posterior describes uncertainty, but a cross-loading fixed at zero stays zero. The two-step procedure itself, in which the output of EFA defines the model fitted by CFA, has been studied even less. More importantly, factor memberships are typically obtained by rotating the EFA loadings and keeping those above a threshold, which may miss the groups of strongly correlated variables. Because the CFA step and the factor scores inherit these memberships, any error in them carries over to the fitted factor covariance and to every analysis based on the factor scores.
Graph-based methods offer a different starting point. Viewing the dependence structure as a weighted graph, with the variables as nodes and their pairwise associations as weighted edges, adaptive dense-subgraph methods extract communities of strongly associated variables from large, noisy association matrices [38 ] . The interconnected community network model adds that communities may remain connected through bridge variables, which belong primarily to one community but also carry information about another [37 ] . Semi-confirmatory factor analysis (SCFA) assigns one factor to each community and fixes the loading matrix to the binary community mask [39 ] . The mask gives each factor a direct community interpretation and admits a closed-form estimator. However, all variables of a community then share the same primary loading, bridge variables cannot carry signal from a second community, the number of communities is chosen outside the model, and SCFA provides no joint posterior for the factor scores, loadings, factor covariance, and residual variation. A related nonfactor approach, BCME, uses estimated groups to regularize the within- and between-block correlation structure directly [26 ] .
To address these challenges, we propose a graph-guided two-step procedure for Bayesian factor analysis (gg-BFA, see Figure 1 ). The graph-based approach treats the sample correlation matrix as a weighted graph and groups strongly correlated variables into communities [38 , 39 ] . Each community defines one factor, and the factor covariance Φ \Phi Φ accounts for the dependence between communities. In the confirmatory step, the primary community of each variable defines what its factor represents, while cross-loadings let a variable carry signal from other communities, as bridge variables do. The four members of gg-BFA range from the binary community mask, gg-BFA (1f), through a sparse set of single cross-loadings, gg-BFA (2f+s), and one cross-loading per variable, gg-BFA (2f), to several cross-loadings per variable, gg-BFA (mf) (Figure 1 f). The Bayesian framework then gives credible intervals for the factor covariance (Figure 4 ) and predicts the missing measurements of a new subject from the same posterior. Bayesian factor models are usually fitted by Markov chain Monte Carlo [14 ] , which becomes costly when high-dimensional models must be refitted across partitions, loading structures, and cross-validation folds. We fit each member by mean-field variational inference [4 ] , whose consistency and contraction rates are established under suitable conditions [36 , 40 , 41 , 31 ] . Because mean-field approximations can understate uncertainty [16 ] , we evaluate interval calibration separately and use variational bagging [12 ] as a supplement, which we call bagged gg-BFA.
Figure 1. Overview of the two steps of gg-BFA. Step 1 explores and learns the latent structure from the input data (a) and the sample correlation matrix (b). The output graph structure reveals (i) which variables can be assigned to the same community (non-zero loadings); (ii) how many communities there are; and (iii) which variables are ‘independent’ and cannot be represented by factors. Step 2 is the confirmatory step, yielding the loadings, the factors, the covariance of the factors, and all corresponding inference (e,f,g). The TCGA Kidney data (712 subjects, 1,777 genes) are used for illustration. (a) Data X T X^{\mathsf{T}} X T , genes in rows. (b) Sample correlation in the original gene order. (c) Early stopping of the forward stepwise search (Algorithm 1): the best ELBO first decreases at K = 22 K = 22 K = 22 , so K ^ = 21 \widehat{K} = 21 K = 21 . (d) Sample correlation ordered by the selected communities. (e) Factors and initial 0/1 loadings. (f) Loading supports of the four confirmatory members (schematic; rows are variables, columns are factors); 2f+s, used in (g), is framed. (g) Covariance fitted by gg-BFA (2f+s), on the correlation scale and in the order of (d).
Figure 4. The first eight factors (F1–F8) of the TCGA Kidney data under gg-BFA. In (a), we identify the matched gene pathways for these factors (a factor is labeled as a general feature when no single dominant pathway is matched). In (b), we use a graph to denote the suprathreshold interactions among these pathways. In (c), we illustrate the posterior distributions of the parameters of the covariance matrix of the factors (* indicates that the credible interval excludes zero; ns otherwise). The member shown is gg-BFA (2f+s), whose Φ \Phi Φ keeps the correlations between communities (§ 6 ). (a) Theme and most significant pathway of each community (Hallmark, KEGG or Reactome, q < 0.05 q < 0.05 q < 0.05 ); a general feature has no pathway with q < 0.05 q < 0.05 q < 0.05 . (b) Factor correlations with ∣ r ∣ ≥ 0.5 |r| \ge0.5 ∣ r ∣ ≥ 0.5 whose 95% credible interval excludes zero. (c) Marginal posteriors of the factor covariance Φ \Phi Φ : posterior mean (number and dot), 95% credible interval (bar), and zero (dashed).
Our method makes several novel contributions. First, gg-BFA integrates the two steps. A forward stepwise search chooses the communities and their number, and the confirmatory step fits the same communities, so each factor keeps its community interpretation (Algorithm 1). Second, we show that the search recovers the true communities and that the variational posterior of the covariance contracts at the parametric rate up to a logarithmic factor, even when the number of variables grows much faster than the sample size (§ 2.4 ). The stopping rule comes from the early-stopped aggregation framework of Ohn et al. [2026], which we adapt to this setting with a guarantee that the search does not stop too late. When no finite partition is exact but the approximation error decays geometrically in the number of communities, the search stops after a number of communities that grows logarithmically with the sample size, and the selected model attains the parametric rate up to a polylogarithmic factor without knowing the rate of decay (Appendix § 10 .§ 6 ). Third, both steps work when the variables outnumber the subjects, where the maximum-likelihood EFA–CFA pipelines of psych and lavaan cannot be applied because the sample covariance matrix is singular (§ 4.1 ). Finally, with mean-field variational inference on one GPU, the whole pipeline took less than ten minutes on each of five biomedical panels, including two with more variables than subjects (§ 5 ).
Our evaluation asks, for the exploratory step, whether the search recovers the true number of communities and the true partition when they exist, whether its stopping point and covariance error behave as the theory predicts when no finite partition is exact, and how its estimated covariance compares with those of exploratory-to-confirmatory pipelines. For the confirmatory step, we ask how much of the covariance the community assignment alone explains, whether some variables must also load on the factors of other communities, whether this flexibility carries over to new subjects and to the prediction of hidden measurements, what it costs in computation, and whether the variational intervals are calibrated. Simulations with known factors, loadings, and covariances separate point recovery, misspecification, and calibration, whereas in five real-data panels (ADNI Nightingale metabolomics, TCGA Kidney and TCGA miRNA molecular data, and ABCD and UK Biobank imaging data) the evaluation focuses on covariance representation and out-of-sample behavior. Section 2 presents the two steps of gg-BFA and the theory of the exploratory step, Section 3 defines the two comparisons, and Sections 4 and 5 report the simulation and real-data results. Section 6 discusses the implications and limitations.
Methods
Let x 1 , … , x n ∈ R p 0 x_1,\ldots,x_n \in\mathbb{R}^{p_0} x 1 , … , x n ∈ R p 0 be the standardized observations of all p 0 p_0 p 0 variables on n n n subjects. A factor model with K K K factors assumes x i ∣ f i ∼ N p 0 { Λ f i , diag ( ψ ) } x_i \mid f_i \sim\mathcal{N}_{p_0}\{\Lambda f_i,\operatorname{diag}(\psi)\} x i ∣ f i ∼ N p 0 { Λ f i , diag ( ψ )} and f i ∼ N K ( 0 , Φ ) f_i \sim\mathcal{N}_K(0,\Phi) f i ∼ N K ( 0 , Φ ) , so that the covariance of x i x_i x i is Ω = Λ Φ Λ T + diag ( ψ ) \Omega= \Lambda\Phi\Lambda^{\mathsf{T}} + \operatorname{diag}(\psi) Ω = ΛΦ Λ T + diag ( ψ ) . Here f i f_i f i contains the factor scores of subject i i i , Λ \Lambda Λ is the loading matrix, Φ \Phi Φ is the factor covariance, and ψ \psi ψ contains the residual variances. The first step, EFA, chooses K K K and the pattern of nonzero loadings. The second step, CFA, then estimates Λ \Lambda Λ , Φ \Phi Φ , and ψ \psi ψ with this pattern fixed.
We view the sample correlation matrix as a weighted graph on the p 0 p_0 p 0 variables. Variables that load on the same factor are strongly correlated, so they form a dense community in this graph, and correlated factors connect their communities [37 , 39 ] . We therefore use the communities as the loading pattern, with one factor per community. The exploratory step takes the place of EFA. Section 2.1 defines the graph structure, Section 2.2 the candidate communities, Section 2.3 the forward stepwise search that chooses the communities and their number (Algorithm 1), and Section 2.4 its guarantees. The confirmatory step takes the place of CFA. Sections 2.5–2.9 give the Bayesian factor model on the selected partition, its four cross-loading members, variational inference, posterior summaries, and prediction. A partition may also be supplied in advance. The confirmatory step treats the partition as fixed and does not propagate the uncertainty of community discovery into its posterior.
Table 1 compares the four members of the framework. gg-BFA (1f) fixes the binary loading mask and shares the residual variance within each community. The other three members estimate variable-specific primary loadings and residual variances but impose different restrictions on the cross-loadings. Thus, 1f serves as a fixed community reference, whereas comparisons among 2f+s, 2f, and mf isolate the effect of increasing cross-loading flexibility.
Table 1. Loading and residual-variance restrictions for the four gg-BFA members. The suffix describes the loading support for a single variable and does not denote the total number of factors K K K . We use κ = 0.10 \kappa= 0.10 κ = 0.10 in the experiments unless stated otherwise.
Interconnected-community graph structure
Let G = ( V , E , W ) \mathcal{G}=(\mathcal{V},\mathcal{E},W) G = ( V , E , W ) be a weighted undirected graph for p 0 p_0 p 0 observed variables, where V = { 1 , … , p 0 } \mathcal{V}=\{1,\ldots,p_0\} V = { 1 , … , p 0 } and the symmetric matrix W = ( w j r ) W=(w_{jr}) W = ( w j r ) records pairwise associations, with w j j = 0 w_{jj}=0 w j j = 0 . A community partition consists of K K K disjoint, nonempty subsets V 1 , … , V K \mathcal{V}_1,\ldots,\mathcal{V}_K V 1 , … , V K . Define
V s = ⋃ k = 1 K V k , V 0 = V ∖ V s , (1) \mathcal{V}_s=\bigcup_{k=1}^{K}\mathcal{V}_k,\qquad\mathcal{V}_0=\mathcal{V}\setminus\mathcal{V}_s, \tag*{(1)} V s = k = 1 ⋃ K V k , V 0 = V ∖ V s , (1)
Variables in V s \mathcal{V}_s V s are retained for community-oriented factor modeling, whereas V 0 \mathcal{V}_0 V 0 contains variables that were not assigned to any retained community and is not included in the current confirmatory fit. These variables are not converted into singleton factors. Each induced subgraph G k = ( V k , E k ) \mathcal{G}_k=(\mathcal{V}_k,\mathcal{E}_k) G k = ( V k , E k ) forms a dense within-community backbone. The communities need not be independent. For k ≠ ℓ k\ne\ell k = ℓ , define the between-community edge set
E k ℓ ∗ = { ( j , r ) ∈ E : j ∈ V k , r ∈ V ℓ } . (2) \mathcal{E}_{k\ell}^{*}=\{(j,r)\in\mathcal{E}:j\in\mathcal{V}_k,r\in\mathcal{V}_{\ell}\}. \tag*{(2)} E k ℓ ∗ = {( j , r ) ∈ E : j ∈ V k , r ∈ V ℓ } . (2)
Communities k k k and ℓ \ell ℓ are interconnected when E k ℓ ∗ ≠ ∅ \mathcal{E}_{k\ell}^{*}\ne\varnothing E k ℓ ∗ = ∅ [37 ] . Each variable retains one primary community, although some variables may connect that community to others through between-community edges. This structure differs from a block-diagonal graph, which excludes such edges, and from an overlapping-community representation, in which a variable has multiple primary memberships.
The graph partition determines the primary factor labels but does not fix the complete loading matrix. Community V k \mathcal{V}_k V k defines factor k k k . The factor covariance Φ \Phi Φ represents dependence between the community-level factors, whereas cross-loadings allow individual variables to carry signal associated with a nonprimary community. Consequently, a posterior cross-loading is not a one-to-one estimate of a particular edge in E k ℓ ∗ \mathcal{E}_{k\ell}^{*} E k ℓ ∗ .
Estimating the primary communities by dense-subgraph search
We estimate the primary communities by the greedy dense-subgraph search of SCFA [38 , 39 ] . Let X f i t ∈ R n f i t × p 0 X^{\mathrm{fit}}\in\mathbb{R}^{n_{\mathrm{fit}}\times p_0} X fit ∈ R n fit × p 0 denote the centered and scaled observations available when the partition is estimated. This is the full analysis sample for descriptive fitting and the training sample for held-out evaluation. We form the sample correlation matrix W ^ = ( w ^ j r ) \widehat{W}=(\widehat{w}_{jr}) W = ( w j r ) and set its diagonal to zero. For a candidate percentile q ∈ ( 0 , 100 ) q\in(0,100) q ∈ ( 0 , 100 ) , let
c q = Quantile q / 100 { w ^ j r : 1 ≤ j < r ≤ p 0 } . (3) c_q=\operatorname{Quantile}_{q/100}\{\widehat{w}_{jr}:1\le j<r\le p_0\}. \tag*{(3)} c q = Quantile q /100 { w j r : 1 ≤ j < r ≤ p 0 } . (3)
The thresholded adjacency matrix retains positive correlations that reach this cutoff:
w ^ j r ( q ) = w ^ j r 1 { w ^ j r ≥ c q , w ^ j r > 0 } , j ≠ r , (4) \widehat{w}_{jr}^{(q)}=\widehat{w}_{jr}1\{\widehat{w}_{jr}\ge c_q,\ \widehat{w}_{jr}>0\},\qquad j\ne r, \tag*{(4)} w j r ( q ) = w j r 1 { w j r ≥ c q , w j r > 0 } , j = r , (4)
For a candidate vertex set C ⊆ V C\subseteq\mathcal{V} C ⊆ V , define its generalized weighted density by
D q , λ d e n ( C ) = ∑ j < r ; j , r ∈ C w ^ j r ( q ) ∣ C ∣ 2 λ d e n , λ d e n ≥ 0. (5) D_{q,\lambda_{\mathrm{den}}}(C)=\frac{\sum_{j<r;\,j,r\in C}\widehat{w}_{jr}^{(q)}}{|C|^{2\lambda_{\mathrm{den}}}},\qquad\lambda_{\mathrm{den}}\ge0. \tag*{(5)} D q , λ den ( C ) = ∣ C ∣ 2 λ den ∑ j < r ; j , r ∈ C w j r ( q ) , λ den ≥ 0. (5)
The parameter λ d e n \lambda_{\mathrm{den}} λ den controls the penalty on community size. For a fixed pair ( q , λ d e n ) (q,\lambda_{\mathrm{den}}) ( q , λ den ) , the algorithm applies minimum-weighted-degree peeling within every thresholded connected component containing at least m min m_{\min} m m i n variables. Along each peeling path, it retains the intermediate vertex set with the largest generalized density. The highest-scoring candidate is recorded as the next community, and its vertices are removed before the procedure is repeated.
Discovery stops when no eligible positive-edge component remains or when the number of detected communities reaches a prespecified upper bound K max K_{\max} K m a x . Thus, K max K_{\max} K m a x is a cap, and the realized number of communities K K K may be smaller. Variables that are not selected remain in V 0 \mathcal{V}_0 V 0 . The resulting communities define
h j = k ⟺ j ∈ V ^ k , A j k = 1 { h j = k } . (6) h_j = k \quad\Longleftrightarrow\quad j \in\widehat{\mathcal{V}}_k,\qquad A_{jk} = 1\{h_j = k\}. \tag*{(6)} h j = k ⟺ j ∈ V k , A j k = 1 { h j = k } . (6)
The minimum block size m min m_{\min} m m i n , the optional cap K max K_{\max} K m a x , and the candidate grids are specified separately for each experiment.
Running the dense-subgraph search for every tuning pair ( q , λ d e n ) (q,\lambda_{\mathrm{den}}) ( q , λ den ) in a prespecified grid H \mathcal{H} H gives a finite collection of nested community paths: along each path, the first K K K communities form a candidate partition with K K K communities. For the exploratory step the paths are run to their natural end without a cap. § 2.3 describes how one path and the number of communities are chosen from this collection.
The dense-subgraph search and the confirmatory step play different roles. The search groups the variables and assigns each variable to one primary community. The confirmatory step uses this community assignment to define the variable’s primary factor. Individual graph edges are not converted directly into cross-loadings. Instead, after the primary factors have been defined, the confirmatory step uses the observed data to determine whether a variable also loads on factors associated with other communities. The same procedure can begin with a community partition supplied by scientific knowledge rather than estimated by the dense-subgraph search.
Exploratory step: early-stopped community selection
The forward stepwise search (Algorithm 1) chooses one candidate path and the number of communities by comparing one-factor-per-community models fitted to all p 0 p_0 p 0 variables.
Selection model. For a candidate partition with communities V 1 , … , V K \mathcal{V}_1,\ldots,\mathcal{V}_K V 1 , … , V K and remaining variables V 0 \mathcal{V}_0 V 0 , the selection model assigns one factor with unit loadings to each community and treats V 0 \mathcal{V}_0 V 0 as a background block without a factor:
x i ∼ N p 0 { 0 , Ω K ( Φ , v ) } , Ω K ( Φ , v ) = A K Φ A K T + diag ( v h 1 , … , v h p 0 ) , (7) x_i \sim\mathcal{N}_{p_0}\left\{0,\Omega_K(\Phi,v)\right\},\qquad\Omega_K(\Phi,v)=A_K\Phi A_K^{\mathsf T}+\operatorname{diag}(v_{h_1},\ldots,v_{h_{p_0}}), \tag*{(7)} x i ∼ N p 0 { 0 , Ω K ( Φ , v ) } , Ω K ( Φ , v ) = A K Φ A K T + diag ( v h 1 , … , v h p 0 ) , (7)
where A K A_K A K is the p 0 × K p_0 \times K p 0 × K membership matrix, h j ∈ { 0 , … , K } h_j \in\{0,\ldots,K\} h j ∈ { 0 , … , K } is the community of variable j j j , and v h v_h v h is the residual variance shared by the variables in V h \mathcal{V}_h V h . The priors are Φ ∼ IW K ( K + 2 , I K / 2 ) \Phi\sim\operatorname{IW}_K(K+2,I_K/2) Φ ∼ IW K ( K + 2 , I K /2 ) and, independently, v h ∼ IG ( 2 , 1 / 2 ) v_h \sim\operatorname{IG}(2,1/2) v h ∼ IG ( 2 , 1/2 ) . Unlike the confirmatory step, which is fitted to the community-assigned variables only, the selection model keeps every variable, so that models with different K K K describe the same data.
Variational posterior and ELBO. For a learning rate α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) , the α \alpha α -fractional posterior of the selection model raises the likelihood to the power α \alpha α , Π K , α ( d Φ , d v ∣ X ) ∝ p ( X ∣ Φ , v ) α Π K ( d Φ , d v ) \Pi_{K,\alpha}(d\Phi,dv\mid X) \propto p(X\mid\Phi,v)^\alpha\Pi_K(d\Phi,dv) Π K , α ( d Φ , d v ∣ X ) ∝ p ( X ∣ Φ , v ) α Π K ( d Φ , d v ) , where the factor scores are integrated out of the likelihood and Π K \Pi_K Π K is the prior above. The search approximates it by the α \alpha α -fractional variational posterior Q ^ \widehat{Q} Q , the maximizer of the α \alpha α -fractional evidence lower bound over a tractable family Q K \mathcal{Q}_K Q K , and compares candidate partitions by the attained maximum,
ELBO = max Q ∈ Q K [ α E Q { log p ( X ∣ Φ , v ) } − KL ( Q ∥ Π K ) ] . (8) \operatorname{ELBO}=\max_{Q\in\mathcal{Q}_K}\left[\alpha\,\mathbb{E}_Q\{\log p(X\mid\Phi,v)\}-\operatorname{KL}(Q\mathbin\Vert\Pi_K)\right]. \tag*{(8)} ELBO = Q ∈ Q K max [ α E Q { log p ( X ∣ Φ , v )} − KL ( Q ∥ Π K ) ] . (8)
where Q K Q_K Q K contains the products of an inverse-Wishart distribution for Φ \Phi Φ and inverse-gamma distributions for the v h v_h v h . Maximizing the same objective over all distributions would return the fractional posterior itself, with maximum log ∫ p ( X ∣ Φ , v ) α Π K ( d Φ , d v ) \log\int p(X \mid\Phi,v)^\alpha\Pi_K(d\Phi,dv) log ∫ p ( X ∣ Φ , v ) α Π K ( d Φ , d v ) , the logarithm of the fractional marginal likelihood; restricting the maximization to Q K Q_K Q K gives its variational approximation Q ^ \widehat{Q} Q , and the ELBO is a lower bound on this logarithm. Larger values are better. The covariance estimate of a fitted model is computed from Q ^ \widehat{Q} Q . The learning rate balances the likelihood against the prior. We set α = α 0 \alpha= \alpha_0 α = α 0 , the learning rate of Lyddon et al. [2019] evaluated at the null model in which all variables share one variance; it is approximately the effective number of variables divided by p 0 p_0 p 0 and is computed before any community is fitted (Appendix § 9 ).
Search. Every distinct partition formed by the first K K K communities of a candidate path is a candidate with K K K communities. At each K K K , the search fits every candidate with K K K communities and keeps the largest ELBO; the partition that attains it may change from one K K K to the next. The search stops at the first K K K at which this largest ELBO decreases and returns the best visited model (Algorithm 1). Models with more communities than the stopping point are never fitted. The selected partition defines the primary communities used by the confirmatory step below.
Two-stage acceleration. Fitting every candidate at every K K K can be costly for large panels. The two-stage version (Algorithm 2) first compares the candidates at a common reference size and keeps one path, a single empirical-Bayes choice of the tuning pair; it then moves along the kept path and stops at the first decrease of the ELBO. On our panels it fits about an order of magnitude fewer models, and the real-data analyses use it. It inherits the guarantees of § 2.4 only when the kept path contains the true partition and the bias decreases sufficiently along it (Appendix § 10 .8). Appendix § 9 gives the implementation details of both versions, including the Monte Carlo evaluation of the ELBO.
Table 1 (PDF p. 8).
Theoretical guarantees
Two results support the exploratory step, and both extend, under the conditions of Appendix § 12 , to a number of variables that grows much faster than the sample size. Theorem 1 shows that, with probability tending to one, the search stops at most one step after the true number of communities and returns the true partition. Theorem 2 shows that the variational posterior of the covariance then contracts around the truth at the parametric rate up to a logarithmic factor.
Algorithm 2 Two-stage acceleration of the exploratory step
Require: standardized data X ∈ R n × p 0 X \in\mathbb{R}^{n\times p_0} X ∈ R n × p 0 ; grid H \mathcal{H} H of tuning pairs
Run the dense-subgraph search and compute α 0 \alpha_0 α 0 as in Algorithm 1.
Stage 1. Let K r e f K_{\mathrm{ref}} K ref be the length of the shortest path. Among the distinct partitions formed by the first K r e f K_{\mathrm{ref}} K ref communities of the paths, keep the path whose partition has the largest ELBO.
Stage 2. Along the kept path, compute the ELBOs E L B O 0 , E L B O 1 , … \mathrm{ELBO}_0,\mathrm{ELBO}_1,\ldots ELBO 0 , ELBO 1 , … of its first K K K communities and stop at the first K K K with E L B O K < E L B O K − 1 \mathrm{ELBO}_K < \mathrm{ELBO}_{K-1} ELBO K < ELBO K − 1 , or at the end of the path.
return the K K K with the largest ELBO among the layers visited in stage 2 (ties go to the larger K K K ), its partition, and its fractional variational posterior Q ^ \widehat{Q} Q .
We analyze the exploratory step for Gaussian data. The analysis adapts the early-stopping theory of Ohn et al. [ [30 ] ; complete statements and proofs are given in Appendix § 10 . The theorems concern independent Gaussian observations from the selection model (7) , a fixed learning rate, fixed candidate paths, and exact maximization of the ELBO. Appendix § 10 .8 discusses what lies outside this setting: standardization, the data-dependent paths and α 0 \alpha_0 α 0 , numerical approximation, and the two-stage version. Write Ω ∗ \Omega_* Ω ∗ for the true covariance, Q ^ \widehat{Q} Q for the variational posterior of the selected model, and d ∗ = ( K ∗ + 1 ) ( K ∗ + 2 ) / 2 d_* = (K_*+1)(K_*+2)/2 d ∗ = ( K ∗ + 1 ) ( K ∗ + 2 ) /2 for the number of parameters of the true model (one fewer when its background is empty).
Theorem 1 (Selection of the community structure). Suppose that Ω ∗ \Omega_* Ω ∗ has the form (7) with K ∗ ≥ 1 K_* \ge1 K ∗ ≥ 1 communities, each containing at least two variables, and a positive-definite factor covariance; that the first K ∗ K_* K ∗ communities of some candidate path form the true partition; and that the bias of the best candidate decreases sufficiently with each added community, in the sense of Assumption (W) in Appendix § 10 .§ 5 . If p 0 p_0 p 0 and the paths do not change with n n n , then, with probability tending to one, the search stops at K ∗ + 1 K_*+1 K ∗ + 1 , or at K ∗ K_* K ∗ if no path has more communities, and returns K ^ = K ∗ \widehat{K}=K_* K = K ∗ together with the true partition.
Theorem 2 (Covariance estimation). Under the conditions of Theorem 1 , let A n → ∞ A_n \to\infty A n → ∞ and r n = { d ∗ log n / ( n α ( 1 − α ) ) } 1 / 2 r_n = \{d_* \log n/(n\alpha(1-\alpha))\}^{1/2} r n = { d ∗ log n / ( n α ( 1 − α )) } 1/2 . Then
Q ^ ( ∥ Ω ∗ − 1 / 2 Ω Ω ∗ − 1 / 2 − I ∥ F > A n r n ) → 0 \widehat{Q}\left(\left\|\Omega_*^{-1/2}\Omega\Omega_*^{-1/2}-I\right\|_F>A_nr_n\right)\to0 Q ( Ω ∗ − 1/2 Ω Ω ∗ − 1/2 − I F > A n r n ) → 0 in probability, where Ω = Ω K ^ ( Φ , v ) \Omega=\Omega_{\widehat{K}}(\Phi,v) Ω = Ω K ( Φ , v ) is the covariance of the selected model under Q ^ \widehat{Q} Q . Moreover, the posterior mean Ω ^ = E Q ^ Ω \widehat{\Omega}=\mathbb{E}_{\widehat{Q}}\Omega Ω = E Q Ω satisfies ∥ Ω ∗ − 1 / 2 Ω ^ Ω ∗ − 1 / 2 − I ∥ F ≤ A n r n \left\|\Omega_*^{-1/2}\widehat{\Omega}\Omega_*^{-1/2}-I\right\|_F\le A_nr_n Ω ∗ − 1/2 Ω Ω ∗ − 1/2 − I F ≤ A n r n with probability tending to one.
Both results rest on two deterministic curves that, with high probability, bound the gap between α \alpha α times the log-likelihood of the truth and the ELBO of every model. The lower curve is driven by the Rényi divergence between the truth and the model, so the gap of a model that misses a community is at least of order n n n . The upper curve is driven by the Kullback–Leibler divergence plus a parameter cost of order d K log n d_K\log n d K log n , so the gap of the true model is at most of order log n \log n log n . A model with more than K ∗ K_* K ∗ communities can reproduce Ω ∗ \Omega_* Ω ∗ only with a singular factor covariance, where the inverse-Wishart prior has little mass; this gives a penalty at least of order n 1 / 3 n^{1/3} n 1/3 , and the search stops at $K_*+1. The first part of Theorem 2 then follows from a PAC-Bayes bound for the selected model. For the posterior mean, contraction alone is not enough, because a little mass far from the truth can move the mean; we use in addition that every member of the variational family concentrates around its own mean. For a fixed learning rate, the rate is the parametric rate d ∗ / n \sqrt{d_*/n} d ∗ / n up to a factor of order log n \sqrt{\log n} log n . No estimator converges faster than the parametric rate uniformly near the truth, even one that knows the true partition (Appendix § 10 .§ 5 ), so the selected model attains the optimal rate up to this factor without knowing K ∗ K_* K ∗ . Assumption (W) is substantive: it compares a Rényi bias with a Kullback–Leibler bias, and it can fail when the communities are large relative to 1 / α 1/\alpha 1/ α , even though the true partition is a candidate. Appendix D shows that, when the number of communities is fixed and the candidate models satisfy a uniform separation condition, the selection guarantee and the contraction of the variational posterior extend to p 0 p_0 p 0 that grows with n n n and exceeds it, with d ∗ log n d_* \log n d ∗ log n replaced by d ∗ log n + ( K ∗ + 1 ) log p 0 d_* \log n + (K_* + 1)\log p_0 d ∗ log n + ( K ∗ + 1 ) log p 0 ; the guarantee for the posterior mean is proved only in fixed dimension. Appendix D also gives a sequence with fixed communities and a growing background in which the condition holds. Appendix B.6 states, under an assumption on the two curves that describes a bias decaying geometrically in K K K , that the search stops after about ( log n ) / γ (\log n)/\gamma ( log n ) / γ communities and that, without knowing the decay rate γ \gamma γ , the selected model attains the parametric rate up to a polylogarithmic factor. For the two-stage version, the conclusions of Theorems 1 and 2 hold when, with probability tending to one, the kept path contains the true partition and Assumption (W) holds along it (Appendix B.8). Compared with Ohn et al. [ [30 ] , who show that early stopping does not stop too early for variational empirical Bayes, the finite candidate paths allow a weaker separation condition and an additional guarantee that the search does not stop too late.
Probability model of the confirmatory step and identification
After community discovery, we retain the p = ∣ V s ∣ p = |\mathcal{V}_s| p = ∣ V s ∣ assigned variables and relabel them as 1 , … , p 1,\ldots,p 1 , … , p . Let x i ∈ R p x_i \in\mathbb{R}^p x i ∈ R p denote the centered and scaled measurements for subject i i i . Conditional on the primary community labels h = ( h 1 , … , h p ) h = (h_1,\ldots,h_p) h = ( h 1 , … , h p ) , the confirmatory step assumes
x i ∣ f i , Λ , ψ ∼ N ( Λ f i , diag ( ψ ) ) , f i ∼ N ( 0 , Φ ) , (9) x_i \mid f_i,\Lambda,\psi\sim\mathcal{N}\left(\Lambda f_i,\operatorname{diag}(\psi)\right), \qquad f_i \sim\mathcal{N}(0,\Phi), \tag*{(9)} x i ∣ f i , Λ , ψ ∼ N ( Λ f i , diag ( ψ ) ) , f i ∼ N ( 0 , Φ ) , (9)
The vector f i ∈ R K f_i \in\mathbb{R}^K f i ∈ R K contains the subject’s scores on the K K K community-oriented factors. The loading matrix Λ = ( λ 1 , … , λ p ) ⊤ ∈ R p × K \Lambda= (\lambda_1,\ldots,\lambda_p)^\top\in\mathbb{R}^{p\times K} Λ = ( λ 1 , … , λ p ) ⊤ ∈ R p × K connects these factors to the observed variables, and Φ ∈ S + + K \Phi\in\mathbb{S}^{K}_{++} Φ ∈ S ++ K describes dependence among the factors. The residual variances in ψ = ( ψ 1 , … , ψ p ) ⊤ ∈ R + p \psi= (\psi_1,\ldots,\psi_p)^\top\in\mathbb{R}^p_+ ψ = ( ψ 1 , … , ψ p ) ⊤ ∈ R + p are variable-specific for the learned-loading members and shared within communities for 1f.
Integrating out the factor scores gives the observation covariance
Ω : = Cov ( x i ∣ Λ , Φ , ψ ) = Λ Φ Λ ⊤ + diag ( ψ ) . (10) \Omega:= \operatorname{Cov}(x_i \mid\Lambda,\Phi,\psi) = \Lambda\Phi\Lambda^\top+ \operatorname{diag}(\psi). \tag*{(10)} Ω := Cov ( x i ∣ Λ , Φ , ψ ) = ΛΦ Λ ⊤ + diag ( ψ ) . (10)
This is the covariance matrix estimated and evaluated in the real-data comparisons.
For a variable j j j assigned to primary factor h j h_j h j , we treat the nonprimary loadings η j k \eta_{jk} η j k , k ≠ h j k \ne h_j k = h j , as the free loading parameters. The primary loading is then determined by
λ j = e h j + ∑ k ≠ h j η j k ( e k − e h j ) , λ j , h j = 1 − ∑ k ≠ h j η j k , (11) \lambda_j = e_{h_j} + \sum_{k \ne h_j} \eta_{jk}(e_k-e_{h_j}), \qquad\lambda_{j,h_j} = 1-\sum_{k \ne h_j}\eta_{jk}, \tag*{(11)} λ j = e h j + k = h j ∑ η j k ( e k − e h j ) , λ j , h j = 1 − k = h j ∑ η j k , (11)
where e k e_k e k is the k k k th coordinate vector. Consequently, every loading row satisfies
1 K ⊤ λ j = 1. (12) \mathbf{1}_K^\top\lambda_j = 1. \tag*{(12)} 1 K ⊤ λ j = 1. (12)
When all cross-loadings are zero, λ j = e h j \lambda_j=e_{h_j} λ j = e h j , which recovers the binary community mask. If a single cross-loading equals 0.2 0.2 0.2 , for example, the corresponding primary loading becomes 0.8 0.8 0.8 . The loadings are signed, so this constraint does not require them to be nonnegative.
This parameterization places the loading rows on a common scale and keeps the no-cross-loading model aligned with the community mask. It does not, by itself, remove every possible factor rotation. The community labels and shrinkage toward the binary mask provide the additional orientation used by the model. A variable’s primary factor therefore records its assigned community, but it need not have the largest loading in absolute value.
The three learned-loading members use the same likelihood, factor-score model, residual-variance prior, and factor-covariance prior. They differ only in the support and prior assigned to the cross-loadings. Their common priors are
ψ j ∼ IG ( a 0 , b 0 ) , Φ ∼ IW K ( ν Φ ( 0 ) , Ψ Φ ( 0 ) ) , (13) \psi_j \sim\operatorname{IG}(a_0,b_0), \qquad\Phi\sim\operatorname{IW}_K\left(\nu_{\Phi}^{(0)},\Psi_{\Phi}^{(0)}\right), \tag*{(13)} ψ j ∼ IG ( a 0 , b 0 ) , Φ ∼ IW K ( ν Φ ( 0 ) , Ψ Φ ( 0 ) ) , (13)
ν Φ ( 0 ) = K + 1 + ν 0 , Ψ Φ ( 0 ) = ν 0 τ f I K . (14) \nu_{\Phi}^{(0)} = K+1+\nu_0, \qquad\Psi_{\Phi}^{(0)}=\nu_0\tau_f I_K. \tag*{(14)} ν Φ ( 0 ) = K + 1 + ν 0 , Ψ Φ ( 0 ) = ν 0 τ f I K . (14)
Under this parameterization, E ( Φ ) = τ f I K E(\Phi)=\tau_f I_K E ( Φ ) = τ f I K . Thus, the prior centers the factor covariance on independent factors with common variance τ f \tau_f τ f , while the posterior remains free to estimate dependence between factors.
The fixed-loading member: gg-BFA (1f). The fixed-loading member, gg-BFA (1f), imposes
η j k = 0 ( k ≠ h j ) , Λ = A , ψ j = v h j , v h ∼ IG ( a 0 , b 0 ) , (15) \eta_{jk}=0\quad(k\ne h_j), \qquad\Lambda=A, \qquad\psi_j=v_{h_j}, \qquad v_h\sim\operatorname{IG}(a_0,b_0), \tag*{(15)} η j k = 0 ( k = h j ) , Λ = A , ψ j = v h j , v h ∼ IG ( a 0 , b 0 ) , (15)
Each variable therefore loads one on its primary factor and zero on all other factors, while variables in the same community share a residual variance. The factor scores, community-specific residual variances, and the full factor covariance Φ \Phi Φ remain unknown and are estimated from the data. Unlike frequentist CFA estimators, 1f provides variational posterior distributions for these quantities. Because it also ties residual variances within communities, 1f is not obtained simply by turning off the cross-loadings in one of the learned-loading members. We retain SCFA and ML-CFA as separate frequentist comparison methods.
Cross-loading specifications
For each nonprimary factor k ≠ h j k\ne h_j k = h j , let γ j k = 1 \gamma_{jk}=1 γ j k = 1 indicate that variable j j j has an active cross-loading on factor k k k . The three learned-loading members use the same signed row-sum parameterization but impose different restrictions on these indicators. The mf member permits multiple active cross-loadings in one row, 2f permits at most one, and 2f+s adds a community-level limit so that only a sparse subset of variables within each primary community may cross-load.
gg-BFA (mf)
gg-BFA (mf) allows any combination of the K − 1 K-1 K − 1 nonprimary loading components to be active. Each component has a continuous spike-and-slab prior:
γ j k ∼ Bernoulli ( π ) , k ≠ h j , (16) \gamma_{jk}\sim\operatorname{Bernoulli}(\pi), \qquad k\ne h_j, \tag*{(16)} γ j k ∼ Bernoulli ( π ) , k = h j , (16)
η j k ∣ γ j k ∼ { N ( 0 , σ s l a b 2 ) , γ j k = 1 , N ( 0 , σ s p i k e 2 ) , γ j k = 0 , (17) \eta_{jk}\mid\gamma_{jk}\sim
\begin{cases}
\mathcal{N}(0,\sigma_{\mathrm{slab}}^2), & \gamma_{jk}=1,\\
\mathcal{N}(0,\sigma_{\mathrm{spike}}^2), & \gamma_{jk}=0,
\end{cases} \tag*{(17)} η j k ∣ γ j k ∼ { N ( 0 , σ slab 2 ) , N ( 0 , σ spike 2 ) , γ j k = 1 , γ j k = 0 , (17)
Here, π \pi π is the prior probability that a nonprimary loading is active, and σ s p i k e 2 ≪ σ s l a b 2 \sigma_{\mathrm{spike}}^2\ll\sigma_{\mathrm{slab}}^2 σ spike 2 ≪ σ slab 2 . Because the spike variance is small but nonzero, an inactive component is strongly shrunk toward zero rather than fixed exactly at zero. The posterior probability Pr ( γ j k = 1 ∣ X ) \Pr(\gamma_{jk}=1\mid X) Pr ( γ j k = 1 ∣ X ) measures the evidence for that cross-loading. The primary loading is then obtained from the signed row-sum constraint.
gg-BFA (2f)
gg-BFA (2f) allows a variable to load on its primary factor and at most one additional factor. For variable j j j , define s j ∈ { 0 } ∪ ( { 1 , … , K } ∖ { h j } ) s_j \in\{0\} \cup(\{1,\ldots,K\} \setminus\{h_j\}) s j ∈ { 0 } ∪ ({ 1 , … , K } ∖ { h j }) , where s j = 0 s_j=0 s j = 0 denotes no cross-loading and s j = k s_j=k s j = k selects factor k k k as the single cross-loading target. For variables whose primary factor is h h h , we use
θ h ∼ Beta ( a θ , b θ ) , ω h , − h ∼ Dirichlet ( α ω 1 ) , (18) \theta_h \sim\operatorname{Beta}(a_\theta,b_\theta), \qquad\omega_{h,-h} \sim\operatorname{Dirichlet}(\alpha_\omega\mathbf{1}), \tag*{(18)} θ h ∼ Beta ( a θ , b θ ) , ω h , − h ∼ Dirichlet ( α ω 1 ) , (18)
Pr ( s j = 0 ∣ θ h ) = 1 − θ h , Pr ( s j = k ∣ θ h , ω h ) = θ h ω h k , (19) \Pr(s_j=0 \mid\theta_h)=1-\theta_h, \qquad\Pr(s_j=k \mid\theta_h,\omega_h)=\theta_h\omega_{hk}, \tag*{(19)} Pr ( s j = 0 ∣ θ h ) = 1 − θ h , Pr ( s j = k ∣ θ h , ω h ) = θ h ω hk , (19)
η j ∣ s j = k ∼ N ( 0 , σ a 2 ) , λ j = { e h j , s j = 0 , e h j + η j ( e k − e h j ) , s j = k . (20) \eta_j \mid s_j=k \sim\mathcal{N}(0,\sigma_a^2), \qquad
\lambda_j =
\begin{cases}
e_{h_j}, & s_j=0,\\
e_{h_j}+\eta_j(e_k-e_{h_j}), & s_j=k.
\end{cases} \tag*{(20)} η j ∣ s j = k ∼ N ( 0 , σ a 2 ) , λ j = { e h j , e h j + η j ( e k − e h j ) , s j = 0 , s j = k . (20)
The parameter θ h \theta_h θ h controls how often variables in community h h h cross-load, while ω h \omega_h ω h distributes those cross-loadings across the other communities. The Gaussian variable η j \eta_j η j determines the magnitude and sign of the selected cross-loading. Equivalently, γ j k = 1 { s j = k } \gamma_{jk}=\mathbf{1}\{s_j=k\} γ j k = 1 { s j = k } . By construction, every posterior draw contains at most one cross-loading in each row. A posterior mean row may contain small entries in several nonprimary columns because it averages over mutually exclusive target states.
gg-BFA (2f+s)
gg-BFA (2f+s) retains the single-target loading structure of 2f and adds a community-level sparsity constraint. Let B h = { j : h j = h } \mathcal{B}_h=\{j:h_j=h\} B h = { j : h j = h } , g j = 1 { s j ≠ 0 } g_j=\mathbf{1}\{s_j\ne0\} g j = 1 { s j = 0 } , and define
L h = ⌊ κ ∣ B h ∣ ⌋ , ∑ j ∈ B h g j ≤ L h , 0 ≤ κ ≤ 1. (21) L_h=\lfloor\kappa|\mathcal{B}_h|\rfloor, \qquad\sum_{j\in\mathcal{B}_h}g_j\le L_h, \qquad0\le\kappa\le1. \tag*{(21)} L h = ⌊ κ ∣ B h ∣ ⌋ , j ∈ B h ∑ g j ≤ L h , 0 ≤ κ ≤ 1. (21)
Thus, L h L_h L h is the maximum number of variables in community h h h that may cross-load in one posterior draw. The gate vector has the truncated Bernoulli prior
p ( g B h ) ∝ 1 { ∑ j ∈ B h g j ≤ L h } ∏ j ∈ B h π g g j ( 1 − π g ) 1 − g j . (22) p(g_{\mathcal{B}_h}) \propto\mathbf{1}\left\{\sum_{j\in\mathcal{B}_h}g_j\le L_h\right\}\prod_{j\in\mathcal{B}_h}\pi_g^{g_j}(1-\pi_g)^{1-g_j}. \tag*{(22)} p ( g B h ) ∝ 1 ⎩ ⎨ ⎧ j ∈ B h ∑ g j ≤ L h ⎭ ⎬ ⎫ j ∈ B h ∏ π g g j ( 1 − π g ) 1 − g j . (22)
The parameter π g \pi_g π g controls the prior preference for cross-loading before the community-level constraint is applied. Conditional on g j = 1 g_j=1 g j = 1 , the target community and cross-loading magnitude follow the same categorical and Gaussian distributions as in 2f. The parameter κ \kappa κ limits the number of cross-loading rows rather than the magnitude of their loadings. We use κ = 0.10 \kappa=0.10 κ = 0.10 unless stated otherwise; the dataset-specific settings are reported in § 4 .
At the level of individual loading rows, the four structures form the nested sequence
L 1 f ⊂ L 2 f + s ⊂ L 2 f ⊂ L m f . (23) \mathcal{L}_{1\mathrm{f}} \subset\mathcal{L}_{2\mathrm{f+s}} \subset\mathcal{L}_{2\mathrm{f}} \subset\mathcal{L}_{\mathrm{mf}}. \tag*{(23)} L 1 f ⊂ L 2 f + s ⊂ L 2 f ⊂ L mf . (23)
For 2f and 2f+s, setting every row to the state s j = 0 s_j=0 s j = 0 recovers the binary loading mask. For mf, setting γ j k = 0 \gamma_{jk}=0 γ j k = 0 is not sufficient because its continuous spike has nonzero variance; the cross-loading amplitudes must also be fixed exactly at zero. This nesting describes the loading structures only. The complete 1f model additionally differs by sharing residual variances within each community. Moving from 1f to mf therefore increases the range of cross-community covariance patterns that the loading matrix can represent. Figure 1 f shows the four loading supports schematically.
Variational inference for the confirmatory step
Posterior inference is based on a variational approximation. Let θ \theta θ collect the latent variables and unknown parameters of a loading specification. We choose q q q from a tractable family Q \mathcal{Q} Q to minimize the reverse Kullback–Leibler divergence from the exact posterior,
q ∗ = arg min q ∈ Q KL { q ( θ ) ∥ p ( θ ∣ X ) } = arg max q ∈ Q L ( q ) , L ( q ) = E q { log p ( X , θ ) } − E q { log q ( θ ) } , (24) q^{*}=\underset{q\in\mathcal{Q}}{\arg\min}\operatorname{KL}\{q(\theta)\parallel p(\theta\mid X)\}=\underset{q\in\mathcal{Q}}{\arg\max}\mathcal{L}(q),\qquad\mathcal{L}(q)=\mathbb{E}_{q}\{\log p(X,\theta)\}-\mathbb{E}_{q}\{\log q(\theta)\}, \tag*{(24)} q ∗ = q ∈ Q arg min KL { q ( θ ) ∥ p ( θ ∣ X )} = q ∈ Q arg max L ( q ) , L ( q ) = E q { log p ( X , θ )} − E q { log q ( θ )} , (24)
where the evidence lower bound L ( q ) \mathcal{L}(q) L ( q ) satisfies log p ( X ) = L ( q ) + KL { q ( θ ) ∥ p ( θ ∣ X ) } \log p(X)=\mathcal{L}(q)+\operatorname{KL}\{q(\theta)\parallel p(\theta\mid X)\} log p ( X ) = L ( q ) + KL { q ( θ ) ∥ p ( θ ∣ X )} . The family factorizes into blocks,
q ( θ ) = ∏ g = 1 G q g ( θ g ) , (25) q(\theta)=\prod_{g=1}^{G}q_g(\theta_g), \tag*{(25)} q ( θ ) = g = 1 ∏ G q g ( θ g ) , (25)
for the factor covariance, the subject-specific factor scores, the residual variances, and the loading parameters; a block keeps the internal dependence required by its loading specification. We optimize q q q by coordinate ascent: holding the other blocks fixed, the update for block g g g is log q g ∗ ( θ g ) = E q − g { log p ( X , θ ) } + constant \log q_g^{*}(\theta_g)=\mathbb{E}_{q_{-g}}\{\log p(X,\theta)\}+\text{constant} log q g ∗ ( θ g ) = E q − g { log p ( X , θ )} + constant , and iterating these updates increases L ( q ) \mathcal{L}(q) L ( q ) until the convergence criterion is met.
Posterior factorization
For gg-BFA (1f), the mean-field variational family in Eq. (25) separates the posterior blocks for the factor covariance, subject-specific factor scores, and community-specific residual variances. The loading matrix is fixed at the binary community mask A A A , and every nonprimary loading indicator is fixed at zero. Its variational family is therefore
q 1 f ( F , Φ , v , Λ , γ ) = q ( Φ ) ∏ i = 1 n q ( f i ) ∏ h = 1 K q ( v h ) δ A ( Λ ) δ 0 ( γ ) , (26) q_{1\mathrm{f}}(F,\Phi,v,\Lambda,\gamma)=q(\Phi)\prod_{i=1}^{n}q(f_i)\prod_{h=1}^{K}q(v_h)\delta_A(\Lambda)\delta_0(\gamma), \tag*{(26)} q 1 f ( F , Φ , v , Λ , γ ) = q ( Φ ) i = 1 ∏ n q ( f i ) h = 1 ∏ K q ( v h ) δ A ( Λ ) δ 0 ( γ ) , (26)
Here, δ A ( Λ ) \delta_A(\Lambda) δ A ( Λ ) and δ 0 ( γ ) \delta_0(\gamma) δ 0 ( γ ) are point masses at the fixed loading matrix and inactive cross-loading states. The score factor q ( f i ) q(f_i) q ( f i ) is multivariate Gaussian, q ( v h ) q(v_h) q ( v h ) is inverse-Gamma, and q ( Φ ) q(\Phi) q ( Φ ) is inverse-Wishart. Thus, fixing the loadings does not remove posterior inference for the scores, factor covariance, or residual variances. All variables assigned to community h h h share v h v_h v h , so their residual variances are tied rather than estimated separately.
The three learned-loading members use the same mean-field construction but replace the fixed loading matrix with an option-specific loading block ξ o \xi_o ξ o :
q o ( F , Φ , ψ , ξ o ) = q ( Φ ) ∏ i = 1 n q ( f i ) ∏ j = 1 p q ( ψ j ) q o ( ξ o ) , o ∈ { 2 f + s , 2 f , m f } , (27) q_o(F,\Phi,\psi,\xi_o)=q(\Phi)\prod_{i=1}^{n}q(f_i)\prod_{j=1}^{p}q(\psi_j)q_o(\xi_o),\qquad o\in\{2\mathrm{f}+\mathrm{s},2\mathrm{f},\mathrm{mf}\}, \tag*{(27)} q o ( F , Φ , ψ , ξ o ) = q ( Φ ) i = 1 ∏ n q ( f i ) j = 1 ∏ p q ( ψ j ) q o ( ξ o ) , o ∈ { 2 f + s , 2 f , mf } , (27)
The factor covariance, subject-specific scores, and residual variances form separate mean-field blocks. Here, q ( f i ) = N ( m i , V f ) q(f_i)=\mathcal{N}(m_i,V_f) q ( f i ) = N ( m i , V f ) , q ( ψ j ) = IG ( a j , b j ) q(\psi_j)=\operatorname{IG}(a_j,b_j) q ( ψ j ) = IG ( a j , b j ) , and q ( Φ ) q(\Phi) q ( Φ ) is inverse-Wishart. Unlike 1f, these models estimate a separate residual variance for every variable. The block q o ( ξ o ) q_o(\xi_o) q o ( ξ o ) contains the loading variables and retains the internal dependence required by the corresponding cross-loading restriction.
For gg-BFA (mf), each possible nonprimary loading has its own inclusion indicator and loading amplitude. The corresponding variational block factorizes across variables and nonprimary factors:
q m f ( ξ m f ) = ∏ j = 1 p ∏ k ≠ h j q ( γ j k ) q ( η j k ∣ γ j k ) . (28) q_{\mathrm{mf} }(\xi_{\mathrm{mf}})=\prod_{j=1}^{p}\prod_{k\ne h_j}q(\gamma_{jk})q(\eta_{jk}\mid\gamma_{jk}). \tag*{(28)} q mf ( ξ mf ) = j = 1 ∏ p k = h j ∏ q ( γ j k ) q ( η j k ∣ γ j k ) . (28)
For each candidate cross-loading, q ( γ j k ) = Bernoulli ( ρ j k ) q(\gamma_{jk}) = \operatorname{Bernoulli}(\rho_{jk}) q ( γ j k ) = Bernoulli ( ρ j k ) , where ρ j k \rho_{jk} ρ j k is its posterior inclusion probability. Conditional on γ j k = c \gamma_{jk} = c γ j k = c , q ( η j k ∣ γ j k = c ) q(\eta_{jk} \mid\gamma_{jk} = c) q ( η j k ∣ γ j k = c ) is Gaussian for c ∈ { 0 , 1 } c \in\{0, 1\} c ∈ { 0 , 1 } . This construction preserves the dependence between the inclusion indicator and loading amplitude within each pair, while treating different pairs as separate mean-field blocks. The primary loading is recovered through the signed unit-row-sum constraint in Eq. (11) ; consequently, the elements of a complete loading row are not variationally independent.
gg-BFA (2f) represents the cross-loading decision for each variable by a single categorical state. For a variable whose primary community is h h h , the state s j = 0 s_j = 0 s j = 0 denotes no cross-loading, whereas s j = k s_j = k s j = k selects one target factor k ≠ h k \ne h k = h . Its structured variational family is
q 2 f ( ξ 2 f ) = ∏ h = 1 K { q ( θ h ) q ( ω h ) ∏ j : h j = h q ( s j ) q ( η j ∣ s j ) } , (29) q_{2\mathrm{f}}(\xi_{2\mathrm{f}}) = \prod_{h=1}^{K} \left\{q(\theta_h)q(\omega_h)\prod_{j:h_j=h}q(s_j)q(\eta_j \mid s_j)\right\}, \tag*{(29)} q 2 f ( ξ 2 f ) = h = 1 ∏ K ⎩ ⎨ ⎧ q ( θ h ) q ( ω h ) j : h j = h ∏ q ( s j ) q ( η j ∣ s j ) ⎭ ⎬ ⎫ , (29)
Here, q ( θ h ) q(\theta_h) q ( θ h ) is Beta and describes the community-level propensity to cross-load. The Dirichlet factor q ( ω h ) q(\omega_h) q ( ω h ) distributes this probability among the K − 1 K - 1 K − 1 allowable target factors. Each q ( s j ) q(s_j) q ( s j ) is categorical over the no-cross-loading state and the K − 1 K - 1 K − 1 possible targets, while q ( η j ∣ s j ) q(\eta_j \mid s_j) q ( η j ∣ s j ) is Gaussian for an active target. Because the target is represented by one categorical state, every posterior draw contains at most one cross-loading in each row. The row therefore has K K K possible states rather than the 2 K − 1 2^{K-1} 2 K − 1 subsets allowed by mf.
gg-BFA (2f+s) retains the single-target structure of 2f but adds a community-level sparsity constraint. Let g j g_j g j indicate whether variable j j j is allowed to cross-load. For the variables B h \mathcal{B}_h B h assigned to primary community h h h , the gate vector g B h \mathbf{g}_{\mathcal{B}_h} g B h must satisfy
∑ j ∈ B h g j ≤ L h , L h = ⌊ κ ∣ B h ∣ ⌋ . \sum_{j\in\mathcal{B}_h} g_j \le L_h,\qquad L_h = \lfloor\kappa|\mathcal{B}_h| \rfloor. j ∈ B h ∑ g j ≤ L h , L h = ⌊ κ ∣ B h ∣ ⌋ .
Because this constraint couples the gates within a community, they are retained as one structured variational block:
q 2 f + s ( ξ 2 f + s ) = ∏ h = 1 K { q ( g B h ) q ( ω h ) ∏ j ∈ B h q ( t j ∣ g j = 1 ) q ( η j ∣ t j , g j = 1 ) } , (30) q_{2\mathrm{f+s}}(\xi_{2\mathrm{f+s}}) = \prod_{h=1}^{K} \left\{q(\mathbf{g}_{\mathcal{B}_h})q(\omega_h)\prod_{j\in\mathcal{B}_h}q(t_j \mid g_j = 1)q(\eta_j \mid t_j,g_j = 1)\right\}, \tag*{(30)} q 2 f + s ( ξ 2 f + s ) = h = 1 ∏ K ⎩ ⎨ ⎧ q ( g B h ) q ( ω h ) j ∈ B h ∏ q ( t j ∣ g j = 1 ) q ( η j ∣ t j , g j = 1 ) ⎭ ⎬ ⎫ , (30)
q ( g B h ) ∝ 1 { ∑ j ∈ B h g j ≤ L h } exp { ∑ j ∈ B h ℓ j g j } . (31) q(\mathbf{g}_{\mathcal{B}_h}) \propto\mathbb{1}\left\{\sum_{j\in\mathcal{B}_h}g_j \le L_h\right\}\exp\left\{\sum_{j\in\mathcal{B}_h}\ell_jg_j\right\}. \tag*{(31)} q ( g B h ) ∝ 1 ⎩ ⎨ ⎧ j ∈ B h ∑ g j ≤ L h ⎭ ⎬ ⎫ exp ⎩ ⎨ ⎧ j ∈ B h ∑ ℓ j g j ⎭ ⎬ ⎫ . (31)
Conditional on g j = 1 g_j = 1 g j = 1 , t j t_j t j selects one of the K − 1 K - 1 K − 1 nonprimary factors and η j \eta_j η j gives the corresponding loading amplitude. The quantity ℓ j \ell_j ℓ j is the current variational log-odds that variable j j j cross-loads, after averaging over its possible target factors. The overall approximation remains mean-field across the major blocks in Eq. (27) , but q ( g B h ) q(\mathbf{g}_{\mathcal{B}_h}) q ( g B h ) does not factorize across variables. Retaining this joint truncated-Bernoulli factor ensures that every posterior draw satisfies the community-level budget. Its normalizing constant and marginal gate probabilities are computed by a forward–reverse dynamic program in O ( ρ h L h ) O(\rho_hL_h) O ( ρ h L h ) time, where ρ h = ∣ B h ∣ \rho_h = |\mathcal{B}_h| ρ h = ∣ B h ∣ .
Across the four gg-BFA members, the score, factor-covariance, and residual-variance updates depend on the loading distribution through its posterior first and second moments. For 1f, these moments are fixed by the binary community mask; for the three learned-loading members, they are obtained from the corresponding variational block. The same update formulas can therefore be used after substituting the appropriate loading moments. Because factor k k k remains associated with the same primary community in every model, factor-specific posterior summaries can be compared across loading specifications. Their numerical values may nevertheless differ because each loading structure allocates the observed covariance differently.
The resulting factor-score distributions are Gaussian, and the factor-covariance variational factor is inverse-Wishart. Complete coordinate updates for the factor scores, factor covariance, loadings, and residual variances, together with computational and convergence details, are given in Appendix E.
Posterior quantities and covariance estimation
All four gg-BFA members are summarized through five posterior objects: the subject-specific factor scores q ( F ) q(F) q ( F ) , loading matrix q o ( Λ ) q_o(\Lambda) q o ( Λ ) , cross-loading states q o ( γ ) q_o(\gamma) q o ( γ ) , residual variances q o ( ψ ) q_o(\psi) q o ( ψ ) , and factor covariance q ( Φ ) q(\Phi) q ( Φ ) . Some of these distributions are degenerate when the corresponding quantities are fixed by the model.
For 1f, q ( Λ ) = δ A q(\Lambda)=\delta_A q ( Λ ) = δ A and q ( γ ) = δ 0 q(\gamma)=\delta_0 q ( γ ) = δ 0 , while its residual distribution is induced by the K K K community-level factors q ( v h ) q(v_h) q ( v h ) . Posterior intervals for the factor scores, residual variances, and factor covariance remain available, but loading and cross-loading uncertainty is not applicable because those quantities are fixed. The three learned-loading members instead estimate one residual variance for each variable. For 2f, γ j k = 1 { s j = k } \gamma_{jk}=\mathbf{1}\{s_j=k\} γ j k = 1 { s j = k } ; for 2f+s, γ j k = g j 1 { t j = k } \gamma_{jk}=g_j\mathbf{1}\{t_j=k\} γ j k = g j 1 { t j = k } , which also preserves the dependence induced by the community-level sparsity budget. Primary community membership is supplied by the graph partition and is therefore not treated as a posterior estimand.
Posterior means and marginal intervals are available in closed form for most parameters. We use draws from the fitted inverse-Wishart distribution q ( Φ ) q(\Phi) q ( Φ ) to obtain intervals for the factor covariances and correlations. Loading rows are sampled jointly from their fitted variational distributions, preserving the signed row sum and the restrictions imposed by 2f and 2f+s. The posterior mean loading matrix can be less sparse than an individual draw because it averages over alternative loading states.
To return from the latent representation to the covariance among the observed variables, each posterior draw combines the loading matrix, factor covariance, and residual variances. The loading matrix connects each variable to the community factors, Φ \Phi Φ describes how those factors vary together, and ψ \psi ψ accounts for the variation that remains specific to each variable. After integrating out the subject-specific factor scores, the induced observation covariance is
Ω = Cov ( x i ∣ Λ , Φ , ψ ) = Λ Φ Λ T + diag ( ψ ) . (32) \Omega= \operatorname{Cov}(x_i \mid\Lambda,\Phi,\psi) = \Lambda\Phi\Lambda^{\mathsf{T}} + \operatorname{diag}(\psi). \tag*{(32)} Ω = Cov ( x i ∣ Λ , Φ , ψ ) = ΛΦ Λ T + diag ( ψ ) . (32)
We estimate the observation covariance by averaging these induced covariance matrices under the fitted variational posterior:
Ω ^ o = E q o { Λ Φ Λ T + diag ( ψ ) } . (33) \widehat{\Omega}_o = \mathbb{E}_{q_o}\left\{\Lambda\Phi\Lambda^{\mathsf{T}}+\operatorname{diag}(\psi)\right\}. \tag*{(33)} Ω o = E q o { ΛΦ Λ T + diag ( ψ ) } . (33)
This posterior mean covariance is used for covariance reconstruction and Gaussian prediction.
For two distinct variables j j j and l l l , the residual variances drop out and
Ω j l = λ j T Φ λ l . \Omega_{jl} = \lambda_j^{\mathsf{T}}\Phi\lambda_l. Ω j l = λ j T Φ λ l .
If both variables load only on their primary factors, their covariance is determined by the corresponding entry of Φ \Phi Φ . For k ≠ h j k\ne h_j k = h j , a nonzero loading λ j k \lambda_{jk} λ j k allows factor k k k to contribute to variable j j j in addition to its primary factor h j h_j h j . Through λ j T Φ λ l \lambda_j^{\mathsf{T}}\Phi\lambda_l λ j T Φ λ l , this additional loading changes the covariance between variable j j j and other variables according to their loadings and the k k k th row of Φ \Phi Φ . The posterior inclusion probability Pr q ( γ j k = 1 ) \Pr_{q}(\gamma_{jk}=1) Pr q ( γ j k = 1 ) is the fitted probability that this additional loading is active. The primary label h j h_j h j remains fixed at the community assigned by the graph.
Prediction from observed measurements
Let x n e w ∈ R p x^{\mathrm{new}} \in\mathbb{R}^p x new ∈ R p denote a test subject who was not used for model fitting. Within this subject, we mask a set of variable indices H H H and retain the remaining indices O = { 1 , … , p } ∖ H O = \{1,\ldots,p\} \setminus H O = { 1 , … , p } ∖ H as observed. Thus,
x n e w = ( x O x H ) . x^{\mathrm{new}} =
\begin{pmatrix}
x_O \\
x_H
\end{pmatrix}. x new = ( x O x H ) .
where x O x_O x O is available to the prediction procedure and x H x_H x H is used only to evaluate its predictions.
Let μ \mu μ and C C C denote the mean and observation covariance estimated from the training subjects. For index sets A A A and B B B , C A B C_{AB} C A B denotes the submatrix of C C C with rows in A A A and columns in B B B . Under the Gaussian model,
x H ∣ x O ∼ N ( μ H + C H O C O O − 1 ( x O − μ O ) , C H H − C H O C O O − 1 C O H ) . x_H \mid x_O \sim\mathcal{N}\left(\mu_H + C_{HO}C_{OO}^{-1}(x_O-\mu_O), C_{HH} - C_{HO}C_{OO}^{-1}C_{OH}\right). x H ∣ x O ∼ N ( μ H + C H O C O O − 1 ( x O − μ O ) , C H H − C H O C O O − 1 C O H ) .
We use the conditional mean as the point prediction and the conditional covariance to describe its uncertainty:
x ^ H G = μ H + C H O C O O − 1 ( x O − μ O ) , (34) \widehat{x}^{\mathrm{G}}_H = \mu_H + C_{HO}C_{OO}^{-1}(x_O-\mu_O), \tag*{(34)} x H G = μ H + C H O C O O − 1 ( x O − μ O ) , (34)
V ^ H G = C H H − C H O C O O − 1 C O H . (35) \widehat{V}^{\mathrm{G}}_H = C_{HH} - C_{HO}C_{OO}^{-1}C_{OH}. \tag*{(35)} V H G = C H H − C H O C O O − 1 C O H . (35)
This Gaussian prediction rule provides a common comparison across methods. Bayesian methods use the posterior mean covariance in Eq. (33) ; non-Bayesian methods use their corresponding covariance estimates. We compute the conditional moments by linear solves. If C O O C_{OO} C O O cannot be factorized, the prediction is recorded as a failure without adding a ridge term, jitter, or an eigenvalue floor.
The four gg-BFA members also provide a model-specific posterior prediction. After fitting the global model to the training subjects, we use only x O x_O x O to infer the new subject’s factor scores. The posterior mean of those scores gives the point prediction for x H x_H x H , while posterior draws propagate uncertainty in the local scores, loadings, and residual variation. The masked values x H x_H x H are used only to evaluate the resulting predictions. This model-specific analysis supplements the common Gaussian comparison above; its full formulas and sampling construction are given in Appendix § 13 .§ 5 .
Empirical evaluation design
The evaluation has two parts, one for each component of the method. Comparison 1 concerns the choice of the communities: it compares the exploratory step of gg-BFA with three pipelines that discover a factor structure by exploratory factor analysis and then confirm it. Comparison 2 concerns the confirmatory fit: it holds one partition fixed and compares the gg-BFA members with other confirmatory factor methods. Comparison 1 uses simulations, in which the truth is known; Comparison 2 uses simulations and five real-data panels. § 3.1 describes Comparison 1, § 3.2 Comparison 2, and § 3.3 the summaries used to report them.
The real-data analyses address three questions: how well a model represents the covariance in the complete sample, whether that covariance generalizes to new subjects, and whether observed measurements can predict measurements hidden for evaluation. The first analysis is descriptive. The latter two use the same train–test splits, with standardization, structure discovery, and model fitting based only on the training subjects.
Comparison 1: choosing the structure
In the simulations we run the forward stepwise search of Algorithm 1, the version analyzed by the theory; in the five panels we use its two-stage version (Algorithm 2), as described in § 2.3 and Appendix § 9 . The output is the selected partition, the number of communities K ^ \widehat{K} K , and the fitted selection model, whose covariance estimate is (7) evaluated at the posterior means of Φ \Phi Φ and ν \nu ν and covers all p 0 p_0 p 0 variables. Two of the comparison pipelines share their first step: the number of factors is chosen by parallel analysis [18 ] , as implemented in psych [32 ] , and is capped at 20. These two pipelines then fit a maximum-likelihood exploratory factor model with that number of factors in psych or lavaan [34 ] , each with its default rotation, keep the loadings with absolute value at least 0.30 as the loading pattern, and fit that pattern by maximum-likelihood confirmatory factor analysis. The third pipeline is the exploratory-to-confirmatory procedure of semopy [20 ] , which chooses its own number of factors and loading pattern. Variables without a loading above the threshold are treated as independent of all other variables. All settings were fixed before any results were examined, and a pipeline that fails, for example because the sample covariance matrix is singular or the confirmatory model is not identified, is reported as a failure rather than repaired.
The simulations for Comparison 1 follow two designs. In S1, the data follow the selection model (7) with five communities and a background block, with either p 0 = 200 p_0 = 200 p 0 = 200 or p 0 = 2 n p_0 = 2n p 0 = 2 n , so that the dimension can exceed the sample size. In S2, forty communities have factor variances that decrease geometrically. The model with the forty true communities is exact, but at our sample sizes the search stops well before forty, so S2 shows how many of the weakening communities are retained as n n n grows; it illustrates the regime of Appendix § 10 .§ 6 without verifying its assumption. For each design and sample size we generate 50 data sets (Appendix § 15 .§ 1 ), and all procedures are run on the same data sets. As in the real-data analyses, the variables are standardized with their sample standard deviations and α 0 \alpha_0 α 0 is computed from the data. The theory assumes neither, so the design with p 0 = 2 n p_0 = 2n p 0 = 2 n , in which α 0 n \alpha_0 n α 0 n stays bounded, checks the selection in high dimension rather than the rate of Appendix § 12 , which we check separately under its own assumptions (Appendix § 12 .§ 4 ). We report how often K ^ \widehat{K} K and the partition are correct, the adjusted Rand index [19 ] , and the relative error ∥ Ω ∗ − 1 / 2 Ω ^ Ω ∗ − 1 / 2 − I ∥ F \lVert\Omega_*^{-1/2}\widehat{\Omega}\Omega_*^{-1/2}-I\rVert_F ∥ Ω ∗ − 1/2 Ω Ω ∗ − 1/2 − I ∥ F of the posterior mean Ω ^ \widehat{\Omega} Ω , computed against the population correlation matrix; Theorem 2 bounds this error for the exact model in fixed dimension.
We do not repeat this comparison on the five panels. In two of them, TCGA Kidney and TCGA miRNA, the variables outnumber the subjects (Table 5 ), so the sample covariance matrix is singular and the maximum-likelihood pipelines of psych and lavaan cannot be applied. On the real data, the exploratory step chooses the partition of the complete pipeline (§ 5.6 ).
Table 5. Primary real-data CFA design. The last two columns report the number p s p_s p s of variables assigned to the K K K communities: on the full data, and the range across the five training folds.
Comparison 2: confirmatory fitting on a common partition
The simulations for Comparison 2 examine loading structure in settings where the truth is known. The first asks whether extra flexibility is useful when the binary community mask is correct. The second introduces cross-community signal and compares loading restrictions of different complexity. A supplementary stress test removes the generating community structure altogether. These settings separate covariance recovery from parameter recovery and interval calibration.
Comparison 2 asks whether heterogeneous primary loadings or cross-loadings improve on a fixed community representation. We compare the four gg-BFA members with SCFA [39 ] , ML-CFA [23 ] , MFVB-CFA [7 ] , and PCFA-VA [21 ] . Together, they provide a progression from fixed community loadings, through learned primary strengths, to models that permit cross-loadings. Within each analysis, every CFA method receives the same primary community assignment.
Raw loading values are not directly comparable across all methods because their identification constraints and loading scales differ. We instead describe loading complexity by the expected number of active nonprimary components per selected variable. This value is computed from posterior inclusion probabilities for gg-BFA and PCFA-VA and is zero by construction for the four models without cross-loadings. Elementwise loading recovery is used only in simulations where the fitted and generating coordinates share the same scale.
Held-out comparisons with maximum-likelihood exploratory factor analysis, FactorVerse [9 ] , and BCME [26 ] at the same number of factors are reported in Appendix § 16 .§ 2 . Unlike the pipelines of Comparison 1, these estimators stop at an exploratory or block-covariance fit and do not produce a confirmatory loading pattern.
Common partition for comparing CFA methods. The comparison of confirmatory fits holds the partition fixed, so that the methods differ only in how they estimate loadings and covariance given the same primary communities. For this comparison the partition is obtained from the dense-subgraph search with the fixed number of communities K K K of § 5.1 , and the tuning pair ( q , λ d e n ) (q, \lambda_{\mathrm{den}}) ( q , λ den ) is chosen from a prespecified grid by the following criterion. For each candidate partition, let S ^ \widehat{S} S denote the sample covariance matrix, let Σ ^ s h a r e d = A ^ Φ ^ S C F A A ^ T \widehat{\Sigma}_{\mathrm{shared}} = \widehat{A}\widehat{\Phi}_{\mathrm{SCFA}}\widehat{A}^{\mathsf{T}} Σ shared = A Φ SCFA A T denote the covariance represented by its fixed-loading community summaries, and let Σ ^ u \widehat{\Sigma}_{u} Σ u denote the corresponding residual covariance. We evaluate
J ( q , λ d e n ) = ∥ offdiag ( Σ ^ u ) ∥ F + ∥ offdiag ( S ^ − Σ ^ s h a r e d ) ∥ F , (36) J(q, \lambda_{\mathrm{den}}) = \left\lVert\operatorname{offdiag}(\widehat{\Sigma}_{u}) \right\rVert_{F} + \left\lVert\operatorname{offdiag}\left(\widehat{S} - \widehat{\Sigma}_{\mathrm{shared}}\right) \right\rVert_{F}, \tag*{(36)} J ( q , λ den ) = offdiag ( Σ u ) F + offdiag ( S − Σ shared ) F , (36)
where offdiag ( M ) = M − diag { diag ( M ) } \operatorname{offdiag}(M) = M - \operatorname{diag}\{\operatorname{diag}(M)\} offdiag ( M ) = M − diag { diag ( M )} . The first term measures residual dependence after constructing the community summaries, whereas the second measures covariance not represented by their shared block structure.
We select the candidate with the smallest value of J J J . Candidates that produce a nonpositive residual-variance estimate are treated as invalid rather than repaired. Deterministic ties are resolved by preferring fewer selected variables, fewer communities, a higher correlation percentile, and then a smaller value of λ d e n \lambda_{\mathrm{den}} λ den . For held-out evaluation, the correlation matrix, candidate grid, tuning criterion, and final partition are computed from the training subjects only and then held fixed for the test subjects. Descriptive full-data analyses use the complete analysis sample. This criterion only fixes a common partition for comparing CFA methods; it is not part of gg-BFA.
Primary and supporting evaluation summaries
Each analysis is organized around one primary evaluation measure. Additional measures describe parameter recovery, uncertainty calibration, loading complexity, and computational cost. Table 2 summarizes the role of each measure, and complete definitions are given in Appendix § 14 .
Table 2. Evaluation map for the simulation and real-data analyses. Complete definitions are given in Appendix § 14 .
Within each comparison, all methods are evaluated on the same subjects, variables, and train–test splits. In Comparison 1, every covariance estimate covers all p 0 p_0 p 0 variables. In Comparison 2, the primary analysis uses the variables assigned to communities by the training-data partition, and results extended to all retained variables, including variables not assigned to a community, are reported separately in Appendix § 16 .§ 2 .
Simulation studies
§ 4.1 reports the structure simulations of Comparison 1, in which the communities and their number are unknown. The two main simulations of Comparison 2 treat the primary community labels as known and fit the competing methods to the same generated data within each replicate, which separates the effect of the loading restriction from errors in community discovery. They are reported in Appendix § 15 .§ 3 and G.4, with complete generating mechanisms, setting-level results, and secondary endpoints in the rest of Appendix § 15 ; § 4.2 summarizes what the simulations establish.
Choosing the communities
Design S1 is an exact selection model with K ∗ = 5 K_* = 5 K ∗ = 5 communities. The five factors have unit variances and pairwise correlations 0.3, and the residual variances make the correlation between two variables of the same community equal to 0.60, 0.50, 0.45, 0.40, and 0.35 in the five communities; the remaining variables form a background of independent variables with unit variances. In the fixed-dimension version, p 0 = 200 p_0 = 200 p 0 = 200 and the communities contain 30, 26, 22, 18, and 14 variables. In the high-dimensional version, p 0 = 2 n p_0 = 2n p 0 = 2 n and the communities keep the same shares of the variables, so that they grow with n n n . Both versions use n ∈ { 200 , 500 , 1000 , 2000 } n \in\{200, 500, 1000, 2000\} n ∈ { 200 , 500 , 1000 , 2000 } . Design S2 has 40 communities of 10 variables and 100 background variables, so that p 0 = 500 p_0 = 500 p 0 = 500 , and uses n ∈ { 200 , 500 , 1000 , 2000 , 5000 } n \in\{200, 500, 1000, 2000, 5000\} n ∈ { 200 , 500 , 1000 , 2000 , 5000 } . Its factor variances decrease geometrically, 1.5 × 0.8 h − 1 1.5 \times0.8^{h-1} 1.5 × 0. 8 h − 1 for community h h h , its factor correlations are 0.2, and all residual variances are one. The model with the 40 communities is exact, but the weakest communities cannot be detected at these sample sizes, so S2 shows how the number of selected communities grows with n n n .
For each design and sample size we generate 50 data sets and run the exploratory step and its two-stage version on the same candidate paths with the same α 0 \alpha_0 α 0 . On the same data sets we also run the three exploratory-to-confirmatory pipelines of § 3.1 . In S1 we also fit the selection model at the true partition; the error of this oracle is what the exploratory step would attain if the partition were known. For S1, Theorems 1 and 2 predict that the search stops at K = 6 K = 6 K = 6 , returns the true partition, and that the variational posterior of the covariance contracts at the rate r n r_n r n . Table 3 and Table 4 summarize the results, and Appendix § 15 .§ 1 gives further numerical checks.
Table 3. Simulation results for gg-BFA in designs S1 and S2, with 50 data sets per row: the structure selected by the exploratory step and its two-stage version. Factor membership recovery accuracy: proportion of data sets in which the true communities were recovered. Covariance difference (Cov F d \operatorname{Cov}^{d}_{F} Cov F d ): ∥ Ω ∗ − 1 / 2 Ω ^ Ω ∗ − 1 / 2 − I ∥ F \lVert\Omega_*^{-1/2}\widehat{\Omega}\Omega_*^{-1/2} - I\rVert_F ∥ Ω ∗ − 1/2 Ω Ω ∗ − 1/2 − I ∥ F , averaged over the data sets, for the posterior mean Ω ^ \widehat{\Omega} Ω and the population correlation matrix Ω ∗ \Omega_* Ω ∗ . K ^ \widehat{K} K : mean number of selected communities. Oracle: the selection model fitted at the true partition. In S2 the 40 true communities are never all selected, so Accuracy is not shown. For S2 with n ≥ 2000 n \ge2000 n ≥ 2000 , the iteration limit of the optimizer of the exploratory step was raised from 600 to 3000 because the fits did not converge within 600 iterations.
Table 4. Simulation results for three comparable EFA–CFA pipelines (§ 3.1 ) on the data sets of Table 3 . Accuracy and Cov F d \operatorname{Cov}_F^d Cov F d as in Table 3 , for the estimated covariance of the confirmatory model, averaged over the completed runs; a run that did not complete counts as incorrect. K ^ \widehat{K} K : mean number of factors. Singular: no results, as the sample covariance matrix is singular (p 0 ≥ n p_0 \ge n p 0 ≥ n ), so the program was not run; not estimable: a factor had fewer than two indicators; NA: numerical failure in every run. In S2 Accuracy is not shown, as in Table 3 . psych and lavaan gave identical results and share one set of columns.
In S1, the exploratory step behaved as the theory predicts. It returned the true partition whenever that partition was among the candidates, which failed only in one data set at n = 200 n = 200 n = 200 in each version, as can happen in small samples; it always stopped at K = 6 K = 6 K = 6 ; and its error was essentially that of the oracle. With p 0 = 200 p_0 = 200 p 0 = 200 , the error decreased at the parametric rate up to a logarithmic factor, consistent with Theorem 2 . With p 0 = 2 n p_0 = 2n p 0 = 2 n , the selection was equally accurate, but the error did not decrease. This comes from sample standardization, which the theory does not include: the variables of a community share the sampling error of their factor variance, and dividing by the sample standard deviations adds to the squared error a term proportional to the community sizes divided by n n n , which stays constant when the communities grow with n n n . This version therefore checks the selection when p 0 > n p_0 > n p 0 > n . The rate in growing dimension is checked under the assumptions of Appendix § 12 , on the original scale and with a fixed α \alpha α , in Appendix § 12 .§ 4 , where the contraction decreases in proportion to the rate of Corollary D.8.
In S2, the number of selected communities increased steadily with n n n , roughly linearly in log n \log n log n , the search always stopped one community after the selected number, and the error decreased with n n n . This is the behavior that Corollary B.17 describes for a bias that decays geometrically in K K K , and the growth is close to the rate implied by the stopping point in its proof.
The two-stage version returned the true partition only when the path kept by its first stage
contained it. In S1 this happened in only part of the data sets, and not more often for larger n n n ; otherwise the two-stage version usually returned too few communities, with a much larger error. In S2 it selected fewer communities than the search of Algorithm 1 at the smallest n n n and almost the same number at the largest. Its advantage is computation: it fitted far fewer candidate models and took seconds rather than minutes on one GPU.
We compare gg-BFA with the three EFA–CFA pipelines of § 3.1 , run on the same data sets (Table 4 ). For psych and lavaan, the number of factors is selected by parallel analysis, rotated loadings with absolute value of at least 0.30 are retained, and the resulting structure is fitted by maximum-likelihood CFA; psych and lavaan gave identical results in every data set of S1 and S2. For semopy, the number of factors and the loading structure are both determined by its built-in exploratory procedure.
When n > p 0 n > p_0 n > p 0 in S1, psych and lavaan recovered the true structure in every data set, but their covariance error was about twice that of gg-BFA. This is partly expected, since the data in S1 are generated from the 1f model that the exploratory step fits, whereas the pipelines estimate one loading per variable. semopy recovered the true structure more often as n n n increased. When p 0 ≥ n p_0 \ge n p 0 ≥ n , including n = p 0 = 200 n = p_0 = 200 n = p 0 = 200 , the sample covariance matrix is singular, so the maximum-likelihood pipelines of psych and lavaan cannot be applied. In these settings of S1, semopy either selected too many factors or failed. In S2, the true model has more communities than can be detected, so the model fitted by the exploratory step is misspecified. Even in this case, semopy, the only pipeline that could be run, had an error 1.5 to 2.5 times larger than that of gg-BFA.
What the simulations establish
For the choice of the communities, the exploratory step did what the theory predicts when the truth is an exact selection model: it returned the true partition whenever that partition was a candidate, stopped one community later, and estimated the covariance as well as a fit at the known partition. When the communities weaken gradually, the number it selects grows with log n \log n log n at about the rate implied by the proof of Corollary B.17. The two-stage version saves most of the computation but can lose the true partition in its first stage. Among the EFA–CFA pipelines, psych and lavaan cannot be applied when p 0 ≥ n p_0 \ge n p 0 ≥ n , and semopy rarely recovered the structure of S1 in that case. When n > p 0 n > p_0 n > p 0 , psych and lavaan recovered the structure of S1 with about twice the covariance error of gg-BFA, and in S2 semopy had 1.5 to 2.5 times the error of gg-BFA.
For the confirmatory fit, the simulations of Comparison 2 (Appendix § 15 .§ 3 and G.4) show that the appropriate loading restriction depends on how variables connect across communities. When the binary community mask is correct, additional loading flexibility adds complexity without improving covariance recovery. When variables carry cross-community signal, a restriction that matches the form of overlap produces a simpler loading representation with little loss in covariance accuracy, whereas an overly restrictive model omits genuine signal. The supplementary stress test further shows that unrestricted factor methods can be preferable when the data have no meaningful primary-community structure.
These conclusions about loading structure are separate from uncertainty calibration. Mean-field inference can recover factor scores and covariance patterns while producing intervals that are too narrow for active cross-loadings. Variational bagging improves these intervals but does not restore nominal coverage uniformly. Covariance recovery and predictive likelihood may also favor different estimators, motivating the separate real-data analyses of covariance representation, generalization, and conditional prediction.
Real-data applications: from covariance maps to out-of-sample behavior
In real data, the latent factors and population covariance are unknown, so we evaluate the consequences of each loading structure at the level of the observed variables. The complete-sample analysis describes covariance representation, the held-out analysis evaluates the joint distribution in new subjects, and the masked-measurement analysis evaluates conditional prediction. A method can perform well for one of these targets without being preferred for the others. § 5.1 describes the panels and the validation design. § 5.2 –§ 5.4 report the three targets in turn, § 5.5 the computation, and § 5.6 the complete pipeline on the full data.
Data panels and validation design
The applications span one metabolomics panel, two molecular panels, and two imaging panels (Table 5 ). Within each panel, the four gg-BFA members, SCFA, ML-CFA, MFVB-CFA, and PCFA-VA use the same primary community labels. The partition of each panel has a fixed number of communities K K K , obtained by the dense-subgraph search. We chose K K K small enough for most methods to run, so it is not an estimate of the true latent dimension.
Data for the ADNI Nightingale panel were obtained from the Alzheimer’s Disease Neuroimaging Initiative (ADNI) database (adni.loni.usc.edu). The ADNI was launched in 2003 as a public-private partnership, led by Principal Investigator Michael W. Weiner, MD. The primary goal of ADNI has been to test whether serial magnetic resonance imaging (MRI), positron emission tomography (PET), other biological markers, and clinical and neuropsychological assessment can be combined to measure the progression of mild cognitive impairment (MCI) and early Alzheimer’s disease (AD). The ABCD panel uses NBDC Release 7.0 of the Adolescent Brain Cognitive Development Study (DOI https://doi.org/10.82525/8f3w-5260).
The eight methods are gg-BFA (1f), gg-BFA (2f+s), gg-BFA (2f), gg-BFA (mf), SCFA, ML-CFA, MFVB-CFA, and PCFA-VA. All eight enter the full-data analysis and the first three held-out panels; PCFA-VA is omitted from ABCD and UKB held-out analyses because of its computational cost.
The complete-sample analysis uses all available subjects. The covariance-generalization and masked-measurement analyses share five frozen subject folds; centering, scaling, community discovery, and model fitting use the training subjects only. ABCD folds are family-disjoint and site-stratified. Within each test subject, the prediction analysis hides the same rotating 20% of variables for every method.
The primary comparison uses the same community-selected variables within each analysis. Unassigned variables are not converted into singleton factors; extensions to all retained variables are reported separately in the Appendix. All estimators use P100 GPUs, and K K K is fixed without using held-out outcomes. Even at these values, PCFA-VA, whose cost grows with the number of factors, could not be run on the held-out folds of ABCD and UKB.
Covariance representation and loading complexity
The complete-sample comparison asks how closely each loading structure can represent the observed covariance. Its primary measure, d F d_F d F , is descriptive: it compares a fitted covariance with the sample covariance from the same subjects and does not measure population recovery. Table 6 uses Kidney to place this reconstruction error beside loading complexity and GPU computation time; complete results for all panels are reported in the Appendix.
Table 6. TCGA Kidney full-data covariance representation, expected active cross-loadings per selected variable, and GPU estimator time. All methods use the same six communities and selected variables. d F d_F d F is distance to the sample covariance; † marks an unconverged last iterate.
Kidney illustrates the progression across loading structures. SCFA and gg-BFA (1f) give the same fixed-mask representation. Allowing heterogeneous primary strengths changes the reconstruction only modestly, whereas models with cross-loadings can represent substantially more of the sample covariance. Within gg-BFA, mf gives the closest reconstruction and also uses the most nonprimary loading components. PCFA-VA gives an even smaller descriptive error in this panel, accompanied by greater computation than the gg-BFA fits. These results show the expected accuracy–complexity trade-off; they do not establish that the most flexible model is closest to the unknown population covariance.
Appendix H.2 gives the complete CFA table and the comparison on all retained variables.
Generalizing covariance to new subjects
Covariance generalization is assessed primarily by Gaussian negative log likelihood per variable. Held-out d F d_F d F and SRMR describe discrepancies in covariance scale and correlation structure.
The CFA comparison separates two sources of improvement: heterogeneous loading strengths within a community and variable-specific signal across communities. SCFA and gg-BFA (1f) have nearly identical held-out covariance errors. Estimating the primary loading strengths generally improves the held-out fit, although the improvement is modest and is not uniform across every covariance measure. Allowing cross-loadings produces a clearer change: 2f lies between the no-cross-loading methods and mf, while mf gives the strongest covariance generalization among the gg-BFA members in every panel. The common primary labels therefore retain the community interpretation, but primary loading strengths alone do not capture all of the covariance that persists in new subjects.
The converged PCFA-VA fits for Kidney and miRNA give slightly smaller held-out errors than mf. This similarity concerns covariance fidelity rather than the meaning of the loading matrix: PCFA-VA learns unspecified loadings under its own prior, whereas gg-BFA retains community-oriented loading constraints. The nonconverged PCFA-VA and MFVB-CFA fits remain visible as last-iterate sensitivities and are not used to support a performance ranking.
The primary Gaussian NLL and the supporting covariance distances describe different aspects of generalization. NLL evaluates the complete joint density and is sensitive to poorly estimated low-variance directions, whereas d F d_F d F and SRMR summarize covariance and correlation discrepancies. Table 7 and Figure 2 report these views separately rather than collapsing them into one score.
Figure 2. Factor analysis results. Held-out errors against GPU time, averaged over five folds: covariance distance d F = ∥ Ω ^ − S t e s t ∥ F / ∥ S t e s t ∥ F d_F = \lVert\widehat{\Omega} - S_{\mathrm{test}}\rVert_F / \lVert S_{\mathrm{test}}\rVert_F d F = ∥ Ω − S test ∥ F / ∥ S test ∥ F (top) and prediction RMSE of masked measurements (bottom), where 20% of each held-out subject’s measurements are treated as missing and predicted from the other 80%. gg-BFA in red, mf darkest; hollow and †: not converged. gg-BFA (mf) has the smallest errors in three of the five data sets; in Kidney and miRNA, the converged PCFA-VA fits are slightly more accurate but take 7–10 times longer. All eight estimators use the common factor budget and are evaluated on the variables assigned to communities on the training subjects; PCFA-VA was not run on the held-out folds of ABCD and UKB. Time includes fitting and covariance construction on P100 GPUs, excluding the shared community discovery and scoring.
Table 7. Mean held-out Gaussian NLL per selected variable at the common factor budget. Lower is better; negative values are possible for continuous densities. All methods in a panel are scored on the same selected variables and test subjects. † marks one or more nonconverged folds; ‡ marks SCFA’s Nightingale latent-covariance caveat. NR: PCFA-VA was not run on the held-out folds of ABCD and UKB because of its computational cost. No ranking is assigned to last iterates.
Predicting masked measurements
Point prediction is compared primarily by masked-cell RMSE. NLPD, coverage, and interval width are reported together to evaluate predictive uncertainty; MAE provides a complementary measure of absolute prediction error.
The masked-measurement analysis uses the fitted covariance to predict a subject’s hidden measurements from those that remain visible. The pattern across loading structures is consistent across the five panels (Figure 2 , lower row). SCFA and gg-BFA (1f) give almost the same predictions, and estimating only the primary loading strengths yields limited improvement. Allowing one cross-loading reduces prediction error more clearly, while mf has the lowest RMSE among the gg-BFA members in every panel. The predictive gains therefore arise mainly from dependence that
is not captured by heterogeneous primary strengths alone.
The converged PCFA-VA fits for Kidney and miRNA give slightly smaller prediction errors than mf, but similar prediction accuracy does not imply the same loading interpretation. Table 18 therefore reports NLPD, coverage, and interval width together with RMSE. Coverage cannot be interpreted without interval width: nominal coverage may result from intervals that are too wide to be informative.
Table 18. Selected variables; common factor budget. Masked-measurement prediction uses the common Gaussian rule; coverage is a proportion, and width is in training-standardized units. Five-fold means (sample SD). † denotes at least one fit that did not meet its tolerance; ‡ denotes the SCFA latent-factor covariance caveat.
For the four gg-BFA members, integrating the new subject’s local variational factor posterior gives essentially the same predictions as the common conditional-Gaussian rule. The local-posterior summaries are reported separately in Table 23 ; they do not indicate an additional accuracy or coverage gain over the covariance-based predictor. Predictive coverage of a noisy future observation also does not resolve the loading-parameter undercoverage seen in simulation, because residual noise contributes to the former but not the latter.
Table 23. Local variational prediction on all retained variables for the four gg-BFA members at the common factor budget. Metrics pool the masked cells of the five folds; these predictions integrate the local variational factor posterior of each test subject and are separate from the common Gaussian predictions of Table 20 .
Computation and stopping status
All primary CFA fits use the same P100 GPU class. Figure 2 places held-out errors beside estimator wall time, and Table 21 gives the detailed times and stopping status. Estimator time includes fitting and covariance construction; shared community discovery and scoring are excluded. The common hardware removes the CPU–GPU distinction from the comparison, but the algorithms still differ in iteration counts, posterior summaries, data transfers, and stopping rules.
Table 21. Continued on next page
The fastest method is not necessarily the most accurate, and greater loading flexibility does not produce a uniform runtime ordering. The converged PCFA-VA fits for Kidney and miRNA obtain a small improvement over mf in held-out error but require substantially more computation. PCFA-VA is not run in the ABCD and UKB held-out analyses because of its full-data computational burden.
Finite output and convergence are reported separately. MFVB-CFA and the nonconverged PCFA-VA fits are retained as marked last-iterate sensitivities and do not support performance rankings. The Nightingale and imaging PCFA-VA last iterates are also sensitive to the numerical implementation, whereas the converged Kidney and miRNA fits agree with their CPU references. The absence of ABCD and UKB held-out PCFA-VA results is therefore a computational exclusion, not a prediction failure.
SCFA has a different limitation on Nightingale: its factor moment can be indefinite even when the observed-variable covariance is positive definite. The latter supports covariance scoring and Gaussian prediction, while the former limits a latent Gaussian interpretation. No covariance repair is used to obtain the reported scores.
The complete pipeline on the full data
Figure 3 shows the complete analysis on the full data for the four panels other than Kidney, which is shown in Figure 1 . In the original order of the variables, block structure is visible only in Nightingale, ABCD, and UKB, where variables of the same measurement type are already adjacent. After the variables are reordered by the communities selected by the two-stage version of the exploratory step (Algorithm 2), all five panels show dense diagonal blocks and clear correlations between communities. This also holds for miRNA and Kidney (Figure 1 b and d), whose original order shows almost no structure. Among the variables assigned to communities, the correlations fitted by gg-BFA (mf), below the diagonal, are close to the sample correlations above it, with relative errors between 0.03 and 0.10 over the off-diagonal entries of the five panels; Figure 1 g shows the 2f+s fit for Kidney. For each panel, the community selection and the model fit together took less than ten minutes. In the fitted models, the correlations between communities are carried by many small cross-loadings rather than by a few variables that link two communities.
Figure 3. Example data sample correlation matrices (top) and gg-BFA estimates (bottom) for the four panels other than Kidney. Top: original order. Bottom: order of the communities selected by the two-stage version of the exploratory step (Algorithm 2), with the sample correlation above the diagonal (EFA) and the gg-BFA (mf) fit below it (CFA).
Figure 4 interprets the first eight of the 21 Kidney communities with gg-BFA (2f+s), whose factor covariance keeps the correlations between communities (§ 6 ). Six of the eight communities are enriched for a pathway, among them endothelial, immune, oxidative phosphorylation, and cell-cycle programs (Figure 4 a). The factor correlations show how these programs vary together (Figure 4 b), and the credible intervals give a test for each factor correlation at no extra cost (Figure 4 c). Of the 210 factor correlations, 190 have 95% credible intervals that exclude zero.
What the real-data analyses establish
Across the five panels, a fixed community mask provides an economical covariance representation, while learning only the primary loading strengths usually gives a modest improvement. The larger gains arise when variables are allowed to carry signal from outside their assigned communities. Within gg-BFA, mf gives the strongest covariance and prediction results, while 2f offers a more restricted loading representation and 2f+s is appropriate when the number of bridge variables must also remain small.
The comparison does not identify a universal winner. PCFA-VA can produce slightly smaller held-out errors in the panels where it converges, but it has a different loading interpretation and a larger computational cost. Covariance representation, joint density, conditional prediction, loading complexity, uncertainty, and computation describe different consequences of the same fit. Model dimension and convergence status must therefore be considered alongside empirical error rather than treated as secondary implementation details.
Discussion
We proposed gg-BFA, which carries out both steps of factor analysis on the same communities of the correlation graph. The exploratory step selects the communities and their number by a forward stepwise search that stops at the first decrease of the ELBO. We showed that, with probability tending to one, it recovers the true communities and its variational posterior of the covariance contracts at the parametric rate up to a logarithmic factor, even when the number of variables grows much faster than the sample size. The confirmatory step fits four Bayesian factor models on these communities, from no cross-loadings (1f) to many (mf), by mean-field variational inference. No single loading support was best everywhere: fixed communities suffice when the block summary is adequate, controlled cross-loadings recover important heterogeneity, and unrestricted loadings are preferable when the community structure is absent. gg-BFA therefore does not prescribe one constraint for every data set; it makes these choices comparable in one framework and measures their costs in covariance, prediction, runtime, and convergence.
The approach has three advantages. First, it completes the EFA–CFA pipeline when the variables outnumber the subjects, where the maximum-likelihood pipelines of psych and lavaan cannot be applied and semopy selected too many factors or returned no solution. Second, it is fast: the whole pipeline took less than ten minutes per panel, whereas PCFA-VA, which also estimates cross-loadings, took seven to ten times longer than mf and was too slow to run on ABCD and UKB. Third, each factor remains interpretable through its community and its matched biological pathway, and the posterior gives credible intervals for the factor correlations and predicts missing measurements. The two steps can also be used separately: a partition chosen by the exploratory step can be fitted by any confirmatory method, and the confirmatory step can be fitted to a partition supplied by prior knowledge.
The exploratory step turns the choice of the partition and its size into a comparison of models on a common scale: every candidate describes all variables, and the search fits models only up to one step beyond the selected size. The theory explains why it stops at the right place. While true communities are missing, adding the next one removes a bias of order n n n , which outweighs the cost of the new parameters. Once all true communities are present, a further community either splits a true community, whose two parts then have factors with correlation close to one, or is formed from background variables, which share no factor, so that its factor variance is close to zero. Either way the factor covariance is nearly singular; the inverse-Wishart prior penalizes such covariances, and the ELBO decreases. The first argument needs the bias to decrease enough from one community to the next (Assumption (W) in Appendix § 10 .§ 5 ), which can fail for very large communities, so the theory gives sufficient conditions rather than the full range in which the search works.
Two practical choices go beyond the theory. The learning rate balances the likelihood against the prior; our choice α 0 \alpha_0 α 0 is approximately the effective number of variables divided by p 0 p_0 p 0 , so it scales the likelihood down in panels with strong correlation. The two-stage version keeps one path after comparing candidates at a common reference size, which reduces the number of fitted models by about an order of magnitude on our panels and is used in the real-data analyses; its guarantees additionally require the kept path to contain the true partition. The theory treats the learning rate as fixed and analyzes the full search, which the simulations therefore run.
The exploratory-to-confirmatory pipelines choose the number of factors with a retention rule, derive the loading pattern by rotation and thresholding, and fit the confirmatory model to the same data. The exploratory step instead searches a small family of graph-derived partitions and judges every candidate by the criterion that decides when to stop, which makes its stopping point amenable to analysis. In the simulations, where the maximum-likelihood pipelines could be applied, their covariance error was about twice that of gg-BFA in S1, and in S2 semopy had 1.5 to 2.5 times the error of gg-BFA (§ 4.1 ). On the real data, psych and lavaan cannot be applied to TCGA Kidney and TCGA miRNA, whose variables outnumber the subjects.
Given a partition, the confirmatory step uses it as a coordinate system: the primary community tells what a factor represents, and the loading option sets how far individual variables may depart from it. Fixed masks are easy to name but can miss heterogeneous covariance, while unrestricted loadings are expressive but can cut the link between a factor and its community; the four members span this range. In the simulations, 1f is a concise baseline when a fixed community summary is credible, 2f captures variables that bridge one other community, 2f+s keeps the number of such bridges small, and mf is most useful when cross-community heterogeneity is widespread and K K K is moderate. The real data add a second criterion, the interpretation of Φ \Phi Φ . mf gave the most accurate covariance, but in Kidney it used about eight cross-loadings per variable, and its factor correlations agreed only moderately with the correlations between communities in the sample correlation matrix (0.76); those of 2f+s, with 0.09 cross-loadings per variable, agreed almost exactly (0.998). We therefore recommend mf for estimating and predicting the covariance, and 2f+s for interpreting Φ \Phi Φ , as in Figure 1 and Figure 4 . Comparisons with methods that do not use the communities are given in Appendix § 16 .
The results also have limits of interpretation and computation. The factor labels are anchors rather than proofs of a biological mechanism: some ADNI factor scores change substantially as the loading support changes, and the signed row-sum constraint and the mask-centered prior do not establish full rotational identifiability, so factor stability should be checked in each application. Mean-field VB recovers factor scores with nearly nominal coverage in the simulations but under-covers active loadings, and variational bagging improves these intervals without fully calibrating them; near-nominal predictive coverage on real data concerns future observations, not latent parameters. On ABCD, with about 300 discovered factors and roughly one million candidate cross-loadings, mf kept improving its ELBO but did not reach the common convergence criterion, whereas the two structured learned-loading members did.
Several choices in this work point to the next steps. We fit the two steps separately: the exploratory step returns one partition, and the confirmatory step treats it as known, although the sensitivity analysis of the dense-subgraph search shows that the selected variables can change widely. Joining the two in one posterior, for example by weighting the visited models as in the aggregation step of Ohn et al. [ [30 ] , would let this uncertainty reach the factors and their credible intervals. Our theory covers the forward stepwise search on Gaussian data in their original scale with a fixed learning rate; the two-stage search, the estimated α 0 \alpha_0 α 0 , and the standardization used in practice still need their own guarantees. For large K K K , hierarchical sparsity, stronger regularization of the loadings, or a reparameterization of Λ \Lambda Λ and Φ \Phi Φ could help mf converge. The confirmatory models assume Gaussian measurements, but many biomedical panels record counts, such as sequencing reads, so extending them to non-Gaussian data would widen their use. Finally, the factors we found in Kidney matched known pathways; whether they reappear in external cohorts and relate to clinical outcomes would show how far this interpretation carries.
Data, Code, and Declarations
The gg-BFA software is available as the Python package ggbfa at https://github.com/waterism211/ggbfa. Public SCFA materials, including the TCGA matrices, are available from https://github.com/yiorfun/SCFA; individual-level ADNI data remain available to qualified investigators through https://adni.loni.usc.edu/data-samples/adni-data/ under the ADNI Data Use Agreement. Appendix I identifies the configurations and saved outputs used here. The study uses existing data and involves no new participant recruitment. Computational tools assisted code, experiment orchestration, and manuscript editing; the authors remain responsible for the analyses and text.
Acknowledgments
Data collection and sharing for this project was funded by the Alzheimer’s Disease Neuroimaging Initiative (ADNI) (National Institutes of Health Grant U01 AG024904), DOD ADNI (Department of Defense award number W81XWH-12-2-0012), and the Alzheimer’s Disease Metabolomics Consortium (National Institute on Aging R01AG046171, RF1AG051550 and 3U01AG024904-09S4). ADNI is funded by the National Institute on Aging, the National Institute of Biomedical Imaging and Bioengineering, and generous contributions from the organizations listed at https://adni.loni.usc.edu/wp-content/uploads/how_to_apply/ADNI_Manuscript_Citations.pdf.
The results shown here are in whole or part based upon data generated by the TCGA Research Network.
Data used in the preparation of this article were obtained from the Adolescent Brain Cognitive Development™ (ABCD) Study (https://abcdstudy.org/), NBDC Release 7.0 (DOI https://doi.org/10.82525/8f3w-5260), held in the NIH Brain Development Cohorts Data Sharing Platform (https://www.nbdc-datahub.org/). The ABCD Study® is supported by the National Institutes of Health and additional federal partners under award numbers U01DA041022, 041025, 041028, 041048, 041089, 041093, 041106, 041117, 041120, 041134, 041148, 041156, 041174, 050987, 050988, 050989, 051016, 051018, 051037, 051038, 051039 and U24DA041123, 041147; see https://abcdstudy.org/federal-partners.html for a full list of supporters. ABCD Consortium investigators designed and implemented the study and/or provided data but did not necessarily participate in the analysis or writing of this report. This manuscript reflects the views of the authors and may not reflect the opinions or views of the NIH or ABCD Consortium investigators.
This research has been conducted using the UK Biobank Resource under Application Number 107106. We thank the UK Biobank group that collected the data made available for this work.
Appendix guide. The appendix follows the order of the main text. Appendix A gives the implementation of the exploratory step, Appendix B states its theory, Appendix C contains the proofs, and Appendix D extends the theory to growing dimension. Appendix E gives the implementation of the confirmatory step, and Appendix F defines the evaluation summaries. Appendix G contains the simulation designs and the simulation results that are not in the main text. Appendix H supplements the real-data analyses with the implementations of the comparison methods and the complete results at the common factor budget. Appendix I lists the computations behind the reported results.
Implementation of the exploratory step
This appendix gives the settings and numerical details of the exploratory step (Algorithm 1) and of its two-stage version (Algorithm 2).
Candidate paths. The data are centered and scaled to unit variance with divisor n n n . The grid H \mathcal{H} H of the dense-subgraph search contains the 50 tuning pairs with q ∈ { 90 , 91 , … , 99 } q \in\{90,91,\ldots,99\} q ∈ { 90 , 91 , … , 99 } and λ d e n ∈ { 0.4 , 0.5 , … , 0.8 } \lambda_{\mathrm{den}} \in\{0.4,0.5,\ldots,0.8\} λ den ∈ { 0.4 , 0.5 , … , 0.8 } . We use m min = 2 m_{\min}=2 m m i n = 2 and no cap K max K_{\max} K m a x , so each path runs until no eligible component remains. The common partition of the CFA comparison (§ 3.2 ) comes from the same dense-subgraph search with the fixed number of communities K K K of Table 5 ; it is not chosen by the exploratory step.
Learning rate. The null model places all p 0 p_0 p 0 variables in the background block with a common variance v 0 v_0 v 0 . Its maximum-likelihood estimate is v ^ 0 = ( n p 0 ) − 1 ∑ i = 1 n ∥ x i ∥ 2 \hat{v}_0=(np_0)^{-1}\sum_{i=1}^{n}\lVert x_i\rVert^2 v ^ 0 = ( n p 0 ) − 1 ∑ i = 1 n ∥ x i ∥ 2 , which equals one for standardized data. For a model with parameter θ \theta θ , Lyddon et al. [ [28 ] set the learning rate to tr ( J Λ − 1 J ) / tr ( J ) \operatorname{tr}(J\Lambda^{-1}J)/\operatorname{tr}(J) tr ( J Λ − 1 J ) / tr ( J ) , where J J J is the Fisher information of one observation and Λ \Lambda Λ is the variance of its score. For the one-parameter null model, with J J J and Λ \Lambda Λ estimated by plug-in, this gives
α 0 = 2 p 0 v ^ 0 2 n − 1 ∑ i = 1 n ( ∥ x i ∥ 2 − p 0 v ^ 0 ) 2 . (37) \alpha_0=\frac{2p_0\hat{v}_0^2}{n^{-1}\sum_{i=1}^{n}\left(\lVert x_i\rVert^2-p_0\hat{v}_0\right)^2}. \tag*{(37)} α 0 = n − 1 ∑ i = 1 n ( ∥ x i ∥ 2 − p 0 v ^ 0 ) 2 2 p 0 v ^ 0 2 . (37)
If the data are Gaussian with correlation matrix R R R , the denominator estimates 2 ∥ R ∥ F 2 2\lVert R\rVert_F^2 2 ∥ R ∥ F 2 , so that α 0 ≈ p 0 / ∥ R ∥ F 2 \alpha_0 \approx p_0/\lVert R\rVert_F^2 α 0 ≈ p 0 / ∥ R ∥ F 2 . The quantity p 0 2 / ∥ R ∥ F 2 p_0^2/\lVert R\rVert_F^2 p 0 2 / ∥ R ∥ F 2 is an effective number of variables: it equals p 0 p_0 p 0 for independent variables and one when all variables are perfectly correlated. Thus α 0 \alpha_0 α 0 is approximately the effective number of variables divided by p 0 p_0 p 0 . The learning rate is computed once, before any community is fitted, and is used for every candidate. The algorithm stops with an error if α 0 ∉ ( 0 , 1 ) \alpha_0 \notin(0,1) α 0 ∈ / ( 0 , 1 ) ; this happens, for example, when the variables are nearly independent, a case for which the selection is not designed.
Computing the ELBO of a partition. For a partition with K K K communities, the likelihood of the selection model (7) depends on the data only through three statistics: the K × K K \times K K × K sample covariance of the scaled community sums y i h = ∣ V h ∣ − 1 / 2 ∑ j ∈ V h x i j y_{ih}=\lvert\mathcal{V}_h\rvert^{-1/2}\sum_{j\in\mathcal{V}_h}x_{ij} y ih = ∣ V h ∣ − 1/2 ∑ j ∈ V h x ij , the within-community sums of squares that remain after the community sums are removed, and the sum of squares of the background variables. The variational family fixes the degrees of freedom and the shapes at their conjugate values, Φ ∼ IW K ( K + 2 + α n , Ψ ~ ) \Phi\sim\operatorname{IW}_K(K+2+\alpha n,\widetilde{\Psi}) Φ ∼ IW K ( K + 2 + α n , Ψ ) and v h ∼ IG ( 2 + α n ∣ V h ∣ / 2 , β ~ h ) v_h \sim\operatorname{IG}(2+\alpha n\lvert\mathcal{V}_h\rvert/2,\widetilde{\beta}_h) v h ∼ IG ( 2 + α n ∣ V h ∣ /2 , β h ) , with free Ψ ~ \widetilde{\Psi} Ψ and β ~ h \widetilde{\beta}_h β h . For the background block, the optimal variational distribution is conjugate, and its contribution to the ELBO is computed exactly. The Kullback–Leibler terms and the within-community terms also have closed forms. The remaining term, the expected log-likelihood of the community sums, is a K K K -dimensional Gaussian expectation, which we estimate by Monte Carlo. We write Φ \Phi Φ and v v v as transformations of fixed draws from the standard Bartlett and gamma distributions, so that the estimated ELBO is a smooth function of ( Ψ ~ , β ~ ) (\widetilde{\Psi}, \widetilde{\beta}) ( Ψ , β ) , and maximize it by L-BFGS-B with 256 draws and at most 600 iterations (3000 in design S2 with n ≥ 2000 n \ge2000 n ≥ 2000 , where 600 were not enough, and in the simulation check of Appendix § 12 .§ 4 ), starting from a moment-based value and from a shrunken version of it. The better converged solution is kept, and the fit is reported as a failure if neither start converges. The ELBO is then evaluated at the solution with 2048 new draws, which also gives its Monte Carlo standard error.
Comparisons under Monte Carlo error. Both versions compare ELBOs that carry Monte Carlo standard errors, with the following rules. When the ELBOs are exact, they reduce to those of Algorithms 1 and 2; the two-standard-error rule guards against Monte Carlo error and is not part of the theory (Appendix § 10 .8).
Comparing two ELBOs. One ELBO is smaller than another when the difference exceeds twice its standard error, which is computed from the two standard errors as if they were independent.
Stopping. The search stops at the first K K K whose ELBO is smaller than that of K − 1 K-1 K − 1 in this sense. When the difference is within two standard errors, the ELBO at K K K is evaluated again with 16384 draws, while earlier ELBOs are kept fixed; if the difference is still within two standard errors, the step counts as no decrease and the search continues. In Algorithm 1, E L B O K \mathrm{ELBO}_K ELBO K is the largest estimated ELBO among the candidates with K K K communities, and a re-evaluation applies to all of them; in the two-stage version, stage 2 compares the models along the kept path.
Keeping a path. Stage 1 of the two-stage version keeps the path whose first K r e f K_{\mathrm{ref}} K ref communities have the largest estimated ELBO, with exact ties going to the first pair in the grid order.
Choosing K ^ \widehat{K} K . The selected K ^ \widehat{K} K is the largest visited K K K whose ELBO is within two standard errors of the largest visited ELBO, excluding the layer that triggered a significant decrease, if any; when the paths end without such a decrease, the last layer remains eligible.
Theory for the exploratory step
This appendix gives the complete statements behind § 2.4 . We study the search on the selection model (7) for Gaussian data and ask three questions: whether the search stops too early, before it reaches a good model; whether it stops too late, after fitting models that are larger than necessary; and how close the selected model is to the truth. Our analysis follows the strategy that Ohn et al. [ [30 ] , hereafter ESA, use for variational empirical Bayes; Appendix § 10 .7 explains how it differs.
We analyze the forward stepwise search of Algorithm 1, which chooses the partition anew at every K K K : the ELBO of model K K K is maximized over all candidate partitions with K K K communities, and the search stops at the first decrease. Its two-stage version (Algorithm 2) keeps one path, which reduces the computation; Appendix § 10 .8 gives the conditions under which the results carry over to it.
The appendix is organized as follows. Appendix § 10 .§ 1 gives an overview of the argument, and Appendix § 10 .§ 2 introduces the notation. Appendix § 10 .§ 3 constructs a lower and an upper curve that bound the ELBO deficit of every model with high probability, and Appendix § 10 .§ 4 derives the not-too-early, not-too-late and risk guarantees from them. Appendices B.5 and B.6 apply these guarantees to an exact 1f model and to a misspecified model with geometrically decaying bias.
Appendix B.7 compares the analysis with ESA, and Appendix B.8 discusses the choices that the exploratory step makes from the data. The proofs are in Appendix C, and Appendix D extends the results of Appendix B.5 to dimensions p 0 p_0 p 0 that grow with n n n , including p 0 ≫ n p_0 \gg n p 0 ≫ n .
Overview of the argument
In this section, we describe the idea of the analysis before giving the formal statements. Write E L B O K \mathrm{ELBO}_K ELBO K for the ELBO of model K K K . Since α ℓ n ∗ \alpha\ell_n^* α ℓ n ∗ , which is α \alpha α times the negative log-likelihood of the truth, does not depend on K K K , comparing the ELBOs is the same as comparing the ELBO deficits Γ ( K ) = − α ℓ n ∗ − E L B O K \Gamma(K)=-\alpha\ell_n^*-\mathrm{ELBO}_K Γ ( K ) = − α ℓ n ∗ − ELBO K , the amounts by which the ELBOs fall short of α \alpha α times the log-likelihood of the truth; the search stops at the first increase of the deficit. The analysis rests on two deterministic curves, a lower curve L t ( K ) L_t(K) L t ( K ) and an upper curve U t ( K ) U_t(K) U t ( K ) , such that
P ∗ ( L t ( K ) < Γ ( K ) ≤ U t ( K ) ) ≥ 1 − 2 e − t P_*\left(L_t(K)<\Gamma(K)\le U_t(K)\right)\ge1-2e^{-t} P ∗ ( L t ( K ) < Γ ( K ) ≤ U t ( K ) ) ≥ 1 − 2 e − t
for every K K K and t > 0 t>0 t > 0 . That is, with high probability, the deficit of each model lies in the band between the two curves (Figure 5).
The lower curve expresses that a wrong model cannot have a small deficit. It is approximately n α n\alpha n α times the smallest Rényi divergence from the truth to model K K K , so if every candidate with K K K communities is far from the truth, the deficit of model K K K is large whatever the data (Lemma B.2). The upper curve expresses that the maximization in the ELBO can only help. It is the deficit of one fixed, well-chosen variational distribution, which the maximization over the variational family and the candidates can only improve. It is approximately n α n\alpha n α times the smallest KL divergence from the truth to model K K K , plus the parameter cost d K 2 log ( α n ) \frac{d_K}{2}\log(\alpha n) 2 d K log ( α n ) , plus a random fluctuation (Lemma B.5).
These two curves yield the three guarantees of Appendix B.4 as follows. First, if U t ( K ) < L t ( K − 1 ) U_t(K)<L_t(K-1) U t ( K ) < L t ( K − 1 ) , then Γ ( K ) < Γ ( K − 1 ) \Gamma(K)<\Gamma(K-1) Γ ( K ) < Γ ( K − 1 ) with high probability, so the ELBO still increases at K K K and the search does not stop there (Theorem B.7). Second, if L t ( K ) ≥ U t ( k ∘ ) L_t(K)\ge U_t(k^\circ) L t ( K ) ≥ U t ( k ∘ ) for some k ∘ < K k^\circ<K k ∘ < K , then Γ ( K ) > Γ ( k ∘ ) \Gamma(K)>\Gamma(k^\circ) Γ ( K ) > Γ ( k ∘ ) with high probability. Since the search can go beyond K K K only if the ELBO increases at every step from k ∘ k^\circ k ∘ to K K K , it stops at or before K K K (Theorem B.8). Third, the risk of the selected model is at most its deficit plus the logarithm of the number of candidates, and its deficit is at most that of any visited model; in particular, it is at most the upper curve at a good visited model (Theorem B.10).
Under the exact 1f model with K ∗ K_* K ∗ communities, the two curves have the shape shown in Figure 5 (Proposition B.13). For K < K ∗ K<K_* K < K ∗ , both curves are of order n n n , because model K K K misses at least one community. At K = K ∗ K=K_* K = K ∗ , the upper curve drops to d ∗ 2 log n \frac{d_*}{2}\log n 2 d ∗ log n . For K > K ∗ K>K_* K > K ∗ , the lower curve rises again to at least order n 1 / 3 n^{1/3} n 1/3 , because the extra communities can fit the truth only with a singular factor covariance, near which the inverse-Wishart prior has little mass. Hence the first argument applies to every K ≤ K ∗ K\le K_* K ≤ K ∗ under condition (W), and the second applies at K = K ∗ + 1 K=K_*+1 K = K ∗ + 1 without further conditions.
Figure 5. Schematic of the two curves under the exact model, on a log scale. With high probability the ELBO deficit Γ ( K ) \Gamma(K) Γ ( K ) (dots) lies in the shaded band between the lower curve L t ( K ) L_t(K) L t ( K ) (dashed) and the upper curve U t ( K ) U_t(K) U t ( K ) (solid). Because U t ( K ) < L t ( K − 1 ) U_t(K) < L_t(K - 1) U t ( K ) < L t ( K − 1 ) for K ≤ K ∗ K \le K_\ast K ≤ K ∗ , the ELBO increases up to K ∗ K_\ast K ∗ . Because L t ( K ∗ + 1 ) > U t ( K ∗ ) L_t(K_\ast+ 1) > U_t(K_\ast) L t ( K ∗ + 1 ) > U t ( K ∗ ) , it decreases at K ∗ + 1 K_\ast+ 1 K ∗ + 1 , where the search stops. Models beyond K ∗ + 1 K_\ast+ 1 K ∗ + 1 are never visited.
Setting and notation
In this section, we introduce the notation and describe the search that we analyze.
Data. x 1 , … , x n x_1,\ldots,x_n x 1 , … , x n are independent N p 0 ( 0 , Ω ∗ ) \mathcal{N}_{p_0}(0,\Omega_*) N p 0 ( 0 , Ω ∗ ) vectors with Ω ∗ ≻ 0 \Omega_*\succ0 Ω ∗ ≻ 0 , and S = n − 1 ∑ i x i x i T S=n^{-1}\sum_i x_i x_i^\mathsf{T} S = n − 1 ∑ i x i x i T . We write P ∗ = N p 0 ( 0 , Ω ∗ ) P_*=\mathcal{N}_{p_0}(0,\Omega_*) P ∗ = N p 0 ( 0 , Ω ∗ ) for the law of one observation, and also use P ∗ P_* P ∗ and E ∗ \mathbb{E}_* E ∗ for probabilities and expectations under the joint law of x 1 , … , x n x_1,\ldots,x_n x 1 , … , x n . For Ω ≻ 0 \Omega\succ0 Ω ≻ 0 , the negative log-likelihood is ℓ n ( Ω ) = n 2 { p 0 log 2 π + log ∣ Ω ∣ + tr ( Ω − 1 S ) } \ell_n(\Omega)=\frac{n}{2}\{p_0\log2\pi+\log|\Omega|+\operatorname{tr}(\Omega^{-1}S)\} ℓ n ( Ω ) = 2 n { p 0 log 2 π + log ∣Ω∣ + tr ( Ω − 1 S )} , and ℓ n ∗ = ℓ n ( Ω ∗ ) \ell_n^*=\ell_n(\Omega_*) ℓ n ∗ = ℓ n ( Ω ∗ ) is its value at the truth.
Models. A partition ρ = ( V 1 , … , V K ; V 0 ) \rho= (\mathcal{V}_1, \ldots, \mathcal{V}_K; \mathcal{V}_0) ρ = ( V 1 , … , V K ; V 0 ) consists of K ≥ 0 K \ge0 K ≥ 0 disjoint communities, each with at least two variables, and the background V 0 \mathcal{V}_0 V 0 of the remaining variables. The parameter is θ = ( Φ , τ ) \theta= (\Phi, \tau) θ = ( Φ , τ ) , where Φ ≻ 0 \Phi\succ0 Φ ≻ 0 is the K × K K \times K K × K factor covariance and τ h = 1 / v h > 0 \tau_h = 1/v_h > 0 τ h = 1/ v h > 0 is the residual precision of V h \mathcal{V}_h V h , h = 0 , … , K h = 0, \ldots, K h = 0 , … , K . The model covariance is
Ω ρ ( θ ) = A ρ Φ A ρ T + D ρ ( τ ) , \Omega_\rho(\theta) = A_\rho\Phi A_\rho^{\mathsf{T}} + D_\rho(\tau), Ω ρ ( θ ) = A ρ Φ A ρ T + D ρ ( τ ) ,
where A ρ A_\rho A ρ is the p 0 × K p_0 \times K p 0 × K membership matrix and D ρ ( τ ) D_\rho(\tau) D ρ ( τ ) is diagonal with entry v h v_h v h for the variables of V h \mathcal{V}_h V h . This is the selection model (7), indexed by the partition and with the residual variances parametrized by their precisions. Restricted to the community-assigned variables, its covariance is that of gg-BFA (1f), and we call it the 1f model with K K K communities. Model K K K has d K = ( K + 1 ) ( K + 2 ) / 2 d_K = (K + 1)(K + 2)/2 d K = ( K + 1 ) ( K + 2 ) /2 free parameters when its background is non-empty and d K − 1 d_K - 1 d K − 1 otherwise. Along a path, each model embeds into the next: setting the row and column of Φ \Phi Φ for the added community to zero and its residual variance equal to the background variance reproduces the smaller model. The models along a path are thus nested in the closure of their parameter spaces, where Φ \Phi Φ is positive semidefinite; the priors put mass only on Φ ≻ 0 \Phi\succ0 Φ ≻ 0 . We write P θ ρ = N p 0 ( 0 , Ω ρ ( θ ) ) P^\rho_\theta= \mathcal{N}_{p_0}(0, \Omega_\rho(\theta)) P θ ρ = N p 0 ( 0 , Ω ρ ( θ )) , ℓ n ( ρ , θ ) = ℓ n ( Ω ρ ( θ ) ) − ℓ n ∗ \ell_n(\rho, \theta) = \ell_n(\Omega_\rho(\theta)) - \ell_n^\ast ℓ n ( ρ , θ ) = ℓ n ( Ω ρ ( θ )) − ℓ n ∗ for the log-likelihood ratio, and KL ( ρ , θ ) = KL ( P ∗ ∥ P θ ρ ) \operatorname{KL}(\rho, \theta) = \operatorname{KL}(P^\ast\mathbin\Vert P^\rho_\theta) KL ( ρ , θ ) = KL ( P ∗ ∥ P θ ρ ) .
Candidates. The dense-subgraph search is run once for each tuning pair in a finite grid H \mathcal{H} H (Section 2.2), and each run returns a nested path of communities. F K \mathcal{F}_K F K is the set of distinct partitions formed by the first K K K communities of the paths that have at least K K K communities; F 0 \mathcal{F}_0 F 0 contains only the partition with every variable in the background. Let N K = ∣ F K ∣ ≤ ∣ H ∣ N_K = |\mathcal{F}_K| \le|\mathcal{H}| N K = ∣ F K ∣ ≤ ∣ H ∣ , N t o t = ∑ K N K N_{\mathrm{tot}} = \sum_K N_K N tot = ∑ K N K , and let M M M be the largest K K K with F K ≠ ∅ \mathcal{F}_K \ne\varnothing F K = ∅ . The families are treated as non-random, that is, they do not depend on the data; Appendix B.8 discusses the choices that the exploratory step makes from the data.
Prior and variational family. For partition ρ \rho ρ , the prior is Π K ( ⋅ ∣ ρ ) = IW K ( ν K , c I K ) ⊗ Gamma ( a τ , b τ ) ⊗ ( K + 1 ) \Pi_K(\cdot\mid\rho) = \operatorname{IW}_K(\nu_K, cI_K) \otimes\operatorname{Gamma}(a_\tau, b_\tau)^{\otimes(K+1)} Π K ( ⋅ ∣ ρ ) = IW K ( ν K , c I K ) ⊗ Gamma ( a τ , b τ ) ⊗ ( K + 1 ) on ( Φ , τ ) (\Phi, \tau) ( Φ , τ ) , with Gamma in shape-rate form and a τ > 1 a_\tau> 1 a τ > 1 ; the implementation uses ν K = K + 2 \nu_K = K + 2 ν K = K + 2 , c = 1 / 2 c = 1/2 c = 1/2 , a τ = 2 a_\tau= 2 a τ = 2 and b τ = 1 / 2 b_\tau= 1/2 b τ = 1/2 , which gives the prior of § 2.3 , since τ h ∼ Gamma ( 2 , 1 / 2 ) \tau_h \sim\operatorname{Gamma}(2,1/2) τ h ∼ Gamma ( 2 , 1/2 ) exactly when v h ∼ IG ( 2 , 1 / 2 ) v_h \sim\operatorname{IG}(2,1/2) v h ∼ IG ( 2 , 1/2 ) . For a learning rate α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) , the variational family Q K ( ρ ) Q_K(\rho) Q K ( ρ ) consists of the distributions IW K ( ν K + α n , Ψ ~ ) ⊗ ⨂ h = 0 K Gamma ( a τ + α n ∣ V h ∣ / 2 , β ~ h ) \operatorname{IW}_K(\nu_K+\alpha n,\widetilde{\Psi}) \otimes\bigotimes_{h=0}^{K}\operatorname{Gamma}(a_\tau+\alpha n|V_h|/2,\widetilde{\beta}_h) IW K ( ν K + α n , Ψ ) ⊗ ⨂ h = 0 K Gamma ( a τ + α n ∣ V h ∣/2 , β h ) with free Ψ ~ ≻ 0 \widetilde{\Psi}\succ0 Ψ ≻ 0 and β ~ h > 0 \widetilde{\beta}_h>0 β h > 0 .
ELBO and algorithm. For Q ∈ Q K ( ρ ) Q \in Q_K(\rho) Q ∈ Q K ( ρ ) , the objective of (8) at Q Q Q is − α ℓ n ∗ − F ( K , ρ , Q ) -\alpha\ell_n^* - F(K,\rho,Q) − α ℓ n ∗ − F ( K , ρ , Q ) , where the deficit
F ( K , ρ , Q ) = α ∫ ℓ n d ( ρ , θ ) Q ( d θ ) + KL ( Q , Π K ( ⋅ ∣ ρ ) ) , F(K,\rho,Q)=\alpha\int\ell_n^d(\rho,\theta)\,Q(d\theta)+\operatorname{KL}(Q,\Pi_K(\cdot\mid\rho)), F ( K , ρ , Q ) = α ∫ ℓ n d ( ρ , θ ) Q ( d θ ) + KL ( Q , Π K ( ⋅ ∣ ρ )) ,
which balances the fit to the data, measured by the expected log-likelihood ratio, against the complexity of the model, measured by the KL divergence from the prior. The deficit of partition ρ \rho ρ is Γ ( K ; ρ ) = min Q ∈ Q K ( ρ ) F ( K , ρ , Q ) \Gamma(K;\rho)=\min_{Q\in Q_K(\rho)}F(K,\rho,Q) Γ ( K ; ρ ) = min Q ∈ Q K ( ρ ) F ( K , ρ , Q ) , attained at its variational posterior, and that of model K K K is Γ ( K ) = min ρ ∈ F K Γ ( K ; ρ ) \Gamma(K)=\min_{\rho\in\mathcal{F}_K}\Gamma(K;\rho) Γ ( K ) = min ρ ∈ F K Γ ( K ; ρ ) ; minima are assumed to be attained. The minimization over ρ ∈ F K \rho\in\mathcal{F}_K ρ ∈ F K treats the partition as a hyperparameter of the prior that is chosen from the data, which is an empirical Bayes choice. The ELBO of model K K K , maximized over F K \mathcal{F}_K F K , is ELBO K = − α ℓ n ∗ − Γ ( K ) \operatorname{ELBO}_K=-\alpha\ell_n^*-\Gamma(K) ELBO K = − α ℓ n ∗ − Γ ( K ) . The search computes ELBO 0 , ELBO 1 , … \operatorname{ELBO}_0,\operatorname{ELBO}_1,\ldots ELBO 0 , ELBO 1 , … , and stops at
K s t o p = min { K ≥ 1 : ELBO K < ELBO K − 1 } , K_{\mathrm{stop}}=\min\{K\ge1:\operatorname{ELBO}_K<\operatorname{ELBO}_{K-1}\}, K stop = min { K ≥ 1 : ELBO K < ELBO K − 1 } ,
or K s t o p = M K_{\mathrm{stop}}=M K stop = M if the ELBO never decreases. In other words, the search stops when the ELBO decreases for the first time. It selects K ^ = arg max 0 ≤ K ≤ K s t o p ELBO K \widehat{K}=\arg\max_{0\le K\le K_{\mathrm{stop}}}\operatorname{ELBO}_K K = arg max 0 ≤ K ≤ K stop ELBO K (ties go to the larger K K K ), with partition ρ ^ \widehat{\rho} ρ and variational distribution Q ^ \widehat{Q} Q . Since the search fits only the models with K ≤ K s t o p K\le K_{\mathrm{stop}} K ≤ K stop , an upper bound on K s t o p K_{\mathrm{stop}} K stop also bounds its computational cost. This is the forward stepwise search of Algorithm 1; the partition is chosen anew at every K K K . Its two-stage version (Algorithm 2) keeps one path; Appendix § 10 .8 gives the conditions under which the results carry over. The theory concerns exact ELBOs and exact maximization; Appendix § 10 .8 also gives a sufficient condition under which numerical approximation does not change the decisions.
The two curves
In this section, we construct the two curves described in Appendix § 10 .§ 1 . The proofs of the results in this section and in Appendix § 10 .§ 4 are given in Appendix § 11 .§ 1 .
The lower curve
We first define the population quantity that drives the lower curve.
Definition B.1 (Rényi risk and lower curve). The Rényi risk of ( ρ , θ ) (\rho,\theta) ( ρ , θ ) is
R n ( ρ , θ ) = − log E ∗ exp { − α ℓ n d ( ρ , θ ) } . R_n(\rho,\theta)=-\log\mathbb{E}_*\exp\{-\alpha\ell_n^d(\rho,\theta)\}. R n ( ρ , θ ) = − log E ∗ exp { − α ℓ n d ( ρ , θ )} . For the Gaussian model, R n = n α D 1 − α ( P ∗ ∥ P ρ θ ) R_n=n\alpha D_{1-\alpha}(P_*\Vert P_\rho^\theta) R n = n α D 1 − α ( P ∗ ∥ P ρ θ ) , where D 1 − α D_{1-\alpha} D 1 − α is the Rényi divergence of order 1 − α 1-\alpha 1 − α (Lemma C.3 ); it is zero only when Ω ρ ( θ ) = Ω ∗ \Omega_\rho(\theta)=\Omega_* Ω ρ ( θ ) = Ω ∗ . Averaging over the prior and minimizing over the candidates gives
E n ( K , ρ ) = − log ∫ e − R n ( ρ , θ ) Π K ( d θ ∣ ρ ) , E n ( K ) = min ρ ∈ F K E n ( K , ρ ) . \mathcal{E}_n(K,\rho)=-\log\int e^{-R_n(\rho,\theta)}\Pi_K(d\theta\mid\rho),\qquad\mathcal{E}_n(K)=\min_{\rho\in\mathcal{F}_K}\mathcal{E}_n(K,\rho). E n ( K , ρ ) = − log ∫ e − R n ( ρ , θ ) Π K ( d θ ∣ ρ ) , E n ( K ) = ρ ∈ F K min E n ( K , ρ ) .
The lower curve is L t ( K ) = E n ( K ) − log N K − t L_t(K)=\mathcal{E}_n(K)-\log N_K-t L t ( K ) = E n ( K ) − log N K − t .
The quantity E n ( K , ρ ) \mathcal{E}_n(K,\rho) E n ( K , ρ ) is the log-exp-sum of the Rényi risk over the prior on model K K K with partition ρ \rho ρ . By Lemma C.1 , it can be written as
E n ( K , ρ ) = min Q { ∫ R n ( ρ , θ ) Q ( d θ ) + KL ( Q , Π K ( ⋅ ∣ ρ ) ) } . \mathcal{E}_n(K,\rho)=\min_Q\left\{\int R_n(\rho,\theta)\,Q(d\theta)+\operatorname{KL}(Q,\Pi_K(\cdot\mid\rho))\right\}. E n ( K , ρ ) = Q min { ∫ R n ( ρ , θ ) Q ( d θ ) + KL ( Q , Π K ( ⋅ ∣ ρ )) } .
where the minimum is over all probability measures Q Q Q and is attained by the distribution proportional to e − R n ( ρ , ⋅ ) Π K ( ⋅ ∣ ρ ) e^{-R_n(\rho,\cdot)}\Pi_K(\cdot\mid\rho) e − R n ( ρ , ⋅ ) Π K ( ⋅ ∣ ρ ) . This relationship implies that E n ( K , ρ ) \mathcal{E}_n(K,\rho) E n ( K , ρ ) is the optimal trade-off over model K K K between the approximation error ∫ R n d Q \int R_n\,dQ ∫ R n d Q and the estimation error KL ( Q , Π K ( ⋅ ∣ ρ ) ) \operatorname{KL}(Q,\Pi_K(\cdot\mid\rho)) KL ( Q , Π K ( ⋅ ∣ ρ )) . It is also the population counterpart of the deficit Γ ( K ; ρ ) \Gamma(K;\rho) Γ ( K ; ρ ) , in which the log-likelihood ratio α ℓ d n \alpha\ell_d^n α ℓ d n is replaced by the Rényi risk R n R_n R n and the variational family by all distributions. Moreover, since ∫ e − R n d Π ≤ e − inf R n \int e^{-R_n}\,d\Pi\leq e^{-\inf R_n} ∫ e − R n d Π ≤ e − i n f R n , we have E n ( K ) ≥ n α m K \mathcal{E}_n(K)\geq n\alpha m_K E n ( K ) ≥ n α m K , where
m K = min ρ ∈ F K inf θ D 1 − α ( P ∗ ∥ P θ ρ ) . m_K=\min_{\rho\in\mathcal{F}_K}\inf_{\theta}D_{1-\alpha}(P_*\mathbin\Vert P_\theta^\rho). m K = ρ ∈ F K min θ inf D 1 − α ( P ∗ ∥ P θ ρ ) .
is the smallest Rényi divergence from the truth to model K K K . Thus E n ( K ) \mathcal{E}_n(K) E n ( K ) is of order n n n whenever model K K K cannot represent the truth. The next lemma shows that the deficit of model K K K falls below the lower curve only with small probability.
Lemma B.2 (A wrong model cannot have a large ELBO). For every K K K and t > 0 t>0 t > 0 ,
P ∗ ( Γ ( K ) ≤ L t ( K ) ) ≤ e − t . P_*(\Gamma(K)\leq L_t(K))\leq e^{-t}. P ∗ ( Γ ( K ) ≤ L t ( K )) ≤ e − t . Moreover, for every fixed ρ ∈ F K \rho\in\mathcal{F}_K ρ ∈ F K ,
P ∗ ( Γ ( K ; ρ ) ≤ E n ( K , ρ ) − t ) ≤ e − t . P_*(\Gamma(K;\rho)\leq\mathcal{E}_n(K,\rho)-t)\leq e^{-t}. P ∗ ( Γ ( K ; ρ ) ≤ E n ( K , ρ ) − t ) ≤ e − t .
The term log N K \log N_K log N K in the lower curve is the price of choosing the partition from N K N_K N K candidates: the proof bounds the deficit of each candidate separately and then takes a union bound. Because the candidate families are finite, this price is additive and only logarithmic in the number of candidates.
The upper curve
We next construct the upper curve. For each K K K , fix an oracle : a partition ρ K ∘ ∈ F K \rho_K^\circ\in\mathcal{F}_K ρ K ∘ ∈ F K and a distribution Q K ∘ ∈ Q K ( ρ K ∘ ) Q_K^\circ\in\mathcal{Q}_K(\rho_K^\circ) Q K ∘ ∈ Q K ( ρ K ∘ ) , both non-random. Since Γ ( K ) \Gamma(K) Γ ( K ) is a minimum over partitions and variational distributions, Γ ( K ) ≤ F ( K , ρ K ∘ , Q K ∘ ) \Gamma(K)\leq F(K,\rho_K^\circ,Q_K^\circ) Γ ( K ) ≤ F ( K , ρ K ∘ , Q K ∘ ) , and the next lemma computes the right-hand side explicitly.
Lemma B.3 (The deficit at a fixed Q Q Q ). For fixed ρ \rho ρ and Q ∈ Q K ( ρ ) Q\in\mathcal{Q}_K(\rho) Q ∈ Q K ( ρ ) , let z i = Ω ∗ − 1 / 2 x i z_i=\Omega_*^{-1/2}x_i z i = Ω ∗ − 1/2 x i and B Q = Ω ∗ 1 / 2 E Q [ Ω ρ ( θ ) − 1 ] Ω ∗ 1 / 2 − I B_Q=\Omega_*^{1/2}\mathbb{E}_Q[\Omega_\rho(\theta)^{-1}]\Omega_*^{1/2}-I B Q = Ω ∗ 1/2 E Q [ Ω ρ ( θ ) − 1 ] Ω ∗ 1/2 − I . Then
F ( K , ρ , Q ) = α n E Q KL ( ρ , θ ) + KL ( Q , Π K ( ⋅ ∣ ρ ) ) + α 2 ∑ i = 1 n ( z i T B Q z i − tr B Q ) . F(K,\rho,Q)=\alpha n\mathbb{E}_Q\operatorname{KL}(\rho,\theta)+\operatorname{KL}(Q,\Pi_K(\cdot\mid\rho))+\frac{\alpha}{2}\sum_{i=1}^{n}\left(z_i^{\mathsf T}B_Qz_i-\operatorname{tr}B_Q\right). F ( K , ρ , Q ) = α n E Q KL ( ρ , θ ) + KL ( Q , Π K ( ⋅ ∣ ρ )) + 2 α i = 1 ∑ n ( z i T B Q z i − tr B Q ) . The first term of the decomposition is the approximation error of model K K K , the second is the estimation error, and the third is a centered Gaussian quadratic form with standard deviation α n / 2 ∥ B Q ∥ F \alpha\sqrt{n/2}\,\lVert B_Q\rVert_F α n /2 ∥ B Q ∥ F . Bounding the third term by a tail inequality for Gaussian quadratic forms (Lemma C.2 ) leads to the following definition.
Definition B.4 (Upper curve). With the oracle ( ρ K ∘ , Q K ∘ ) (\rho_K^\circ,Q_K^\circ) ( ρ K ∘ , Q K ∘ ) and B = B Q K ∘ B=B_{Q_K^\circ} B = B Q K ∘ ,
U t ( K ) = α n E Q K ∘ KL ( ρ K ∘ , θ ) + KL ( Q K ∘ , Π K ( ⋅ ∣ ρ K ∘ ) ) + α ( 2 n ( t + 1 ) ∥ B ∥ F + ( t + 1 ) ∥ B ∥ o p ) . U_t(K)=\alpha n\mathbb{E}_{Q_K^\circ}\operatorname{KL}(\rho_K^\circ,\theta)+\operatorname{KL}(Q_K^\circ,\Pi_K(\cdot\mid\rho_K^\circ))+\alpha\left(\sqrt{2n(t+1)}\lVert B\rVert_F+(t+1)\lVert B\rVert_{\mathrm{op}}\right). U t ( K ) = α n E Q K ∘ KL ( ρ K ∘ , θ ) + KL ( Q K ∘ , Π K ( ⋅ ∣ ρ K ∘ )) + α ( 2 n ( t + 1 ) ∥ B ∥ F + ( t + 1 ) ∥ B ∥ op ) .
The following lemma shows that the deficit of model K K K exceeds the upper curve only with small probability.
Lemma B.5 (The maximization can only help). For every K K K and t > 0 t>0 t > 0 , P ∗ ( Γ ( K ) > U t ( K ) ) ≤ e − t P_*(\Gamma(K)>U_t(K))\le e^{-t} P ∗ ( Γ ( K ) > U t ( K )) ≤ e − t , and the same holds for Γ ( K ; ρ K ∘ ) \Gamma(K;\rho_K^\circ) Γ ( K ; ρ K ∘ ) .
The upper curve depends on the choice of the oracle. In Appendices § 10 .§ 5 and § 10 .§ 6 , we use conjugate oracles centered at a fixed parameter θ c \theta_c θ c (defined before Lemma C.9 ), for which Lemma C.9 gives
U t ( K ) ≈ α n KL ( ρ K ∘ , θ c ) + d K 2 log ( α n ) + O ( n t ) . U_t(K)\approx\alpha n\operatorname{KL}(\rho_K^\circ,\theta_c)+\frac{d_K}{2}\log(\alpha n)+O(\sqrt{nt}). U t ( K ) ≈ α n KL ( ρ K ∘ , θ c ) + 2 d K log ( α n ) + O ( n t ) .
That is, the upper curve is α n \alpha n α n times the KL bias of the centre, plus the parameter cost d K 2 log ( α n ) \frac{d_K}{2}\log(\alpha n) 2 d K log ( α n ) , plus a fluctuation of order n t \sqrt{nt} n t , whose leading term vanishes when the centre is the truth.
Remark B.6 (Two divergences). The lower curve involves the Rényi divergence D 1 − α D_{1-\alpha} D 1 − α , whereas the upper curve involves the KL divergence. Since D 1 − α ≤ KL D_{1-\alpha}\le\operatorname{KL} D 1 − α ≤ KL (Lemma C.3 ), the two curves differ even when the parameter cost and the fluctuation are ignored. This gap is the reason why Assumption (W) in Appendix § 10 .§ 5 is stronger than a strict decrease of the bias. The two divergences are close when α \alpha α is small relative to the strength of the communities; see Example B.12 .
Stopping and risk guarantees
In this section, we show that the not-too-early, not-too-late and risk properties of the forward stepwise search follow from the two curves. The results hold for any true covariance Ω ∗ \Omega_* Ω ∗ , and they use only Lemmas B.2 and B.5, together with Lemma B.9 below for the risk bound.
Not-too-early stopping
The following theorem shows that the search does not stop prematurely, provided that, at each K K K up to K † K^\dagger K † , the upper curve of model K K K lies below the lower curve of model K − 1 K-1 K − 1 .
Theorem B.7 (Not too early). Let 1 ≤ K † ≤ M 1\le K^\dagger\le M 1 ≤ K † ≤ M and t > 0 t>0 t > 0 . If
U t ( K ) < L t ( K − 1 ) for every 1 ≤ K ≤ K † , U_t(K)<L_t(K-1)\qquad\text{for every }1\le K\le K^\dagger, U t ( K ) < L t ( K − 1 ) for every 1 ≤ K ≤ K † , then, with probability at least 1 − 2 K † e − t 1-2K^\dagger e^{-t} 1 − 2 K † e − t , ELBO K > ELBO K − 1 \operatorname{ELBO}_K>\operatorname{ELBO}_{K-1} ELBO K > ELBO K − 1 for all K ≤ K † K\le K^\dagger K ≤ K † , and hence K s t o p ≥ min { K † + 1 , M } K_{\mathrm{stop}}\ge\min\{K^\dagger+1,M\} K stop ≥ min { K † + 1 , M } .
The condition U t ( K ) < L t ( K − 1 ) U_t(K)<L_t(K-1) U t ( K ) < L t ( K − 1 ) compares the best case of model K K K with the worst case of model K − 1 K-1 K − 1 . It requires that the bias removed by the K K K -th community outweighs the parameter cost of model K K K , the price log N K − 1 \log N_{K-1} log N K − 1 of the search over the candidates, and the fluctuations. With high probability, the deficit of model K K K is then at most U t ( K ) U_t(K) U t ( K ) and that of model K − 1 K-1 K − 1 is more than L t ( K − 1 ) L_t(K-1) L t ( K − 1 ) , so the ELBO increases at K K K . The failure probability 2 K † e − t 2K^\dagger e^{-t} 2 K † e − t comes from applying Lemmas B.2 and B.5 once at each step; with t = log n t=\log n t = log n , it is 2 K † / n 2K^\dagger/n 2 K † / n .
Not-too-late stopping
We next show that the search excludes models that are too large, that is, stopping occurs not too late. This supports the computational efficiency of the search, since the models beyond the stopping index are never fitted.
Theorem B.8 (Not too late). Let 0 ≤ k ∘ < K ≤ M 0 \leq k^{\circ} < K \leq M 0 ≤ k ∘ < K ≤ M and t > 0 t > 0 t > 0 . If L t ( K ) ≥ U t ( k ∘ ) L_t(K) \geq U_t(k^{\circ}) L t ( K ) ≥ U t ( k ∘ ) , then
P ∗ ( E L B O K ≥ E L B O k ∘ ) ≤ 2 e − t ; P_{*}(\mathrm{ELBO}_{K} \geq\mathrm{ELBO}_{k^{\circ}}) \leq2e^{-t}; P ∗ ( ELBO K ≥ ELBO k ∘ ) ≤ 2 e − t ; in particular P ∗ ( K s t o p ≥ K + 1 ) ≤ 2 e − t P_{*}(K_{\mathrm{stop}} \geq K + 1) \leq2e^{-t} P ∗ ( K stop ≥ K + 1 ) ≤ 2 e − t .
The condition L t ( K ) ≥ U t ( k ∘ ) L_t(K) \geq U_t(k^{\circ}) L t ( K ) ≥ U t ( k ∘ ) requires that the worst case of model K K K is still worse than the best case of a smaller model k ∘ k^{\circ} k ∘ . With high probability, model K K K then has a smaller ELBO than model k ∘ k^{\circ} k ∘ . Since the search can go beyond K K K only if the ELBO increases at every step from k ∘ k^{\circ} k ∘ to K K K , which would give E L B O K ≥ E L B O k ∘ \mathrm{ELBO}_{K} \geq\mathrm{ELBO}_{k^{\circ}} ELBO K ≥ ELBO k ∘ , the search stops at or before K K K . Unlike Theorem B.7 , the condition involves a single pair ( k ∘ , K ) (k^{\circ}, K) ( k ∘ , K ) , so the failure probability does not grow with K K K .
Risk of the selected model
Finally, we bound the risk of the selected model. Since the selected model is random, we need a bound that holds simultaneously for all candidates and all variational distributions. The following lemma, a PAC-Bayes bound, provides it.
Lemma B.9 (Risk is controlled by the deficit). For t > 0 t > 0 t > 0 , with probability at least 1 − e − t 1 - e^{-t} 1 − e − t , simultaneously for all K K K , ρ ∈ F K \rho\in\mathcal{F}_{K} ρ ∈ F K and Q ∈ Q K ( ρ ) Q \in\mathcal{Q}_{K}(\rho) Q ∈ Q K ( ρ ) ,
∫ R n ( ρ , θ ) Q ( d θ ) ≤ F ( K , ρ , Q ) + log N t o t + t . \int R_n(\rho,\theta)\,Q(\mathrm{d}\theta) \leq F(K,\rho,Q) + \log N_{\mathrm{tot}} + t. ∫ R n ( ρ , θ ) Q ( d θ ) ≤ F ( K , ρ , Q ) + log N tot + t .
Combining Lemma B.9 with the maximality of the selected ELBO, we obtain the following risk bound.
Theorem B.10 (Risk of the selected model). Let k ∘ ≤ M k^{\circ} \leq M k ∘ ≤ M and t > 0 t > 0 t > 0 . With probability at least 1 − P ∗ ( K s t o p < k ∘ ) − 2 e − t 1 - P_{*}(K_{\mathrm{stop}} < k^{\circ}) - 2e^{-t} 1 − P ∗ ( K stop < k ∘ ) − 2 e − t ,
∫ R n ( ρ ^ , θ ) Q ^ ( d θ ) ≤ U t ( k ∘ ) + log N t o t + t , \int R_n(\widehat{\rho},\theta)\,\widehat{Q}(\mathrm{d}\theta) \leq U_t(k^{\circ}) + \log N_{\mathrm{tot}} + t, ∫ R n ( ρ , θ ) Q ( d θ ) ≤ U t ( k ∘ ) + log N tot + t , and, for 0 < ε ≤ 1 2 0 < \varepsilon\leq\frac{1}{2} 0 < ε ≤ 2 1 ,
Q ^ ( ∥ Ω ∗ − 1 / 2 Ω ρ ^ ( θ ) Ω ∗ − 1 / 2 − I ∥ F > ε ) ≤ 9 { U t ( k ∘ ) + log N t o t + t } n α ( 1 − α ) ε 2 . \widehat{Q}\left(\left\lVert\Omega_{*}^{-1/2}\Omega_{\widehat{\rho}}(\theta)\Omega_{*}^{-1/2} - I \right\rVert_{F} > \varepsilon\right) \leq\frac{9\{U_t(k^{\circ}) + \log N_{\mathrm{tot}} + t\}}{n\alpha(1-\alpha)\varepsilon^{2}}. Q ( Ω ∗ − 1/2 Ω ρ ( θ ) Ω ∗ − 1/2 − I F > ε ) ≤ n α ( 1 − α ) ε 2 9 { U t ( k ∘ ) + log N tot + t } .
The first bound is an oracle inequality: the risk of the selected model is at most the upper curve at any model k ∘ k^{\circ} k ∘ that the search visits, plus the price log N t o t + t \log N_{\mathrm{tot}} + t log N tot + t of the search. The probability P ∗ ( K s t o p < k ∘ ) P_{*}(K_{\mathrm{stop}} < k^{\circ}) P ∗ ( K stop < k ∘ ) that k ∘ k^{\circ} k ∘ is not visited is controlled by Theorem B.7 . The second bound converts the risk into the relative Frobenius error of the covariance matrix, through the lower bound on the Rényi divergence in Lemma C.4.
Remark B.11 (Choice of t t t ). All results in this section hold for every t > 0 t > 0 t > 0 . In Appendices B.5 and B.6, we take t = log n t = \log n t = log n , which makes each failure probability of order 1 / n 1/n 1/ n at the cost of an additional log n \log n log n in the curves.
Case I: the truth is an exact 1f model
In this section, we apply the results of Appendix B.4 when the truth is an exact 1f model. The proofs of the results in this section and in Appendix B.6 are given in Appendix C.2.
Assumptions
Assumption (E) (Exact 1f model). Ω ∗ = Ω ρ ∗ ( θ ∗ ) \Omega_* = \Omega_{\rho_*}(\theta_*) Ω ∗ = Ω ρ ∗ ( θ ∗ ) for a partition ρ ∗ \rho_* ρ ∗ with K ∗ ≥ 1 K_* \ge1 K ∗ ≥ 1 communities , each with at least two variables, and θ ∗ = ( Φ ∗ , τ ∗ ) \theta_* = (\Phi_*,\tau_*) θ ∗ = ( Φ ∗ , τ ∗ ) with Φ ∗ ≻ 0 \Phi_* \succ0 Φ ∗ ≻ 0 .
Assumption (E) states that the true covariance is a 1f background-block model with K ∗ K_* K ∗ communities. The condition Φ ∗ ≻ 0 \Phi_* \succ0 Φ ∗ ≻ 0 rules out two communities whose factors are perfectly correlated, which would be indistinguishable from a single community. The condition that each community has at least two variables makes the factor covariance identifiable from the off-diagonal entries of Ω ∗ \Omega_* Ω ∗ . We let d ∗ d_* d ∗ be the number of free parameters of the true model, that is, d K ∗ d_{K_*} d K ∗ , or d K ∗ − 1 d_{K_*} - 1 d K ∗ − 1 if the true background is empty. The case K ∗ = 0 K_* = 0 K ∗ = 0 , in which all variables are independent, is not covered.
Assumption (F) (Fixed dimension and candidates). The true partition is a candidate , ρ ∗ ∈ F K ∗ \rho_* \in\mathcal{F}_{K_*} ρ ∗ ∈ F K ∗ . The true covariance Ω ∗ \Omega_* Ω ∗ (hence K ∗ K_* K ∗ , ρ ∗ \rho_* ρ ∗ and θ ∗ \theta_* θ ∗ ), the dimension p 0 p_0 p 0 , the candidate families, the prior and α \alpha α do not depend on n n n .
Assumption (F) requires that the dense-subgraph search finds the true partition for at least one hyperparameter in its grid. It does not require the other candidates to be good: the lower curve accounts for them through the union bound in Lemma B.2 . Appendix § 10 .8 discusses the case in which the search is run on the same data.
Assumption (W) (Strong decrease of the bias). m K − 1 > m K K L m_{K-1} > m^{\mathrm{KL}}_K m K − 1 > m K KL for 1 ≤ K ≤ K ∗ − 1 1 \le K \le K_* - 1 1 ≤ K ≤ K ∗ − 1 , where m K K L = min ρ ∈ F K inf θ KL ( ρ , θ ) m^{\mathrm{KL}}_K = \min_{\rho\in\mathcal{F}_K} \inf_\theta\operatorname{KL}(\rho,\theta) m K KL = min ρ ∈ F K inf θ KL ( ρ , θ ) is the smallest KL divergence from the truth to model K K K .
Assumption (W) states that the best model with K − 1 K - 1 K − 1 communities, measured by the Rényi divergence, is still farther from the truth than the best model with K K K communities, measured by the KL divergence. It is a substantive condition. Since D 1 − α ≤ KL D_{1-\alpha} \le\operatorname{KL} D 1 − α ≤ KL , it is stronger than the strict decrease of the bias, m K − 1 K L > m K K L m^{\mathrm{KL}}_{K-1} > m^{\mathrm{KL}}_K m K − 1 KL > m K KL (Remark B.6), and nesting alone does not imply it: it can fail even when every step adds a true community. Let the truth consist of two independent communities of b b b variables each, with unit variances and within-community correlation 1 / 2 1/2 1/2 , let the candidates add the two true communities in turn, and let α = 0.02 \alpha= 0.02 α = 0.02 . Placing every variable in the background with variance 1 / 2 1/2 1/2 shows that m 0 ≤ { log ( 1 + α b ) − α log ( 1 + b ) } / α m_0 \le\{\log(1+\alpha b) - \alpha\log(1+b)\}/\alpha m 0 ≤ { log ( 1 + α b ) − α log ( 1 + b )} / α , whereas m 1 K L = 1 2 { b log 2 − log ( b + 1 ) } m^{\mathrm{KL}}_1 = \frac{1}{2}\{b\log2-\log(b+1)\} m 1 KL = 2 1 { b log 2 − log ( b + 1 )} . For b = 500 b = 500 b = 500 these are 113.7 and 170.2, so (W) fails at K = 1 K = 1 K = 1 : here the Rényi bias grows only logarithmically in b b b , whereas the KL bias grows linearly. This limits the scope of the sufficient conditions; it does not mean that the search fails. The gap between the two divergences is small when α ( b − 1 ) r \alpha(b-1)r α ( b − 1 ) r is small for every missing community, where b b b is the size of the community and r r r its within-community correlation, as the following example shows.
Example B.12 (One missing community). Consider a model that misses one community of size b b b with within-community correlation r r r and unit variances. The following table reports, for several values of b b b , r r r and α \alpha α , the KL and Rényi biases per observation of the best model without this community, which places its variables in a background block; each bias is minimized over the residual variance of that block and computed from Lemma C.3 .
Table 1 (PDF p. 41).
The ratio of the Rényi bias to the KL bias is about 0.85 or more when α ( b − 1 ) r \alpha(b-1)r α ( b − 1 ) r is about 0.35 or less, but drops to 0.45 when α ( b − 1 ) r = 2.81 \alpha(b-1)r=2.81 α ( b − 1 ) r = 2.81 . Now suppose that the missing communities are equally strong, that their biases add up, and that each has ratio ϑ \vartheta ϑ . Then (W) at step K K K reads ϑ ( j + 1 ) > j \vartheta(j+1)>j ϑ ( j + 1 ) > j , where j = K ∗ − K j=K_{*}-K j = K ∗ − K is the number of communities still missing after step K K K . Hence (W) holds when fewer than ϑ / ( 1 − ϑ ) \vartheta/(1-\vartheta) ϑ / ( 1 − ϑ ) communities remain: about thirteen when ϑ = 0.93 \vartheta=0.93 ϑ = 0.93 , but not even one when ϑ = 0.45 \vartheta=0.45 ϑ = 0.45 .
The shape of the two curves
We first describe the shape of the two curves under Assumptions (E) and (F).
Proposition B.13 (The curves under the exact model). Assume (E) and (F), take t = log n t=\log n t = log n , and use the conjugate oracles of Lemma C.9 . For large n n n :
(a) for K < K ∗ K<K_{*} K < K ∗ , L t ( K ) ≥ n α m K − O ( log n ) L_t(K)\ge n\alpha m_K-O(\log n) L t ( K ) ≥ n α m K − O ( log n ) with m K > 0 m_K>0 m K > 0 , and U t ( K ) ≤ n α ( m K K L + δ ) + O ( n log n ) U_t(K)\le n\alpha(m_K^{\mathrm{KL}}+\delta)+O(\sqrt{n\log n}) U t ( K ) ≤ n α ( m K KL + δ ) + O ( n log n ) for any fixed δ > 0 \delta>0 δ > 0 ;
(b) at K = K ∗ K=K_{*} K = K ∗ , U t ( K ∗ ) ≤ d ∗ 2 log n + O ( 1 ) U_t(K_{*})\le\frac{d_{*}}{2}\log n+O(1) U t ( K ∗ ) ≤ 2 d ∗ log n + O ( 1 ) ;
(c) for K > K ∗ K>K_{*} K > K ∗ , L t ( K ) ≥ c 0 ( n α ( 1 − α ) ) 1 / 3 − O ( log n ) L_t(K)\ge c_0(n\alpha(1-\alpha))^{1/3}-O(\log n) L t ( K ) ≥ c 0 ( n α ( 1 − α ) ) 1/3 − O ( log n ) , where c 0 = min { c / 4 , 1 / ( 18 ∥ Ω ∗ ∥ o p 2 ) } c_0=\min\{c/4,1/(18\lVert\Omega_{*}\rVert_{\mathrm{op}}^2)\} c 0 = min { c /4 , 1/ ( 18 ∥ Ω ∗ ∥ op 2 )} .
Parts (a) and (b) show that the upper curve drops from order n n n to order log n \log n log n at K = K ∗ K=K_{*} K = K ∗ , and part (c) shows that the lower curve rises again to at least order n 1 / 3 n^{1/3} n 1/3 beyond K ∗ K_{*} K ∗ . Part (c) is where the inverse-Wishart prior matters. By Lemma C.6 , a model with more than K ∗ K_{*} K ∗ communities can reproduce Ω ∗ \Omega_{*} Ω ∗ only by carving a community out of the true background or by splitting a true community, and in both cases the factor covariance must be singular. The prior assigns mass at most e − c / ( 4 ε ) e^{-c/(4\varepsilon)} e − c / ( 4 ε ) to factor covariances with smallest eigenvalue below ε \varepsilon ε , while outside this set the Rényi risk is at least of order n α ( 1 − α ) ε 2 n\alpha(1-\alpha)\varepsilon^2 n α ( 1 − α ) ε 2 (Lemma C.8 ). Balancing the two exponents at ε = ( n α ( 1 − α ) ) − 1 / 3 \varepsilon=(n\alpha(1-\alpha))^{-1/3} ε = ( n α ( 1 − α ) ) − 1/3 gives a lower bound of order n 1 / 3 n^{1/3} n 1/3 ; candidates with a positive bias have a lower curve of order n n n .
Selection and rate
Combining Proposition B.13 with Theorems B.7 and B.8 , we obtain that the search selects the true model.
Corollary B.14 (The search selects the true model). Assume (E), (F) and (W). Then, for all sufficiently large n n n ,
P ∗ ( K ^ = K ∗ , ρ ^ = ρ ∗ , and the search stops at K ∗ + 1 (or at M = K ∗ ) ) ≥ 1 − 2 K ∗ + 2 + N K ∗ n . \mathbb{P}_{*}\left(\widehat{K}=K_{*},\ \widehat{\rho}=\rho_{*},\ \text{and the search stops at }K_{*}+1\ \text{(or at }M=K_{*}\text{)}\right)\ge1-\frac{2K_{*}+2+N_{K_{*}}}{n}. P ∗ ( K = K ∗ , ρ = ρ ∗ , and the search stops at K ∗ + 1 (or at M = K ∗ ) ) ≥ 1 − n 2 K ∗ + 2 + N K ∗ .
Corollary B.14 shows that the search stops exactly one step after the true number of communities, so the search fits models of only one size beyond K ∗ K_{*} K ∗ . The failure probability grows linearly in K ∗ K_{*} K ∗ and in the number N K ∗ N_{K_{*}} N K ∗ of candidate partitions with K ∗ K_{*} K ∗ communities.
Combining Corollary B.14 with Theorem B.10 , we obtain the convergence rate of the selected model.
Corollary B.15 (Rate). Assume (E), (F) and (W). With probability at least 1 − O ( 1 / n ) 1-O(1/n) 1 − O ( 1/ n ) ,
∫ R n ( ρ ^ , θ ) Q ^ ( d θ ) ≤ d ∗ 2 log n + log n + log N t o t + O ( 1 ) , \int R_n(\widehat{\rho},\theta)\,\widehat{Q}(\mathrm{d}\theta)\le\frac{d_{*}}{2}\log n+\log n+\log N_{\mathrm{tot}}+O(1), ∫ R n ( ρ , θ ) Q ( d θ ) ≤ 2 d ∗ log n + log n + log N tot + O ( 1 ) , and for every sequence A n → ∞ A_n\to\infty A n → ∞ ,
Q ^ ( ∥ Ω ∗ − 1 / 2 Ω ^ ρ ^ ( θ ) Ω ∗ − 1 / 2 − I ∥ F > A n d ∗ log n n α ( 1 − α ) ) → 0 \widehat{Q}\left(\left\lVert\Omega_{*}^{-1/2}\widehat{\Omega}_{\widehat{\rho}}(\theta)\Omega_{*}^{-1/2}-I\right\rVert_F>A_n\sqrt{\frac{d_{*}\log n}{n\alpha(1-\alpha)}}\right)\to0 Q ( Ω ∗ − 1/2 Ω ρ ( θ ) Ω ∗ − 1/2 − I F > A n n α ( 1 − α ) d ∗ log n ) → 0 in probability.
The rate d ∗ log n / ( n α ( 1 − α ) ) \sqrt{d_* \log n/(n\alpha(1-\alpha))} d ∗ log n / ( n α ( 1 − α )) is the parametric rate d ∗ / n \sqrt{d_*/n} d ∗ / n for a model with d ∗ d_* d ∗ parameters, up to the factor log n / { α ( 1 − α ) } \sqrt{\log n/\{\alpha(1-\alpha)\}} log n / { α ( 1 − α )} . The parametric rate cannot be improved: by the local asymptotic minimax theorem [35 Chapter 8] , no estimator of Ω ∗ \Omega_* Ω ∗ converges faster than n − 1 / 2 n^{-1/2} n − 1/2 uniformly over a neighborhood of θ ∗ \theta_* θ ∗ , even when the true partition is known. The selected model therefore attains the optimal rate up to a logarithmic factor without knowing K ∗ K_* K ∗ or ρ ∗ \rho_* ρ ∗ . The factor 1 / α 1/\alpha 1/ α reflects the learning rate of the fractional likelihood, which reduces the effective sample size from n n n to α n \alpha n α n .
Corollary B.16 (Posterior mean). Assume (E), (F) and (W), and let Ω ^ = ∫ Ω ρ ^ ( θ ) Q ^ ( d θ ) \widehat{\Omega}=\int\Omega_{\widehat{\rho}}(\theta)\widehat{Q}(d\theta) Ω = ∫ Ω ρ ( θ ) Q ( d θ ) be the posterior mean covariance of the selected model. Then, for every sequence A n → ∞ A_n\to\infty A n → ∞ ,
P ∗ ( ∥ Ω ∗ − 1 / 2 Ω ^ Ω ∗ − 1 / 2 − I ∥ F > A n d ∗ log n n α ( 1 − α ) ) → 0. P_*\left(\left\|\Omega_*^{-1/2}\widehat{\Omega}\Omega_*^{-1/2}-I\right\|_F>A_n\sqrt{\frac{d_*\log n}{n\alpha(1-\alpha)}}\right)\to0. P ∗ ( Ω ∗ − 1/2 Ω Ω ∗ − 1/2 − I F > A n n α ( 1 − α ) d ∗ log n ) → 0.
Corollary B.15 alone does not give this, because a small amount of variational posterior mass far from the truth can move the mean. The proof uses in addition that every member of the variational family concentrates around its own mean: its inverse-Wishart and inverse-gamma components have relative variances of order 1 / ( α n ) 1/(\alpha n) 1/ ( α n ) . If the mean were far from the truth, most of the mass would be far from the truth as well, which Corollary B.15 excludes. The constants of the argument depend on p 0 p_0 p 0 , and we do not extend it to the growing dimension of Appendix D.
Appendix D shows that Proposition B.13 and Corollaries B.14 and B.15 continue to hold when p 0 p_0 p 0 and the community sizes grow with n n n , possibly with p 0 ≫ n p_0\gg n p 0 ≫ n , under uniform versions of Assumptions (E), (F) and (W) and the condition log p 0 = o ( n 1 / 3 ) \log p_0=o(n^{1/3}) log p 0 = o ( n 1/3 ) . The rate then becomes ( d ∗ log n + ( K ∗ + 1 ) log p 0 ) / ( n α ( 1 − α ) ) \sqrt{(d_*\log n+(K_*+1)\log p_0)/(n\alpha(1-\alpha))} ( d ∗ log n + ( K ∗ + 1 ) log p 0 ) / ( n α ( 1 − α )) .
Case II: misspecified model with geometrically decaying bias
In this section, we consider a misspecified case. If the truth is not a 1f block model and p 0 p_0 p 0 is fixed, every candidate keeps a bias of order one. The method then approaches the best candidate, and there is no rate. A rate requires the best number of communities to grow with n n n , so we consider a sequence of problems in which Ω ∗ \Omega_* Ω ∗ , p 0 p_0 p 0 and the candidate families may change with n n n . Rather than modeling Ω ∗ \Omega_* Ω ∗ directly, we state an assumption on the two curves.
Assumption (G) (Geometrically decaying bias). Take t = log n t=\log n t = log n . There exist constants B , c L , c U > 0 B,c_L,c_U>0 B , c L , c U > 0 , ϑ ∈ ( 0 , 1 ] \vartheta\in(0,1] ϑ ∈ ( 0 , 1 ] and γ > log ( 1 / ϑ ) \gamma>\log(1/\vartheta) γ > log ( 1/ ϑ ) such that, for all K ≤ M n K\le M_n K ≤ M n ,
U t ( K ) ≤ n α B e − γ K + c U d K log n , L t ( K ) ≥ ϑ n α B e − γ K + c L d K log n . U_t(K)\le n\alpha B e^{-\gamma K}+c_Ud_K\log n,\qquad L_t(K)\ge\vartheta n\alpha B e^{-\gamma K}+c_Ld_K\log n. U t ( K ) ≤ n α B e − γ K + c U d K log n , L t ( K ) ≥ ϑ n α B e − γ K + c L d K log n . Moreover, M n ≥ ( 2 / γ ) log n M_n\ge(2/\gamma)\log n M n ≥ ( 2/ γ ) log n and log N t o t = O ( log n ) \log N_{\mathrm{tot}}=O(\log n) log N tot = O ( log n ) .
Assumption (G) describes a bias that decays geometrically in the number of communities. The term n α B e − γ K n\alpha B e^{-\gamma K} n α B e − γ K is the approximation error, and each added community removes the same fraction 1 − e − γ 1-e^{-\gamma} 1 − e − γ of the remaining KL bias. The factor ϑ ≤ 1 \vartheta\le1 ϑ ≤ 1 allows the Rényi bias in the lower curve to be smaller than the KL bias in the upper curve, and the terms c L d K log n c_Ld_K\log n c L d K log n and c U d K log n c_Ud_K\log n c U d K log n are the parameter costs. The condition γ > log ( 1 / ϑ ) \gamma>\log(1/\vartheta) γ > log ( 1/ ϑ ) , that is, ϑ e γ > 1 \vartheta e^\gamma>1 ϑ e γ > 1 , plays the role of Assumption (W); the bias term in L t ( K − 1 ) L_t(K-1) L t ( K − 1 ) is ϑ e γ \vartheta e^\gamma ϑ e γ times that in U t ( K ) U_t(K) U t ( K ) , so it is the larger of the two.
The following corollary shows that the search stops after about ( log n ) / γ (\log n)/\gamma ( log n ) / γ communities and that the selected model attains the parametric rate up to a polylogarithmic factor.
Corollary B.17 (Geometric decay). Under ( G ) (G) ( G ) , let ζ = c U / ( ϑ e γ − 1 ) \zeta= c_U/(\vartheta e^\gamma- 1) ζ = c U / ( ϑ e γ − 1 ) . With probability tending to one,
log n γ − 3 γ log log n − C 6 ≤ K s t o p ≤ C 7 log n γ , \frac{\log n}{\gamma} - \frac{3}{\gamma}\log\log n - C_6 \le K_{\mathrm{stop}} \le C_7\frac{\log n}{\gamma}, γ log n − γ 3 log log n − C 6 ≤ K stop ≤ C 7 γ log n , ∫ R n ( ρ ^ , θ ) Q ^ ( d θ ) ≤ ( ζ + c U ) ( log n ) 3 2 γ 2 { 1 + o ( 1 ) } . \int R_n(\widehat{\rho},\theta)\,\widehat{Q}(\mathrm{d}\theta) \le(\zeta+c_U)\frac{(\log n)^3}{2\gamma^2}\{1+o(1)\}. ∫ R n ( ρ , θ ) Q ( d θ ) ≤ ( ζ + c U ) 2 γ 2 ( log n ) 3 { 1 + o ( 1 )} . where C 6 = γ − 1 { log ( ζ / ( α B ) ) + 2 log ( 2 / γ + 2 ) } + + 1 C_6=\gamma^{-1}\{\log(\zeta/(\alpha B))+2\log(2/\gamma+2)\}^{+}+1 C 6 = γ − 1 { log ( ζ / ( α B )) + 2 log ( 2/ γ + 2 ) } + + 1 and C 7 = ( ζ + c U ) / c L + 1 C_7=\sqrt{(\zeta+c_U)/c_L}+1 C 7 = ( ζ + c U ) / c L + 1 . Consequently the relative Frobenius error is of order ( log n ) 3 / ( γ 2 n α ) \sqrt{(\log n)^3/(\gamma^2 n\alpha)} ( log n ) 3 / ( γ 2 n α ) .
The stopping index grows only logarithmically in n n n , so the search visits few layers; the number of fitted models is ∑ K ≤ K s t o p N K \sum_{K\le K_{\mathrm{stop}}}N_K ∑ K ≤ K stop N K , which ( G ) (G) ( G ) allows to grow polynomially in n n n . The risk is polylogarithmic in n n n , so the method attains the parametric rate up to a polylogarithmic factor with a model of about ( log n ) / γ (\log n)/\gamma ( log n ) / γ communities, without any knowledge of γ \gamma γ .
Relation to ESA
In this section, we compare our analysis with that of ESA. ESA introduced the early-stopping rule used here and analyzed it for variational Bayes, for variational empirical Bayes and for frequentist aggregation. The forward stepwise search is an instance of their empirical Bayes setting, in which the partition plays the role of the hyperparameter. ESA proved that the rule does not stop too early in this setting (their Theorem 4.1) by comparing an upper bound on the deficit of model K K K with a lower bound on the deficit of model K − 1 K-1 K − 1 , and we follow this strategy. Our analysis differs from theirs in four respects.
First, our candidate families are finite. ESA allow infinitely many hyperparameters and control them through a Rényi-type cover of the family of priors and Hölder’s inequality. This argument loses constant factors, so their condition is a ratio, E n ( K − 1 ) > ( 1 + c ∗ ) E n ( K ) \mathcal{E}_n(K-1)>(1+c_*)\mathcal{E}_n(K) E n ( K − 1 ) > ( 1 + c ∗ ) E n ( K ) for an unspecified constant c ∗ > 0 c_*>0 c ∗ > 0 . Since our candidates are finitely many, Lemma B.2 uses a union bound instead, and the condition becomes the difference U t ( K ) < L t ( K − 1 ) U_t(K)<L_t(K-1) U t ( K ) < L t ( K − 1 ) . Under the exact model, this weakens a separation requirement on the community strengths to Assumption (W).
Second, we compute the upper curve directly. ESA bound the deficit at the oracle through an exponential-moment assumption on the log-likelihood ratio (the second line of their Assumption A). This assumption fails for the Gaussian covariance models considered here, because the exponential moment is infinite for parameters with small residual variances, to which our priors assign positive mass (Lemma C.5); it could hold on a parameter space whose residual variances are bounded away from zero. Lemma B.5 avoids this through the decomposition in Lemma B.3, in which the deficit is affine in the sample covariance.
Third, we prove a not-too-late result with empirical Bayes. ESA have a not-too-late result for variational Bayes with a fixed prior (their Theorem 3.4), but none with empirical Bayes. Theorem B.8 provides one, and Proposition B.13(c) verifies its condition under the exact model through the inverse-Wishart prior.
Finally, we bound the risk of a single selected model. ESA aggregate the variational posteriors of the visited models with exponential weights and prove a contraction rate for the aggregate (their Theorem 4.2). The search outputs the single best visited model, and Theorem B.10 bounds its risk.
Data-dependent choices, approximation, and the two-stage version
The results above concern the exploratory step with fixed candidate families, a fixed learning rate, exact maximization of the ELBO, and independent Gaussian observations. In the analyses, the families and the learning rate are computed from the same standardized data, the ELBOs are maximized numerically, and the real-data analyses use the two-stage version. We discuss these differences in turn.
Candidate paths. Suppose that the output of the dense-subgraph search equals a fixed family of paths with probability at least 1 − δ n 1-\delta_n 1 − δ n . This holds, for example, when the output of the dense-subgraph search does not change under perturbations of the sample correlation matrix of max-norm smaller than some δ ∈ ( 0 , 1 ] \delta\in(0,1] δ ∈ ( 0 , 1 ] , since the sample correlation matrix is within δ \delta δ of its population counterpart in max-norm with probability at least 1 − C 1 p 0 2 e − c 1 n δ 2 1-C_1p_0^2e^{-c_1n\delta^2} 1 − C 1 p 0 2 e − c 1 n δ 2 for constants C 1 , c 1 > 0 C_1,c_1>0 C 1 , c 1 > 0 . On this event, the search behaves exactly as with the fixed family, so every probability bound above holds after subtracting δ n \delta_n δ n .
The learning rate. The results hold for every fixed α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) . The exploratory step uses α 0 \alpha_0 α 0 , which is computed from the data before any community is fitted. We treat it as fixed; a formal treatment of the plug-in would require the bounds above to hold uniformly over the values that α 0 \alpha_0 α 0 can take, which we do not pursue. The rate α 0 \alpha_0 α 0 applies the calibration principle of Lyddon et al. [2019] to the null model and is then used for every K K K ; this is our choice, and the principle does not by itself calibrate the other candidates. When communities that each contain a fixed fraction of the variables are present, α 0 ≈ p 0 / ∥ R ∥ F 2 \alpha_0 \approx p_0/\lVert R\rVert_F^2 α 0 ≈ p 0 / ∥ R ∥ F 2 is of order 1 / p 0 1/p_0 1/ p 0 , so a fixed learning rate does not describe α 0 \alpha_0 α 0 when p 0 p_0 p 0 grows proportionally to n n n with such communities.
Standardization. The analyses center the variables and divide them by their sample standard deviations before the dense-subgraph search, α 0 \alpha_0 α 0 and the forward stepwise search, whereas the results assume independent observations on the original scale. After standardization the rows are no longer independent, and the variables of a community are rescaled by different random factors, so the exact 1 f 1f 1 f structure holds only approximately. For fixed p 0 p_0 p 0 each factor is within O P ( n − 1 / 2 ) O_P(n^{-1/2}) O P ( n − 1/2 ) of its limit, but we do not analyze the effect on the search; when p 0 p_0 p 0 grows with n n n , the rescaling can dominate the covariance error measured on the correlation scale.
Numerical approximation. The results concern exact maxima of the ELBO, whereas the exploratory step maximizes Monte Carlo estimates of the ELBO with a local optimizer and evaluates the maxima with fresh draws (Appendix § 9 ). A sufficient condition for these errors not to change the decisions is the following. Suppose that, simultaneously for every candidate that the search compares, the computed ELBO differs from the exact maximum by at most ϵ n \epsilon_n ϵ n and the returned variational distribution has a deficit at most ϵ n \epsilon_n ϵ n above the exact minimum, and let τ n ≥ 0 \tau_n \ge0 τ n ≥ 0 be the tolerance with which the implementation declares a decrease. Suppose further that every gap used in the proofs exceeds 2 ϵ n + τ n 2\epsilon_n+\tau_n 2 ϵ n + τ n : the gaps L t ( K − 1 ) − U t ( K ) L_t(K-1)-U_t(K) L t ( K − 1 ) − U t ( K ) for 1 ≤ K ≤ K ∗ 1 \le K \le K_* 1 ≤ K ≤ K ∗ , the gap L t ( K ∗ + 1 ) − U t ( K ∗ ) L_t(K_*+1)-U_t(K_*) L t ( K ∗ + 1 ) − U t ( K ∗ ) , and the gaps between the true partition and the other candidates with K ∗ K_* K ∗ communities in the proof of Corollary B.14 . Then, on the events of the proofs, the computed search makes the same decisions as the exact one, and the risk bound of Theorem B.10 holds with 3 ϵ n 3\epsilon_n 3 ϵ n added to its right-hand side. Here the same decisions mean the same stopping layer, the same selected K K K and the same selected partition; the winning partitions at layers below K ∗ K_* K ∗ may differ, because the condition does not control the gaps among the candidates within those layers. If no path has more than K ∗ K_* K ∗ communities, the gap at K ∗ + 1 K_*+1 K ∗ + 1 is not needed. The tolerance τ n \tau_n τ n must cover every comparison that the implementation makes, including the final selection; without the gap conditions, a final selection anywhere within τ n \tau_n τ n of the largest computed ELBO satisfies the risk bound of Theorem B.10 with 3 ϵ n + τ n 3\epsilon_n+\tau_n 3 ϵ n + τ n added to its right-hand side and with K s t o p K_{\mathrm{stop}} K stop replaced by the layer at which the computed search stops. The two-standard-error rule of Appendix § 9 guards against these errors in practice; it does not establish the condition.
The two-stage version. Along a fixed path π \pi π , stage 2 is the search above with the singleton families F K = { π K } \mathcal{F}_K=\{\pi_K\} F K = { π K } , where π K \pi_K π K is the partition formed by the first K K K communities of π \pi π . Thus N K = 1 N_K=1 N K = 1 , and m K m_K m K and m K L K m_K^{L_K} m K L K are the biases along π \pi π . The kept path π ^ \widehat{\pi} π is chosen from the data, but it is one of at most ∣ H ∣ |\mathcal{H}| ∣ H ∣ paths. Let Π ∗ \Pi_* Π ∗ be the set of paths whose first K ∗ K_* K ∗ communities form the true partition, and suppose that (E) holds and that (F) and (W) hold for the singleton families of every path in Π ∗ \Pi_* Π ∗ . If π ^ ∈ Π ∗ \widehat{\pi}\in\Pi_* π ∈ Π ∗ and stage 2 along π ^ \widehat{\pi} π fails to select K ∗ K_* K ∗ and ρ ∗ \rho_* ρ ∗ , then stage 2 along some fixed π ∈ Π ∗ \pi\in\Pi_* π ∈ Π ∗ fails. Hence, by Corollary B.14 and a union bound over Π ∗ \Pi_* Π ∗ , for all sufficiently large n n n ,
P ∗ ( K ^ = K ∗ and ρ ^ = ρ ∗ ) ≥ 1 − P ∗ ( π ^ ∉ Π ∗ ) − ∣ H ∣ ( 2 K ∗ + 3 ) n . P_*\left(\widehat{K}=K_* \text{ and } \widehat{\rho}=\rho_*\right)\geq1-P_*\left(\widehat{\pi}\notin\Pi_*\right)-\frac{|\mathcal{H}|(2K_*+3)}{n}. P ∗ ( K = K ∗ and ρ = ρ ∗ ) ≥ 1 − P ∗ ( π ∈ / Π ∗ ) − n ∣ H ∣ ( 2 K ∗ + 3 ) .
and Corollary B.15 carries over in the same way. The two-stage version therefore inherits the guarantees whenever, with probability tending to one, stage 1 keeps a path that contains the true partition and along which (W) holds. The first stage ensures neither condition: it compares the candidates at a single size, and the path whose first K r e f K_{\mathrm{ref}} K ref communities have the largest ELBO need not contain the true partition.
Proofs for Appendix B
This appendix proves the results of Appendix § 10 . Appendix § 11 .§ 1 contains the proofs for Appendices § 10 .§ 3 and § 10 .§ 4 , and Appendix § 11 .§ 2 those for Appendices § 10 .§ 5 and § 10 .§ 6 .
Proofs for Appendices B.3 and B.4
Before giving the proofs, we give several lemmas used in the proofs. Lemmas C.1 and C.2 are standard probabilistic tools; Lemmas C.3–C.5 are facts about Gaussian distributions.
Lemmas
Lemma C.1 (Donsker and Varadhan’s variational formula). Let Π \Pi Π be a probability measure and g g g a function with ∫ e g d Π < ∞ \int e^g\,\mathrm{d}\Pi<\infty ∫ e g d Π < ∞ . Then
sup Q { ∫ g d Q − KL ( Q , Π ) } = log ∫ e g d Π . \sup_Q\left\{\int g\,\mathrm{d}Q-\operatorname{KL}(Q,\Pi)\right\}=\log\int e^g\,\mathrm{d}\Pi. Q sup { ∫ g d Q − KL ( Q , Π ) } = log ∫ e g d Π. where the supremum is over probability measures Q Q Q [8 ] . In particular,
∫ g d Q ≤ KL ( Q , Π ) + log ∫ e g d Π \int g\,\mathrm{d}Q\leq\operatorname{KL}(Q,\Pi)+\log\int e^g\,\mathrm{d}\Pi ∫ g d Q ≤ KL ( Q , Π ) + log ∫ e g d Π for every Q Q Q with KL ( Q , Π ) < ∞ \operatorname{KL}(Q,\Pi)<\infty KL ( Q , Π ) < ∞ .
Lemma C.2 (Tail of Gaussian quadratic forms). Let z 1 , … , z n z_1,\ldots,z_n z 1 , … , z n be independent N p 0 ( 0 , I ) \mathcal{N}_{p_0}(0,I) N p 0 ( 0 , I ) and B B B symmetric. For u > 0 u>0 u > 0 ,
P ( ∑ i = 1 n ( z i T B z i − tr B ) > 2 2 n u ∥ B ∥ F + 2 u ∥ B ∥ o p ) ≤ 2 e − u . P\left(\sum_{i=1}^{n}(z_i^\mathsf{T}Bz_i-\operatorname{tr}B)>2\sqrt{2nu}\lVert B\rVert_F+2u\lVert B\rVert_{\mathrm{op}}\right)\leq2e^{-u}. P ( i = 1 ∑ n ( z i T B z i − tr B ) > 2 2 n u ∥ B ∥ F + 2 u ∥ B ∥ op ) ≤ 2 e − u .
Proof. Let μ 1 , … , μ p 0 \mu_1,\ldots,\mu_{p_0} μ 1 , … , μ p 0 be the eigenvalues of B B B . The sum has the same law as ∑ j a j ( Y j 2 − 1 ) \sum_j a_j(Y_j^2-1) ∑ j a j ( Y j 2 − 1 ) , where the Y j Y_j Y j are independent standard normal and a ∈ R n p 0 a\in\mathbb{R}^{np_0} a ∈ R n p 0 repeats each μ k \mu_k μ k n n n times, so that ∥ a ∥ 2 = n ∥ B ∥ F \lVert a\rVert_2=\sqrt{n}\lVert B\rVert_F ∥ a ∥ 2 = n ∥ B ∥ F and ∥ a ∥ ∞ = ∥ B ∥ op \lVert a\rVert_\infty=\lVert B\rVert_{\operatorname{op}} ∥ a ∥ ∞ = ∥ B ∥ op . Write a = a + − a − a=a^+-a^- a = a + − a − with a ± ≥ 0 a^\pm\ge0 a ± ≥ 0 . By Lemma 1 of Laurent and Massart [2000], with probability at least 1 − 2 e − u 1-2e^{-u} 1 − 2 e − u ,
∑ j a j + ( Y j 2 − 1 ) ≤ 2 ∥ a + ∥ 2 u + 2 ∥ a + ∥ ∞ u , − ∑ j a j − ( Y j 2 − 1 ) ≤ 2 ∥ a − ∥ 2 u . \sum_j a_j^+(Y_j^2-1)\le2\lVert a^+\rVert_2\sqrt{u}+2\lVert a^+\rVert_\infty u,\qquad-\sum_j a_j^-(Y_j^2-1)\le2\lVert a^-\rVert_2\sqrt{u}. j ∑ a j + ( Y j 2 − 1 ) ≤ 2 ∥ a + ∥ 2 u + 2 ∥ a + ∥ ∞ u , − j ∑ a j − ( Y j 2 − 1 ) ≤ 2 ∥ a − ∥ 2 u .
Adding the two bounds,
∑ j a j ( Y j 2 − 1 ) ≤ 2 ( ∥ a + ∥ 2 + ∥ a − ∥ 2 ) u + 2 ∥ a ∥ ∞ u ≤ 2 2 ∥ a ∥ 2 u + 2 ∥ a ∥ ∞ u , \sum_j a_j(Y_j^2-1)\le2(\lVert a^+\rVert_2+\lVert a^-\rVert_2)\sqrt{u}+2\lVert a\rVert_\infty u\le2\sqrt{2}\lVert a\rVert_2\sqrt{u}+2\lVert a\rVert_\infty u, j ∑ a j ( Y j 2 − 1 ) ≤ 2 (∥ a + ∥ 2 + ∥ a − ∥ 2 ) u + 2 ∥ a ∥ ∞ u ≤ 2 2 ∥ a ∥ 2 u + 2 ∥ a ∥ ∞ u ,
where we use ∥ a + ∥ 2 + ∥ a − ∥ 2 ≤ 2 ∥ a ∥ 2 \lVert a^+\rVert_2+\lVert a^-\rVert_2\le\sqrt{2}\lVert a\rVert_2 ∥ a + ∥ 2 + ∥ a − ∥ 2 ≤ 2 ∥ a ∥ 2 . Substituting ∥ a ∥ 2 \lVert a\rVert_2 ∥ a ∥ 2 and ∥ a ∥ ∞ \lVert a\rVert_\infty ∥ a ∥ ∞ gives the claim.
Lemma C.3 (Gaussian closed form). Let μ 1 , … , μ p 0 \mu_1,\ldots,\mu_{p_0} μ 1 , … , μ p 0 be the eigenvalues of L = Ω ∗ − 1 / 2 Ω ρ ( θ ) Ω ∗ − 1 / 2 L=\Omega_*^{-1/2}\Omega_\rho(\theta)\Omega_*^{-1/2} L = Ω ∗ − 1/2 Ω ρ ( θ ) Ω ∗ − 1/2 . Then
R n ( ρ , θ ) = n α D 1 − α ( P ∗ ∥ P θ α ) = n 2 ∑ i = 1 p 0 g α ( μ i ) , g α ( μ ) = α log μ + log ( 1 − α + α μ ) ≥ 0 , R_n(\rho,\theta)=n\alpha D_{1-\alpha}(P_*\mathbin{\|}P_\theta^\alpha)=\frac{n}{2}\sum_{i=1}^{p_0}g_\alpha(\mu_i),\qquad g_\alpha(\mu)=\alpha\log\mu+\log\left(1-\alpha+\frac{\alpha}{\mu}\right)\ge0, R n ( ρ , θ ) = n α D 1 − α ( P ∗ ∥ P θ α ) = 2 n i = 1 ∑ p 0 g α ( μ i ) , g α ( μ ) = α log μ + log ( 1 − α + μ α ) ≥ 0 , with D γ ( P ∥ Q ) = ( γ − 1 ) − 1 log ∫ p γ q 1 − γ D_\gamma(P\mathbin{\|}Q)=(\gamma-1)^{-1}\log\int p^\gamma q^{1-\gamma} D γ ( P ∥ Q ) = ( γ − 1 ) − 1 log ∫ p γ q 1 − γ , and R n ( ρ , θ ) ≤ n α KL ( ρ , θ ) R_n(\rho,\theta)\le n\alpha\operatorname{KL}(\rho,\theta) R n ( ρ , θ ) ≤ n α KL ( ρ , θ ) .
Proof. Write Ω = Ω ρ ( θ ) \Omega=\Omega_\rho(\theta) Ω = Ω ρ ( θ ) and p θ p_\theta p θ , p ∗ p_* p ∗ for the densities. By independence and a Gaussian integral,
R n ( ρ , θ ) = − n log ∫ p θ α p ∗ 1 − α = n 2 { α log ∣ Ω ∣ + ( 1 − α ) log ∣ Ω ∗ ∣ + log ∣ α Ω − 1 + ( 1 − α ) Ω ∗ − 1 ∣ } R_n(\rho,\theta)=-n\log\int p_\theta^\alpha p_*^{1-\alpha}=\frac{n}{2}\left\{\alpha\log|\Omega|+(1-\alpha)\log|\Omega_*|+\log|\alpha\Omega^{-1}+(1-\alpha)\Omega_*^{-1}|\right\} R n ( ρ , θ ) = − n log ∫ p θ α p ∗ 1 − α = 2 n { α log ∣Ω∣ + ( 1 − α ) log ∣ Ω ∗ ∣ + log ∣ α Ω − 1 + ( 1 − α ) Ω ∗ − 1 ∣ } = n 2 ∑ i = 1 p 0 { α log μ i + log ( 1 − α + α μ i ) } , =\frac{n}{2}\sum_{i=1}^{p_0}\left\{\alpha\log\mu_i+\log\left(1-\alpha+\frac{\alpha}{\mu_i}\right)\right\}, = 2 n i = 1 ∑ p 0 { α log μ i + log ( 1 − α + μ i α ) } , where the last line follows by writing Ω = Ω ∗ 1 / 2 L Ω ∗ 1 / 2 \Omega=\Omega_*^{1/2}L\Omega_*^{1/2} Ω = Ω ∗ 1/2 L Ω ∗ 1/2 . By definition − n log ∫ p θ α p ∗ 1 − α = n α D 1 − α ( P ∗ ∥ P θ α ) -n\log\int p_\theta^\alpha p_*^{1-\alpha}=n\alpha D_{1-\alpha}(P_*\mathbin{\|}P_\theta^\alpha) − n log ∫ p θ α p ∗ 1 − α = n α D 1 − α ( P ∗ ∥ P θ α ) . The weighted arithmetic–geometric mean inequality ( 1 − α ) + α μ − 1 ≥ μ − α (1-\alpha)+\alpha\mu^{-1}\ge\mu^{-\alpha} ( 1 − α ) + α μ − 1 ≥ μ − α gives g α ≥ 0 g_\alpha\ge0 g α ≥ 0 . Finally,
g α ( μ ) ≤ α log μ + ( 1 − α + α μ ) − 1 = α ( 1 μ − 1 + log μ ) , g_\alpha(\mu)\le\alpha\log\mu+\left(1-\alpha+\frac{\alpha}{\mu}\right)-1=\alpha\left(\frac{1}{\mu}-1+\log\mu\right), g α ( μ ) ≤ α log μ + ( 1 − α + μ α ) − 1 = α ( μ 1 − 1 + log μ ) , where we use log x ≤ x − 1 \log x\le x-1 log x ≤ x − 1 , and n 2 ∑ i ( μ i − 1 − 1 + log μ i ) = n KL ( ρ , θ ) \frac{n}{2}\sum_i(\mu_i^{-1}-1+\log\mu_i)=n\operatorname{KL}(\rho,\theta) 2 n ∑ i ( μ i − 1 − 1 + log μ i ) = n KL ( ρ , θ ) .
Lemma C.4 (Lower bound on g α g_\alpha g α ). g α ( μ ) ≥ 2 9 α ( 1 − α ) min { ( μ − 1 ) 2 , 1 4 } g_\alpha(\mu)\ge\frac{2}{9}\alpha(1-\alpha)\min\{(\mu-1)^2,\frac14\} g α ( μ ) ≥ 9 2 α ( 1 − α ) min {( μ − 1 ) 2 , 4 1 } for all μ > 0 \mu>0 μ > 0 . Hence, with L L L as in Lemma C.3,
R n ( ρ , θ ) ≥ n 9 α ( 1 − α ) min { ∥ L − I ∥ F 2 , 1 4 } ≥ n 9 α ( 1 − α ) min { ∥ Ω ρ ( θ ) − Ω ∗ ∥ F 2 ∥ Ω ∗ ∥ op 2 , 1 4 } . R_n(\rho,\theta)\ge\frac{n}{9}\alpha(1-\alpha)\min\left\{\lVert L-I\rVert_F^2,\frac14\right\}\ge\frac{n}{9}\alpha(1-\alpha)\min\left\{\frac{\lVert\Omega_\rho(\theta)-\Omega_*\rVert_F^2}{\lVert\Omega_*\rVert_{\operatorname{op}}^2},\frac14\right\}. R n ( ρ , θ ) ≥ 9 n α ( 1 − α ) min { ∥ L − I ∥ F 2 , 4 1 } ≥ 9 n α ( 1 − α ) min { ∥ Ω ∗ ∥ op 2 ∥ Ω ρ ( θ ) − Ω ∗ ∥ F 2 , 4 1 } . Proof. Differentiation gives g α ′ ( μ ) = α ( 1 − α ) ( μ − 1 ) / { μ ( ( 1 − α ) μ + α ) } g_\alpha'(\mu)=\alpha(1-\alpha)(\mu-1)/\{\mu((1-\alpha)\mu+\alpha)\} g α ′ ( μ ) = α ( 1 − α ) ( μ − 1 ) / { μ (( 1 − α ) μ + α )} , so g α g_\alpha g α decreases on ( 0 , 1 ) (0,1) ( 0 , 1 ) , increases on ( 1 , ∞ ) (1,\infty) ( 1 , ∞ ) and vanishes at 1 1 1 . For μ ∈ [ 1 2 , 3 2 ] \mu\in[\frac12,\frac32] μ ∈ [ 2 1 , 2 3 ] , the denominator is at most 9 4 \frac94 4 9 , so
g α ( μ ) = ∫ 1 μ g α ′ ( s ) d s ≥ 4 9 α ( 1 − α ) ∫ 1 μ ( s − 1 ) d s = 2 9 α ( 1 − α ) ( μ − 1 ) 2 . g_\alpha(\mu)=\int_1^\mu g_\alpha'(s)\,ds\ge\frac49\alpha(1-\alpha)\int_1^\mu(s-1)\,ds=\frac29\alpha(1-\alpha)(\mu-1)^2. g α ( μ ) = ∫ 1 μ g α ′ ( s ) d s ≥ 9 4 α ( 1 − α ) ∫ 1 μ ( s − 1 ) d s = 9 2 α ( 1 − α ) ( μ − 1 ) 2 . For ∣ μ − 1 ∣ > 1 2 |\mu-1|>\frac12 ∣ μ − 1∣ > 2 1 , monotonicity gives g α ( μ ) ≥ min { g α ( 1 2 ) , g α ( 3 2 ) } ≥ 1 18 α ( 1 − α ) g_\alpha(\mu)\ge\min\{g_\alpha(\frac12),g_\alpha(\frac32)\}\ge\frac1{18}\alpha(1-\alpha) g α ( μ ) ≥ min { g α ( 2 1 ) , g α ( 2 3 )} ≥ 18 1 α ( 1 − α ) . Summing over the eigenvalues,
R n = n 2 ∑ i g α ( μ i ) ≥ n 9 α ( 1 − α ) ∑ i min { ( μ i − 1 ) 2 , 1 4 } ≥ n 9 α ( 1 − α ) min { ∥ L − I ∥ F 2 , 1 4 } , R_n=\frac{n}{2}\sum_i g_\alpha(\mu_i)\ge\frac{n}{9}\alpha(1-\alpha)\sum_i\min\left\{(\mu_i-1)^2,\frac14\right\}\ge\frac{n}{9}\alpha(1-\alpha)\min\left\{\lVert L-I\rVert_F^2,\frac14\right\}, R n = 2 n i ∑ g α ( μ i ) ≥ 9 n α ( 1 − α ) i ∑ min { ( μ i − 1 ) 2 , 4 1 } ≥ 9 n α ( 1 − α ) min { ∥ L − I ∥ F 2 , 4 1 } , and the last bound of the lemma follows from ∥ Ω ρ ( θ ) − Ω ∗ ∥ F ≤ ∥ Ω ∗ ∥ op ∥ L − I ∥ F \lVert\Omega_\rho(\theta)-\Omega_*\rVert_F\le\lVert\Omega_*\rVert_{\operatorname{op}}\lVert L-I\rVert_F ∥ Ω ρ ( θ ) − Ω ∗ ∥ F ≤ ∥ Ω ∗ ∥ op ∥ L − I ∥ F .
Lemma C.5 (Exponential moments of the log-likelihood ratio). For s > 0 s > 0 s > 0 , the expectation E ∗ exp { s ℓ n d ( ρ , θ ) } \mathbb{E}_* \exp\{s\ell_n^d(\rho,\theta)\} E ∗ exp { s ℓ n d ( ρ , θ )} is finite if and only if every eigenvalue of L L L exceeds s / ( 1 + s ) s/(1+s) s / ( 1 + s ) .
Proof. For one observation x = Ω ∗ 1 / 2 z x = \Omega_*^{1/2}z x = Ω ∗ 1/2 z ,
E ∗ exp { s log p ∗ ( x ) p θ ( x ) } = ( ∣ Ω ∣ ∣ Ω ∗ ∣ ) s / 2 E exp { s 2 z ⊤ ( L − 1 − I ) z } = ( ∣ Ω ∣ ∣ Ω ∗ ∣ ) s / 2 ∏ i = 1 p 0 { 1 − s ( μ i − 1 − 1 ) } − 1 / 2 \mathbb{E}_* \exp\left\{s\log\frac{p_*(x)}{p_\theta(x)}\right\} = \left(\frac{|\Omega|}{|\Omega_*|}\right)^{s/2}\mathbb{E}\exp\left\{\frac{s}{2}z^\top(L^{-1}-I)z\right\} = \left(\frac{|\Omega|}{|\Omega_*|}\right)^{s/2}\prod_{i=1}^{p_0}\{1-s(\mu_i^{-1}-1)\}^{-1/2} E ∗ exp { s log p θ ( x ) p ∗ ( x ) } = ( ∣ Ω ∗ ∣ ∣Ω∣ ) s /2 E exp { 2 s z ⊤ ( L − 1 − I ) z } = ( ∣ Ω ∗ ∣ ∣Ω∣ ) s /2 i = 1 ∏ p 0 { 1 − s ( μ i − 1 − 1 ) } − 1/2
when every factor 1 − s ( μ i − 1 − 1 ) 1-s(\mu_i^{-1}-1) 1 − s ( μ i − 1 − 1 ) is positive, and the expectation is infinite otherwise. The condition s ( μ i − 1 − 1 ) < 1 s(\mu_i^{-1}-1)<1 s ( μ i − 1 − 1 ) < 1 is μ i > s / ( 1 + s ) \mu_i>s/(1+s) μ i > s / ( 1 + s ) . □
Every prior and every Q ∈ Q K ( ρ ) Q\in\mathcal{Q}_K(\rho) Q ∈ Q K ( ρ ) gives positive mass to parameters with small residual variances, for which some μ i ≤ s / ( 1 + s ) \mu_i\le s/(1+s) μ i ≤ s / ( 1 + s ) . So no exponential-moment bound can hold for every θ \theta θ ; Lemma B.5 avoids this by working with the integrated quantity ∫ ℓ n d d Q \int\ell_n^d\,dQ ∫ ℓ n d d Q , which is linear in S S S .
Proof of Lemma B.2
Proof. Fix ρ ∈ F K \rho\in\mathcal{F}_K ρ ∈ F K . By Lemma C.1 with g = − α ℓ n d ( ρ , ⋅ ) g=-\alpha\ell_n^d(\rho,\cdot) g = − α ℓ n d ( ρ , ⋅ ) ,
− Γ ( K ; ρ ) = max Q ∈ Q K ( ρ ) { − α ∫ ℓ n d d Q − KL ( Q , Π K ( ⋅ ∣ ρ ) ) } ≤ log ∫ e − α ℓ n d ( ρ , θ ) Π K ( d θ ∣ ρ ) . -\Gamma(K;\rho)=\max_{Q\in\mathcal{Q}_K(\rho)}\left\{-\alpha\int\ell_n^d\,dQ-\operatorname{KL}(Q,\Pi_K(\cdot\mid\rho))\right\}\le\log\int e^{-\alpha\ell_n^d(\rho,\theta)}\Pi_K(d\theta\mid\rho). − Γ ( K ; ρ ) = Q ∈ Q K ( ρ ) max { − α ∫ ℓ n d d Q − KL ( Q , Π K ( ⋅ ∣ ρ )) } ≤ log ∫ e − α ℓ n d ( ρ , θ ) Π K ( d θ ∣ ρ ) .
Therefore, by Markov’s inequality and Fubini’s theorem,
P ∗ ( Γ ( K ; ρ ) ≤ E n ( K , ρ ) − t ) ≤ P ∗ ( ∫ e − α ℓ n d ( ρ , θ ) Π K ( d θ ∣ ρ ) ≥ e t − E n ( K , ρ ) ) ≤ e E n ( K , ρ ) − t E ∗ ∫ e − α ℓ n d ( ρ , θ ) Π K ( d θ ∣ ρ ) = e E n ( K , ρ ) − t ∫ e − R n ( ρ , θ ) Π K ( d θ ∣ ρ ) = e − t , \begin{aligned}
P_*\left(\Gamma(K;\rho)\le\mathcal{E}_n(K,\rho)-t\right)\le P_*\left(\int e^{-\alpha\ell_n^d(\rho,\theta)}\Pi_K(d\theta\mid\rho)\ge e^{t-\mathcal{E}_n(K,\rho)}\right) \\
&\le e^{\mathcal{E}_n(K,\rho)-t}\mathbb{E}_*\int e^{-\alpha\ell_n^d(\rho,\theta)}\Pi_K(d\theta\mid\rho) \\
&=e^{\mathcal{E}_n(K,\rho)-t}\int e^{-R_n(\rho,\theta)}\Pi_K(d\theta\mid\rho)=e^{-t},
\end{aligned} P ∗ ( Γ ( K ; ρ ) ≤ E n ( K , ρ ) − t ) ≤ P ∗ ( ∫ e − α ℓ n d ( ρ , θ ) Π K ( d θ ∣ ρ ) ≥ e t − E n ( K , ρ ) ) ≤ e E n ( K , ρ ) − t E ∗ ∫ e − α ℓ n d ( ρ , θ ) Π K ( d θ ∣ ρ ) = e E n ( K , ρ ) − t ∫ e − R n ( ρ , θ ) Π K ( d θ ∣ ρ ) = e − t ,
where the first inequality follows from the last display, and the equalities use the definitions of R n R_n R n and E n ( K , ρ ) \mathcal{E}_n(K,\rho) E n ( K , ρ ) . This proves the second claim. For the first claim, since Γ ( K ) = min ρ Γ ( K ; ρ ) \Gamma(K)=\min_{\rho}\Gamma(K;\rho) Γ ( K ) = min ρ Γ ( K ; ρ ) and E n ( K , ρ ) ≥ E n ( K ) \mathcal{E}_n(K,\rho)\ge\mathcal{E}_n(K) E n ( K , ρ ) ≥ E n ( K ) for every ρ \rho ρ ,
P ∗ ( Γ ( K ) ≤ L t ( K ) ) ≤ ∑ ρ ∈ F K P ∗ ( Γ ( K ; ρ ) ≤ E n ( K , ρ ) − log N K − t ) ≤ N K e − log N K − t = e − t , P_*\left(\Gamma(K)\le L_t(K)\right)\le\sum_{\rho\in\mathcal{F}_K}P_*\left(\Gamma(K;\rho)\le\mathcal{E}_n(K,\rho)-\log N_K-t\right)\le N_K e^{-\log N_K-t}=e^{-t}, P ∗ ( Γ ( K ) ≤ L t ( K ) ) ≤ ρ ∈ F K ∑ P ∗ ( Γ ( K ; ρ ) ≤ E n ( K , ρ ) − log N K − t ) ≤ N K e − l o g N K − t = e − t ,
where the second inequality is the second claim with t + log N K t+\log N_K t + log N K in place of t t t . □
Proof of Lemma B.3
Proof. Write Ω θ = Ω ρ ( θ ) \Omega_\theta=\Omega_\rho(\theta) Ω θ = Ω ρ ( θ ) . Since
n KL ( ρ , θ ) = n 2 { tr ( Ω θ − 1 Ω ∗ ) − p 0 + log ∣ Ω θ ∣ − log ∣ Ω ∗ ∣ } , n\operatorname{KL}(\rho,\theta)=\frac{n}{2}\{\operatorname{tr}(\Omega_\theta^{-1}\Omega_*)-p_0+\log|\Omega_\theta|-\log|\Omega_*|\}, n KL ( ρ , θ ) = 2 n { tr ( Ω θ − 1 Ω ∗ ) − p 0 + log ∣ Ω θ ∣ − log ∣ Ω ∗ ∣ } ,
ℓ n d ( ρ , θ ) = n 2 { log ∣ Ω θ ∣ − log ∣ Ω ∗ ∣ + tr ( ( Ω θ − 1 − Ω ∗ − 1 ) S ) } = n KL ( ρ , θ ) + n 2 tr { ( Ω θ − 1 − Ω ∗ − 1 ) ( S − Ω ∗ ) } . \begin{aligned}
\ell_n^d(\rho,\theta)=\frac{n}{2}\{\log|\Omega_\theta|-\log|\Omega_*|+\operatorname{tr}((\Omega_\theta^{-1}-\Omega_*^{-1})S)\} \\
&=n\operatorname{KL}(\rho,\theta)+\frac{n}{2}\operatorname{tr}\{(\Omega_\theta^{-1}-\Omega_*^{-1})(S-\Omega_*)\}.
\end{aligned} ℓ n d ( ρ , θ ) = 2 n { log ∣ Ω θ ∣ − log ∣ Ω ∗ ∣ + tr (( Ω θ − 1 − Ω ∗ − 1 ) S )} = n KL ( ρ , θ ) + 2 n tr {( Ω θ − 1 − Ω ∗ − 1 ) ( S − Ω ∗ )} .
All moments below are finite because Ω θ − 1 ⪯ D ρ ( τ ) − 1 \Omega_{\theta}^{-1} \preceq D_{\rho}(\tau)^{-1} Ω θ − 1 ⪯ D ρ ( τ ) − 1 . Integrating over Q Q Q and using n S = Ω ∗ 1 / 2 ( ∑ i z i z i T ) Ω ∗ 1 / 2 nS = \Omega_{*}^{1/2}(\sum_i z_i z_i^{\mathsf T})\Omega_{*}^{1/2} n S = Ω ∗ 1/2 ( ∑ i z i z i T ) Ω ∗ 1/2 ,
∫ ℓ n d d Q = n E Q KL ( ρ , θ ) + n 2 tr { ( E Q Ω θ − 1 − Ω ∗ − 1 ) ( S − Ω ∗ ) } = n E Q KL ( ρ , θ ) + 1 2 ∑ i = 1 n ( z i T B Q z i − tr B Q ) . \begin{aligned}
\int\ell_n^d\,dQ = n\mathbb{E}_Q\operatorname{KL}(\rho,\theta) + \frac{n}{2}\operatorname{tr}\left\{(\mathbb{E}_Q\Omega_{\theta}^{-1}-\Omega_{*}^{-1})(S-\Omega_{*})\right\} \\
&= n\mathbb{E}_Q\operatorname{KL}(\rho,\theta) + \frac{1}{2}\sum_{i=1}^{n}(z_i^{\mathsf T}B_Qz_i-\operatorname{tr}B_Q).
\end{aligned} ∫ ℓ n d d Q = n E Q KL ( ρ , θ ) + 2 n tr { ( E Q Ω θ − 1 − Ω ∗ − 1 ) ( S − Ω ∗ ) } = n E Q KL ( ρ , θ ) + 2 1 i = 1 ∑ n ( z i T B Q z i − tr B Q ) .
Multiplying by α \alpha α and adding KL ( Q , Π K ( ⋅ ∣ ρ ) ) \operatorname{KL}(Q,\Pi_K(\cdot\mid\rho)) KL ( Q , Π K ( ⋅ ∣ ρ )) gives the claim.
Proof of Lemma B.5
Proof. Write ρ ∘ = ρ K ∘ \rho^\circ=\rho_K^\circ ρ ∘ = ρ K ∘ , Q ∘ = Q K ∘ Q^\circ=Q_K^\circ Q ∘ = Q K ∘ and B = B Q ∘ B=B_{Q^\circ} B = B Q ∘ . By the minimality of Γ ( K ) \Gamma(K) Γ ( K ) and Lemma B.3 ,
Γ ( K ) ≤ Γ ( K ; ρ ∘ ) ≤ F ( K , ρ ∘ , Q ∘ ) = α n E Q ∘ KL ( ρ ∘ , θ ) + KL ( Q ∘ , Π K ( ⋅ ∣ ρ ∘ ) ) + α 2 ∑ i = 1 n ( z i T B z i − tr B ) . \begin{aligned}
\Gamma(K)\leq\Gamma(K;\rho^\circ)\leq F(K,\rho^\circ,Q^\circ) \\
&=\alpha n\mathbb{E}_{Q^\circ}\operatorname{KL}(\rho^\circ,\theta)+\operatorname{KL}(Q^\circ,\Pi_K(\cdot\mid\rho^\circ))+\frac{\alpha}{2}\sum_{i=1}^{n}(z_i^{\mathsf T}Bz_i-\operatorname{tr}B).
\end{aligned} Γ ( K ) ≤ Γ ( K ; ρ ∘ ) ≤ F ( K , ρ ∘ , Q ∘ ) = α n E Q ∘ KL ( ρ ∘ , θ ) + KL ( Q ∘ , Π K ( ⋅ ∣ ρ ∘ )) + 2 α i = 1 ∑ n ( z i T B z i − tr B ) .
The first two terms of the last line are the first two terms of U t ( K ) U_t(K) U t ( K ) . Therefore
P ∗ ( Γ ( K ; ρ ∘ ) > U t ( K ) ) ≤ P ( ∑ i = 1 n ( z i T B z i − tr B ) > 2 2 n ( t + 1 ) ∥ B ∥ F + 2 ( t + 1 ) ∥ B ∥ op ) P_*(\Gamma(K;\rho^\circ)>U_t(K))\leq P\left(\sum_{i=1}^{n}(z_i^{\mathsf T}Bz_i-\operatorname{tr}B)>2\sqrt{2n(t+1)}\lVert B\rVert_F+2(t+1)\lVert B\rVert_{\operatorname{op}}\right) P ∗ ( Γ ( K ; ρ ∘ ) > U t ( K )) ≤ P ( i = 1 ∑ n ( z i T B z i − tr B ) > 2 2 n ( t + 1 ) ∥ B ∥ F + 2 ( t + 1 ) ∥ B ∥ op )
≤ 2 e − ( t + 1 ) ≤ e − t , \leq2e^{-(t+1)}\leq e^{-t}, ≤ 2 e − ( t + 1 ) ≤ e − t ,
where we use the last display and the definition of U t ( K ) U_t(K) U t ( K ) for the first inequality, and Lemma C.2 with u = t + 1 u=t+1 u = t + 1 for the second. Since Γ ( K ) ≤ Γ ( K ; ρ ∘ ) \Gamma(K)\leq\Gamma(K;\rho^\circ) Γ ( K ) ≤ Γ ( K ; ρ ∘ ) , the same bound holds for Γ ( K ) \Gamma(K) Γ ( K ) .
Proof of Theorem B.7
Proof. Since ELBO K − 1 − ELBO K = Γ ( K ) − Γ ( K − 1 ) \operatorname{ELBO}_{K-1}-\operatorname{ELBO}_K=\Gamma(K)-\Gamma(K-1) ELBO K − 1 − ELBO K = Γ ( K ) − Γ ( K − 1 ) , we proceed as
P ∗ ( ELBO K ≤ ELBO K − 1 for some 1 ≤ K ≤ K † ) ≤ ∑ K = 1 K † P ∗ ( Γ ( K ) ≥ Γ ( K − 1 ) ) . P_*\left(\operatorname{ELBO}_K\leq\operatorname{ELBO}_{K-1}\text{ for some }1\leq K\leq K^\dagger\right)\leq\sum_{K=1}^{K^\dagger}P_*(\Gamma(K)\geq\Gamma(K-1)). P ∗ ( ELBO K ≤ ELBO K − 1 for some 1 ≤ K ≤ K † ) ≤ K = 1 ∑ K † P ∗ ( Γ ( K ) ≥ Γ ( K − 1 )) .
For each summand, we decompose it as
P ∗ ( Γ ( K ) ≥ Γ ( K − 1 ) ) ≤ P ∗ ( Γ ( K ) > U t ( K ) ) + P ∗ ( Γ ( K − 1 ) ≤ U t ( K ) ) , (38) P_*(\Gamma(K)\geq\Gamma(K-1))\leq P_*(\Gamma(K)>U_t(K))+P_*(\Gamma(K-1)\leq U_t(K)), \tag*{(38)} P ∗ ( Γ ( K ) ≥ Γ ( K − 1 )) ≤ P ∗ ( Γ ( K ) > U t ( K )) + P ∗ ( Γ ( K − 1 ) ≤ U t ( K )) , (38)
which holds because Γ ( K ) ≤ U t ( K ) < Γ ( K − 1 ) \Gamma(K)\leq U_t(K)<\Gamma(K-1) Γ ( K ) ≤ U t ( K ) < Γ ( K − 1 ) implies Γ ( K ) < Γ ( K − 1 ) \Gamma(K)<\Gamma(K-1) Γ ( K ) < Γ ( K − 1 ) . The first term of the right-hand side of (38) is at most e − t e^{-t} e − t by Lemma B.5 . For the second term, the assumption U t ( K ) ≤ L t ( K − 1 ) U_t(K)\leq L_t(K-1) U t ( K ) ≤ L t ( K − 1 ) and Lemma B.2 give
P ∗ ( Γ ( K − 1 ) ≤ U t ( K ) ) ≤ P ∗ ( Γ ( K − 1 ) ≤ L t ( K − 1 ) ) ≤ e − t . P_*(\Gamma(K-1)\leq U_t(K))\leq P_*(\Gamma(K-1)\leq L_t(K-1))\leq e^{-t}. P ∗ ( Γ ( K − 1 ) ≤ U t ( K )) ≤ P ∗ ( Γ ( K − 1 ) ≤ L t ( K − 1 )) ≤ e − t .
Combining the two bounds in (38) and summing over K K K , the probability that ELBO K ≤ ELBO K − 1 \operatorname{ELBO}_K\leq\operatorname{ELBO}_{K-1} ELBO K ≤ ELBO K − 1 for some K ≤ K † K\leq K^\dagger K ≤ K † is at most 2 K † e − t 2K^\dagger e^{-t} 2 K † e − t . On the complementary event the ELBO does not decrease before K † + 1 K^\dagger+1 K † + 1 , so K s t o p ≥ min { K † + 1 , M } K_{\mathrm{stop}}\geq\min\{K^\dagger+1,M\} K stop ≥ min { K † + 1 , M } .
Proof of Theorem B.8
Proof. The event { K s t o p ≥ K + 1 } \{K_{\mathrm{stop}} \ge K+1\} { K stop ≥ K + 1 } implies that the ELBO does not decrease on { k ∘ , … , K } \{k^\circ,\ldots,K\} { k ∘ , … , K } , so that E L B O K ≥ E L B O k ∘ \mathrm{ELBO}_K \ge\mathrm{ELBO}_{k^\circ} ELBO K ≥ ELBO k ∘ . Therefore
P ∗ ( K s t o p ≥ K + 1 ) ≤ P ∗ ( E L B O K ≥ E L B O k ∘ ) = P ∗ ( Γ ( K ) ≤ Γ ( k ∘ ) ) . P_*(K_{\mathrm{stop}} \ge K+1) \le P_*(\mathrm{ELBO}_K \ge\mathrm{ELBO}_{k^\circ}) = P_*(\Gamma(K) \le\Gamma(k^\circ)). P ∗ ( K stop ≥ K + 1 ) ≤ P ∗ ( ELBO K ≥ ELBO k ∘ ) = P ∗ ( Γ ( K ) ≤ Γ ( k ∘ )) .
We decompose the right-hand side as
P ∗ ( Γ ( K ) ≤ Γ ( k ∘ ) ) ≤ P ∗ ( Γ ( k ∘ ) > U t ( k ∘ ) ) + P ∗ ( Γ ( K ) ≤ U t ( k ∘ ) ) , (39) P_*(\Gamma(K) \le\Gamma(k^\circ)) \le P_*(\Gamma(k^\circ) > U_t(k^\circ)) + P_*(\Gamma(K) \le U_t(k^\circ)), \tag*{(39)} P ∗ ( Γ ( K ) ≤ Γ ( k ∘ )) ≤ P ∗ ( Γ ( k ∘ ) > U t ( k ∘ )) + P ∗ ( Γ ( K ) ≤ U t ( k ∘ )) , (39)
which holds because Γ ( k ∘ ) ≤ U t ( k ∘ ) < Γ ( K ) \Gamma(k^\circ) \le U_t(k^\circ) < \Gamma(K) Γ ( k ∘ ) ≤ U t ( k ∘ ) < Γ ( K ) implies Γ ( K ) > Γ ( k ∘ ) \Gamma(K) > \Gamma(k^\circ) Γ ( K ) > Γ ( k ∘ ) . The first term of (39) is at most e − t e^{-t} e − t by Lemma B.5. For the second term, the assumption L t ( K ) ≥ U t ( k ∘ ) L_t(K) \ge U_t(k^\circ) L t ( K ) ≥ U t ( k ∘ ) and Lemma B.2 give
P ∗ ( Γ ( K ) ≤ U t ( k ∘ ) ) ≤ P ∗ ( Γ ( K ) ≤ L t ( K ) ) ≤ e − t , P_*(\Gamma(K) \le U_t(k^\circ)) \le P_*(\Gamma(K) \le L_t(K)) \le e^{-t}, P ∗ ( Γ ( K ) ≤ U t ( k ∘ )) ≤ P ∗ ( Γ ( K ) ≤ L t ( K )) ≤ e − t ,
which completes the proof.
Proof of Lemma B.9
Proof. Fix K K K and ρ ∈ F K \rho\in\mathcal{F}_K ρ ∈ F K , and let g = R n ( ρ , ⋅ ) − α ℓ n d ( ρ , ⋅ ) g = R_n(\rho,\cdot) - \alpha\ell_n^{\mathrm{d}}(\rho,\cdot) g = R n ( ρ , ⋅ ) − α ℓ n d ( ρ , ⋅ ) . Since R n R_n R n is non-random, Fubini’s theorem and the definition of R n R_n R n give
E ∗ ∫ e g ( θ ) Π K ( d θ ∣ ρ ) = ∫ e R n ( ρ , θ ) E ∗ e − α ℓ n d ( ρ , θ ) Π K ( d θ ∣ ρ ) = ∫ e R n ( ρ , θ ) − R n ( ρ , θ ) Π K ( d θ ∣ ρ ) = 1. \begin{aligned}
\mathbb{E}_*\int e^{g(\theta)} \Pi_K(\mathrm{d}\theta\mid\rho)
= \int e^{R_n(\rho,\theta)} \mathbb{E}_*e^{-\alpha\ell_n^{\mathrm{d}}(\rho,\theta)} \Pi_K(\mathrm{d}\theta\mid\rho) \\
&= \int e^{R_n(\rho,\theta)-R_n(\rho,\theta)} \Pi_K(\mathrm{d}\theta\mid\rho) = 1.
\end{aligned} E ∗ ∫ e g ( θ ) Π K ( d θ ∣ ρ ) = ∫ e R n ( ρ , θ ) E ∗ e − α ℓ n d ( ρ , θ ) Π K ( d θ ∣ ρ ) = ∫ e R n ( ρ , θ ) − R n ( ρ , θ ) Π K ( d θ ∣ ρ ) = 1.
Hence, by Markov’s inequality and a union bound over the N t o t N_{\mathrm{tot}} N tot pairs ( K , ρ ) (K,\rho) ( K , ρ ) ,
P ∗ ( ∫ e g d Π K ( ⋅ ∣ ρ ) ≥ N t o t e t for some ( K , ρ ) ) ≤ ∑ ( K , ρ ) e − t N t o t = e − t . P_*\left(\int e^g \mathrm{d}\Pi_K(\cdot\mid\rho) \ge N_{\mathrm{tot}}e^t \text{ for some } (K,\rho)\right)
\le\sum_{(K,\rho)} \frac{e^{-t}}{N_{\mathrm{tot}}} = e^{-t}. P ∗ ( ∫ e g d Π K ( ⋅ ∣ ρ ) ≥ N tot e t for some ( K , ρ ) ) ≤ ( K , ρ ) ∑ N tot e − t = e − t .
On the complementary event, Lemma C.1 gives, for every ( K , ρ ) (K,\rho) ( K , ρ ) and every Q ∈ Q K ( ρ ) Q \in\mathcal{Q}_K(\rho) Q ∈ Q K ( ρ ) ,
∫ R n d Q − α ∫ ℓ n d d Q ≤ KL ( Q , Π K ( ⋅ ∣ ρ ) ) + log ∫ e g d Π K ( ⋅ ∣ ρ ) < KL ( Q , Π K ( ⋅ ∣ ρ ) ) + log N t o t + t , \begin{aligned}
\int R_n \mathrm{d}Q - \alpha\int\ell_n^{\mathrm{d}} \mathrm{d}Q
\le\operatorname{KL}(Q,\Pi_K(\cdot\mid\rho)) + \log\int e^g \mathrm{d}\Pi_K(\cdot\mid\rho) \\
&< \operatorname{KL}(Q,\Pi_K(\cdot\mid\rho)) + \log N_{\mathrm{tot}} + t,
\end{aligned} ∫ R n d Q − α ∫ ℓ n d d Q ≤ KL ( Q , Π K ( ⋅ ∣ ρ )) + log ∫ e g d Π K ( ⋅ ∣ ρ ) < KL ( Q , Π K ( ⋅ ∣ ρ )) + log N tot + t ,
which is the claim.
Proof of Theorem B.10
Proof. Let A \mathcal{A} A be the event of Lemma B.9 and B = { Γ ( k ∘ ) ≤ U t ( k ∘ ) } \mathcal{B} = \{\Gamma(k^\circ) \le U_t(k^\circ)\} B = { Γ ( k ∘ ) ≤ U t ( k ∘ )} . By Lemmas B.9 and B.5, P ∗ ( A c ) ≤ e − t P_*(\mathcal{A}^{\mathrm{c}}) \le e^{-t} P ∗ ( A c ) ≤ e − t and P ∗ ( B c ) ≤ e − t P_*(\mathcal{B}^{\mathrm{c}}) \le e^{-t} P ∗ ( B c ) ≤ e − t . On A ∩ B ∩ { k ∘ ≤ K s t o p } \mathcal{A} \cap\mathcal{B} \cap\{k^\circ\le K_{\mathrm{stop}}\} A ∩ B ∩ { k ∘ ≤ K stop } ,
∫ R n ( ρ ^ , θ ) Q ^ ( d θ ) ≤ F ( K ^ , ρ ^ , Q ^ ) + log N t o t + t = Γ ( K ^ ) + log N t o t + t ≤ Γ ( k ∘ ) + log N t o t + t ≤ U t ( k ∘ ) + log N t o t + t , \begin{aligned}
\int R_n(\widehat{\rho},\theta)\widehat{Q}(\mathrm{d}\theta)
\le F(\widehat{K},\widehat{\rho},\widehat{Q}) + \log N_{\mathrm{tot}} + t
= \Gamma(\widehat{K}) + \log N_{\mathrm{tot}} + t \\
&\le\Gamma(k^\circ) + \log N_{\mathrm{tot}} + t
\le U_t(k^\circ) + \log N_{\mathrm{tot}} + t,
\end{aligned} ∫ R n ( ρ , θ ) Q ( d θ ) ≤ F ( K , ρ , Q ) + log N tot + t = Γ ( K ) + log N tot + t ≤ Γ ( k ∘ ) + log N tot + t ≤ U t ( k ∘ ) + log N tot + t ,
where we use the event A \mathcal{A} A for the first inequality, the definition of ( K ^ , ρ ^ , Q ^ ) (\widehat{K},\widehat{\rho},\widehat{Q}) ( K , ρ , Q ) for the equality, k ∘ ≤ K s t o p k^\circ\le K_{\mathrm{stop}} k ∘ ≤ K stop and the maximality of E L B O K ^ \mathrm{ELBO}_{\widehat{K}} ELBO K over K ≤ K s t o p K \le K_{\mathrm{stop}} K ≤ K stop for the second inequality, and the event B \mathcal{B} B for the last inequality. This proves the first claim. For the second claim, let L θ = Ω ∗ − 1 / 2 Ω ρ ( θ ) Ω ∗ − 1 / 2 L_\theta= \Omega_*^{-1/2}\Omega_\rho(\theta)\Omega_*^{-1/2} L θ = Ω ∗ − 1/2 Ω ρ ( θ ) Ω ∗ − 1/2 and A ε = { θ : ∥ L θ − I ∥ F > ε } A_\varepsilon= \{\theta: \lVert L_\theta- I\rVert_F > \varepsilon\} A ε = { θ : ∥ L θ − I ∥ F > ε } . For ε ≤ 1 2 \varepsilon\le\frac{1}{2} ε ≤ 2 1 , Lemma C.4 gives R n ( ρ ^ , θ ) ≥ n 9 α ( 1 − α ) ε 2 R_n(\hat{\rho},\theta) \ge\frac{n}{9}\alpha(1-\alpha)\varepsilon^2 R n ( ρ ^ , θ ) ≥ 9 n α ( 1 − α ) ε 2 on A ε A_\varepsilon A ε . Hence, by Markov’s inequality under Q ^ \hat{Q} Q ^ ,
Q ^ ( A ε ) ≤ 9 n α ( 1 − α ) ε 2 ∫ R n ( ρ ^ , θ ) Q ^ ( d θ ) ≤ 9 { U t ( k ∘ ) + log N t o t + t } n α ( 1 − α ) ε 2 \hat{Q}(A_\varepsilon) \le\frac{9}{n\alpha(1-\alpha)\varepsilon^2}\int R_n(\hat{\rho},\theta)\hat{Q}(\mathrm{d}\theta) \le\frac{9\{U_t(k^\circ)+\log N_{\mathrm{tot}}+t\}}{n\alpha(1-\alpha)\varepsilon^2} Q ^ ( A ε ) ≤ n α ( 1 − α ) ε 2 9 ∫ R n ( ρ ^ , θ ) Q ^ ( d θ ) ≤ n α ( 1 − α ) ε 2 9 { U t ( k ∘ ) + log N tot + t }
on the same event.
Proofs for Appendices B.5 and B.6
Before giving the proofs, we give four lemmas used in the proofs: two on the structure of the 1f model (Lemmas C.6 and C.7 ), one on the inverse-Wishart prior near singular matrices (Lemma C.8 ), and one on conjugate oracles (Lemma C.9 ).
Lemmas on the 1f model
Lemma C.6 (Representation). Assume (E). Let ρ \rho ρ have K K K communities and suppose Ω ∗ = A ρ Φ A ρ ⊤ + D \Omega_* = A_\rho\Phi A_\rho^\top+ D Ω ∗ = A ρ Φ A ρ ⊤ + D with Φ ⪰ 0 \Phi\succeq0 Φ ⪰ 0 and D ⪰ 0 D \succeq0 D ⪰ 0 diagonal and constant on the blocks of ρ \rho ρ . Then (i) K ≥ K ∗ K \ge K_* K ≥ K ∗ ; (ii) if K = K ∗ K = K_* K = K ∗ , then ρ = ρ ∗ \rho= \rho_* ρ = ρ ∗ up to labels; (iii) if K > K ∗ K > K_* K > K ∗ , then either some community V a V_a V a of ρ \rho ρ lies in the true background and row a a a of Φ \Phi Φ vanishes, or two communities V a , V b V_a,V_b V a , V b of ρ \rho ρ lie in the same true community and rows a , b a,b a , b of Φ \Phi Φ coincide.
Proof. Let V 1 ∗ , … , V K ∗ ∗ V_1^*,\ldots,V_{K_*}^* V 1 ∗ , … , V K ∗ ∗ be the true communities and V 0 ∗ V_0^* V 0 ∗ the true background. We first show that no variable of a true community lies in the background of ρ \rho ρ . If j ∈ V h ∗ j \in V_h^* j ∈ V h ∗ , then ( Ω ∗ ) j k = ( Φ ∗ ) h h > 0 (\Omega_*)_{jk} = (\Phi_*)_{hh} > 0 ( Ω ∗ ) j k = ( Φ ∗ ) hh > 0 for any other k ∈ V h ∗ k \in V_h^* k ∈ V h ∗ , whereas a background variable of ρ \rho ρ is uncorrelated with all other variables under the representation.
Next we show that each community of ρ \rho ρ lies inside a true community or inside V 0 ∗ V_0^* V 0 ∗ . Let j ≠ j ′ j \ne j' j = j ′ belong to one community of ρ \rho ρ . The representation gives Ω j l = Ω j ′ l \Omega_{jl} = \Omega_{j'l} Ω j l = Ω j ′ l for every l ∉ { j , j ′ } l \notin\{j,j'\} l ∈ / { j , j ′ } . If j ∈ V h ∗ j \in V_h^* j ∈ V h ∗ and j ′ ∈ V 0 ∗ j' \in V_0^* j ′ ∈ V 0 ∗ , taking l ∈ V h ∗ ∖ { j } l \in V_h^* \setminus\{j\} l ∈ V h ∗ ∖ { j } gives
( Φ ∗ ) h h = ( Ω ∗ ) j l = ( Ω ∗ ) j ′ l = 0 , (\Phi_*)_{hh} = (\Omega_*)_{jl} = (\Omega_*)_{j'l} = 0, ( Φ ∗ ) hh = ( Ω ∗ ) j l = ( Ω ∗ ) j ′ l = 0 , a contradiction. If j ∈ V h ∗ j \in V_h^* j ∈ V h ∗ and j ′ ∈ V g ∗ j' \in V_g^* j ′ ∈ V g ∗ with g ≠ h g \ne h g = h , taking l ∈ V h ∗ ∖ { j } l \in V_h^* \setminus\{j\} l ∈ V h ∗ ∖ { j } and then l ′ ∈ V g ∗ ∖ { j ′ } l' \in V_g^* \setminus\{j'\} l ′ ∈ V g ∗ ∖ { j ′ } gives ( Φ ∗ ) h h = ( Φ ∗ ) h g (\Phi_*)_{hh} = (\Phi_*)_{hg} ( Φ ∗ ) hh = ( Φ ∗ ) h g and ( Φ ∗ ) g g = ( Φ ∗ ) h g (\Phi_*)_{gg} = (\Phi_*)_{hg} ( Φ ∗ ) g g = ( Φ ∗ ) h g , so the 2 × 2 2 \times2 2 × 2 submatrix of Φ ∗ \Phi_* Φ ∗ on { h , g } \{h,g\} { h , g } has four equal entries, contradicting Φ ∗ ≻ 0 \Phi_* \succ0 Φ ∗ ≻ 0 .
Consequently every true community contains at least one community of ρ \rho ρ , which gives (i). If K = K ∗ K = K_* K = K ∗ , each true community contains exactly one community of ρ \rho ρ , which must be all of it, and the background of ρ \rho ρ is V 0 ∗ V_0^* V 0 ∗ ; this gives (ii). If K > K ∗ K > K_* K > K ∗ , either some V a ⊂ V 0 ∗ V_a \subset V_0^* V a ⊂ V 0 ∗ , and then Φ a a = ( Ω ∗ ) j j ′ = 0 \Phi_{aa} = (\Omega_*)_{jj'} = 0 Φ aa = ( Ω ∗ ) j j ′ = 0 for j ≠ j ′ ∈ V a j \ne j' \in V_a j = j ′ ∈ V a , so row a a a vanishes because Φ ⪰ 0 \Phi\succeq0 Φ ⪰ 0 ; or some V h ∗ V_h^* V h ∗ contains two communities V a , V b V_a,V_b V a , V b , and their rows of Φ \Phi Φ coincide because the variables of V h ∗ V_h^* V h ∗ have identical covariances with all other variables. This gives (iii).
Lemma C.7 (Zero bias). Assume (E). If inf θ D 1 − α ( P ∗ ∥ P ρ θ ) = 0 \inf_\theta D_{1-\alpha}(P_* \mathbin{\|} P_\rho^\theta) = 0 inf θ D 1 − α ( P ∗ ∥ P ρ θ ) = 0 , then Ω ∗ \Omega_* Ω ∗ has a representation as in Lemma C.6 . Hence m K > 0 m_K > 0 m K > 0 for K < K ∗ K < K_* K < K ∗ , and every ρ ∈ F K ∗ \rho\in\mathcal{F}_{K_*} ρ ∈ F K ∗ other than ρ ∗ \rho_* ρ ∗ has a positive Rényi bias.
Proof. Take θ m = ( Φ m , τ m ) \theta_m = (\Phi_m,\tau_m) θ m = ( Φ m , τ m ) with D 1 − α ( P ∗ ∥ P θ m ρ ) → 0 D_{1-\alpha}(P_* \mathbin{\|} P_{\theta_m}^{\rho}) \to0 D 1 − α ( P ∗ ∥ P θ m ρ ) → 0 . By Lemmas C.3 and C.4 , Ω ρ ( θ m ) → Ω ∗ \Omega_\rho(\theta_m) \to\Omega_* Ω ρ ( θ m ) → Ω ∗ . Every entry of Φ m \Phi_m Φ m appears as an off-diagonal entry of Ω ρ ( θ m ) \Omega_\rho(\theta_m) Ω ρ ( θ m ) , because every community has at least two variables, so Φ m \Phi_m Φ m converges to some Φ ⪰ 0 \Phi\succeq0 Φ ⪰ 0 . The diagonal entries of Ω ρ ( θ m ) \Omega_\rho(\theta_m) Ω ρ ( θ m ) also converge, so v m , h v_{m,h} v m , h converges to some v h ≥ 0 v_h \ge0 v h ≥ 0 for every non-empty block V h V_h V h . If the background is empty, v m , 0 v_{m,0} v m , 0 does not enter Ω ρ ( θ m ) \Omega_\rho(\theta_m) Ω ρ ( θ m ) , and we set v 0 = 0 v_0 = 0 v 0 = 0 . Passing to the limit in Ω ρ ( θ m ) \Omega_\rho(\theta_m) Ω ρ ( θ m ) gives the representation. The two consequences follow from Lemma C.6 (i) and (ii).
Lemma C.8 (Inverse-Wishart boundary penalty). Assume (E), let K > K ∗ K>K_* K > K ∗ , and let ρ ∈ F K \rho\in\mathcal{F}_K ρ ∈ F K have zero Rényi bias. Let ε n = ( n α ( 1 − α ) ) − 1 / 3 \varepsilon_n=(n\alpha(1-\alpha))^{-1/3} ε n = ( n α ( 1 − α ) ) − 1/3 . If ε n ≤ min { c / ( 16 ν K K ) , ∥ Ω ∗ ∥ o p / 2 } \varepsilon_n\leq\min\{c/(16\nu_KK),\|\Omega_*\|_{\mathrm{op}}/\sqrt{2}\} ε n ≤ min { c / ( 16 ν K K ) , ∥ Ω ∗ ∥ op / 2 } , then E n ( K , ρ ) ≥ c 0 ( n α ( 1 − α ) ) 1 / 3 − log 2 \mathcal{E}_n(K,\rho)\geq c_0(n\alpha(1-\alpha))^{1/3}-\log2 E n ( K , ρ ) ≥ c 0 ( n α ( 1 − α ) ) 1/3 − log 2 .
Proof. By Lemmas C.7 and C.6(iii), ρ \rho ρ either carves a community V a \mathcal{V}_a V a out of the true background or splits a true community V ∗ h \mathcal{V}_*^h V ∗ h into V a \mathcal{V}_a V a and V b \mathcal{V}_b V b . For ε > 0 \varepsilon>0 ε > 0 we split the integral as
∫ e − R n ( ρ , θ ) Π K ( d θ ∣ ρ ) ≤ Π K ( λ min ( Φ ) < ε ∣ ρ ) + sup λ min ( Φ ) ≥ ε e − R n ( ρ , θ ) . (40) \int e^{-R_n(\rho,\theta)}\Pi_K(\mathrm{d}\theta\mid\rho)\leq\Pi_K\left(\lambda_{\min}(\Phi)<\varepsilon\mid\rho\right)+\sup_{\lambda_{\min}(\Phi)\geq\varepsilon}e^{-R_n(\rho,\theta)}. \tag*{(40)} ∫ e − R n ( ρ , θ ) Π K ( d θ ∣ ρ ) ≤ Π K ( λ m i n ( Φ ) < ε ∣ ρ ) + λ m i n ( Φ ) ≥ ε sup e − R n ( ρ , θ ) . (40)
and bound the two terms separately.
For the first term of (40), note that λ min ( Φ ) < ε \lambda_{\min}(\Phi)<\varepsilon λ m i n ( Φ ) < ε implies tr ( c Φ − 1 ) > c / ε \operatorname{tr}(c\Phi^{-1})>c/\varepsilon tr ( c Φ − 1 ) > c / ε , and that c Φ − 1 ∼ Wishart K ( ν K , I ) c\Phi^{-1}\sim\operatorname{Wishart}_K(\nu_K,I) c Φ − 1 ∼ Wishart K ( ν K , I ) under the prior, so tr ( c Φ − 1 ) ∼ χ m 2 \operatorname{tr}(c\Phi^{-1})\sim\chi_m^2 tr ( c Φ − 1 ) ∼ χ m 2 with m = ν K K m=\nu_KK m = ν K K . Hence, for ε ≤ c / ( 16 m ) \varepsilon\leq c/(16m) ε ≤ c / ( 16 m ) ,
Π K ( λ min ( Φ ) < ε ∣ ρ ) ≤ P ( χ m 2 ≥ c / ε ) ≤ exp { − c / ε − m 2 + m 2 log c / ε m } ≤ e − c / ( 4 ε ) . \Pi_K\left(\lambda_{\min}(\Phi)<\varepsilon\mid\rho\right)\leq P\left(\chi_m^2\geq c/\varepsilon\right)\leq\exp\left\{-\frac{c/\varepsilon-m}{2}+\frac{m}{2}\log\frac{c/\varepsilon}{m}\right\}\leq e^{-c/(4\varepsilon)}. Π K ( λ m i n ( Φ ) < ε ∣ ρ ) ≤ P ( χ m 2 ≥ c / ε ) ≤ exp { − 2 c / ε − m + 2 m log m c / ε } ≤ e − c / ( 4 ε ) .
where the second inequality is the Chernoff bound for the chi-square distribution and the third holds because u ≥ 2 + 2 log u u\geq2+2\log u u ≥ 2 + 2 log u for u = c / ( ε m ) ≥ 16 u=c/(\varepsilon m)\geq16 u = c / ( ε m ) ≥ 16 .
For the second term of (40), let λ min ( Φ ) ≥ ε \lambda_{\min}(\Phi)\geq\varepsilon λ m i n ( Φ ) ≥ ε . In the carve-out case, Ω ρ ( θ ) j j ′ = Φ a a ≥ ε \Omega_\rho(\theta)_{jj'}=\Phi_{aa}\geq\varepsilon Ω ρ ( θ ) j j ′ = Φ aa ≥ ε while ( Ω ∗ ) j j ′ = 0 (\Omega_*)_{jj'}=0 ( Ω ∗ ) j j ′ = 0 for j ≠ j ′ ∈ V a j\neq j'\in\mathcal{V}_a j = j ′ ∈ V a , and there are at least two such ordered pairs, so ∥ Ω ρ ( θ ) − Ω ∗ ∥ F 2 ≥ 2 ε 2 \|\Omega_\rho(\theta)-\Omega_*\|_F^2\geq2\varepsilon^2 ∥ Ω ρ ( θ ) − Ω ∗ ∥ F 2 ≥ 2 ε 2 . In the split case, Φ a a + Φ b b − 2 Φ a b = ( e a − e b ) T Φ ( e a − e b ) ≥ 2 ε \Phi_{aa}+\Phi_{bb}-2\Phi_{ab}=(e_a-e_b)^\mathsf{T}\Phi(e_a-e_b)\geq2\varepsilon Φ aa + Φ bb − 2 Φ ab = ( e a − e b ) T Φ ( e a − e b ) ≥ 2 ε , while the same combination of the true values is zero. So one of Φ a a , Φ b b , Φ a b \Phi_{aa},\Phi_{bb},\Phi_{ab} Φ aa , Φ bb , Φ ab differs from ( Φ ∗ ) h h (\Phi_*)_{hh} ( Φ ∗ ) hh by at least ε / 2 \varepsilon/2 ε /2 , and each appears in at least two off-diagonal entries; thus ∥ Ω ρ ( θ ) − Ω ∗ ∥ F 2 ≥ ε 2 / 2 \|\Omega_\rho(\theta)-\Omega_*\|_F^2\geq\varepsilon^2/2 ∥ Ω ρ ( θ ) − Ω ∗ ∥ F 2 ≥ ε 2 /2 . In both cases Lemma C.4 gives, for ε ≤ ∥ Ω ∗ ∥ o p / 2 \varepsilon\leq\|\Omega_*\|_{\mathrm{op}}/\sqrt{2} ε ≤ ∥ Ω ∗ ∥ op / 2 ,
R n ( ρ , θ ) ≥ n 9 α ( 1 − α ) ε 2 2 ∥ Ω ∗ ∥ o p 2 = n α ( 1 − α ) ε 2 18 ∥ Ω ∗ ∥ o p 2 . R_n(\rho,\theta)\geq\frac{n}{9}\alpha(1-\alpha)\frac{\varepsilon^2}{2\|\Omega_*\|_{\mathrm{op}}^2}=\frac{n\alpha(1-\alpha)\varepsilon^2}{18\|\Omega_*\|_{\mathrm{op}}^2}. R n ( ρ , θ ) ≥ 9 n α ( 1 − α ) 2∥ Ω ∗ ∥ op 2 ε 2 = 18∥ Ω ∗ ∥ op 2 n α ( 1 − α ) ε 2 .
Now take ε = ε n \varepsilon=\varepsilon_n ε = ε n in (40), so that 1 / ε n = ( n α ( 1 − α ) ) 1 / 3 1/\varepsilon_n=(n\alpha(1-\alpha))^{1/3} 1/ ε n = ( n α ( 1 − α ) ) 1/3 and n α ( 1 − α ) ε n 2 = ( n α ( 1 − α ) ) 1 / 3 n\alpha(1-\alpha)\varepsilon_n^2=(n\alpha(1-\alpha))^{1/3} n α ( 1 − α ) ε n 2 = ( n α ( 1 − α ) ) 1/3 . Then
∫ e − R n ( ρ , θ ) Π K ( d θ ∣ ρ ) ≤ exp { − c 4 ( n α ( 1 − α ) ) 1 / 3 } + exp { − ( n α ( 1 − α ) ) 1 / 3 18 ∥ Ω ∗ ∥ o p 2 } \int e^{-R_n(\rho,\theta)}\Pi_K(\mathrm{d}\theta\mid\rho)\leq\exp\left\{-\frac{c}{4}(n\alpha(1-\alpha))^{1/3}\right\}+\exp\left\{-\frac{(n\alpha(1-\alpha))^{1/3}}{18\|\Omega_*\|_{\mathrm{op}}^2}\right\} ∫ e − R n ( ρ , θ ) Π K ( d θ ∣ ρ ) ≤ exp { − 4 c ( n α ( 1 − α ) ) 1/3 } + exp { − 18∥ Ω ∗ ∥ op 2 ( n α ( 1 − α ) ) 1/3 }
≤ 2 exp { − c 0 ( n α ( 1 − α ) ) 1 / 3 } , \leq2\exp\left\{-c_0(n\alpha(1-\alpha))^{1/3}\right\}, ≤ 2 exp { − c 0 ( n α ( 1 − α ) ) 1/3 } ,
where the last inequality uses the definition of c 0 c_0 c 0 . Taking − log -\log − log of both sides gives the claim. □ \square □
For a fixed centre θ c = ( Φ c , v c ) \theta_c=(\Phi_c,v_c) θ c = ( Φ c , v c ) with Φ c ≻ 0 \Phi_c\succ0 Φ c ≻ 0 and v c > 0 v_c>0 v c > 0 , the conjugate oracle Q θ c ∈ Q K ( ρ ) Q_{\theta_c}\in\mathcal{Q}_K(\rho) Q θ c ∈ Q K ( ρ ) is
Φ ∼ IW K ( ν ~ , ( ν ~ − K − 1 ) Φ c ) , ν ~ = ν K + α n , \Phi\sim\operatorname{IW}_K\left(\widetilde{\nu},(\widetilde{\nu}-K-1)\Phi_c\right),\qquad\widetilde{\nu}=\nu_K+\alpha n, Φ ∼ IW K ( ν , ( ν − K − 1 ) Φ c ) , ν = ν K + α n ,
τ h ∼ Gamma ( a ~ h , ( a ~ h − 1 ) v c , h ) , a ~ h = a τ + α n ∣ V h ∣ / 2 , h = 0 , … , K . \tau_h\sim\operatorname{Gamma}\left(\widetilde{a}_h,(\widetilde{a}_h-1)v_{c,h}\right),\qquad\widetilde{a}_h=a_\tau+\alpha n|\mathcal{V}_h|/2,\qquad h=0,\ldots,K. τ h ∼ Gamma ( a h , ( a h − 1 ) v c , h ) , a h = a τ + α n ∣ V h ∣/2 , h = 0 , … , K .
Then E Φ = Φ c \mathbb{E}\Phi=\Phi_c E Φ = Φ c and E v h = v c , h \mathbb{E}v_h=v_{c,h} E v h = v c , h , and since Ω ρ \Omega_\rho Ω ρ is affine in ( Φ , v ) (\Phi,v) ( Φ , v ) , E Ω ρ ( θ ) = Ω ρ ( θ c ) \mathbb{E}\Omega_\rho(\theta)=\Omega_\rho(\theta_c) E Ω ρ ( θ ) = Ω ρ ( θ c ) . Let B c = Ω ∗ 1 / 2 Ω ρ ( θ c ) Ω ∗ 1 / 2 − I B_c=\Omega_*^{1/2}\Omega_\rho(\theta_c)\Omega_*^{1/2}-I B c = Ω ∗ 1/2 Ω ρ ( θ c ) Ω ∗ 1/2 − I .
Lemma C.9 (Conjugate oracle bounds). For a fixed centre θ c \theta_c θ c , let d ρ = d K d_\rho=d_K d ρ = d K if the background of ρ \rho ρ is non-empty and d ρ = d K − 1 d_\rho=d_K-1 d ρ = d K − 1 otherwise. As α n → ∞ \alpha n\to\infty α n → ∞ :
(a) KL ( Q θ c , Π K ( ⋅ ∣ ρ ) ) = d ρ 2 log ( α n ) + O ( 1 ) \operatorname{KL}(Q_{\theta_c},\Pi_K(\cdot\mid\rho))=\dfrac{d_\rho}{2}\log(\alpha n)+O(1) KL ( Q θ c , Π K ( ⋅ ∣ ρ )) = 2 d ρ log ( α n ) + O ( 1 ) ;
(b) n E Q θ c KL ( ρ , θ ) ≤ n KL ( ρ , θ c ) + O ( α − 1 ) n\mathbb{E}_{Q_{\theta_c}}\operatorname{KL}(\rho,\theta)\leq n\operatorname{KL}(\rho,\theta_c)+O(\alpha^{-1}) n E Q θ c KL ( ρ , θ ) ≤ n KL ( ρ , θ c ) + O ( α − 1 ) ;
(c) ∥ B Q θ c − B c ∥ F = O ( ( α n ) − 1 ) \|B_{Q_{\theta_c}}-B_c\|_F=O((\alpha n)^{-1}) ∥ B Q θ c − B c ∥ F = O (( α n ) − 1 ) .
Consequently the upper curve with this oracle satisfies
U t ( K ) ≤ α n KL ( ρ , θ c ) + d ρ 2 log ( α n ) + α 2 n ( t + 1 ) ∥ B c ∥ F + α ( t + 1 ) ∥ B c ∥ op + O ( 1 + t / n + t / n ) . U_t(K) \le\alpha n\operatorname{KL}(\rho,\theta_c) + \frac{d_\rho}{2}\log(\alpha n) + \alpha\sqrt{2n(t+1)}\lVert B_c\rVert_F + \alpha(t+1)\lVert B_c\rVert_{\operatorname{op}} + O\left(1+\sqrt{t/n}+t/n\right). U t ( K ) ≤ α n KL ( ρ , θ c ) + 2 d ρ log ( α n ) + α 2 n ( t + 1 ) ∥ B c ∥ F + α ( t + 1 ) ∥ B c ∥ op + O ( 1 + t / n + t / n ) .
Proof. Part (a). The divergence splits as KL ( Q θ c , Π K ) = KL Φ + ∑ h = 0 K KL τ h \operatorname{KL}(Q_{\theta_c},\Pi_K)=\operatorname{KL}_{\Phi}+\sum_{h=0}^{K}\operatorname{KL}_{\tau_h} KL ( Q θ c , Π K ) = KL Φ + ∑ h = 0 K KL τ h . KL divergence is invariant under the bijection Φ ↦ Φ − 1 \Phi\mapsto\Phi^{-1} Φ ↦ Φ − 1 , and Φ ∼ IW K ( ν , Ψ ) \Phi\sim\operatorname{IW}_K(\nu,\Psi) Φ ∼ IW K ( ν , Ψ ) exactly when Φ − 1 ∼ Wishart K ( ν , Ψ − 1 ) \Phi^{-1}\sim\operatorname{Wishart}_K(\nu,\Psi^{-1}) Φ − 1 ∼ Wishart K ( ν , Ψ − 1 ) . For W 1 ∼ Wishart K ( n 1 , T 1 ) W_1\sim\operatorname{Wishart}_K(n_1,T_1) W 1 ∼ Wishart K ( n 1 , T 1 ) , using E log ∣ W 1 ∣ = ψ K ( n 1 / 2 ) + K log 2 + log ∣ T 1 ∣ \mathbb{E}\log|W_1|=\psi_K(n_1/2)+K\log2+\log|T_1| E log ∣ W 1 ∣ = ψ K ( n 1 /2 ) + K log 2 + log ∣ T 1 ∣ and E W 1 = n 1 T 1 \mathbb{E}W_1=n_1T_1 E W 1 = n 1 T 1 , where ψ K ( x ) = ∑ i = 1 K ψ ( x − ( i − 1 ) / 2 ) \psi_K(x)=\sum_{i=1}^{K}\psi(x-(i-1)/2) ψ K ( x ) = ∑ i = 1 K ψ ( x − ( i − 1 ) /2 ) , we obtain
KL ( Wishart ( n 1 , T 1 ) ∥ Wishart ( n 0 , T 0 ) ) = n 0 2 log ∣ T 0 ∣ ∣ T 1 ∣ + n 1 2 { tr ( T 0 − 1 T 1 ) − K } + log Γ K ( n 0 / 2 ) Γ K ( n 1 / 2 ) + n 1 − n 0 2 ψ K ( n 1 2 ) . \operatorname{KL}(\operatorname{Wishart}(n_1,T_1)\mathbin\Vert\operatorname{Wishart}(n_0,T_0))=\frac{n_0}{2}\log\frac{|T_0|}{|T_1|}+\frac{n_1}{2}\left\{\operatorname{tr}(T_0^{-1}T_1)-K\right\}+\log\frac{\Gamma_K(n_0/2)}{\Gamma_K(n_1/2)}+\frac{n_1-n_0}{2}\psi_K\left(\frac{n_1}{2}\right). KL ( Wishart ( n 1 , T 1 ) ∥ Wishart ( n 0 , T 0 )) = 2 n 0 log ∣ T 1 ∣ ∣ T 0 ∣ + 2 n 1 { tr ( T 0 − 1 T 1 ) − K } + log Γ K ( n 1 /2 ) Γ K ( n 0 /2 ) + 2 n 1 − n 0 ψ K ( 2 n 1 ) .
We apply this with n 1 = ν ~ n_1=\widetilde{\nu} n 1 = ν , T 1 = { ( ν ~ − K − 1 ) Φ c } − 1 T_1=\{(\widetilde{\nu}-K-1)\Phi_c\}^{-1} T 1 = {( ν − K − 1 ) Φ c } − 1 , n 0 = ν K n_0=\nu_K n 0 = ν K and T 0 = c − 1 I T_0=c^{-1}I T 0 = c − 1 I . Stirling’s formula and ψ ( z ) = log z − 1 2 z + O ( z − 2 ) \psi(z)=\log z-\frac{1}{2z}+O(z^{-2}) ψ ( z ) = log z − 2 z 1 + O ( z − 2 ) then give
KL Φ = K ( K + 1 ) 4 log ν ~ + ν K 2 log ∣ Φ c c ∣ + c 2 tr ( Φ c − 1 ) + C K , ν K + O ( ν ~ − 1 ) , \operatorname{KL}_{\Phi}=\frac{K(K+1)}{4}\log\widetilde{\nu}+\frac{\nu_K}{2}\log\left|\frac{\Phi_c}{c}\right|+\frac{c}{2}\operatorname{tr}(\Phi_c^{-1})+C_{K,\nu_K}+O(\widetilde{\nu}^{-1}), KL Φ = 4 K ( K + 1 ) log ν + 2 ν K log c Φ c + 2 c tr ( Φ c − 1 ) + C K , ν K + O ( ν − 1 ) ,
with C K , ν = log Γ K ( ν / 2 ) + ( ν K 2 − K ( K + 1 ) 4 ) log 2 − K ( K + 1 ) 4 − K 2 log 2 π − K ( K − 1 ) 4 log π C_{K,\nu}=\log\Gamma_K(\nu/2)+\left(\frac{\nu_K}{2}-\frac{K(K+1)}{4}\right)\log2-\frac{K(K+1)}{4}-\frac{K}{2}\log2\pi-\frac{K(K-1)}{4}\log\pi C K , ν = log Γ K ( ν /2 ) + ( 2 ν K − 4 K ( K + 1 ) ) log 2 − 4 K ( K + 1 ) − 2 K log 2 π − 4 K ( K − 1 ) log π . For shape–rate Gamma distributions,
KL ( Gamma ( a ~ , β ~ ) ∥ Gamma ( a τ , b τ ) ) = ( a ~ − a τ ) ψ ( a ~ ) − log Γ ( a ~ ) + log Γ ( a τ ) + a τ log β ~ b τ + a ~ b τ − β ~ β ~ , \operatorname{KL}(\operatorname{Gamma}(\widetilde{a},\widetilde{\beta})\mathbin\Vert\operatorname{Gamma}(a_\tau,b_\tau))=(\widetilde{a}-a_\tau)\psi(\widetilde{a})-\log\Gamma(\widetilde{a})+\log\Gamma(a_\tau)+a_\tau\log\frac{\widetilde{\beta}}{b_\tau}+\widetilde{a}\frac{b_\tau-\widetilde{\beta}}{\widetilde{\beta}}, KL ( Gamma ( a , β ) ∥ Gamma ( a τ , b τ )) = ( a − a τ ) ψ ( a ) − log Γ ( a ) + log Γ ( a τ ) + a τ log b τ β + a β b τ − β ,
and with β ~ = ( a ~ − 1 ) v c \widetilde{\beta}=(\widetilde{a}-1)v_c β = ( a − 1 ) v c the same expansions give
KL τ = 1 2 log a ~ − 1 2 log ( 2 π e ) + log Γ ( a τ ) + a τ log v c b τ + b τ v c + O ( a ~ − 1 ) . \operatorname{KL}_{\tau}=\frac{1}{2}\log\widetilde{a}-\frac{1}{2}\log(2\pi e)+\log\Gamma(a_\tau)+a_\tau\log\frac{v_c}{b_\tau}+\frac{b_\tau}{v_c}+O(\widetilde{a}^{-1}). KL τ = 2 1 log a − 2 1 log ( 2 π e ) + log Γ ( a τ ) + a τ log b τ v c + v c b τ + O ( a − 1 ) .
Since log ν ~ \log\widetilde{\nu} log ν , and log a ~ h \log\widetilde{a}_h log a h for every non-empty V h \mathcal{V}_h V h , are log ( α n ) + O ( 1 ) \log(\alpha n)+O(1) log ( α n ) + O ( 1 ) , the coefficient of log ( α n ) \log(\alpha n) log ( α n ) in KL Φ + ∑ h KL τ h \operatorname{KL}_{\Phi}+\sum_h\operatorname{KL}_{\tau_h} KL Φ + ∑ h KL τ h is K ( K + 1 ) / 4 + ( K + 1 ) / 2 = d K / 2 K(K+1)/4+(K+1)/2=d_K/2 K ( K + 1 ) /4 + ( K + 1 ) /2 = d K /2 . If the background V 0 \mathcal{V}_0 V 0 is empty, then a ~ 0 = a τ \widetilde{a}_0=a_\tau a 0 = a τ does not grow, KL τ 0 = O ( 1 ) \operatorname{KL}_{\tau_0}=O(1) KL τ 0 = O ( 1 ) , and the coefficient drops to ( d K − 1 ) / 2 (d_K-1)/2 ( d K − 1 ) /2 .
Parts (b) and (c). We use three standard moment bounds, valid for large α n \alpha n α n : (M1) E ∥ Φ − Φ c ∥ F 4 ≤ C ν ~ − 2 \mathbb{E}\lVert\Phi-\Phi_c\rVert_F^4\le C\widetilde{\nu}^{-2} E ∥ Φ − Φ c ∥ F 4 ≤ C ν − 2 for the inverse Wishart distribution with mean Φ c \Phi_c Φ c (Wishart and inverse Wishart moments are treated in Chapter 3 of Gupta and Nagar, 2000); (M2) E ( v h − v c , h ) 4 ≤ C a ~ − 2 \mathbb{E}(v_h-v_{c,h})^4\le C\widetilde{a}^{-2} E ( v h − v c , h ) 4 ≤ C a − 2 , from inverse-Gamma moments; (M3) E τ ‾ 6 ≤ C \mathbb{E}\overline{\tau}^{6}\le C E τ 6 ≤ C . Let Ω = Ω ρ ( θ ) \Omega=\Omega_\rho(\theta) Ω = Ω ρ ( θ ) , Ω c = Ω ρ ( θ c ) \Omega_c=\Omega_\rho(\theta_c) Ω c = Ω ρ ( θ c ) and H = Ω − Ω c H=\Omega-\Omega_c H = Ω − Ω c . Then E H = 0 \mathbb{E}H=0 E H = 0 , and (M1)–(M2) give E ∥ H ∥ F 4 ≤ C ( α n ) − 2 \mathbb{E}\lVert H\rVert_F^4\le C(\alpha n)^{-2} E ∥ H ∥ F 4 ≤ C ( α n ) − 2 . Since Ω ⪰ D ρ ( v ) \Omega\succeq D_\rho(v) Ω ⪰ D ρ ( v ) and Ω c ⪰ D ρ ( v c ) \Omega_c\succeq D_\rho(v_c) Ω c ⪰ D ρ ( v c ) , every Ω s = Ω c + s H \Omega_s=\Omega_c+sH Ω s = Ω c + sH with s ∈ [ 0 , 1 ] s\in[0,1] s ∈ [ 0 , 1 ] satisfies ∥ Ω s − 1 ∥ op ≤ τ ‾ : = max h max { τ c , h , τ h } \lVert\Omega_s^{-1}\rVert_{\operatorname{op}}\le\overline{\tau}:=\max_h\max\{\tau_{c,h},\tau_h\} ∥ Ω s − 1 ∥ op ≤ τ := max h max { τ c , h , τ h } , and (M3) gives E τ ‾ 6 ≤ C \mathbb{E}\overline{\tau}^{6}\le C E τ 6 ≤ C .
For part (b), let f ( Ω ) = KL ( P ∗ ∥ N p 0 ( 0 , Ω ) ) f(\Omega)=\operatorname{KL}(P_*\mathbin\Vert\mathcal{N}_{p_0}(0,\Omega)) f ( Ω ) = KL ( P ∗ ∥ N p 0 ( 0 , Ω )) . Its second derivative along Ω s \Omega_s Ω s satisfies
d 2 d s 2 f ( Ω s ) = tr ( Ω s − 1 H Ω s − 1 H Ω s − 1 Ω ∗ ) − 1 2 tr ( Ω s − 1 H Ω s − 1 H ) ≤ ∥ Ω s − 1 ∥ op 3 ∥ Ω ∗ ∥ op ∥ H ∥ F 2 . \frac{d^2}{ds^2}f(\Omega_s)=\operatorname{tr}(\Omega_s^{-1}H\Omega_s^{-1}H\Omega_s^{-1}\Omega_*)-\frac{1}{2}\operatorname{tr}(\Omega_s^{-1}H\Omega_s^{-1}H)\le\lVert\Omega_s^{-1}\rVert_{\operatorname{op}}^3\lVert\Omega_*\rVert_{\operatorname{op}}\lVert H\rVert_F^2. d s 2 d 2 f ( Ω s ) = tr ( Ω s − 1 H Ω s − 1 H Ω s − 1 Ω ∗ ) − 2 1 tr ( Ω s − 1 H Ω s − 1 H ) ≤ ∥ Ω s − 1 ∥ op 3 ∥ Ω ∗ ∥ op ∥ H ∥ F 2 .
Therefore
E f ( Ω ) − f ( Ω c ) = E { f ( Ω ) − f ( Ω c ) − ⟨ ∇ f ( Ω c ) , H ⟩ } = E ∫ 0 1 ( 1 − s ) d 2 d s 2 f ( Ω s ) d s ≤ 1 2 ∥ Ω ∗ ∥ op E { τ ‾ 3 ∥ H ∥ F 2 } ≤ 1 2 ∥ Ω ∗ ∥ op ( E τ ‾ 6 ) 1 / 2 ( E ∥ H ∥ F 4 ) 1 / 2 = O ( ( α n ) − 1 ) , \begin{aligned}
\mathbb{E}f(\Omega)-f(\Omega_c)=\mathbb{E}\left\{f(\Omega)-f(\Omega_c)-\langle\nabla f(\Omega_c),H\rangle\right\}=\mathbb{E}\int_0^1(1-s)\frac{d^2}{ds^2}f(\Omega_s)\,ds \\
&\le\frac{1}{2}\lVert\Omega_*\rVert_{\operatorname{op}}\mathbb{E}\{\overline{\tau}^3\lVert H\rVert_F^2\}\le\frac{1}{2}\lVert\Omega_*\rVert_{\operatorname{op}}(\mathbb{E}\overline{\tau}^{6})^{1/2}(\mathbb{E}\lVert H\rVert_F^4)^{1/2}=O((\alpha n)^{-1}),
\end{aligned} E f ( Ω ) − f ( Ω c ) = E { f ( Ω ) − f ( Ω c ) − ⟨ ∇ f ( Ω c ) , H ⟩ } = E ∫ 0 1 ( 1 − s ) d s 2 d 2 f ( Ω s ) d s ≤ 2 1 ∥ Ω ∗ ∥ op E { τ 3 ∥ H ∥ F 2 } ≤ 2 1 ∥ Ω ∗ ∥ op ( E τ 6 ) 1/2 ( E ∥ H ∥ F 4 ) 1/2 = O (( α n ) − 1 ) ,
where we use E H = 0 \mathbb{E}H=0 E H = 0 for the first equality, Taylor’s formula with integral remainder for the second, the bound on the second derivative for the first inequality, and the Cauchy–Schwarz inequality for the second. Multiplying by n n n gives (b).
For part (c), applying the resolvent identity Ω − 1 = Ω c − 1 − Ω c − 1 H Ω − 1 \Omega^{-1}=\Omega_c^{-1}-\Omega_c^{-1}H\Omega^{-1} Ω − 1 = Ω c − 1 − Ω c − 1 H Ω − 1 twice gives
Ω − 1 = Ω c − 1 − Ω c − 1 H Ω c − 1 + Ω c − 1 H Ω c − 1 H Ω − 1 . \Omega^{-1}=\Omega_c^{-1}-\Omega_c^{-1}H\Omega_c^{-1}+\Omega_c^{-1}H\Omega_c^{-1}H\Omega^{-1}. Ω − 1 = Ω c − 1 − Ω c − 1 H Ω c − 1 + Ω c − 1 H Ω c − 1 H Ω − 1 .
The middle term has mean zero, so
∥ E Ω − 1 − Ω c − 1 ∥ F ≤ ∥ Ω c − 1 ∥ o p 2 E { ∥ H ∥ F 2 τ ~ } ≤ ∥ Ω c − 1 ∥ o p 2 ( E ∥ H ∥ F 4 ) 1 / 2 ( E τ ~ 2 ) 1 / 2 = O ( ( α n ) − 1 ) , \left\|\mathbb{E}\Omega^{-1}-\Omega_c^{-1}\right\|_{F}\leq\left\|\Omega_c^{-1}\right\|_{\mathrm{op}}^{2}\mathbb{E}\left\{\left\|H\right\|_{F}^{2}\tilde{\tau}\right\}\leq\left\|\Omega_c^{-1}\right\|_{\mathrm{op}}^{2}\left(\mathbb{E}\left\|H\right\|_{F}^{4}\right)^{1/2}\left(\mathbb{E}\tilde{\tau}^{2}\right)^{1/2}=O\left((\alpha n)^{-1}\right), E Ω − 1 − Ω c − 1 F ≤ Ω c − 1 op 2 E { ∥ H ∥ F 2 τ ~ } ≤ Ω c − 1 op 2 ( E ∥ H ∥ F 4 ) 1/2 ( E τ ~ 2 ) 1/2 = O ( ( α n ) − 1 ) ,
and ∥ B Q θ c − B c ∥ F ≤ ∥ Ω ∗ ∥ o p ∥ E Ω − 1 − Ω c − 1 ∥ F \left\|B Q_{\theta_c}-B_c\right\|_{F}\leq\left\|\Omega_*\right\|_{\mathrm{op}}\left\|\mathbb{E}\Omega^{-1}-\Omega_c^{-1}\right\|_{F} ∥ B Q θ c − B c ∥ F ≤ ∥ Ω ∗ ∥ op E Ω − 1 − Ω c − 1 F .
Finally, inserting (a)–(c) into the definition of U t ( K ) U_t(K) U t ( K ) gives the bound on the upper curve.
Proof of Proposition B.13
Proof. Part (a). By the remark after Definition B.1, L t ( K ) ≥ n α m K − log N K − log n L_t(K)\geq n\alpha m_K-\log N_K-\log n L t ( K ) ≥ n α m K − log N K − log n , and m K > 0 m_K>0 m K > 0 for K < K ∗ K<K_* K < K ∗ by Lemma C.7. For the upper curve, let ρ K K \rho_K^K ρ K K attain m K L K m_K L_K m K L K and choose a fixed centre θ c \theta_c θ c with KL ( ρ K K , θ c ) ≤ m K L K + δ \operatorname{KL}(\rho_K^K,\theta_c)\leq m_K L_K+\delta KL ( ρ K K , θ c ) ≤ m K L K + δ . Lemma C.9 with t = log n t=\log n t = log n gives
U t ( K ) ≤ α n ( m K K + δ ) + d K 2 log ( α n ) + α 2 n ( log n + 1 ) ∥ B c ∥ F + O ( log n ) = n α ( m K K + δ ) + O ( n log n ) , \begin{aligned}
U_t(K)\leq\alpha n(m_K^K+\delta)+\frac{d_K}{2}\log(\alpha n)+\alpha\sqrt{2n(\log n+1)}\left\|B_c\right\|_{F}+O(\log n) \\
&=n\alpha(m_K^K+\delta)+O\left(\sqrt{n\log n}\right),
\end{aligned} U t ( K ) ≤ α n ( m K K + δ ) + 2 d K log ( α n ) + α 2 n ( log n + 1 ) ∥ B c ∥ F + O ( log n ) = n α ( m K K + δ ) + O ( n log n ) ,
where we use d ρ ≤ d K d_\rho\leq d_K d ρ ≤ d K for the first line and absorb the term α ( log n + 1 ) ∥ B c ∥ o p \alpha(\log n+1)\left\|B_c\right\|_{\mathrm{op}} α ( log n + 1 ) ∥ B c ∥ op into O ( log n ) O(\log n) O ( log n ) , which is possible because θ c \theta_c θ c is fixed.
Part (b). Take ρ K ∗ K = ρ ∗ \rho_{K_*}^K=\rho_* ρ K ∗ K = ρ ∗ and θ c = θ ∗ \theta_c=\theta_* θ c = θ ∗ . Then KL ( ρ ∗ , θ ∗ ) = 0 \operatorname{KL}(\rho_*,\theta_*)=0 KL ( ρ ∗ , θ ∗ ) = 0 and B c = 0 B_c=0 B c = 0 , so Lemma C.9 with t = log n t=\log n t = log n gives
U t ( K ∗ ) ≤ d ρ ∗ 2 log ( α n ) + O ( 1 ) ≤ d ∗ 2 log n + O ( 1 ) , U_t(K_*)\leq\frac{d_{\rho_*}}{2}\log(\alpha n)+O(1)\leq\frac{d_*}{2}\log n+O(1), U t ( K ∗ ) ≤ 2 d ρ ∗ log ( α n ) + O ( 1 ) ≤ 2 d ∗ log n + O ( 1 ) ,
where we use d ρ ∗ = d ∗ d_{\rho_*}=d_* d ρ ∗ = d ∗ and α < 1 \alpha<1 α < 1 .
Part (c). Let K > K ∗ K>K_* K > K ∗ . Each ρ ∈ F K \rho\in\mathcal{F}_K ρ ∈ F K either has a positive Rényi bias β ρ \beta_\rho β ρ , in which case E n ( K , ρ ) ≥ n α β ρ \mathcal{E}_n(K,\rho)\geq n\alpha\beta_\rho E n ( K , ρ ) ≥ n α β ρ , or has zero bias, in which case Lemma C.8 gives E n ( K , ρ ) ≥ c 0 ( n α ( 1 − α ) ) 1 / 3 − log 2 \mathcal{E}_n(K,\rho)\geq c_0(n\alpha(1-\alpha))^{1/3}-\log2 E n ( K , ρ ) ≥ c 0 ( n α ( 1 − α ) ) 1/3 − log 2 for large n n n . Since F K \mathcal{F}_K F K is finite and n α β ρ n\alpha\beta_\rho n α β ρ grows linearly in n n n , for large n n n every ρ ∈ F K \rho\in\mathcal{F}_K ρ ∈ F K satisfies the second bound. Hence E n ( K ) ≥ c 0 ( n α ( 1 − α ) ) 1 / 3 − log 2 \mathcal{E}_n(K)\geq c_0(n\alpha(1-\alpha))^{1/3}-\log2 E n ( K ) ≥ c 0 ( n α ( 1 − α ) ) 1/3 − log 2 , and (c) follows from L t ( K ) = E n ( K ) − log N K − log n L_t(K)=\mathcal{E}_n(K)-\log N_K-\log n L t ( K ) = E n ( K ) − log N K − log n .
Proof of Corollary B.14
Proof. Take t = log n t=\log n t = log n and the oracles of Proposition B.13. Consider the events
E 1 = { ELBO K > ELBO K − 1 for all 1 ≤ K ≤ K ∗ } , \mathcal{E}_1=\{\operatorname{ELBO}_K>\operatorname{ELBO}_{K-1}\text{ for all }1\leq K\leq K_*\}, E 1 = { ELBO K > ELBO K − 1 for all 1 ≤ K ≤ K ∗ } ,
E 2 = { ELBO K ∗ + 1 < ELBO K ∗ } , \mathcal{E}_2=\{\operatorname{ELBO}_{K_*+1}<\operatorname{ELBO}_{K_*}\}, E 2 = { ELBO K ∗ + 1 < ELBO K ∗ } ,
E 3 = { Γ ( K ∗ ; ρ ) > Γ ( K ∗ ; ρ ∗ ) for all ρ ∈ F K ∗ ∖ { ρ ∗ } } , \mathcal{E}_3=\{\Gamma(K_*;\rho)>\Gamma(K_*;\rho_*)\text{ for all }\rho\in\mathcal{F}_{K_*}\setminus\{\rho_*\}\}, E 3 = { Γ ( K ∗ ; ρ ) > Γ ( K ∗ ; ρ ∗ ) for all ρ ∈ F K ∗ ∖ { ρ ∗ }} ,
with E 2 \mathcal{E}_2 E 2 taken to be the whole space if M = K ∗ M=K_* M = K ∗ . On E 1 ∩ E 2 ∩ E 3 \mathcal{E}_1\cap\mathcal{E}_2\cap\mathcal{E}_3 E 1 ∩ E 2 ∩ E 3 , the ELBO increases up to K ∗ K_* K ∗ and decreases at K ∗ + 1 K_*+1 K ∗ + 1 , so the search stops at K ∗ + 1 K_*+1 K ∗ + 1 (or at M = K ∗ M=K_* M = K ∗ ), the maximum over the visited set is attained only at K ∗ K_* K ∗ , and ρ ^ = ρ ∗ \hat{\rho}=\rho_* ρ ^ = ρ ∗ . It therefore suffices to show that P ∗ ( E 1 c ) ≤ 2 K ∗ / n P_*(\mathcal{E}_1^c)\leq2K_*/n P ∗ ( E 1 c ) ≤ 2 K ∗ / n , P ∗ ( E 2 c ) ≤ 2 / n P_*(\mathcal{E}_2^c)\leq2/n P ∗ ( E 2 c ) ≤ 2/ n and P ∗ ( E 3 c ) ≤ N K ∗ / n P_*(\mathcal{E}_3^c)\leq N_{K_*}/n P ∗ ( E 3 c ) ≤ N K ∗ / n . For E 1 \mathcal{E}_1 E 1 , we verify the condition of Theorem B.7 with K † = K ∗ K^\dagger= K_* K † = K ∗ . For 1 ≤ K ≤ K ∗ − 1 1 \le K \le K_* - 1 1 ≤ K ≤ K ∗ − 1 , Proposition B.13(a) gives
L t ( K − 1 ) − U t ( K ) ≥ n α ( m K − 1 − m K K L − δ ) − O ( n log n ) , L_t(K-1)-U_t(K) \ge n\alpha(m_{K-1}-m_K^{\mathrm{KL}}-\delta)-O(\sqrt{n\log n}), L t ( K − 1 ) − U t ( K ) ≥ n α ( m K − 1 − m K KL − δ ) − O ( n log n ) ,
which is positive for large n n n once δ < m K − 1 − m K K L \delta< m_{K-1}-m_K^{\mathrm{KL}} δ < m K − 1 − m K KL ; such δ \delta δ exists by (W). For K = K ∗ K=K_* K = K ∗ , Proposition B.13(a) and (b) give L t ( K ∗ − 1 ) − U t ( K ∗ ) ≥ n α m K ∗ − 1 − O ( log n ) > 0 L_t(K_*-1)-U_t(K_*) \ge n\alpha m_{K_*-1}-O(\log n)>0 L t ( K ∗ − 1 ) − U t ( K ∗ ) ≥ n α m K ∗ − 1 − O ( log n ) > 0 for large n n n . Theorem B.7 then gives P ∗ ( E 1 c ) ≤ 2 K ∗ / n P_*(\mathcal{E}_1^c) \le2K_*/n P ∗ ( E 1 c ) ≤ 2 K ∗ / n .
For E 2 \mathcal{E}_2 E 2 , Proposition B.13(b) and (c) give
L t ( K ∗ + 1 ) − U t ( K ∗ ) ≥ c 0 ( n α ( 1 − α ) ) 1 / 3 − O ( log n ) > 0 L_t(K_*+1)-U_t(K_*) \ge c_0\bigl(n\alpha(1-\alpha)\bigr)^{1/3}-O(\log n)>0 L t ( K ∗ + 1 ) − U t ( K ∗ ) ≥ c 0 ( n α ( 1 − α ) ) 1/3 − O ( log n ) > 0
for large n n n , so Theorem B.8 with k ∘ = K ∗ k^\circ=K_* k ∘ = K ∗ gives P ∗ ( E 2 c ) ≤ 2 / n P_*(\mathcal{E}_2^c)\le2/n P ∗ ( E 2 c ) ≤ 2/ n .
For E 3 \mathcal{E}_3 E 3 , every ρ ∈ F K ∗ ∖ { ρ ∗ } \rho\in\mathcal{F}_{K_*}\setminus\{\rho_*\} ρ ∈ F K ∗ ∖ { ρ ∗ } has a positive Rényi bias β ρ \beta_\rho β ρ by Lemma C.7, so E n ( K ∗ , ρ ) ≥ n α β ρ \mathcal{E}_n(K_*,\rho)\ge n\alpha\beta_\rho E n ( K ∗ , ρ ) ≥ n α β ρ . Hence
P ∗ ( E 3 c ) ≤ P ∗ ( Γ ( K ∗ ; ρ ∗ ) > U t ( K ∗ ) ) + ∑ ρ ≠ ρ ∗ P ∗ ( Γ ( K ∗ ; ρ ) ≤ U t ( K ∗ ) ) ≤ 1 n + ∑ ρ ≠ ρ ∗ P ∗ ( Γ ( K ∗ ; ρ ) ≤ E n ( K ∗ , ρ ) − log n ) ≤ N K ∗ n , \begin{aligned}
P_*(\mathcal{E}_3^c) \le P_*\bigl(\Gamma(K_*;\rho_*)>U_t(K_*)\bigr)+\sum_{\rho\ne\rho_*}P_*\bigl(\Gamma(K_*;\rho)\le U_t(K_*)\bigr) \\
&\le\frac{1}{n}+\sum_{\rho\ne\rho_*}P_*\bigl(\Gamma(K_*;\rho)\le\mathcal{E}_n(K_*,\rho)-\log n\bigr)\le\frac{N_{K_*}}{n},
\end{aligned} P ∗ ( E 3 c ) ≤ P ∗ ( Γ ( K ∗ ; ρ ∗ ) > U t ( K ∗ ) ) + ρ = ρ ∗ ∑ P ∗ ( Γ ( K ∗ ; ρ ) ≤ U t ( K ∗ ) ) ≤ n 1 + ρ = ρ ∗ ∑ P ∗ ( Γ ( K ∗ ; ρ ) ≤ E n ( K ∗ , ρ ) − log n ) ≤ n N K ∗ ,
where we use Lemma B.5 for the first term, the inequality U t ( K ∗ ) = O ( log n ) < n α β ρ − log n ≤ E n ( K ∗ , ρ ) − log n U_t(K_*)=O(\log n)<n\alpha\beta_\rho-\log n\le\mathcal{E}_n(K_*,\rho)-\log n U t ( K ∗ ) = O ( log n ) < n α β ρ − log n ≤ E n ( K ∗ , ρ ) − log n for large n n n in the sum, and the second claim of Lemma B.2 for the last inequality. □ \square □
Proof of Corollary B.15
Proof. Apply Theorem B.10 with k ∘ = K ∗ k^\circ=K_* k ∘ = K ∗ and t = log n t=\log n t = log n . The proof of Corollary B.14 gives P ∗ ( K s t o p < K ∗ ) ≤ P ∗ ( E 1 c ) = O ( 1 / n ) P_*(K_{\mathrm{stop}}<K_*)\le P_*(\mathcal{E}_1^c)=O(1/n) P ∗ ( K stop < K ∗ ) ≤ P ∗ ( E 1 c ) = O ( 1/ n ) , and Proposition B.13(b) gives U t ( K ∗ ) ≤ d ∗ 2 log n + O ( 1 ) U_t(K_*)\le\frac{d_*}{2}\log n+O(1) U t ( K ∗ ) ≤ 2 d ∗ log n + O ( 1 ) . This proves the first claim. For the second, note that the left-hand side is non-increasing in A n A_n A n , so we may assume that A n A_n A n grows slowly enough that ε = A n d ∗ log n / { n α ( 1 − α ) } ≤ 1 2 \varepsilon=A_n\sqrt{d_*\log n}/\{n\alpha(1-\alpha)\}\le\frac12 ε = A n d ∗ log n / { n α ( 1 − α )} ≤ 2 1 . Taking this ε \varepsilon ε in Theorem B.10, the right-hand side is, on the same event, at most 9 { ( d ∗ 2 + 1 ) log n + O ( 1 ) } / ( A n 2 d ∗ log n ) → 0 9\{(\frac{d_*}{2}+1)\log n+O(1)\}/(A_n^2d_*\log n)\to0 9 {( 2 d ∗ + 1 ) log n + O ( 1 )} / ( A n 2 d ∗ log n ) → 0 , since log N t o t \log N_{\mathrm{tot}} log N tot is bounded. As this event has probability 1 − O ( 1 / n ) 1-O(1/n) 1 − O ( 1/ n ) , the left-hand side tends to 0 in probability. □ \square □
Proof of Corollary B.16
Proof. Write r n = { d ∗ log n / ( n α ( 1 − α ) ) } 1 / 2 r_n=\{d_*\log n/(n\alpha(1-\alpha))\}^{1/2} r n = { d ∗ log n / ( n α ( 1 − α )) } 1/2 , L = Ω ∗ − 1 / 2 Ω ρ ^ ( θ ) Ω ∗ − 1 / 2 L=\Omega_*^{-1/2}\Omega_{\hat{\rho}(\theta)}\Omega_*^{-1/2} L = Ω ∗ − 1/2 Ω ρ ^ ( θ ) Ω ∗ − 1/2 , L ˉ = ∫ L Q ( d θ ) = Ω ∗ − 1 / 2 Ω ^ Ω ∗ − 1 / 2 \bar{L}=\int L\,Q(d\theta)=\Omega_*^{-1/2}\hat{\Omega}\Omega_*^{-1/2} L ˉ = ∫ L Q ( d θ ) = Ω ∗ − 1/2 Ω ^ Ω ∗ − 1/2 and Δ = ∥ L ˉ − I ∥ F \Delta=\|\bar{L}-I\|_F Δ = ∥ L ˉ − I ∥ F .
We first bound the spread of a member of the variational family around its mean. Let Q ∈ Q K ( ρ ) Q\in\mathcal{Q}_K(\rho) Q ∈ Q K ( ρ ) , let H ρ = { h ∈ { 0 , … , K } : ∣ V h ∣ > 0 } H_\rho=\{h\in\{0,\ldots,K\}:|V_h|>0\} H ρ = { h ∈ { 0 , … , K } : ∣ V h ∣ > 0 } be the blocks that contain variables, write Φ ˉ \bar{\Phi} Φ ˉ and v ˉ h \bar{v}_h v ˉ h (h ∈ H ρ h\in H_\rho h ∈ H ρ ) for the means of Φ \Phi Φ and v h = 1 / τ h v_h=1/\tau_h v h = 1/ τ h under Q Q Q , and Ω ˉ Q = A ρ Φ ˉ A ρ ⊤ + D ρ ( v ˉ ) \bar{\Omega}_Q=A_\rho\bar{\Phi}A_\rho^\top+D_\rho(\bar{v}) Ω ˉ Q = A ρ Φ ˉ A ρ ⊤ + D ρ ( v ˉ ) for the mean of Ω ρ ( θ ) \Omega_\rho(\theta) Ω ρ ( θ ) . When the background is empty, its precision does not enter Ω ρ ( θ ) \Omega_\rho(\theta) Ω ρ ( θ ) and is left out below; when K = 0 K=0 K = 0 , the terms involving Φ \Phi Φ vanish. For the inverse Wishart distribution with ν ~ > K + 3 \tilde{\nu}>K+3 ν ~ > K + 3 degrees of freedom and mean Φ ˉ \bar{\Phi} Φ ˉ ,
E ( Φ i j − Φ ˉ i j ) 2 = ( ν ~ − K + 1 ) Φ ˉ i j 2 + ( ν ~ − K − 1 ) Φ ˉ i i Φ ˉ j j ( ν ~ − K ) ( ν ~ − K − 3 ) \mathbb{E}(\Phi_{ij}-\bar{\Phi}_{ij})^2=\frac{(\tilde{\nu}-K+1)\bar{\Phi}_{ij}^{\,2}+(\tilde{\nu}-K-1)\bar{\Phi}_{ii}\bar{\Phi}_{jj}}{(\tilde{\nu}-K)(\tilde{\nu}-K-3)} E ( Φ ij − Φ ˉ ij ) 2 = ( ν ~ − K ) ( ν ~ − K − 3 ) ( ν ~ − K + 1 ) Φ ˉ ij 2 + ( ν ~ − K − 1 ) Φ ˉ ii Φ ˉ j j
[17 Chapter 3] , so that E ∥ Φ − Φ ˉ ∥ F 2 ≤ 2 ( K + 1 ) ∥ Φ ˉ ∥ F 2 / ( ν ~ − K − 3 ) \mathbb{E}\|\Phi-\bar{\Phi}\|_F^2\le2(K+1)\|\bar{\Phi}\|_F^2/(\tilde{\nu}-K-3) E ∥Φ − Φ ˉ ∥ F 2 ≤ 2 ( K + 1 ) ∥ Φ ˉ ∥ F 2 / ( ν ~ − K − 3 ) , where we use ( tr Φ ˉ ) 2 ≤ K ∥ Φ ˉ ∥ F 2 (\operatorname{tr}\bar{\Phi})^2\le K\|\bar{\Phi}\|_F^2 ( tr Φ ˉ ) 2 ≤ K ∥ Φ ˉ ∥ F 2 . For h ∈ H ρ h\in H_\rho h ∈ H ρ , the inverse gamma distribution of v h v_h v h has shape a ~ h = \tilde{a}_h= a ~ h = a τ + α n ∣ V h ∣ / 2 > 2 a_{\tau}+\alpha n|V_h|/2>2 a τ + α n ∣ V h ∣/2 > 2 and E ( v h − v ˉ h ) 2 = v ˉ h 2 / ( a ~ h − 2 ) \mathbb{E}(v_h-\bar{v}_h)^2=\bar{v}_h^2/(\tilde{a}_h-2) E ( v h − v ˉ h ) 2 = v ˉ h 2 / ( a ~ h − 2 ) . Since Φ \Phi Φ and the v h v_h v h are independent under Q Q Q and ∥ A ρ ∥ o p 2 = max h ∣ V h ∣ ≤ p 0 \|A_{\rho}\|_{\mathrm{op}}^2=\max_h|V_h|\le p_0 ∥ A ρ ∥ op 2 = max h ∣ V h ∣ ≤ p 0 ,
∫ ∥ Ω ρ ( θ ) − Ω ˉ Q ∥ F 2 Q ( d θ ) ≤ 2 ( K + 1 ) p 0 2 ν ~ − K − 3 ∥ Φ ˉ ∥ F 2 + ∑ h ∈ H ρ ∣ V h ∣ a ~ h − 2 v ˉ h 2 \int\|\Omega_{\rho}(\theta)-\bar{\Omega}_Q\|_F^2 Q(d\theta)\le\frac{2(K+1)p_0^2}{\tilde{\nu}-K-3}\|\bar{\Phi}\|_F^2+\sum_{h\in H_{\rho}}\frac{|V_h|}{\tilde{a}_h-2}\bar{v}_h^2 ∫ ∥ Ω ρ ( θ ) − Ω ˉ Q ∥ F 2 Q ( d θ ) ≤ ν ~ − K − 3 2 ( K + 1 ) p 0 2 ∥ Φ ˉ ∥ F 2 + h ∈ H ρ ∑ a ~ h − 2 ∣ V h ∣ v ˉ h 2
With ν ~ = ν K + α n \tilde{\nu}=\nu_K+\alpha n ν ~ = ν K + α n , all these coefficients are at most C 1 / ( α n ) C_1/(\alpha n) C 1 / ( α n ) for all sufficiently large n n n , where C 1 = 8 ( M + 1 ) p 0 2 C_1=8(M+1)p_0^2 C 1 = 8 ( M + 1 ) p 0 2 . Moreover, ∥ Φ ˉ ∥ F 2 + ∑ h ∈ H ρ v ˉ h 2 ≤ 2 ∥ Ω ˉ Q ∥ F 2 \|\bar{\Phi}\|_F^2+\sum_{h\in H_{\rho}}\bar{v}_h^2\le2\|\bar{\Omega}_Q\|_F^2 ∥ Φ ˉ ∥ F 2 + ∑ h ∈ H ρ v ˉ h 2 ≤ 2∥ Ω ˉ Q ∥ F 2 , because each entry of Φ ˉ \bar{\Phi} Φ ˉ is an off-diagonal entry of Ω ˉ Q \bar{\Omega}_Q Ω ˉ Q , every community having at least two variables, and each v ˉ h \bar{v}_h v ˉ h is at most a diagonal entry of Ω ˉ Q \bar{\Omega}_Q Ω ˉ Q . Hence ∫ ∥ Ω ρ ( θ ) − Ω ˉ Q ∥ F 2 Q ( d θ ) ≤ 2 C 1 ∥ Ω ˉ Q ∥ F 2 / ( α n ) \int\|\Omega_{\rho}(\theta)-\bar{\Omega}_Q\|_F^2Q(d\theta)\le2C_1\|\bar{\Omega}_Q\|_F^2/(\alpha n) ∫ ∥ Ω ρ ( θ ) − Ω ˉ Q ∥ F 2 Q ( d θ ) ≤ 2 C 1 ∥ Ω ˉ Q ∥ F 2 / ( α n ) for every K ≤ M K\le M K ≤ M , ρ ∈ F K \rho\in\mathcal{F}_K ρ ∈ F K and Q ∈ Q K ( ρ ) Q\in\mathcal{Q}_K(\rho) Q ∈ Q K ( ρ ) . Applied to Q ^ \widehat{Q} Q , with κ = ∥ Ω ∗ ∥ o p ∥ Ω ∗ − 1 ∥ o p \kappa=\|\Omega_*\|_{\mathrm{op}}\|\Omega_*^{-1}\|_{\mathrm{op}} κ = ∥ Ω ∗ ∥ op ∥ Ω ∗ − 1 ∥ op , this gives
∫ ∥ L − L ˉ ∥ F 2 Q ^ ( d θ ) ≤ ∥ Ω ∗ − 1 ∥ o p 2 ∫ ∥ Ω ρ ( θ ) − Ω ^ ∥ F 2 Q ^ ( d θ ) ≤ 2 C 1 κ 2 α n ∥ L ˉ ∥ F 2 ≤ 2 C 1 κ 2 ( p 0 + Δ ) 2 α n , \int\|L-\bar{L}\|_F^2\widehat{Q}(d\theta)\le\|\Omega_*^{-1}\|_{\mathrm{op}}^2\int\|\Omega_{\rho}(\theta)-\widehat{\Omega}\|_F^2\widehat{Q}(d\theta)\le\frac{2C_1\kappa^2}{\alpha n}\|\bar{L}\|_F^2\le\frac{2C_1\kappa^2(\sqrt{p_0}+\Delta)^2}{\alpha n}, ∫ ∥ L − L ˉ ∥ F 2 Q ( d θ ) ≤ ∥ Ω ∗ − 1 ∥ op 2 ∫ ∥ Ω ρ ( θ ) − Ω ∥ F 2 Q ( d θ ) ≤ α n 2 C 1 κ 2 ∥ L ˉ ∥ F 2 ≤ α n 2 C 1 κ 2 ( p 0 + Δ ) 2 ,
where we use ∥ Ω ^ ∥ F ≤ ∥ Ω ∗ ∥ o p ∥ L ˉ ∥ F \|\widehat{\Omega}\|_F\le\|\Omega_*\|_{\mathrm{op}}\|\bar{L}\|_F ∥ Ω ∥ F ≤ ∥ Ω ∗ ∥ op ∥ L ˉ ∥ F and ∥ L ˉ ∥ F ≤ ∥ I ∥ F + Δ \|\bar{L}\|_F\le\|I\|_F+\Delta ∥ L ˉ ∥ F ≤ ∥ I ∥ F + Δ .
Now let A n → ∞ A_n\to\infty A n → ∞ and B n = A n 1 / 2 B_n=A_n^{1/2} B n = A n 1/2 . On the event { Δ > 2 B n r n } \{\Delta>2B_nr_n\} { Δ > 2 B n r n } , every θ \theta θ with ∥ L − L ˉ ∥ F ≤ Δ / 2 \|L-\bar{L}\|_F\le\Delta/2 ∥ L − L ˉ ∥ F ≤ Δ/2 satisfies ∥ L − I ∥ F ≥ Δ / 2 > B n r n \|L-I\|_F\ge\Delta/2>B_nr_n ∥ L − I ∥ F ≥ Δ/2 > B n r n , so Chebyshev’s inequality gives
Q ^ ( ∥ L − I ∥ F > B n r n ) ≥ 1 − 4 Δ 2 ∫ ∥ L − L ˉ ∥ F 2 Q ^ ( d θ ) ≥ 1 − 8 C 1 κ 2 α n ( 1 + p 0 2 B n r n ) 2 . \widehat{Q}(\|L-I\|_F>B_nr_n)\ge1-\frac{4}{\Delta^2}\int\|L-\bar{L}\|_F^2\widehat{Q}(d\theta)\ge1-\frac{8C_1\kappa^2}{\alpha n}\left(1+\frac{\sqrt{p_0}}{2B_nr_n}\right)^2. Q ( ∥ L − I ∥ F > B n r n ) ≥ 1 − Δ 2 4 ∫ ∥ L − L ˉ ∥ F 2 Q ( d θ ) ≥ 1 − α n 8 C 1 κ 2 ( 1 + 2 B n r n p 0 ) 2 .
Since α n r n 2 = d ∗ log n / ( 1 − α ) → ∞ \alpha n r_n^2=d_*\log n/(1-\alpha)\to\infty α n r n 2 = d ∗ log n / ( 1 − α ) → ∞ , the right-hand side tends to one and exceeds 1 2 \frac12 2 1 for all large n n n . Therefore
P ∗ ( Δ > 2 B n r n ) ≤ P ∗ ( Q ^ ( ∥ L − I ∥ F > B n r n ) ≥ 1 2 ) → 0 P_*(\Delta>2B_nr_n)\le P_*\left(\widehat{Q}(\|L-I\|_F>B_nr_n)\ge\frac12\right)\to0 P ∗ ( Δ > 2 B n r n ) ≤ P ∗ ( Q ( ∥ L − I ∥ F > B n r n ) ≥ 2 1 ) → 0
by Corollary B.15 applied with B n B_n B n in place of A n A_n A n . Since $2B_n\le A_nf o r a l l l a r g e for all large f or a l l l a r g e n, the claim follows.
Proof of Corollary B.17
Proof. Write A ( K ) = n α B e − γ K A(K)=n\alpha B e^{-\gamma K} A ( K ) = n α B e − γ K and V ( K ) = d K log n V(K)=d_K\log n V ( K ) = d K log n , and let K 1 K_1 K 1 be the first K ≥ 1 K\ge1 K ≥ 1 with A ( K ) ≤ ζ V ( K ) A(K)\le\zeta V(K) A ( K ) ≤ ζ V ( K ) . We first show that the search reaches K 1 K_1 K 1 . By (G) and A ( K − 1 ) = e γ A ( K ) A(K-1)=e^\gamma A(K) A ( K − 1 ) = e γ A ( K ) ,
L t ( K − 1 ) − U t ( K ) ≥ ϑ e γ A ( K ) − A ( K ) − c U V ( K ) = ( ϑ e γ − 1 ) A ( K ) − ζ V ( K ) L_t(K-1)-U_t(K)\ge\vartheta e^\gamma A(K)-A(K)-c_UV(K)=(\vartheta e^\gamma-1)A(K)-\zeta V(K) L t ( K − 1 ) − U t ( K ) ≥ ϑ e γ A ( K ) − A ( K ) − c U V ( K ) = ( ϑ e γ − 1 ) A ( K ) − ζ V ( K )
which is positive for K ≤ K 1 − 1 K\le K_1-1 K ≤ K 1 − 1 . Theorem B.7 with K † = K 1 − 1 K^\dagger=K_1-1 K † = K 1 − 1 gives K s t o p ≥ K 1 K_{\mathrm{stop}}\ge K_1 K stop ≥ K 1 with probability at least 1 − 2 K 1 / n 1-2K_1/n 1 − 2 K 1 / n .
Next we bound K 1 K_1 K 1 . The condition A ( K ) ≤ ζ V ( K ) A(K)\le\zeta V(K) A ( K ) ≤ ζ V ( K ) reads
γ K + log d K ≥ log { n α B / ( ζ log n ) } . \gamma K+\log d_K\ge\log\{n\alpha B/(\zeta\log n)\}. γ K + log d K ≥ log { n α B / ( ζ log n )} .
Since d K ≥ 1 d_K\ge1 d K ≥ 1 ,
K 1 ≤ 1 γ log n α B ζ log n + 1 ≤ log n γ + 1 K_1\le\frac{1}{\gamma}\log\frac{n\alpha B}{\zeta\log n}+1\le\frac{\log n}{\gamma}+1 K 1 ≤ γ 1 log ζ log n n α B + 1 ≤ γ log n + 1
for large n n n . Since d K ≤ ( K + 2 ) 2 d_K\le(K+2)^2 d K ≤ ( K + 2 ) 2 and K 1 ≤ ( 2 / γ ) log n K_1\le(2/\gamma)\log n K 1 ≤ ( 2/ γ ) log n , we have log d K 1 ≤ 2 log log n + 2 log ( 2 / γ + 2 ) \log d_{K_1}\le2\log\log n+2\log(2/\gamma+2) log d K 1 ≤ 2 log log n + 2 log ( 2/ γ + 2 ) , and hence K 1 ≥ ( log n ) / γ − ( 3 / γ ) log log n − C 6 + 1 K_1\ge(\log n)/\gamma-(3/\gamma)\log\log n-C_6+1 K 1 ≥ ( log n ) / γ − ( 3/ γ ) log log n − C 6 + 1 . This gives the lower bound on K s t o p K_{\mathrm{stop}} K stop .
We then bound the upper curve at K 1 K_1 K 1 . By (G) and the definition of K 1 K_1 K 1 ,
U t ( K 1 ) ≤ A ( K 1 ) + c U V ( K 1 ) ≤ ( ζ + c U ) d K 1 log n ≤ ( ζ + c U ) ( K 1 + 2 ) 2 2 log n ≤ ( ζ + c U ) ( log n ) 3 2 γ 2 { 1 + o ( 1 ) } , \begin{aligned}
U_t(K_1)\le A(K_1)+c_UV(K_1)\le(\zeta+c_U)d_{K_1}\log n \\
&\le(\zeta+c_U)\frac{(K_1+2)^2}{2}\log n\le(\zeta+c_U)\frac{(\log n)^3}{2\gamma^2}\{1+o(1)\},
\end{aligned} U t ( K 1 ) ≤ A ( K 1 ) + c U V ( K 1 ) ≤ ( ζ + c U ) d K 1 log n ≤ ( ζ + c U ) 2 ( K 1 + 2 ) 2 log n ≤ ( ζ + c U ) 2 γ 2 ( log n ) 3 { 1 + o ( 1 )} ,
where we use (G) for the first inequality, A ( K 1 ) ≤ ζ V ( K 1 ) A(K_1) \le\zeta V(K_1) A ( K 1 ) ≤ ζ V ( K 1 ) for the second, d K ≤ ( K + 2 ) 2 / 2 d_K \le(K+2)^2/2 d K ≤ ( K + 2 ) 2 /2 for the third, and K 1 ≤ ( log n ) / γ + 1 K_1 \le(\log n)/\gamma+ 1 K 1 ≤ ( log n ) / γ + 1 for the last. For the upper bound on K s t o p K_{\mathrm{stop}} K stop , let K > K 1 K > K_1 K > K 1 . By (G), L t ( K ) ≥ c L V ( K ) ≥ c L K 2 ( log n ) / 2 L_t(K) \ge c_L V(K) \ge c_L K^2(\log n)/2 L t ( K ) ≥ c L V ( K ) ≥ c L K 2 ( log n ) /2 , which exceeds U t ( K 1 ) U_t(K_1) U t ( K 1 ) once K ≥ ( ζ + c U ) / c L ( log n ) / γ { 1 + o ( 1 ) } K \ge\sqrt{(\zeta+c_U)/c_L}(\log n)/\gamma\{1+o(1)\} K ≥ ( ζ + c U ) / c L ( log n ) / γ { 1 + o ( 1 )} . Theorem B.8 with k ∘ = K 1 k^\circ=K_1 k ∘ = K 1 and K = ⌈ C 7 ( log n ) / γ ⌉ − 1 K=\lceil C_7(\log n)/\gamma\rceil-1 K = ⌈ C 7 ( log n ) / γ ⌉ − 1 gives the upper bound on K s t o p K_{\mathrm{stop}} K stop with probability at least 1 − 2 / n 1-2/n 1 − 2/ n for large n n n . (If this K K K exceeds M n M_n M n , the upper bound holds trivially because K s t o p ≤ M n K_{\mathrm{stop}}\le M_n K stop ≤ M n .) Finally, on the event of the first step K 1 ≤ K s t o p K_1\le K_{\mathrm{stop}} K 1 ≤ K stop , so Theorem B.10 with k ∘ = K 1 k^\circ=K_1 k ∘ = K 1 and t = log n t=\log n t = log n gives
∫ R n ( ρ ^ , θ ) Q ^ ( d θ ) ≤ U t ( K 1 ) + log N t o t + log n ≤ ( ζ + c U ) ( log n ) 3 2 γ 2 { 1 + o ( 1 ) } , \int R_n(\hat{\rho},\theta)\,\widehat{Q}(d\theta) \le U_t(K_1)+\log N_{\mathrm{tot}}+\log n \le(\zeta+c_U)\frac{(\log n)^3}{2\gamma^2}\{1+o(1)\}, ∫ R n ( ρ ^ , θ ) Q ( d θ ) ≤ U t ( K 1 ) + log N tot + log n ≤ ( ζ + c U ) 2 γ 2 ( log n ) 3 { 1 + o ( 1 )} ,
and the contraction statement follows from the second part of Theorem B.10.
Selection theory in growing dimension
The results of Appendix B.5 assume that the dimension p 0 p_0 p 0 is fixed. In this appendix, we show that they continue to hold, with minimal changes, when p 0 p_0 p 0 grows with n n n , possibly with p 0 ≫ n p_0 \gg n p 0 ≫ n , provided that the number of communities is fixed and the candidates satisfy the uniform separation condition (W′) below. Example D.1 gives a sequence with fixed communities and a growing background in which all conditions hold; when the communities grow with p 0 p_0 p 0 and α \alpha α is fixed, (W′) can fail, as the example after Assumption (W) shows. The guarantee for the posterior mean (Corollary B.16) is not extended here. We first state uniform versions of Assumptions (E), (F) and (W). We then give versions of Lemmas C.9 and C.8 whose constants do not depend on p 0 p_0 p 0 , and restate Proposition B.13 and Corollaries B.14 and B.15. Their proofs follow those in Appendix C.2, and we only indicate the changes. Appendix B.6 needs no change, since Assumption (G) is stated directly on the two curves. Appendix D.4 checks the results by simulation in the setting of Example D.1.
Assumptions
We consider a sequence of problems indexed by n n n . For each n n n , the dimension p 0 p_0 p 0 , the true partition ρ ∗ \rho_* ρ ∗ and the candidate families may change, but the number of communities, the factor covariance and the residual variances of the truth do not.
Assumption (E′) (Exact 1f model with fixed parameters). For each n n n , Assumption (E) holds, and K ∗ K_* K ∗ , Φ ∗ \Phi_* Φ ∗ and v ∗ v_* v ∗ do not depend on n n n .
Assumption (F′) (Candidates). For each n n n , ρ ∗ ∈ F K ∗ \rho_* \in\mathcal{F}_{K_*} ρ ∗ ∈ F K ∗ . There are constants N ‾ \overline{N} N and M ‾ \overline{M} M such that N K ≤ N ‾ N_K \le\overline{N} N K ≤ N and M ≤ M ‾ M \le\overline{M} M ≤ M , and the prior and α \alpha α do not depend on n n n .
Assumption (W′) (Uniform decrease of the bias). There are constants ϖ > 0 \varpi> 0 ϖ > 0 , β min > 0 \beta_{\min} > 0 β m i n > 0 and C ‾ ≥ 1 \overline{C} \ge1 C ≥ 1 such that, for each n n n :
(i) for 1 ≤ K ≤ K ∗ − 1 1 \le K \le K_*-1 1 ≤ K ≤ K ∗ − 1 , some ρ K ∈ F K \rho_K \in\mathcal{F}_K ρ K ∈ F K and θ K \theta_K θ K satisfy m K − 1 ≥ ( 1 + ϖ ) K L ( ρ K , θ K ) m_{K-1} \ge(1+\varpi)KL(\rho_K,\theta_K) m K − 1 ≥ ( 1 + ϖ ) K L ( ρ K , θ K ) , where the eigenvalues of the factor covariance of θ K \theta_K θ K and its residual variances lie in [ 1 / C ‾ , C ‾ ] [1/\overline{C},\overline{C}] [ 1/ C , C ] ;
(ii) m K ∗ − 1 ≥ β min m_{K_*-1} \ge\beta_{\min} m K ∗ − 1 ≥ β m i n , and every ρ ∈ F K \rho\in\mathcal{F}_K ρ ∈ F K with K ≥ K ∗ K \ge K_* K ≥ K ∗ and positive Rényi bias has Rényi bias at least β min \beta_{\min} β m i n .
Assumption (D) (Dimension). log p 0 = o ( n 1 / 3 ) \log p_0=o(n^{1/3}) log p 0 = o ( n 1/3 ) .
Assumptions (E′) and (F′) are (E) and (F) without the requirement that p 0 p_0 p 0 and the candidate partitions be fixed. Assumption (W′) is (W) with a relative margin ϖ \varpi ϖ and a uniform lower bound β min \beta_{\min} β m i n . For fixed p 0 p_0 p 0 , the finiteness of the candidate families supplies such constants automatically; when p 0 p_0 p 0 grows, the biases may grow with the community sizes, so the margin in (W) must grow with them, and the biases of wrong candidates must stay bounded away from zero. Part (i) also asks that the KL bias of model K K K be nearly attained at a parameter in a fixed compact set, which keeps the constants below independent of p 0 p_0 p 0 . When p 0 p_0 p 0 is fixed, Assumptions (E), (F) and (W) imply (E′), (F′), (W′) and (D), so Appendix B.5 is a special case. Like (W), Assumption (W′) compares a Rényi bias with a KL bias, so it becomes restrictive when the missing communities are large compared with 1 / α 1/\alpha 1/ α , because the ratio of the two biases is then small (Example B.12).
Assumption (D) allows p 0 p_0 p 0 to be much larger than n n n . It is used only in the not-too-late step, where the parameter cost 1 2 log ∣ V h ∣ \frac{1}{2}\log|\mathcal{V}_h| 2 1 log ∣ V h ∣ of each residual variance must be smaller than the boundary penalty, which is at least of order n 1 / 3 n^{1/3} n 1/3 (Lemma D.5).
Example D.1 (Fixed communities and a growing background). Fix K ∗ ≥ 1 K_* \ge1 K ∗ ≥ 1 , a community size b ≥ 2 b \ge2 b ≥ 2 , a correlation r ∈ ( 0 , 1 ) r \in(0,1) r ∈ ( 0 , 1 ) and α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) . For each n n n , let the truth have K ∗ K_* K ∗ communities of b b b variables with independent factors, Φ ∗ = r I K ∗ \Phi_* = rI_{K_*} Φ ∗ = r I K ∗ and residual variances v h ∗ = 1 − r v_h^* = 1-r v h ∗ = 1 − r , and a background of p 0 − K ∗ b p_0-K_*b p 0 − K ∗ b independent variables with variance v 0 ∗ = 1 v_0^* = 1 v 0 ∗ = 1 , so that every variable has unit variance and r r r is the within-community correlation. Only the background grows with n n n , with log p 0 = o ( n 1 / 3 ) \log p_0 = o(n^{1/3}) log p 0 = o ( n 1/3 ) . For K ≤ K ∗ K \le K_* K ≤ K ∗ , let F K \mathcal{F}_K F K contain only the first K K K true communities in a fixed order; for K ∗ < K ≤ M ‾ K_* < K \le\overline{M} K ∗ < K ≤ M , let F K \mathcal{F}_K F K contain the partition that adds to the true partition the first K − K ∗ K-K_* K − K ∗ of M ‾ − K ∗ \overline{M}-K_* M − K ∗ disjoint communities, fixed in advance, of at least two background variables each, so that every candidate is a prefix of one fixed path. The candidates form a deterministic family; the example does not assert that the dense-subgraph search returns them. Let
κ K L = 1 2 { − log ( 1 + ( b − 1 ) r ) − ( b − 1 ) log ( 1 − r ) } \kappa_{\mathrm{KL}} = \frac{1}{2}\{-\log(1+(b-1)r)-(b-1)\log(1-r)\} κ KL = 2 1 { − log ( 1 + ( b − 1 ) r ) − ( b − 1 ) log ( 1 − r )} be the KL divergence from N b ( 0 , ( 1 − r ) I + r 11 T ) \mathcal{N}_b(0,(1-r)I+r\mathbf{1}\mathbf{1}^{\mathsf{T}}) N b ( 0 , ( 1 − r ) I + r 1 1 T ) to N b ( 0 , I ) \mathcal{N}_b(0,I) N b ( 0 , I ) , and let κ R \kappa_{\mathrm{R}} κ R be the smallest Rényi divergence D 1 − α D_{1-\alpha} D 1 − α from the same law to N b ( 0 , v I ) \mathcal{N}_b(0,vI) N b ( 0 , v I ) over v > 0 v>0 v > 0 . If ϑ 0 = κ R / κ K L \vartheta_0=\kappa_{\mathrm{R}}/\kappa_{\mathrm{KL}} ϑ 0 = κ R / κ KL satisfies K ∗ ϑ 0 > K ∗ − 1 K_*\vartheta_0>K_*-1 K ∗ ϑ 0 > K ∗ − 1 , then (E′), (F′), (W′) and (D) hold, with β min = κ R \beta_{\min}=\kappa_{\mathrm{R}} β m i n = κ R and, when K ∗ ≥ 2 K_* \ge2 K ∗ ≥ 2 , ϖ = K ∗ ϑ 0 / ( K ∗ − 1 ) − 1 \varpi=K_*\vartheta_0/(K_*-1)-1 ϖ = K ∗ ϑ 0 / ( K ∗ − 1 ) − 1 . For example, K ∗ = 5 K_*=5 K ∗ = 5 , b = 20 b=20 b = 20 , r = 0.3 r=0.3 r = 0.3 and α = 0.02 \alpha=0.02 α = 0.02 give κ K L = 2.437 \kappa_{\mathrm{KL}}=2.437 κ KL = 2.437 , κ R = 2.273 \kappa_{\mathrm{R}}=2.273 κ R = 2.273 and ϑ 0 = 0.932 > 0.8 \vartheta_0=0.932>0.8 ϑ 0 = 0.932 > 0.8 , so the conditions hold with ϖ = 0.166 \varpi=0.166 ϖ = 0.166 .
To verify (W′), let 1 ≤ K ≤ K ∗ 1 \le K \le K_* 1 ≤ K ≤ K ∗ and let ρ K − 1 \rho_{K-1} ρ K − 1 consist of the first K − 1 K-1 K − 1 true communities. Under any parameter θ \theta θ of ρ K − 1 \rho_{K-1} ρ K − 1 , the variables of these communities are independent of all other variables, and the other variables are independent with a common variance v v v ; under the truth, the communities and the background variables are mutually independent. The Rényi divergence between product measures is the sum of the divergences between their factors, and each of these is non-negative, so
D 1 − α ( P ∗ ∥ P θ ρ K − 1 ) ≥ ∑ h = K K ∗ D 1 − α ( N b ( 0 , ( 1 − r ) I + r 11 T ) ∥ N b ( 0 , v I ) ) ≥ ( K ∗ − K + 1 ) κ R , D_{1-\alpha}\left(P_* \middle\| P_{\theta}^{\rho_{K-1}}\right) \ge\sum_{h=K}^{K_*} D_{1-\alpha}\left(\mathcal{N}_b(0,(1-r)I+r\mathbf{1}\mathbf{1}^{\mathsf{T}})\middle\|\mathcal{N}_b(0,vI)\right) \ge(K_*-K+1)\kappa_{\mathrm{R}}, D 1 − α ( P ∗ ∥ P θ ρ K − 1 ) ≥ h = K ∑ K ∗ D 1 − α ( N b ( 0 , ( 1 − r ) I + r 1 1 T ) N b ( 0 , v I ) ) ≥ ( K ∗ − K + 1 ) κ R , and hence m K − 1 ≥ ( K ∗ − K + 1 ) κ R m_{K-1} \ge(K_*-K+1)\kappa_{\mathrm{R}} m K − 1 ≥ ( K ∗ − K + 1 ) κ R . For K = K ∗ K=K_* K = K ∗ this gives m K ∗ − 1 ≥ κ R m_{K_*-1} \ge\kappa_{\mathrm{R}} m K ∗ − 1 ≥ κ R ; every candidate with K ≥ K ∗ K \ge K_* K ≥ K ∗ can reproduce the truth and has zero Rényi bias, so (W′)(ii) holds with β min = κ R \beta_{\min}=\kappa_{\mathrm{R}} β m i n = κ R . For K ≤ K ∗ − 1 K \le K_*-1 K ≤ K ∗ − 1 , let θ K \theta_K θ K have factor covariance r I K rI_K r I K , residual variances 1 − r 1-r 1 − r and background variance 1 1 1 . The same factorization gives KL ( ρ K , θ K ) = ( K ∗ − K ) κ K L \operatorname{KL}(\rho_K,\theta_K)=(K_*-K)\kappa_{\mathrm{KL}} KL ( ρ K , θ K ) = ( K ∗ − K ) κ KL , so (W′)(i) holds if ( j + 1 ) κ R ≥ ( 1 + ϖ ) j κ K L (j+1)\kappa_{\mathrm{R}}\ge(1+\varpi)j\kappa_{\mathrm{KL}} ( j + 1 ) κ R ≥ ( 1 + ϖ ) j κ KL for j = K ∗ − K ∈ { 1 , … , K ∗ − 1 } j=K_*-K\in\{1,\ldots,K_*-1\} j = K ∗ − K ∈ { 1 , … , K ∗ − 1 } . Since ( j + 1 ) / j (j+1)/j ( j + 1 ) / j decreases in j j j , it suffices that this holds for j = K ∗ − 1 j=K_*-1 j = K ∗ − 1 , which is the stated choice of ϖ \varpi ϖ . The parameters θ K \theta_K θ K have eigenvalues and residual variances in { r , 1 − r , 1 } \{r,1-r,1\} { r , 1 − r , 1 } , and (E′), (F′) and (D) hold by construction. The condition K ∗ ϑ 0 > K ∗ − 1 K_*\vartheta_0>K_*-1 K ∗ ϑ 0 > K ∗ − 1 requires the communities to be small relative to 1 / α 1/\alpha 1/ α : ϑ 0 → 1 \vartheta_0\to1 ϑ 0 → 1 as α ( b − 1 ) r → 0 \alpha(b-1)r\to0 α ( b − 1 ) r → 0 , whereas for fixed α \alpha α and growing b b b , κ R \kappa_{\mathrm{R}} κ R grows at most logarithmically in b b b and κ K L \kappa_{\mathrm{KL}} κ KL linearly.
Lemmas without dimension
The following decomposition of R p 0 \mathbb{R}^{p_0} R p 0 reduces all computations for a 1f model to K × K K \times K K × K matrices and scalars. For a partition ρ \rho ρ with communities V 1 , … , V K \mathcal{V}_1,\ldots,\mathcal{V}_K V 1 , … , V K and background V 0 \mathcal{V}_0 V 0 , write b h = ∣ V h ∣ b_h = |\mathcal{V}_h| b h = ∣ V h ∣ , u h = b h − 1 / 2 1 V h u_h = b_h^{-1/2}\mathbf{1}_{\mathcal{V}_h} u h = b h − 1/2 1 V h , U ρ = ( u 1 , … , u K ) U_\rho= (u_1,\ldots,u_K) U ρ = ( u 1 , … , u K ) and D b = diag ( b 1 , … , b K ) D_b = \operatorname{diag}(b_1,\ldots,b_K) D b = diag ( b 1 , … , b K ) . For 1 ≤ h ≤ K 1 \le h \le K 1 ≤ h ≤ K , let P h P_h P h be the orthogonal projection onto the vectors supported on V h \mathcal{V}_h V h whose entries sum to zero, and let P 0 P_0 P 0 be the orthogonal projection onto the vectors supported on V 0 \mathcal{V}_0 V 0 . Write r h r_h r h for the rank of P h P_h P h , so that r h = b h − 1 r_h = b_h - 1 r h = b h − 1 for h ≥ 1 h \ge1 h ≥ 1 and r 0 = ∣ V 0 ∣ r_0 = |\mathcal{V}_0| r 0 = ∣ V 0 ∣ .
Lemma D.2 (Block decomposition). U ρ U ρ T + ∑ h = 0 K P h = I U_\rho U_\rho^\mathsf{T} + \sum_{h=0}^{K} P_h = I U ρ U ρ T + ∑ h = 0 K P h = I , and for every θ \theta θ ,
Ω ρ ( θ ) = U ρ M ρ ( θ ) U ρ T + ∑ h = 0 K v h P h , M ρ ( θ ) = D b 1 / 2 Φ D b 1 / 2 + diag ( v 1 , … , v K ) . \Omega_\rho(\theta) = U_\rho M_\rho(\theta)U_\rho^\mathsf{T} + \sum_{h=0}^{K} v_hP_h,\qquad M_\rho(\theta) = D_b^{1/2}\Phi D_b^{1/2} + \operatorname{diag}(v_1,\ldots,v_K). Ω ρ ( θ ) = U ρ M ρ ( θ ) U ρ T + h = 0 ∑ K v h P h , M ρ ( θ ) = D b 1/2 Φ D b 1/2 + diag ( v 1 , … , v K ) . Consequently,
Ω ρ ( θ ) − 1 = U ρ M ρ ( θ ) − 1 U ρ T + ∑ h = 0 K τ h P h , log ∣ Ω ρ ( θ ) ∣ = log ∣ M ρ ( θ ) ∣ − ∑ h = 0 K r h log τ h . \Omega_\rho(\theta)^{-1} = U_\rho M_\rho(\theta)^{-1}U_\rho^\mathsf{T} + \sum_{h=0}^{K}\tau_hP_h,\qquad\log|\Omega_\rho(\theta)| = \log|M_\rho(\theta)| - \sum_{h=0}^{K}r_h\log\tau_h. Ω ρ ( θ ) − 1 = U ρ M ρ ( θ ) − 1 U ρ T + h = 0 ∑ K τ h P h , log ∣ Ω ρ ( θ ) ∣ = log ∣ M ρ ( θ ) ∣ − h = 0 ∑ K r h log τ h .
Lemma D.3 (Fluctuation and bias). For Ω ≻ 0 \Omega\succ0 Ω ≻ 0 , let k = KL ( N p 0 ( 0 , Ω ∗ ) ∥ N p 0 ( 0 , Ω ) ) k = \operatorname{KL}(\mathcal{N}_{p_0}(0,\Omega_*)\mathbin{\|}\mathcal{N}_{p_0}(0,\Omega)) k = KL ( N p 0 ( 0 , Ω ∗ ) ∥ N p 0 ( 0 , Ω )) and B = Ω ∗ 1 / 2 Ω − 1 Ω ∗ 1 / 2 − I B = \Omega_*^{1/2}\Omega^{-1}\Omega_*^{1/2} - I B = Ω ∗ 1/2 Ω − 1 Ω ∗ 1/2 − I . Then ∥ B ∥ o p ≤ ∥ B ∥ F ≤ 8 k + 8 k \|B\|_{\mathrm{op}} \le\|B\|_{\mathrm{F}} \le\sqrt{8k} + 8k ∥ B ∥ op ≤ ∥ B ∥ F ≤ 8 k + 8 k .
Lemma D.4 (Conjugate oracle bounds without dimension). Let ρ ∈ F K \rho\in\mathcal{F}_K ρ ∈ F K , let θ c = ( Φ c , v c ) \theta_c = (\Phi_c,v_c) θ c = ( Φ c , v c ) be a centre whose factor covariance has eigenvalues in [ 1 / C ‾ , C ‾ ] [1/\overline{C},\overline{C}] [ 1/ C , C ] and whose residual variances lie in [ 1 / C ‾ , C ‾ ] [1/\overline{C},\overline{C}] [ 1/ C , C ] , and let Q = Q θ c Q = Q_{\theta_c} Q = Q θ c be the conjugate oracle defined before Lemma C.9 . Write k c = KL ( ρ , θ c ) k_c = \operatorname{KL}(\rho,\theta_c) k c = KL ( ρ , θ c ) and B c = Ω ∗ 1 / 2 Ω ρ ( θ c ) − 1 Ω ∗ 1 / 2 − I B_c = \Omega_*^{1/2}\Omega_\rho(\theta_c)^{-1}\Omega_*^{1/2} - I B c = Ω ∗ 1/2 Ω ρ ( θ c ) − 1 Ω ∗ 1/2 − I , and let d ρ d_\rho d ρ be as in Lemma C.9 . There are constants C C C and n 1 n_1 n 1 , depending only on K K K , C ‾ \overline{C} C , the prior and α \alpha α , such that for n ≥ n 1 n \ge n_1 n ≥ n 1 :
(a) KL ( Q , Π K ( ⋅ ∣ ρ ) ) ≤ d ρ 2 log ( α n ) + 1 2 ∑ h : V h ≠ ∅ log ∣ V h ∣ + C \operatorname{KL}(Q,\Pi_K(\cdot\mid\rho)) \le\frac{d_\rho}{2}\log(\alpha n) + \frac{1}{2}\sum_{h:\mathcal{V}_h\ne\varnothing}\log|\mathcal{V}_h| + C KL ( Q , Π K ( ⋅ ∣ ρ )) ≤ 2 d ρ log ( α n ) + 2 1 ∑ h : V h = ∅ log ∣ V h ∣ + C ;
(b) n E Q KL ( ρ , θ ) ≤ n k c + C ( 1 + k c ) / α n\mathbb{E}_Q\operatorname{KL}(\rho,\theta) \le nk_c + C(1+k_c)/\alpha n E Q KL ( ρ , θ ) ≤ n k c + C ( 1 + k c ) / α ;
(c) ∥ B Q − B c ∥ F ≤ C ( 1 + k c ) / ( α n ) \|B_Q-B_c\|_{\mathrm{F}} \le C(1+k_c)/(\alpha n) ∥ B Q − B c ∥ F ≤ C ( 1 + k c ) / ( α n ) .
Consequently,
U t ( K ) ≤ α n k c + d ρ 2 log ( α n ) + 1 2 ∑ h : V h ≠ ∅ log ∣ V h ∣ + α ( 2 n ( t + 1 ) + t + 1 ) ( 8 k c + 8 k c ) + C ( 1 + k c ) ( 1 + t / n + t / n ) . U_t(K) \le\alpha n k_c + \frac{d_\rho}{2}\log(\alpha n) + \frac{1}{2}\sum_{h:\mathcal{V}_h\ne\varnothing}\log|\mathcal{V}_h|
+ \alpha\bigl(\sqrt{2n(t+1)}+t+1\bigr)\bigl(\sqrt{8k_c}+8k_c\bigr)
+ C(1+k_c)\left(1+\sqrt{t/n}+t/n\right). U t ( K ) ≤ α n k c + 2 d ρ log ( α n ) + 2 1 h : V h = ∅ ∑ log ∣ V h ∣ + α ( 2 n ( t + 1 ) + t + 1 ) ( 8 k c + 8 k c ) + C ( 1 + k c ) ( 1 + t / n + t / n ) .
Lemma D.5 (Inverse-Wishart boundary penalty without dimension). Assume (E), let K > K ∗ K>K_* K > K ∗ , and let ρ ∈ F K \rho\in\mathcal{F}_K ρ ∈ F K have zero Rényi bias. Let v max ∗ v^*_{\max} v m a x ∗ be the largest residual variance of the truth over its non-empty blocks, c 0 ′ = min { c / 4 , 1 / ( 9 ( v max ∗ ) 2 ) } c'_0=\min\{c/4,1/(9(v^*_{\max})^2)\} c 0 ′ = min { c /4 , 1/ ( 9 ( v m a x ∗ ) 2 )} and ε n = ( n α ( 1 − α ) ) − 1 / 3 \varepsilon_n=(n\alpha(1-\alpha))^{-1/3} ε n = ( n α ( 1 − α ) ) − 1/3 . If ε n ≤ min { c / ( 16 ν K K ) , v max ∗ / 2 } \varepsilon_n\le\min\{c/(16\nu_KK),v^*_{\max}/2\} ε n ≤ min { c / ( 16 ν K K ) , v m a x ∗ /2 } , then E n ( K , ρ ) ≥ c 0 ′ ( n α ( 1 − α ) ) 1 / 3 − log 2 \mathcal{E}_n(K,\rho)\ge c'_0(n\alpha(1-\alpha))^{1/3}-\log2 E n ( K , ρ ) ≥ c 0 ′ ( n α ( 1 − α ) ) 1/3 − log 2 .
Results
With these lemmas, Proposition B.13 and Corollaries B.14 and B.15 take the following form. The only changes are that the constants do not depend on p 0 p_0 p 0 , and that the residual variances add a parameter cost of at most K ∗ + 1 2 log p 0 \frac{K_*+1}{2}\log p_0 2 K ∗ + 1 log p 0 .
Proposition D.6 (The curves in growing dimension). Assume ( E ′ ) (E') ( E ′ ) , ( F ′ ) (F') ( F ′ ) and ( W ′ ) (W') ( W ′ ) , take t = log n t=\log n t = log n , and use the conjugate oracles centered at θ K \theta_K θ K from ( W ′ ) ( i ) (W')(i) ( W ′ ) ( i ) for K < K ∗ K<K_* K < K ∗ and at θ ∗ \theta_* θ ∗ for K = K ∗ K=K_* K = K ∗ . There are constants C C C and n 0 n_0 n 0 , depending only on K ∗ K_* K ∗ , Φ ∗ \Phi_* Φ ∗ , v ∗ v_* v ∗ , β min \beta_{\min} β m i n , C ‾ \overline{C} C , N ‾ \overline{N} N , M ‾ \overline{M} M , the prior and α \alpha α , such that for n ≥ n 0 n\ge n_0 n ≥ n 0 :
(a) for K < K ∗ K<K_\ast K < K ∗ , L t ( K ) ≥ n α m K − C log n L_t(K)\ge n\alpha m_K-C\log n L t ( K ) ≥ n α m K − C log n , and, with k K = KL ( ρ K , θ K ) k_K=\operatorname{KL}(\rho_K,\theta_K) k K = KL ( ρ K , θ K ) ,
U t ( K ) ≤ n α k K + C { n log n ( k K + k K ) + log n + ( K + 1 ) log p 0 } . U_t(K)\le n\alpha k_K+C\left\{\sqrt{n\log n}\left(\sqrt{k_K}+k_K\right)+\log n+(K+1)\log p_0\right\}. U t ( K ) ≤ n α k K + C { n log n ( k K + k K ) + log n + ( K + 1 ) log p 0 } .
(b) at K = K ∗ K=K_\ast K = K ∗ , U t ( K ∗ ) ≤ d ∗ 2 log ( α n ) + 1 2 ∑ h : V h ∗ ≠ ∅ log ∣ V h ∗ ∣ + C U_t(K_\ast)\le\frac{d_\ast}{2}\log(\alpha n)+\frac{1}{2}\sum_{h:\mathcal{V}_h^\ast\ne\varnothing}\log|\mathcal{V}_h^\ast|+C U t ( K ∗ ) ≤ 2 d ∗ log ( α n ) + 2 1 ∑ h : V h ∗ = ∅ log ∣ V h ∗ ∣ + C ;
(c) for K > K ∗ K>K_\ast K > K ∗ , L t ( K ) ≥ min { c 0 ′ ( n α ( 1 − α ) ) 1 / 3 , n α β min } − C log n L_t(K)\ge\min\{c_0'(n\alpha(1-\alpha))^{1/3},n\alpha\beta_{\min}\}-C\log n L t ( K ) ≥ min { c 0 ′ ( n α ( 1 − α ) ) 1/3 , n α β m i n } − C log n .
Corollary D.7 (Selection in growing dimension). Assume ( E ′ ) (E') ( E ′ ) , ( F ′ ) (F') ( F ′ ) , ( W ′ ) (W') ( W ′ ) and ( D ) (D) ( D ) . Then, for all sufficiently large n n n ,
P ∗ ( K ^ = K ∗ , ρ ^ = ρ ∗ , and the search stops at K ∗ + 1 (or at M = K ∗ ) ) ≥ 1 − 2 K ∗ + 2 + N K ∗ n . P_\ast\left(\widehat K=K_\ast,\ \widehat\rho=\rho_\ast,\ \text{and the search stops at }K_\ast+1\text{ (or at }M=K_\ast)\right)\ge1-\frac{2K_\ast+2+N_{K_\ast}}{n}. P ∗ ( K = K ∗ , ρ = ρ ∗ , and the search stops at K ∗ + 1 (or at M = K ∗ ) ) ≥ 1 − n 2 K ∗ + 2 + N K ∗ .
Corollary D.8 (Rate in growing dimension). Assume ( E ′ ) (E') ( E ′ ) , ( F ′ ) (F') ( F ′ ) , ( W ′ ) (W') ( W ′ ) and ( D ) (D) ( D ) . With probability at least 1 − O ( 1 / n ) 1-O(1/n) 1 − O ( 1/ n ) ,
∫ R n ( ρ ^ , θ ) Q ^ ( d θ ) ≤ d ∗ 2 log n + 1 2 ∑ h : V h ∗ ≠ ∅ log ∣ V h ∗ ∣ + log n + log N t o t + C , \int R_n(\widehat\rho,\theta)\widehat Q(d\theta)\le\frac{d_\ast}{2}\log n+\frac{1}{2}\sum_{h:\mathcal{V}_h^\ast\ne\varnothing}\log|\mathcal{V}_h^\ast|+\log n+\log N_{\mathrm{tot}}+C, ∫ R n ( ρ , θ ) Q ( d θ ) ≤ 2 d ∗ log n + 2 1 h : V h ∗ = ∅ ∑ log ∣ V h ∗ ∣ + log n + log N tot + C , and for every sequence A n → ∞ A_n\to\infty A n → ∞ ,
Q ^ ( ∥ Ω ∗ − 1 / 2 Ω ρ ^ ( θ ) Ω ∗ − 1 / 2 − I ∥ F > A n d ∗ log n + ( K ∗ + 1 ) log p 0 n α ( 1 − α ) ) → 0 \widehat Q\left(\left\|\Omega_\ast^{-1/2}\Omega_{\widehat\rho}(\theta)\Omega_\ast^{-1/2}-I\right\|_F>A_n\sqrt{\frac{d_\ast\log n+(K_\ast+1)\log p_0}{n\alpha(1-\alpha)}}\right)\to0 Q ( Ω ∗ − 1/2 Ω ρ ( θ ) Ω ∗ − 1/2 − I F > A n n α ( 1 − α ) d ∗ log n + ( K ∗ + 1 ) log p 0 ) → 0 in probability.
The rate differs from that of Corollary B.15 only by the term ( K ∗ + 1 ) log p 0 (K_\ast+1)\log p_0 ( K ∗ + 1 ) log p 0 , which comes from the residual variances: each v h v_h v h is estimated from n ∣ V h ∣ n|\mathcal{V}_h| n ∣ V h ∣ entries, so its parameter cost is 1 2 log ( α n ∣ V h ∣ ) \frac{1}{2}\log(\alpha n|\mathcal{V}_h|) 2 1 log ( α n ∣ V h ∣ ) rather than 1 2 log ( α n ) \frac{1}{2}\log(\alpha n) 2 1 log ( α n ) . The relative Frobenius error is measured over all p 0 p_0 p 0 coordinates, and it is small even when p 0 ≫ n p_0\gg n p 0 ≫ n , because the model has only d ∗ d_\ast d ∗ parameters.
A simulation check
We check Corollaries D.7 and D.8 by simulation in the setting of Example D.1, with K ∗ = 5 K_\ast=5 K ∗ = 5 , b = 20 b=20 b = 20 , r = 0.3 r=0.3 r = 0.3 , α = 0.02 \alpha=0.02 α = 0.02 and p 0 = 2 n p_0=2n p 0 = 2 n for n ∈ { 500 , 1000 , 2000 , 5000 } n\in\{500,1000,2000,5000\} n ∈ { 500 , 1000 , 2000 , 5000 } , so that the background grows from 900 to 9900 variables. As the theory assumes, the data are not standardized, α \alpha α is fixed, and the candidates are fixed in advance: one path consisting of the five true communities followed by two communities of 20 background variables, so that M ‾ = 7 \overline{M}=7 M = 7 . With one path, the search proceeds along it; the ELBO is computed and compared as in Appendix § 9 , with an iteration limit of 3000. For each n n n we generate 50 data sets. The contraction of Q ^ \widehat Q Q is the mean of ∥ Ω ∗ − 1 / 2 Ω Ω ∗ − 1 / 2 − I ∥ F \|\Omega_\ast^{-1/2}\Omega\Omega_\ast^{-1/2}-I\|_F ∥ Ω ∗ − 1/2 Ω Ω ∗ − 1/2 − I ∥ F over 200 draws of Ω \Omega Ω from Q ^ \widehat Q Q , and we compare it with r n = { ( d ∗ log n + ( K ∗ + 1 ) log p 0 ) / ( n α ( 1 − α ) ) } 1 / 2 r_n=\{(d_\ast\log n+(K_\ast+1)\log p_0)/(n\alpha(1-\alpha))\}^{1/2} r n = {( d ∗ log n + ( K ∗ + 1 ) log p 0 ) / ( n α ( 1 − α )) } 1/2 , the rate of Corollary D.8, with d ∗ = 21 d_\ast=21 d ∗ = 21 . Both Ω ∗ \Omega_\ast Ω ∗ and Ω \Omega Ω are low rank plus diagonal, so the norm is computed from K × K K\times K K × K matrices and vectors of length p 0 p_0 p 0 , without forming p 0 × p 0 p_0\times p_0 p 0 × p 0 matrices.
In every data set the search returned the true partition and stopped at K = 6 K=6 K = 6 , as Corollary D.7 states. As n n n increased tenfold, and p 0 p_0 p 0 with it, the contraction decreased from 1.72 to 0.59, and its ratio to r n r_n r n stayed between 0.38 and 0.41; on the log scale, the contraction decreased with slope − 0.46 -0.46 − 0.46 in log n \log n log n , against − 0.43 -0.43 − 0.43 for r n r_n r n . This agrees with Corollary D.8. The posterior mean was also accurate, with an error that decreased from 0.35 to 0.10. In design S1 with p 0 = 2 n p_0=2n p 0 = 2 n (§ 4.1 ), by contrast, the data are standardized and the communities grow with n n n , and the error does not decrease.
Table 8. Simulation check of Corollaries D.7 and D.8 in the setting of Example D.1, with 50 data sets per row. Correct: proportion of data sets in which the selected partition is the true one. Stop at 6: proportion in which the search stopped at K = 6 K = 6 K = 6 . Contraction: mean of E Q ~ ∥ Ω ∗ − 1 / 2 Ω Ω ∗ − 1 / 2 − I ∥ F \mathbb{E}_{\widetilde{Q}}\lVert\Omega_*^{-1/2}\Omega\Omega_*^{-1/2}-I\rVert_F E Q ∥ Ω ∗ − 1/2 Ω Ω ∗ − 1/2 − I ∥ F . Ratio: contraction divided by r n ′ r'_n r n ′ . Posterior mean: the same norm for E Q ~ Ω \mathbb{E}_{\widetilde{Q}}\Omega E Q Ω , which has no guarantee in growing dimension.
Proofs
Proof of Lemma D.2
Proof. The h h h -th column of A ρ A_\rho A ρ is 1 V h = b h 1 / 2 u h \mathbf{1}_{\mathcal{V}_h}=b_h^{1/2}u_h 1 V h = b h 1/2 u h , so A ρ = U ρ D b 1 / 2 A_\rho=U_\rho D_b^{1/2} A ρ = U ρ D b 1/2 and A ρ Φ A ρ ⊤ = U ρ D b 1 / 2 Φ D b 1 / 2 U ρ ⊤ A_\rho\Phi A_\rho^\top=U_\rho D_b^{1/2}\Phi D_b^{1/2}U_\rho^\top A ρ Φ A ρ ⊤ = U ρ D b 1/2 Φ D b 1/2 U ρ ⊤ . For h ≥ 1 h\ge1 h ≥ 1 , the matrix u h u h ⊤ + P h u_hu_h^\top+P_h u h u h ⊤ + P h is the orthogonal projection onto the vectors supported on V h \mathcal{V}_h V h , so
D ρ ( τ ) = ∑ h = 1 K v h ( u h u h ⊤ + P h ) + v 0 P 0 . D_\rho(\tau)=\sum_{h=1}^{K}v_h(u_hu_h^\top+P_h)+v_0P_0. D ρ ( τ ) = h = 1 ∑ K v h ( u h u h ⊤ + P h ) + v 0 P 0 .
Adding the two displays gives the decomposition of Ω ρ ( θ ) \Omega_\rho(\theta) Ω ρ ( θ ) , and summing the projections gives U ρ U ρ ⊤ + ∑ h P h = I U_\rho U_\rho^\top+\sum_hP_h=I U ρ U ρ ⊤ + ∑ h P h = I . Since the ranges of U ρ U_\rho U ρ and of P 0 , … , P K P_0,\ldots,P_K P 0 , … , P K are mutually orthogonal, Ω ρ ( θ ) \Omega_\rho(\theta) Ω ρ ( θ ) acts as M ρ ( θ ) M_\rho(\theta) M ρ ( θ ) on the range of U ρ U_\rho U ρ and as v h v_h v h on the range of P h P_h P h , which gives the inverse and the determinant. □
Proof of Lemma D.3
Proof. Let β 1 , … , β p 0 > − 1 \beta_1,\ldots,\beta_{p_0}>-1 β 1 , … , β p 0 > − 1 be the eigenvalues of B B B . As in the proof of Lemma C.3,
2 k = tr ( Ω − 1 Ω ∗ ) − p 0 + log ∣ Ω ∣ − log ∣ Ω ∗ ∣ = ∑ i = 1 p 0 { β i − log ( 1 + β i ) } . 2k=\operatorname{tr}(\Omega^{-1}\Omega_*)-p_0+\log|\Omega|-\log|\Omega_*|=\sum_{i=1}^{p_0}\{\beta_i-\log(1+\beta_i)\}. 2 k = tr ( Ω − 1 Ω ∗ ) − p 0 + log ∣Ω∣ − log ∣ Ω ∗ ∣ = i = 1 ∑ p 0 { β i − log ( 1 + β i )} .
The function h ( β ) = β − log ( 1 + β ) = ∫ 0 β s / ( 1 + s ) d s h(\beta)=\beta-\log(1+\beta)=\int_0^\beta s/(1+s)\,ds h ( β ) = β − log ( 1 + β ) = ∫ 0 β s / ( 1 + s ) d s satisfies
h ( β ) ≥ β 2 4 for − 1 < β ≤ 1 , h ( β ) ≥ β 4 for β > 1. h(\beta)\ge\frac{\beta^2}{4}\quad\text{for }-1<\beta\le1,\qquad h(\beta)\ge\frac{\beta}{4}\quad\text{for }\beta>1. h ( β ) ≥ 4 β 2 for − 1 < β ≤ 1 , h ( β ) ≥ 4 β for β > 1.
because s / ( 1 + s ) ≥ s / 2 s/(1+s)\ge s/2 s / ( 1 + s ) ≥ s /2 for 0 ≤ s ≤ 1 0\le s\le1 0 ≤ s ≤ 1 , − s / ( 1 + s ) ≥ − s -s/(1+s)\ge-s − s / ( 1 + s ) ≥ − s for − 1 < s < 0 -1<s<0 − 1 < s < 0 , h ( 1 ) = 1 − log 2 ≥ 1 / 4 h(1)=1-\log2\ge1/4 h ( 1 ) = 1 − log 2 ≥ 1/4 , and s / ( 1 + s ) ≥ 1 / 2 s/(1+s)\ge1/2 s / ( 1 + s ) ≥ 1/2 for s ≥ 1 s\ge1 s ≥ 1 . Therefore
∥ B ∥ F 2 = ∑ ∣ β i ∣ ≤ 1 β i 2 + ∑ β i > 1 β i 2 ≤ 4 ∑ i = 1 p 0 h ( β i ) + ( ∑ β i > 1 β i ) 2 ≤ 8 k + ( 8 k ) 2 , \lVert B\rVert_F^2=\sum_{|\beta_i|\le1}\beta_i^2+\sum_{\beta_i>1}\beta_i^2\le4\sum_{i=1}^{p_0}h(\beta_i)+\left(\sum_{\beta_i>1}\beta_i\right)^2\le8k+(8k)^2, ∥ B ∥ F 2 = ∣ β i ∣ ≤ 1 ∑ β i 2 + β i > 1 ∑ β i 2 ≤ 4 i = 1 ∑ p 0 h ( β i ) + β i > 1 ∑ β i 2 ≤ 8 k + ( 8 k ) 2 ,
where we use the first bound on h h h for the first sum, and the second bound on h h h , which gives ∑ β i > 1 β i ≤ 4 ∑ i h ( β i ) = 8 k \sum_{\beta_i>1}\beta_i\le4\sum_i h(\beta_i)=8k ∑ β i > 1 β i ≤ 4 ∑ i h ( β i ) = 8 k , for the second. Taking square roots gives the claim. □
Proof of Lemma D.4
Proof. Part (a). The expansions in the proof of Lemma C.9(a) hold for every p 0 p_0 p 0 , and their terms of order O ( 1 ) O(1) O ( 1 ) depend only on K K K , the prior and the bounds on Φ c \Phi_c Φ c and v c v_c v c . The only term that involves the block sizes is 1 2 log a ~ h \frac{1}{2}\log\widetilde{a}_h 2 1 log a h , and a ~ h = a τ + α n ∣ V h ∣ / 2 ≤ α n ∣ V h ∣ \widetilde{a}_h = a_\tau+ \alpha n\lvert\mathcal{V}_h\rvert/2 \le\alpha n\lvert\mathcal{V}_h\rvert a h = a τ + α n ∣ V h ∣ /2 ≤ α n ∣ V h ∣ when α n ≥ 2 a τ \alpha n \ge2a_\tau α n ≥ 2 a τ . The factor of an empty background contributes O ( 1 ) O(1) O ( 1 ) . This gives (a).
Part (b). Write M = M ρ ( θ ) M = M_\rho(\theta) M = M ρ ( θ ) , M c = M ρ ( θ c ) M_c = M_\rho(\theta_c) M c = M ρ ( θ c ) and M ∗ = U ρ T Ω ∗ U ρ M_* = U_\rho^{\mathsf{T}}\Omega_*U_\rho M ∗ = U ρ T Ω ∗ U ρ , and let Λ = M c − 1 / 2 M ∗ M c − 1 / 2 \Lambda= M_c^{-1/2}M_*M_c^{-1/2} Λ = M c − 1/2 M ∗ M c − 1/2 . For each block with r h ≥ 1 r_h \ge1 r h ≥ 1 , let ω h = tr ( P h Ω ∗ ) \omega_h = \operatorname{tr}(P_h\Omega_*) ω h = tr ( P h Ω ∗ ) and x h = τ c , h ω h / r h x_h = \tau_{c,h}\omega_h/r_h x h = τ c , h ω h / r h , the ratio of the average variance of the truth on the range of P h P_h P h to v c , h v_{c,h} v c , h . By Lemma D.2, for every θ \theta θ ,
2 KL ( ρ , θ ) = tr ( M − 1 M ∗ ) + log ∣ M ∣ + ∑ h = 0 K ( τ h ω h − r h log τ h ) − p 0 − log ∣ Ω ∗ ∣ . (41) 2\operatorname{KL}(\rho,\theta) = \operatorname{tr}(M^{-1}M_*) + \log\lvert M\rvert+ \sum_{h=0}^{K}(\tau_h\omega_h-r_h\log\tau_h)-p_0-\log\lvert\Omega_*\rvert. \tag*{(41)} 2 KL ( ρ , θ ) = tr ( M − 1 M ∗ ) + log ∣ M ∣ + h = 0 ∑ K ( τ h ω h − r h log τ h ) − p 0 − log ∣ Ω ∗ ∣ . (41)
We first bound Λ \Lambda Λ and x h x_h x h in terms of k c k_c k c . By Fischer’s inequality, log ∣ Ω ∗ ∣ \log\lvert\Omega_*\rvert log ∣ Ω ∗ ∣ is at most the sum of the log-determinants of the diagonal blocks of Ω ∗ \Omega_* Ω ∗ in the decomposition of Lemma D.2, and by the arithmetic–geometric mean inequality, the log-determinant of the block on the range of P h P_h P h is at most r h log ( ω h / r h ) r_h\log(\omega_h/r_h) r h log ( ω h / r h ) . Inserting these bounds into (41) at θ = θ c \theta=\theta_c θ = θ c and using p 0 = K + ∑ h r h p_0=K+\sum_h r_h p 0 = K + ∑ h r h , we obtain
2 k c ≥ ∑ i = 1 K ( λ i − 1 − log λ i ) + ∑ h : r h ≥ 1 r h ( x h − 1 − log x h ) , 2k_c \ge\sum_{i=1}^{K}(\lambda_i-1-\log\lambda_i)+\sum_{h:r_h\ge1}r_h(x_h-1-\log x_h), 2 k c ≥ i = 1 ∑ K ( λ i − 1 − log λ i ) + h : r h ≥ 1 ∑ r h ( x h − 1 − log x h ) ,
where λ 1 , … , λ K \lambda_1,\ldots,\lambda_K λ 1 , … , λ K are the eigenvalues of Λ \Lambda Λ . Every summand is non-negative, and y ≤ 2 + 2 ( y − 1 − log y ) y\le2+2(y-1-\log y) y ≤ 2 + 2 ( y − 1 − log y ) for y > 0 y>0 y > 0 because log y ≤ y / 2 \log y\le y/2 log y ≤ y /2 . Hence
∥ Λ ∥ o p ≤ 2 + 4 k c , x h ≤ 2 + 4 k c . (42) \lVert\Lambda\rVert_{\mathrm{op}}\le2+4k_c,\qquad x_h\le2+4k_c. \tag*{(42)} ∥ Λ ∥ op ≤ 2 + 4 k c , x h ≤ 2 + 4 k c . (42)
We next bound the residual-variance terms of (41). Under Q Q Q , v c , h τ h ∼ Gamma ( a ~ h , a ~ h − 1 ) v_{c,h}\tau_h\sim\operatorname{Gamma}(\widetilde{a}_h,\widetilde{a}_h-1) v c , h τ h ∼ Gamma ( a h , a h − 1 ) , so E Q τ h = τ c , h a ~ h / ( a ~ h − 1 ) \mathbb{E}_Q\tau_h=\tau_{c,h}\widetilde{a}_h/(\widetilde{a}_h-1) E Q τ h = τ c , h a h / ( a h − 1 ) and E Q log τ h = log τ c , h + ψ ( a ~ h ) − log ( a ~ h − 1 ) ≥ log τ c , h \mathbb{E}_Q\log\tau_h=\log\tau_{c,h}+\psi(\widetilde{a}_h)-\log(\widetilde{a}_h-1)\ge\log\tau_{c,h} E Q log τ h = log τ c , h + ψ ( a h ) − log ( a h − 1 ) ≥ log τ c , h , where the inequality uses ψ ( a ) > log a − 1 / a ≥ log ( a − 1 ) \psi(a)>\log a-1/a\ge\log(a-1) ψ ( a ) > log a − 1/ a ≥ log ( a − 1 ) . Therefore
E Q ( τ h ω h − r h log τ h ) − ( τ c , h ω h − r h log τ c , h ) ≤ τ c , h ω h a ~ h − 1 = r h x h a ~ h − 1 ≤ 2 x h α n , \mathbb{E}_Q\left(\tau_h\omega_h-r_h\log\tau_h\right)-\left(\tau_{c,h}\omega_h-r_h\log\tau_{c,h}\right)\le\frac{\tau_{c,h}\omega_h}{\widetilde{a}_h-1}=\frac{r_hx_h}{\widetilde{a}_h-1}\le\frac{2x_h}{\alpha n}, E Q ( τ h ω h − r h log τ h ) − ( τ c , h ω h − r h log τ c , h ) ≤ a h − 1 τ c , h ω h = a h − 1 r h x h ≤ α n 2 x h ,
where the last inequality uses r h ≤ ∣ V h ∣ r_h\le\lvert\mathcal{V}_h\rvert r h ≤ ∣ V h ∣ and a ~ h − 1 ≥ α n ∣ V h ∣ / 2 \widetilde{a}_h-1\ge\alpha n\lvert\mathcal{V}_h\rvert/2 a h − 1 ≥ α n ∣ V h ∣ /2 , which holds because a τ > 1 a_\tau>1 a τ > 1 .
We then bound the community term of (41). Let Ξ = M c − 1 / 2 ( M − M c ) M c − 1 / 2 \Xi=M_c^{-1/2}(M-M_c)M_c^{-1/2} Ξ = M c − 1/2 ( M − M c ) M c − 1/2 , so that M = M c 1 / 2 ( I + Ξ ) M c 1 / 2 M=M_c^{1/2}(I+\Xi)M_c^{1/2} M = M c 1/2 ( I + Ξ ) M c 1/2 . Since M ρ ( θ ) M_\rho(\theta) M ρ ( θ ) is affine in ( Φ , v ) (\Phi,v) ( Φ , v ) and the oracle satisfies E Q Φ = Φ c \mathbb{E}_Q\Phi=\Phi_c E Q Φ = Φ c and E Q v = v c \mathbb{E}_Qv=v_c E Q v = v c , we have E Q Ξ = 0 \mathbb{E}_Q\Xi=0 E Q Ξ = 0 . Using ( I + Ξ ) − 1 = I − Ξ + Ξ ( I + Ξ ) − 1 Ξ (I+\Xi)^{-1}=I-\Xi+\Xi(I+\Xi)^{-1}\Xi ( I + Ξ ) − 1 = I − Ξ + Ξ ( I + Ξ ) − 1 Ξ ,
tr ( M − 1 M ∗ ) + log ∣ M ∣ − tr ( M c − 1 M ∗ ) − log ∣ M c ∣ = − tr ( Ξ Λ ) + tr ( Ξ ( I + Ξ ) − 1 Ξ Λ ) + log ∣ I + Ξ ∣ ≤ − tr ( Ξ Λ ) + tr ( Ξ ) + ∥ Λ ∥ o p ∥ Ξ ∥ F 2 λ min ( I + Ξ ) , \begin{aligned}
&\operatorname{tr}(M^{-1}M_*)+\log\lvert M\rvert-\operatorname{tr}(M_c^{-1}M_*)-\log\lvert M_c\rvert\\
&=-\operatorname{tr}(\Xi\Lambda)+\operatorname{tr}\bigl(\Xi(I+\Xi)^{-1}\Xi\Lambda\bigr)+\log\lvert I+\Xi\rvert\\
&\le-\operatorname{tr}(\Xi\Lambda)+\operatorname{tr}(\Xi)+\lVert\Lambda\rVert_{\mathrm{op}}\frac{\lVert\Xi\rVert_F^2}{\lambda_{\min}(I+\Xi)},
\end{aligned} tr ( M − 1 M ∗ ) + log ∣ M ∣ − tr ( M c − 1 M ∗ ) − log ∣ M c ∣ = − tr ( ΞΛ ) + tr ( Ξ ( I + Ξ ) − 1 ΞΛ ) + log ∣ I + Ξ ∣ ≤ − tr ( ΞΛ ) + tr ( Ξ ) + ∥ Λ ∥ op λ m i n ( I + Ξ ) ∥ Ξ ∥ F 2 ,
where we use log ∣ I + Ξ ∣ ≤ tr ( Ξ ) \log\lvert I+\Xi\rvert\le\operatorname{tr}(\Xi) log ∣ I + Ξ ∣ ≤ tr ( Ξ ) for the inequality. The first two terms of the last line have mean zero under Q Q Q . For the third, let Δ Φ = Φ c − 1 / 2 ( Φ − Φ c ) Φ c − 1 / 2 \Delta_\Phi=\Phi_c^{-1/2}(\Phi-\Phi_c)\Phi_c^{-1/2} Δ Φ = Φ c − 1/2 ( Φ − Φ c ) Φ c − 1/2 and Δ v = ( v h / v c , h − 1 ) h = 1 K \Delta_v=(v_h/v_{c,h}-1)_{h=1}^{K} Δ v = ( v h / v c , h − 1 ) h = 1 K . Since M c ⪰ D b 1 / 2 Φ c D b 1 / 2 M_c\succeq D_b^{1/2}\Phi_cD_b^{1/2} M c ⪰ D b 1/2 Φ c D b 1/2 and M c ⪰ diag ( v c , 1 , … , v c , K ) M_c\succeq\operatorname{diag}(v_{c,1},\ldots,v_{c,K}) M c ⪰ diag ( v c , 1 , … , v c , K ) ,
∥ Ξ ∥ F ≤ ∥ Δ Φ ∥ F + ∥ Δ v ∥ 2 , λ min ( I + Ξ ) ≥ λ Q : = min { λ min ( I + Δ Φ ) , min h ≥ 1 v h v c , h } . \lVert\Xi\rVert_F\le\lVert\Delta_\Phi\rVert_F+\lVert\Delta_v\rVert_2,\qquad\lambda_{\min}(I+\Xi)\ge\lambda_Q:=\min\left\{\lambda_{\min}(I+\Delta_\Phi),\min_{h\ge1}\frac{v_h}{v_{c,h}}\right\}. ∥ Ξ ∥ F ≤ ∥ Δ Φ ∥ F + ∥ Δ v ∥ 2 , λ m i n ( I + Ξ ) ≥ λ Q := min { λ m i n ( I + Δ Φ ) , h ≥ 1 min v c , h v h } .
Under Q Q Q , Φ c − 1 / 2 Φ Φ c − 1 / 2 ∼ IW K ( ν ~ , ( ν ~ − K − 1 ) I ) \Phi_c^{-1/2}\Phi\Phi_c^{-1/2} \sim\operatorname{IW}_K(\tilde{\nu},(\tilde{\nu}-K-1)I) Φ c − 1/2 Φ Φ c − 1/2 ∼ IW K ( ν ~ , ( ν ~ − K − 1 ) I ) and v c , h τ h ∼ Gamma ( a ~ h , a ~ h − 1 ) v_{c,h}\tau_h \sim\operatorname{Gamma}(\tilde{a}_h,\tilde{a}_h-1) v c , h τ h ∼ Gamma ( a ~ h , a ~ h − 1 ) , whose laws depend only on K K K , ν ~ \tilde{\nu} ν ~ and a ~ h \tilde{a}_h a ~ h . Standard moment bounds for these laws give E Q ( ∥ Δ Φ ∥ F + ∥ Δ v ∥ 2 ) 4 ≤ C ( α n ) − 2 \mathbb{E}_Q(\|\Delta_\Phi\|_F+\|\Delta_v\|_2)^4 \le C(\alpha n)^{-2} E Q ( ∥ Δ Φ ∥ F + ∥ Δ v ∥ 2 ) 4 ≤ C ( α n ) − 2 and E Q λ Q 2 ≤ C \mathbb{E}_Q\lambda_Q^2 \le C E Q λ Q 2 ≤ C . Hence, by the Cauchy–Schwarz inequality and (42) ,
E Q { tr ( M − 1 M ∗ ) + log ∣ M ∣ } − tr ( M c − 1 M ∗ ) − log ∣ M c ∣ ≤ ( 2 + 4 k c ) { E Q ( ∥ Δ Φ ∥ F + ∥ Δ v ∥ 2 ) 4 } 1 / 2 ( E Q λ Q 2 ) 1 / 2 ≤ C ( 1 + k c ) α n . \mathbb{E}_Q\left\{\operatorname{tr}(M^{-1}M_*)+\log|M| \right\}-\operatorname{tr}(M_c^{-1}M_*)-\log|M_c|
\le(2+4k_c)\left\{\mathbb{E}_Q(\|\Delta_\Phi\|_F+\|\Delta_v\|_2)^4\right\}^{1/2}(\mathbb{E}_Q\lambda_Q^2)^{1/2}
\le\frac{C(1+k_c)}{\alpha n}. E Q { tr ( M − 1 M ∗ ) + log ∣ M ∣ } − tr ( M c − 1 M ∗ ) − log ∣ M c ∣ ≤ ( 2 + 4 k c ) { E Q ( ∥ Δ Φ ∥ F + ∥ Δ v ∥ 2 ) 4 } 1/2 ( E Q λ Q 2 ) 1/2 ≤ α n C ( 1 + k c ) .
Combining the last two bounds with (41) and (42) gives 2 { E Q KL ( ρ , θ ) − k c } ≤ C ( 1 + k c ) / ( α n ) 2\{\mathbb{E}_Q\operatorname{KL}(\rho,\theta)-k_c\}\le C(1+k_c)/(\alpha n) 2 { E Q KL ( ρ , θ ) − k c } ≤ C ( 1 + k c ) / ( α n ) , which is (b).
Part (c). By Lemma D.2 , E Q Ω ρ ( θ ) − 1 − Ω ρ ( θ c ) − 1 = U ρ Y U ρ ⊤ + ∑ h ( E Q τ h − τ c , h ) P h \mathbb{E}_Q\Omega_\rho(\theta)^{-1}-\Omega_\rho(\theta_c)^{-1}=U_\rho YU_\rho^\top+\sum_h(\mathbb{E}_Q\tau_h-\tau_{c,h})P_h E Q Ω ρ ( θ ) − 1 − Ω ρ ( θ c ) − 1 = U ρ Y U ρ ⊤ + ∑ h ( E Q τ h − τ c , h ) P h with Y = E Q M − 1 − M c − 1 Y=\mathbb{E}_QM^{-1}-M_c^{-1} Y = E Q M − 1 − M c − 1 . By the triangle inequality,
∥ B Q − B c ∥ F ≤ ∥ Ω ∗ 1 / 2 U ρ Y U ρ ⊤ Ω ∗ 1 / 2 ∥ F + ∑ h ( E Q τ h − τ c , h ) ∥ Ω ∗ 1 / 2 P h Ω ∗ 1 / 2 ∥ F . \|B_Q-B_c\|_F\le\|\Omega_*^{1/2}U_\rho YU_\rho^\top\Omega_*^{1/2}\|_F+\sum_h(\mathbb{E}_Q\tau_h-\tau_{c,h})\|\Omega_*^{1/2}P_h\Omega_*^{1/2}\|_F. ∥ B Q − B c ∥ F ≤ ∥ Ω ∗ 1/2 U ρ Y U ρ ⊤ Ω ∗ 1/2 ∥ F + h ∑ ( E Q τ h − τ c , h ) ∥ Ω ∗ 1/2 P h Ω ∗ 1/2 ∥ F .
For each h h h , ∥ Ω ∗ 1 / 2 P h Ω ∗ 1 / 2 ∥ F ≤ tr ( P h Ω ∗ ) = ω h \|\Omega_*^{1/2}P_h\Omega_*^{1/2}\|_F\le\operatorname{tr}(P_h\Omega_*)=\omega_h ∥ Ω ∗ 1/2 P h Ω ∗ 1/2 ∥ F ≤ tr ( P h Ω ∗ ) = ω h and E Q τ h − τ c , h = τ c , h / ( a ~ h − 1 ) \mathbb{E}_Q\tau_h-\tau_{c,h}=\tau_{c,h}/(\tilde{a}_h-1) E Q τ h − τ c , h = τ c , h / ( a ~ h − 1 ) , so the summand is at most r h x h / ( a ~ h − 1 ) ≤ 2 ( 2 + 4 k c ) / ( α n ) r_hx_h/(\tilde{a}_h-1)\le2(2+4k_c)/(\alpha n) r h x h / ( a ~ h − 1 ) ≤ 2 ( 2 + 4 k c ) / ( α n ) by (42) . For the first term, write Y ~ = M c 1 / 2 Y M c 1 / 2 = E Q { ( I + Ξ ) − 1 } − I = E Q { Ξ ( I + Ξ ) − 1 Ξ } \widetilde{Y}=M_c^{1/2}YM_c^{1/2}=\mathbb{E}_Q\{(I+\Xi)^{-1}\}-I=\mathbb{E}_Q\{\Xi(I+\Xi)^{-1}\Xi\} Y = M c 1/2 Y M c 1/2 = E Q {( I + Ξ ) − 1 } − I = E Q { Ξ ( I + Ξ ) − 1 Ξ } , where we use E Q Ξ = 0 \mathbb{E}_Q\Xi=0 E Q Ξ = 0 . Then
∥ Ω ∗ 1 / 2 U ρ Y U ρ ⊤ Ω ∗ 1 / 2 ∥ F 2 = tr ( Y M ∗ Y M ∗ ) = tr ( Y ~ Λ Y ~ Λ ) ≤ ∥ Λ ∥ op 2 ∥ Y ~ ∥ F 2 , \|\Omega_*^{1/2}U_\rho YU_\rho^\top\Omega_*^{1/2}\|_F^2=\operatorname{tr}(YM_*YM_*)=\operatorname{tr}(\widetilde{Y}\Lambda\widetilde{Y}\Lambda)\le\|\Lambda\|_{\operatorname{op}}^2\|\widetilde{Y}\|_F^2, ∥ Ω ∗ 1/2 U ρ Y U ρ ⊤ Ω ∗ 1/2 ∥ F 2 = tr ( Y M ∗ Y M ∗ ) = tr ( Y Λ Y Λ ) ≤ ∥Λ ∥ op 2 ∥ Y ∥ F 2 ,
and ∥ Y ~ ∥ F ≤ E Q { ∥ Ξ ∥ F 2 / λ min ( I + Ξ ) } ≤ C / ( α n ) \|\widetilde{Y}\|_F\le\mathbb{E}_Q\{\|\Xi\|_F^2/\lambda_{\min}(I+\Xi)\}\le C/(\alpha n) ∥ Y ∥ F ≤ E Q { ∥Ξ ∥ F 2 / λ m i n ( I + Ξ )} ≤ C / ( α n ) by the moment bounds above. Together with (42) , this gives (c).
Finally, inserting (a)–(c) into the definition of U t ( K ) U_t(K) U t ( K ) and bounding ∥ B c ∥ F \|B_c\|_F ∥ B c ∥ F by Lemma D.3 gives the bound on the upper curve.
Proof of Lemma D.5
Proof. We follow the proof of Lemma C.8 and only change the bound on the second term of (40) . Let λ min ( Φ ) ≥ ε \lambda_{\min}(\Phi)\ge\varepsilon λ m i n ( Φ ) ≥ ε and L = Ω ∗ − 1 / 2 Ω ρ ( θ ) Ω ∗ − 1 / 2 L=\Omega_*^{-1/2}\Omega_\rho(\theta)\Omega_*^{-1/2} L = Ω ∗ − 1/2 Ω ρ ( θ ) Ω ∗ − 1/2 . If y y y is a unit vector with Ω ∗ y = s y \Omega_*y=sy Ω ∗ y = sy , then y ⊤ L y = y ⊤ Ω ρ ( θ ) y / s y^\top Ly=y^\top\Omega_\rho(\theta)y/s y ⊤ L y = y ⊤ Ω ρ ( θ ) y / s . We apply this to vectors in two eigenspaces of Ω ∗ \Omega_* Ω ∗ .
In the carve-out case of Lemma C.6 (iii), V a \mathcal{V}_a V a lies in the true background, and every unit vector supported on the true background is an eigenvector of Ω ∗ \Omega_* Ω ∗ with eigenvalue v 0 ∗ v_0^* v 0 ∗ . Take y 1 = ∣ V a ∣ − 1 / 2 1 V a y_1=|\mathcal{V}_a|^{-1/2}\mathbf{1}_{\mathcal{V}_a} y 1 = ∣ V a ∣ − 1/2 1 V a and a unit vector y 2 y_2 y 2 supported on V a \mathcal{V}_a V a whose entries sum to zero. Then
y 1 ⊤ L y 1 = ∣ V a ∣ Φ a a + v a v 0 ∗ , y 2 ⊤ L y 2 = v a v 0 ∗ , y_1^\top Ly_1=\frac{|\mathcal{V}_a|\Phi_{aa}+v_a}{v_0^*},\qquad y_2^\top Ly_2=\frac{v_a}{v_0^*}, y 1 ⊤ L y 1 = v 0 ∗ ∣ V a ∣ Φ aa + v a , y 2 ⊤ L y 2 = v 0 ∗ v a ,
so y 1 ⊤ L y 1 − y 2 ⊤ L y 2 = ∣ V a ∣ Φ a a / v 0 ∗ ≥ 2 ε / v 0 ∗ y_1^\top Ly_1-y_2^\top Ly_2=|\mathcal{V}_a|\Phi_{aa}/v_0^*\ge2\varepsilon/v_0^* y 1 ⊤ L y 1 − y 2 ⊤ L y 2 = ∣ V a ∣ Φ aa / v 0 ∗ ≥ 2 ε / v 0 ∗ , and one of the two Rayleigh quotients differs from 1 1 1 by at least ε / v 0 ∗ \varepsilon/v_0^* ε / v 0 ∗ .
In the split case, V a , V b ⊂ V h ∗ \mathcal{V}_a,\mathcal{V}_b\subset\mathcal{V}_h^* V a , V b ⊂ V h ∗ , and every unit vector supported on V h ∗ \mathcal{V}_h^* V h ∗ whose entries sum to zero is an eigenvector of Ω ∗ \Omega_* Ω ∗ with eigenvalue v h ∗ v_h^* v h ∗ . Take unit vectors y a y_a y a and y b y_b y b supported on V a \mathcal{V}_a V a and V b \mathcal{V}_b V b whose entries sum to zero, and let y a b = c a b ( ∣ V a ∣ − 1 1 V a − ∣ V b ∣ − 1 1 V b ) y_{ab}=c_{ab}(|\mathcal{V}_a|^{-1}\mathbf{1}_{\mathcal{V}_a}-|\mathcal{V}_b|^{-1}\mathbf{1}_{\mathcal{V}_b}) y ab = c ab ( ∣ V a ∣ − 1 1 V a − ∣ V b ∣ − 1 1 V b ) with c a b − 2 = ∣ V a ∣ − 1 + ∣ V b ∣ − 1 ≤ 1 c_{ab}^{-2}=|\mathcal{V}_a|^{-1}+|\mathcal{V}_b|^{-1}\le1 c ab − 2 = ∣ V a ∣ − 1 + ∣ V b ∣ − 1 ≤ 1 . Then y a ⊤ L y a = v a / v h ∗ y_a^\top Ly_a=v_a/v_h^* y a ⊤ L y a = v a / v h ∗ , y b ⊤ L y b = v b / v h ∗ y_b^\top Ly_b=v_b/v_h^* y b ⊤ L y b = v b / v h ∗ , and
y a b ⊤ L y a b = c a b 2 v h ∗ { ( e a − e b ) ⊤ Φ ( e a − e b ) + v a ∣ V a ∣ + v b ∣ V b ∣ } ≥ 2 ε + min { v a , v b } v h ∗ , y_{ab}^\top Ly_{ab}=\frac{c_{ab}^2}{v_h^*}\left\{(e_a-e_b)^\top\Phi(e_a-e_b)+\frac{v_a}{|\mathcal{V}_a|}+\frac{v_b}{|\mathcal{V}_b|}\right\}\ge\frac{2\varepsilon+\min\{v_a,v_b\}}{v_h^*}, y ab ⊤ L y ab = v h ∗ c ab 2 { ( e a − e b ) ⊤ Φ ( e a − e b ) + ∣ V a ∣ v a + ∣ V b ∣ v b } ≥ v h ∗ 2 ε + min { v a , v b } ,
where we use ( e a − e b ) ⊤ Φ ( e a − e b ) ≥ 2 ε (e_a-e_b)^\top\Phi(e_a-e_b)\ge2\varepsilon ( e a − e b ) ⊤ Φ ( e a − e b ) ≥ 2 ε and c a b ≥ 1 c_{ab}\ge1 c ab ≥ 1 . If min { v a , v b } ≤ v h ∗ − ε \min\{v_a,v_b\}\le v_h^*-\varepsilon min { v a , v b } ≤ v h ∗ − ε , then y a y_a y a or y b y_b y b gives a Rayleigh quotient at most 1 − ε / v h ∗ 1-\varepsilon/v_h^* 1 − ε / v h ∗ ; otherwise y a b ⊤ L y a b ≥ 1 + ε / v h ∗ y_{ab}^\top Ly_{ab}\ge1+\varepsilon/v_h^* y ab ⊤ L y ab ≥ 1 + ε / v h ∗ . In both cases ∥ L − I ∥ F ≥ ∥ L − I ∥ op ≥ ε / v max ∗ \lVert L-I\rVert_{F}\ge\lVert L-I\rVert_{\operatorname{op}}\ge\varepsilon/v^{*}_{\max} ∥ L − I ∥ F ≥ ∥ L − I ∥ op ≥ ε / v m a x ∗ , so Lemma C.4 gives, for ε ≤ v max ∗ / 2 \varepsilon\le v^{*}_{\max}/2 ε ≤ v m a x ∗ /2 ,
R n ( ρ , θ ) ≥ n 9 α ( 1 − α ) min { ε 2 ( v max ∗ ) 2 , 1 4 } = n α ( 1 − α ) ε 2 9 ( v max ∗ ) 2 . R_n(\rho,\theta)\ge\frac{n}{9}\alpha(1-\alpha)\min\left\{\frac{\varepsilon^2}{(v^{*}_{\max})^2},\frac{1}{4}\right\}=\frac{n\alpha(1-\alpha)\varepsilon^2}{9(v^{*}_{\max})^2}. R n ( ρ , θ ) ≥ 9 n α ( 1 − α ) min { ( v m a x ∗ ) 2 ε 2 , 4 1 } = 9 ( v m a x ∗ ) 2 n α ( 1 − α ) ε 2 .
This replaces the bound n α ( 1 − α ) ε 2 / ( 18 ∥ Ω ∗ ∥ op 2 ) n\alpha(1-\alpha)\varepsilon^2/(18\lVert\Omega_*\rVert_{\operatorname{op}}^2) n α ( 1 − α ) ε 2 / ( 18 ∥ Ω ∗ ∥ op 2 ) in the proof of Lemma C.8, and the rest of that proof applies with c 0 ′ c'_0 c 0 ′ in place of c 0 c_0 c 0 .
Proof of Proposition D.6
Proof. Part (a). The bound on L t ( K ) L_t(K) L t ( K ) follows as in the proof of Proposition B.13(a), since E n ( K ) ≥ n α m K \mathcal{E}_n(K)\ge n\alpha m_K E n ( K ) ≥ n α m K holds for every p 0 p_0 p 0 and N K ≤ N ‾ N_K\le\overline{N} N K ≤ N . The bound on U t ( K ) U_t(K) U t ( K ) follows from Lemma D.4 with ρ = ρ K \rho=\rho_K ρ = ρ K and θ c = θ K \theta_c=\theta_K θ c = θ K , whose constants depend only on K < K ∗ K<K_* K < K ∗ , C ‾ \overline{C} C , the prior and α \alpha α , together with ∑ h log ∣ V h ∣ ≤ ( K + 1 ) log p 0 \sum_h\log|\mathcal{V}_h|\le(K+1)\log p_0 ∑ h log ∣ V h ∣ ≤ ( K + 1 ) log p 0 .
Part (b). Lemma D.4 with ρ = ρ ∗ \rho=\rho_* ρ = ρ ∗ and θ c = θ ∗ \theta_c=\theta_* θ c = θ ∗ gives k c = 0 k_c=0 k c = 0 and B c = 0 B_c=0 B c = 0 , and d ρ ∗ = d ∗ d_{\rho_*}=d_* d ρ ∗ = d ∗ .
Part (c). Let K > K ∗ K>K_* K > K ∗ . If ρ ∈ F K \rho\in\mathcal{F}_K ρ ∈ F K has zero Rényi bias, Lemma D.5 applies once ε n ≤ min { c / ( 16 ν ˉ M ˉ M ˉ ) , v max ∗ / 2 } \varepsilon_n\le\min\{c/(16\bar{\nu}\bar{M}\bar{M}),v^*_{\max}/2\} ε n ≤ min { c / ( 16 ν ˉ M ˉ M ˉ ) , v m a x ∗ /2 } , a condition that does not involve p 0 p_0 p 0 . Otherwise E n ( K , ρ ) ≥ n α β min \mathcal{E}_n(K,\rho)\ge n\alpha\beta_{\min} E n ( K , ρ ) ≥ n α β m i n by (W′)(ii). Since L t ( K ) = E n ( K ) − log N K − log n L_t(K)=\mathcal{E}_n(K)-\log N_K-\log n L t ( K ) = E n ( K ) − log N K − log n and N K ≤ N ‾ N_K\le\overline{N} N K ≤ N , (c) follows.
Proof of Corollary D.7
Proof. We follow the proof of Corollary B.14 and only change the verification of the conditions of Theorems B.7 and B.8, which now uses Proposition D.6.
For E 1 \mathcal{E}_1 E 1 , let 1 ≤ K ≤ K ∗ − 1 1\le K\le K_*-1 1 ≤ K ≤ K ∗ − 1 . By (W′)(i), m K − 1 ≥ ( 1 + ϖ ) k K m_{K-1}\ge(1+\varpi)k_K m K − 1 ≥ ( 1 + ϖ ) k K , and since k K ≥ m K K L > m K k_K\ge m_K^{\mathrm{KL}}>m_K k K ≥ m K KL > m K , also m K − 1 ≥ ( 1 + ϖ ) m K m_{K-1}\ge(1+\varpi)m_K m K − 1 ≥ ( 1 + ϖ ) m K . Iterating this and using (W′)(ii), we get m K − 1 ≥ m K ∗ − 1 ≥ β min m_{K-1}\ge m_{K_*-1}\ge\beta_{\min} m K − 1 ≥ m K ∗ − 1 ≥ β m i n . Hence, by Proposition D.6(a),
L t ( K − 1 ) − U t ( K ) ≥ n α ( m K − 1 − k K ) − C { n log n ( k K + k K ) + log n + K ∗ log p 0 } ≥ ϖ 1 + ϖ n α m K − 1 − C { n log n ( m K − 1 + m K − 1 ) + log n + K ∗ log p 0 } , \begin{aligned}
L_t(K-1)-U_t(K)\ge n\alpha(m_{K-1}-k_K)-C\left\{\sqrt{n\log n}\left(\sqrt{k_K}+k_K\right)+\log n+K_*\log p_0\right\} \\
&\ge\frac{\varpi}{1+\varpi}n\alpha m_{K-1}
-C\left\{\sqrt{n\log n}\left(\sqrt{m_{K-1}}+m_{K-1}\right)+\log n+K_*\log p_0\right\},
\end{aligned} L t ( K − 1 ) − U t ( K ) ≥ n α ( m K − 1 − k K ) − C { n log n ( k K + k K ) + log n + K ∗ log p 0 } ≥ 1 + ϖ ϖ n α m K − 1 − C { n log n ( m K − 1 + m K − 1 ) + log n + K ∗ log p 0 } ,
where we use k K ≤ m K − 1 / ( 1 + ϖ ) k_K\le m_{K-1}/(1+\varpi) k K ≤ m K − 1 / ( 1 + ϖ ) for the second line. Dividing the last line by n α m K − 1 ≥ n α β min n\alpha m_{K-1}\ge n\alpha\beta_{\min} n α m K − 1 ≥ n α β m i n , we see that it is positive for large n n n , because log n / ( n β min ) \sqrt{\log n/(n\beta_{\min})} log n / ( n β m i n ) , log n / n \sqrt{\log n/n} log n / n and ( log n + K ∗ log p 0 ) / ( n β min ) (\log n+K_*\log p_0)/(n\beta_{\min}) ( log n + K ∗ log p 0 ) / ( n β m i n ) tend to zero by (D). For K = K ∗ K=K_* K = K ∗ , Proposition D.6(a) and (b) give L t ( K ∗ − 1 ) − U t ( K ∗ ) ≥ n α β min − C { log n + ( K ∗ + 1 ) log p 0 } > 0 L_t(K_*-1)-U_t(K_*)\ge n\alpha\beta_{\min}-C\{\log n+(K_*+1)\log p_0\}>0 L t ( K ∗ − 1 ) − U t ( K ∗ ) ≥ n α β m i n − C { log n + ( K ∗ + 1 ) log p 0 } > 0 for large n n n . Theorem B.7 then gives P ∗ ( E 1 c ) ≤ 2 K ∗ / n P_*(\mathcal{E}_1^c)\le2K_*/n P ∗ ( E 1 c ) ≤ 2 K ∗ / n .
For E 2 \mathcal{E}_2 E 2 , Proposition D.6(b) and (c), together with ∑ h log ∣ V h ∗ ∣ ≤ ( K ∗ + 1 ) log p 0 \sum_h\log|\mathcal{V}_h^*|\le(K_*+1)\log p_0 ∑ h log ∣ V h ∗ ∣ ≤ ( K ∗ + 1 ) log p 0 , give
L t ( K ∗ + 1 ) − U t ( K ∗ ) ≥ min { c 0 ′ ( n α ( 1 − α ) ) 1 / 3 , n α β min } − C { log n + ( K ∗ + 1 ) log p 0 } , L_t(K_*+1)-U_t(K_*)\ge\min\left\{c'_0\bigl(n\alpha(1-\alpha)\bigr)^{1/3},n\alpha\beta_{\min}\right\}-C\{\log n+(K_*+1)\log p_0\}, L t ( K ∗ + 1 ) − U t ( K ∗ ) ≥ min { c 0 ′ ( n α ( 1 − α ) ) 1/3 , n α β m i n } − C { log n + ( K ∗ + 1 ) log p 0 } ,
which is positive for large n n n by (D). Theorem B.8 then gives P ∗ ( E 2 c ) ≤ 2 / n P_*(\mathcal{E}_2^c)\le2/n P ∗ ( E 2 c ) ≤ 2/ n .
For E 3 \mathcal{E}_3 E 3 , every ρ ∈ F K ∗ ∖ { ρ ∗ } \rho\in\mathcal{F}_{K_*}\setminus\{\rho_*\} ρ ∈ F K ∗ ∖ { ρ ∗ } has a positive Rényi bias by Lemma C.7, which is at least β min \beta_{\min} β m i n by (W′)(ii). Since U t ( K ∗ ) ≤ C { log n + ( K ∗ + 1 ) log p 0 } < n α β min − log n U_t(K_*)\le C\{\log n+(K_*+1)\log p_0\}<n\alpha\beta_{\min}-\log n U t ( K ∗ ) ≤ C { log n + ( K ∗ + 1 ) log p 0 } < n α β m i n − log n for large n n n , the argument of Corollary B.14 gives P ∗ ( E 3 c ) ≤ N K ∗ / n P_*(\mathcal{E}_3^c)\le N_{K_*}/n P ∗ ( E 3 c ) ≤ N K ∗ / n .
Proof of Corollary D.8
Proof. We follow the proof of Corollary B.15. Theorem B.10 with k ∘ = K ∗ k^\circ=K_* k ∘ = K ∗ and t = log n t=\log n t = log n , together with P ∗ ( K s t o p < K ∗ ) ≤ P ∗ ( E 1 c ) = O ( 1 / n ) P_*(K_{\mathrm{stop}}<K_*)\le P_*(\mathcal{E}_1^c)=O(1/n) P ∗ ( K stop < K ∗ ) ≤ P ∗ ( E 1 c ) = O ( 1/ n ) and Proposition D.6(b), gives the first claim, where log ( α n ) ≤ log n \log(\alpha n) \le\log n log ( α n ) ≤ log n and log N t o t ≤ log { N ˉ ( M ˉ + 1 ) } \log N_{\mathrm{tot}} \le\log\{\bar{N}(\bar{M}+1)\} log N tot ≤ log { N ˉ ( M ˉ + 1 )} . For the second, the left-hand side is non-increasing in A n A_n A n , so we may assume that
ε = A n d ∗ log n + ( K ∗ + 1 ) log p 0 n α ( 1 − α ) ≤ 1 2 . \varepsilon= A_n \sqrt{\frac{d_* \log n + (K_*+1)\log p_0}{n\alpha(1-\alpha)}} \le\frac{1}{2}. ε = A n n α ( 1 − α ) d ∗ log n + ( K ∗ + 1 ) log p 0 ≤ 2 1 .
Taking this ε \varepsilon ε in Theorem B.10 , the right-hand side is, on the same event, at most
9 { ( d ∗ 2 + 1 ) log n + K ∗ + 1 2 log p 0 + C } A n 2 { d ∗ log n + ( K ∗ + 1 ) log p 0 } → 0 , \frac{9\left\{\left(\frac{d_*}{2}+1\right)\log n+\frac{K_*+1}{2}\log p_0+C\right\}}{A_n^2\{d_* \log n+(K_*+1)\log p_0\}} \to0, A n 2 { d ∗ log n + ( K ∗ + 1 ) log p 0 } 9 { ( 2 d ∗ + 1 ) log n + 2 K ∗ + 1 log p 0 + C } → 0 ,
where we use ∑ h log ∣ V h ∗ ∣ ≤ ( K ∗ + 1 ) log p 0 \sum_h \log|V_h^*| \le(K_*+1)\log p_0 ∑ h log ∣ V h ∗ ∣ ≤ ( K ∗ + 1 ) log p 0 . As this event has probability 1 − O ( 1 / n ) 1-O(1/n) 1 − O ( 1/ n ) , the left-hand side tends to 0 in probability.
Implementation details of the confirmatory step
The following coordinate-ascent updates provide the implementation details omitted from the main text. All loading moments are computed in the signed row-sum parameterization (11); no separate prior is placed on the primary loadings.
Shared factor-score and factor-covariance updates
The inverse-Wishart prior for Φ \Phi Φ is conjugate to the Gaussian factor scores, so its variational factor remains inverse-Wishart. Let
S f : = ∑ i = 1 n E q ( f i f i T ) = n V f + ∑ i = 1 n m i m i T S_f := \sum_{i=1}^{n}\mathbb{E}_q(f_i f_i^{\mathsf{T}})=nV_f+\sum_{i=1}^{n}m_i m_i^{\mathsf{T}} S f := i = 1 ∑ n E q ( f i f i T ) = n V f + i = 1 ∑ n m i m i T
denote the sum of the posterior second moments of the subject-specific factor scores. Then
q ( Φ ) = IW K ( ν Φ , Ψ Φ ) , ν Φ = ν Φ ( 0 ) + n , Ψ Φ = Ψ Φ ( 0 ) + S f . (43) q(\Phi)=\operatorname{IW}_K(\nu_\Phi,\Psi_\Phi), \qquad\nu_\Phi=\nu_\Phi^{(0)}+n,\qquad\Psi_\Phi=\Psi_\Phi^{(0)}+S_f. \tag*{(43)} q ( Φ ) = IW K ( ν Φ , Ψ Φ ) , ν Φ = ν Φ ( 0 ) + n , Ψ Φ = Ψ Φ ( 0 ) + S f . (43)
Consequently,
E q ( Φ ) = Ψ Φ ν Φ − K − 1 = ν 0 τ f I K + S f n + ν 0 , (44) \mathbb{E}_q(\Phi)=\frac{\Psi_\Phi}{\nu_\Phi-K-1}=\frac{\nu_0\tau_f I_K+S_f}{n+\nu_0}, \tag*{(44)} E q ( Φ ) = ν Φ − K − 1 Ψ Φ = n + ν 0 ν 0 τ f I K + S f , (44)
E q ( Φ − 1 ) = ν Φ Ψ Φ − 1 . (45) \mathbb{E}_q(\Phi^{-1})=\nu_\Phi\Psi_\Phi^{-1}. \tag*{(45)} E q ( Φ − 1 ) = ν Φ Ψ Φ − 1 . (45)
The first expression is the posterior mean factor covariance, whereas the second is the expected factor precision. They are not interchangeable: the factor-score update uses E q ( Φ − 1 ) \mathbb{E}_q(\Phi^{-1}) E q ( Φ − 1 ) , rather than E q ( Φ ) − 1 \mathbb{E}_q(\Phi)^{-1} E q ( Φ ) − 1 .
Writing λ ˉ j = E q ( λ j ) \bar{\lambda}_j=\mathbb{E}_q(\lambda_j) λ ˉ j = E q ( λ j ) , S λ j = E q ( λ j λ j T ) S_{\lambda j}=\mathbb{E}_q(\lambda_j\lambda_j^{\mathsf{T}}) S λj = E q ( λ j λ j T ) , and τ j = E q ( ψ j − 1 ) = a j / b j \tau_j=\mathbb{E}_q(\psi_j^{-1})=a_j/b_j τ j = E q ( ψ j − 1 ) = a j / b j , the subject-specific factor-score update is
V f = ( E q ( Φ − 1 ) + ∑ j = 1 p E q ( ψ j − 1 ) S λ j ) − 1 , (46) V_f=\left(\mathbb{E}_q(\Phi^{-1})+\sum_{j=1}^{p}\mathbb{E}_q(\psi_j^{-1})S_{\lambda j}\right)^{-1}, \tag*{(46)} V f = ( E q ( Φ − 1 ) + j = 1 ∑ p E q ( ψ j − 1 ) S λj ) − 1 , (46)
m i = V f ∑ j = 1 p E q ( ψ j − 1 ) x i j λ ˉ j . (47) m_i=V_f\sum_{j=1}^{p}\mathbb{E}_q(\psi_j^{-1})x_{ij}\bar{\lambda}_j. \tag*{(47)} m i = V f j = 1 ∑ p E q ( ψ j − 1 ) x ij λ ˉ j . (47)
The covariance V f V_f V f is shared across subjects, while m i m_i m i depends on the measurements for subject i i i . For gg-BFA (1f), the same score and factor-covariance formulas apply with λ ˉ j = e h j \bar{\lambda}_j=e_{h_j} λ ˉ j = e h j , S λ j = e h j e h j T S_{\lambda j}=e_{h_j}e_{h_j}^{\mathsf{T}} S λj = e h j e h j T , and τ j = E q ( v h j − 1 ) \tau_j=\mathbb{E}_q(v_{h_j}^{-1}) τ j = E q ( v h j − 1 ) .
Option-specific loading updates
mf loading update. For gg-BFA (mf), the loading update is most transparent after substituting the row-sum constraint into the likelihood:
x i j = f i , h j + ∑ k ≠ h j η j k ( f i k − f i , h j ) + ϵ i j . (48) x_{ij}=f_{i,h_j}+\sum_{k\ne h_j}\eta_{jk}(f_{ik}-f_{i,h_j})+\epsilon_{ij}. \tag*{(48)} x ij = f i , h j + k = h j ∑ η j k ( f ik − f i , h j ) + ϵ ij . (48)
For d i j k = f i k − f i , h j d_{ijk}=f_{ik}-f_{i,h_j} d ij k = f ik − f i , h j , define
T j k = ∑ i E q ( d i j k 2 ) , T_{jk}=\sum_i\mathbb{E}_q(d_{ijk}^{2}), T j k = i ∑ E q ( d ij k 2 ) ,
r j k = ∑ i E q [ d i j k { x i j − f i , h j − ∑ ℓ ≠ h j , k η ˉ j ℓ d i j ℓ } ] . r_{jk}=\sum_i\mathbb{E}_q\left[d_{ijk}\left\{x_{ij}-f_{i,h_j}-\sum_{\ell\ne h_j,k}\bar{\eta}_{j\ell}d_{ij\ell}\right\}\right]. r j k = i ∑ E q d ij k ⎩ ⎨ ⎧ x ij − f i , h j − ℓ = h j , k ∑ η ˉ j ℓ d ij ℓ ⎭ ⎬ ⎫ .
For a zero-mean Gaussian component with variance s c 2 s_c^2 s c 2 , its scalar update is
v j k c = { τ j T j k + s c − 2 } − 1 , u j k c = v j k c τ j r j k . (49) v_{jkc}=\left\{\tau_jT_{jk}+s_c^{-2}\right\}^{-1},\qquad u_{jkc}=v_{jkc}\tau_jr_{jk}. \tag*{(49)} v j k c = { τ j T j k + s c − 2 } − 1 , u j k c = v j k c τ j r j k . (49)
The two components use s 0 2 = σ s p i k e 2 s_0^2=\sigma_{\mathrm{spike}}^2 s 0 2 = σ spike 2 and s 1 2 = σ s l a b 2 s_1^2=\sigma_{\mathrm{slab}}^2 s 1 2 = σ slab 2 . With w 0 = 1 − π w_0=1-\pi w 0 = 1 − π and w 1 = π w_1=\pi w 1 = π , the cross-loading PIP is updated from the unnormalized posterior log weights of the two components,
log w ~ j k c = log w c − 1 2 log s c 2 + 1 2 log v j k c + 1 2 ( τ j r j k ) 2 v j k c , (50) \log\widetilde{w}_{jkc}=\log w_c-\frac{1}{2}\log s_c^2+\frac{1}{2}\log v_{jkc}+\frac{1}{2}(\tau_jr_{jk})^2v_{jkc}, \tag*{(50)} log w j k c = log w c − 2 1 log s c 2 + 2 1 log v j k c + 2 1 ( τ j r j k ) 2 v j k c , (50)
ρ j k = logit − 1 ( log w ~ j k 1 − log w ~ j k 0 ) . (51) \rho_{jk}=\operatorname{logit}^{-1}\left(\log\widetilde{w}_{jk1}-\log\widetilde{w}_{jk0}\right). \tag*{(51)} ρ j k = logit − 1 ( log w j k 1 − log w j k 0 ) . (51)
The free-coordinate posterior moments used elsewhere in the algorithm are
η ˉ j k = ( 1 − ρ j k ) u j k 0 + ρ j k u j k 1 , E q ( η j k 2 ) = ( 1 − ρ j k ) ( v j k 0 + u j k 0 2 ) + ρ j k ( v j k 1 + u j k 1 2 ) . \bar{\eta}_{jk}=(1-\rho_{jk})u_{jk0}+\rho_{jk}u_{jk1},\qquad\mathbb{E}_q(\eta_{jk}^2)=(1-\rho_{jk})(v_{jk0}+u_{jk0}^2)+\rho_{jk}(v_{jk1}+u_{jk1}^2). η ˉ j k = ( 1 − ρ j k ) u j k 0 + ρ j k u j k 1 , E q ( η j k 2 ) = ( 1 − ρ j k ) ( v j k 0 + u j k 0 2 ) + ρ j k ( v j k 1 + u j k 1 2 ) .
Under this option, the induced primary moments are
E q ( λ j , h j ) = 1 − ∑ k ≠ h j η ˉ j k , (52) \mathbb{E}_q(\lambda_{j,h_j})=1-\sum_{k\ne h_j}\bar{\eta}_{jk}, \tag*{(52)} E q ( λ j , h j ) = 1 − k = h j ∑ η ˉ j k , (52)
Var q ( λ j , h j ) = ∑ k ≠ h j Var q ( η j k ) , Cov q ( λ j , h j , η j k ) = − Var q ( η j k ) . (53) \operatorname{Var}_q(\lambda_{j,h_j})=\sum_{k\ne h_j}\operatorname{Var}_q(\eta_{jk}),\qquad\operatorname{Cov}_q(\lambda_{j,h_j},\eta_{jk})=-\operatorname{Var}_q(\eta_{jk}). \tag*{(53)} Var q ( λ j , h j ) = k = h j ∑ Var q ( η j k ) , Cov q ( λ j , h j , η j k ) = − Var q ( η j k ) . (53)
Consequently, q ( λ j ) q(\lambda_j) q ( λ j ) has a singular full covariance whose null direction is the vector of ones, exactly enforcing the signed row sum.
2f and 2f+s loading updates. For a candidate target k ≠ h j k\ne h_j k = h j , both structured options use the same single-direction regression
x i j = f i , h j + η j ( f i k − f i , h j ) + ϵ i j x_{ij}=f_{i,h_j}+\eta_j(f_{ik}-f_{i,h_j})+\epsilon_{ij} x ij = f i , h j + η j ( f ik − f i , h j ) + ϵ ij
and the Gaussian active-state moments in Eq. (49) with variance σ a 2 \sigma_a^2 σ a 2 . For gg-BFA (2f), the normalized row-state log probabilities combine this local Gaussian evidence with E q log ( 1 − θ h ) \mathbb{E}_q\log(1-\theta_h) E q log ( 1 − θ h ) for the no-overlap state and E q log θ h + E q log ω h k \mathbb{E}_q\log\theta_h+\mathbb{E}_q\log\omega_{hk} E q log θ h + E q log ω hk for target k k k . The conjugate global updates are
q ( θ h ) = Beta ( a θ + ∑ j ∈ B h Pr q ( s j ≠ 0 ) , b θ + ∑ j ∈ B h Pr q ( s j = 0 ) ) , (54) q(\theta_h)=\operatorname{Beta}\left(a_\theta+\sum_{j\in\mathcal{B}_h}\Pr_q(s_j\ne0),b_\theta+\sum_{j\in\mathcal{B}_h}\Pr_q(s_j=0)\right), \tag*{(54)} q ( θ h ) = Beta a θ + j ∈ B h ∑ q Pr ( s j = 0 ) , b θ + j ∈ B h ∑ q Pr ( s j = 0 ) , (54)
q ( ω h , − h ) = Dirichlet ( α ω , 1 + { ∑ j ∈ B h Pr q ( s j = k ) } k ≠ h ) . (55) q(\omega_{h,-h})=\operatorname{Dirichlet}\left(\alpha_{\omega,1}+\left\{\sum_{j\in\mathcal{B}_h}\Pr_q(s_j=k)\right\}_{k\ne h}\right). \tag*{(55)} q ( ω h , − h ) = Dirichlet α ω , 1 + ⎩ ⎨ ⎧ j ∈ B h ∑ q Pr ( s j = k ) ⎭ ⎬ ⎫ k = h . (55)
For gg-BFA (2f+s), the target evidence first produces the gate log-odds ℓ j \ell_j ℓ j in Eq. (31) ; the dynamic program then returns the exact marginal Pr q ( g j = 1 ) \Pr_q(g_j = 1) Pr q ( g j = 1 ) under the block budget, after which the Dirichlet target update uses the budgeted target responsibilities. Loading means and second moments are obtained by averaging e h j + η j ( e k − e h j ) e_{hj} + \eta_j (e_k - e_{hj}) e hj + η j ( e k − e hj ) over the mutually exclusive row states. Accordingly, both structured options retain the negative primary–target dependence required by Eq. (11) ; unlike the mf option, they also retain posterior dependence among competing target columns.
Residual variance and convergence
For gg-BFA (1f), the shared residual variance of community h h h has the update
q ( v h ) = IG ( a 0 + n ∣ B h ∣ 2 , b 0 + 1 2 ∑ i ∑ j ∈ B h { ( x i j − m i h ) 2 + ( V f ) h h } ) . (56) q(v_h) = \operatorname{IG}\left(a_0 + \frac{n|\mathcal{B}_h|}{2}, b_0 + \frac{1}{2}\sum_i\sum_{j\in\mathcal{B}_h}\left\{(x_{ij}-m_{ih})^2+(V_f)_{hh}\right\}\right). \tag*{(56)} q ( v h ) = IG a 0 + 2 n ∣ B h ∣ , b 0 + 2 1 i ∑ j ∈ B h ∑ { ( x ij − m ih ) 2 + ( V f ) hh } . (56)
For each learned-loading member, define R j = ∑ i E q [ ( x i j − λ j T f i ) 2 ] R_j=\sum_i\mathbb{E}_{q}[(x_{ij}-\lambda_j^\mathsf{T}f_i)^2] R j = ∑ i E q [( x ij − λ j T f i ) 2 ] . The residual update is
q ( ψ j ) = IG ( a j , b j ) , a j = a 0 + n 2 , b j = b 0 + R j 2 . (57) q(\psi_j)=\operatorname{IG}(a_j,b_j),\qquad a_j=a_0+\frac{n}{2},\qquad b_j=b_0+\frac{R_j}{2}. \tag*{(57)} q ( ψ j ) = IG ( a j , b j ) , a j = a 0 + 2 n , b j = b 0 + 2 R j . (57)
One iteration updates scores, q ( Φ ) q(\Phi) q ( Φ ) , the selected option’s loading states and amplitudes, induced loading moments, and residual variances, then evaluates the corresponding evidence lower bound. Iteration stops after the prescribed minimum number of iterations when the relative ELBO change is below tolerance; an ELBO decrease beyond numerical tolerance is treated as an error.
The implementation vectorizes the loading-moment and residual operations over variables and subjects; the shared score precision is only K × K K\times K K × K . The 2f option averages over K K K row states, while 2f+s additionally uses the blockwise dynamic program. Runtime for model fitting is recorded separately from posterior draws and masked-entry prediction.
Posterior covariance calculation
Write
Λ ˉ o = E q o ( Λ ) , ψ ˉ o = E q o ( ψ ) , Φ ˉ o = E q o ( Φ ) . \bar{\Lambda}_o=\mathbb{E}_{q_o}(\Lambda),\qquad\bar{\psi}_o=\mathbb{E}_{q_o}(\psi),\qquad\bar{\Phi}_o=\mathbb{E}_{q_o}(\Phi). Λ ˉ o = E q o ( Λ ) , ψ ˉ o = E q o ( ψ ) , Φ ˉ o = E q o ( Φ ) .
Because q ( Φ ) q(\Phi) q ( Φ ) and q o ( Λ ) q_o(\Lambda) q o ( Λ ) are separate variational blocks, the entrywise form of Eq. (33) is
( Ω ^ o ) j l = tr { Φ ˉ o E q o ( λ l λ j T ) } + 1 { j = l } ψ ˉ o , j . (\widehat{\Omega}_o)_{jl}=\operatorname{tr}\left\{\bar{\Phi}_o\mathbb{E}_{q_o}(\lambda_l\lambda_j^\mathsf{T})\right\}+\mathbf{1}\{j=l\}\bar{\psi}_{o,j}. ( Ω o ) j l = tr { Φ ˉ o E q o ( λ l λ j T ) } + 1 { j = l } ψ ˉ o , j .
Thus, the factor covariance enters through Φ ˉ o \bar{\Phi}_o Φ ˉ o , while the loadings enter through their joint second moments. When a variable has posterior mass on several loading states, this expression averages the covariance implied by each admissible state. It is generally different from the plug-in estimator Λ ˉ o Φ ˉ o Λ ˉ o T + diag ( ψ ˉ o ) \bar{\Lambda}_o\bar{\Phi}_o\bar{\Lambda}_o^\mathsf{T}+\operatorname{diag}(\bar{\psi}_o) Λ ˉ o Φ ˉ o Λ ˉ o T + diag ( ψ ˉ o ) , which combines alternative loading states in the posterior mean loading matrix before constructing the covariance.
Local variational prediction
For a new subject, hold the fitted global variational factors fixed and use the observed entries x O x_O x O to obtain
q ( f n e w ∣ x O ) = N ( m n e w , V n e w ) . q(f_{\mathrm{new}}\mid x_O)=\mathcal{N}(m_{\mathrm{new}},V_{\mathrm{new}}). q ( f new ∣ x O ) = N ( m new , V new ) .
Let D H D_H D H be the diagonal matrix of training-data scales for the masked variables, let Λ ˉ H = E q ( Λ H ) \bar{\Lambda}_H = \mathbb{E}_q(\Lambda_H) Λ ˉ H = E q ( Λ H ) , and define
M n e w = V n e w + m n e w m n e w T . M_{\mathrm{new}} = V_{\mathrm{new}} + m_{\mathrm{new}}m_{\mathrm{new}}^{\mathsf{T}}. M new = V new + m new m new T .
On the original measurement scale, the point prediction is
x ^ H V B = μ H + D H Λ ˉ H m n e w , (58) \widehat{x}_H^{\mathrm{VB}} = \mu_H + D_H\bar{\Lambda}_H m_{\mathrm{new}}, \tag*{(58)} x H VB = μ H + D H Λ ˉ H m new , (58)
and its predictive covariance is
V ^ H V B = D H [ E q { Λ H M n e w Λ H T } − ( Λ ˉ H m n e w ) ( Λ ˉ H m n e w ) T + diag { E q ( ψ H ) } ] D H . (59) \widehat{V}_H^{\mathrm{VB}} = D_H \left[\mathbb{E}_q\left\{\Lambda_H M_{\mathrm{new}}\Lambda_H^{\mathsf{T}}\right\} - (\bar{\Lambda}_H m_{\mathrm{new}})(\bar{\Lambda}_H m_{\mathrm{new}})^{\mathsf{T}} + \operatorname{diag}\{\mathbb{E}_q(\psi_H)\}\right]D_H. \tag*{(59)} V H VB = D H [ E q { Λ H M new Λ H T } − ( Λ ˉ H m new ) ( Λ ˉ H m new ) T + diag { E q ( ψ H )} ] D H . (59)
To obtain predictive intervals, draw
f n e w ( b ) ∼ q ( f n e w ∣ x O ) , ( Λ ( b ) , ψ ( b ) ) ∼ q ( Λ , ψ ) , f_{\mathrm{new}}^{(b)} \sim q(f_{\mathrm{new}} \mid x_O), \qquad(\Lambda^{(b)},\psi^{(b)}) \sim q(\Lambda,\psi), f new ( b ) ∼ q ( f new ∣ x O ) , ( Λ ( b ) , ψ ( b ) ) ∼ q ( Λ , ψ ) ,
followed by
z H ( b ) ∼ N ( Λ H ( b ) f n e w ( b ) , diag { ψ H ( b ) } ) , x H ( b ) = μ H + D H z H ( b ) . z_H^{(b)} \sim\mathcal{N}\left(\Lambda_H^{(b)}f_{\mathrm{new}}^{(b)},\operatorname{diag}\{\psi_H^{(b)}\}\right), \qquad x_H^{(b)} = \mu_H + D_H z_H^{(b)}. z H ( b ) ∼ N ( Λ H ( b ) f new ( b ) , diag { ψ H ( b ) } ) , x H ( b ) = μ H + D H z H ( b ) .
The interval endpoints are the 2.5th and 97.5th percentiles of { x H ( b ) } \{x_H^{(b)}\} { x H ( b ) } . The masked measurements do not enter the local update.
Defaults and interval conventions
Package defaults are a 0 = b 0 = 0.01 a_0=b_0=0.01 a 0 = b 0 = 0.01 , ν 0 = τ f = 1 \nu_0=\tau_f=1 ν 0 = τ f = 1 , π = 0.1 \pi=0.1 π = 0.1 , σ s p i k e 2 = 10 − 4 \sigma_{\mathrm{spike}}^2=10^{-4} σ spike 2 = 1 0 − 4 , σ s l a b 2 = σ a 2 = 0.25 \sigma_{\mathrm{slab}}^2=\sigma_a^2=0.25 σ slab 2 = σ a 2 = 0.25 , a θ = 1 a_\theta=1 a θ = 1 , b θ = 9 b_\theta=9 b θ = 9 , α ω = 1 \alpha_\omega=1 α ω = 1 , π g = 0.05 \pi_g=0.05 π g = 0.05 , κ = 0.1 \kappa=0.1 κ = 0.1 . The cross-loading simulation uses the residual prior IG ( 5 , 2 ) \operatorname{IG}(5,2) IG ( 5 , 2 ) instead. The variational fits allow at most 1,000 iterations, with relative-ELBO tolerance 10 − 6 10^{-6} 1 0 − 6 and at least five iterations. EFA uses its own likelihood criterion and at most 5,000 iterations in the real-data comparison. In the real-data analyses, the variables are standardized by their mean and their standard deviation with divisor n n n , computed from the training subjects in the held-out analyses and from all subjects in the full-data analyses, whose empirical covariance is S = X T X / n S=X^{\mathsf{T}}X/n S = X T X / n .
The package returns analytic marginal summaries where they are available and seeded posterior draws of the five posterior objects of Section 2.8. By default it summarizes the mixture distribution of a loading by a normal approximation; the two main simulations use the quantiles of the mixture itself. Quantiles of the factor covariance use inverse-Wishart draws. Real-data predictive intervals use the empirical quantiles of 5,000 draws per test subject, which we checked against 10,000 draws. All intervals come from the variational approximation, not from the exact posterior.
Evaluation metric definitions
This section gives the full definitions behind the evaluation map in Table 2 . Metrics are first computed within a simulation replicate or held-out fold and are then averaged across replicates or across the five folds. Monte Carlo standard errors use the replicate-level values; real-data tables report the fold mean together with the sample standard deviation or the range over folds. Throughout, p p p is the number of evaluated variables.
Structure recovery
In the structure simulations of Comparison 1 (§ 4.1 ), each procedure returns a number K ^ \widehat{K} K of communities or factors and a partition of the variables, and K ^ \widehat{K} K is averaged over the data sets. Accuracy is the proportion of data sets in which the selected partition equals the true one; a run that did not complete counts as incorrect. The adjusted Rand index [19 ] compares the selected and the true partitions over all variables, with the background treated as one block. The covariance difference
Cov F d = ∥ Ω ∗ − 1 / 2 Ω ^ Ω ∗ − 1 / 2 − I ∥ F \operatorname{Cov}^{d}_{F} = \left\lVert\Omega_{*}^{-1/2}\widehat{\Omega}\Omega_{*}^{-1/2} - I \right\rVert_{F} Cov F d = Ω ∗ − 1/2 Ω Ω ∗ − 1/2 − I F
compares the estimate Ω ^ \widehat{\Omega} Ω , the posterior mean for gg-BFA and the covariance of the fitted confirmatory model for the pipelines, with the population correlation matrix Ω ∗ \Omega_{*} Ω ∗ ; it is averaged over the completed runs.
Covariance and correlation recovery
In the simulations of Comparison 2, the population covariance Ω ∗ \Omega_{*} Ω ∗ is known. Let
R ∗ = D ∗ − 1 / 2 Ω ∗ D ∗ − 1 / 2 , R ^ = D ^ − 1 / 2 Ω ^ D ^ − 1 / 2 , R_{*} = D_{*}^{-1/2}\Omega_{*}D_{*}^{-1/2}, \qquad\widehat{R} = \widehat{D}^{-1/2}\widehat{\Omega}\widehat{D}^{-1/2}, R ∗ = D ∗ − 1/2 Ω ∗ D ∗ − 1/2 , R = D − 1/2 Ω D − 1/2 ,
where D ∗ = diag ( Ω ∗ ) D_{*} = \operatorname{diag}(\Omega_{*}) D ∗ = diag ( Ω ∗ ) and D ^ = diag ( Ω ^ ) \widehat{D} = \operatorname{diag}(\widehat{\Omega}) D = diag ( Ω ) . Off-diagonal correlation recovery is measured by
RMSE c o r = { 2 p ( p − 1 ) ∑ j < l ( R ^ j l − R ∗ , j l ) 2 } 1 / 2 , \operatorname{RMSE}_{\mathrm{cor}} = \left\{\frac{2}{p(p-1)}\sum_{j<l}\left(\widehat{R}_{jl}-R_{*,jl}\right)^{2}\right\}^{1/2}, RMSE cor = ⎩ ⎨ ⎧ p ( p − 1 ) 2 j < l ∑ ( R j l − R ∗ , j l ) 2 ⎭ ⎬ ⎫ 1/2 ,
and covariance recovery is measured by the relative Frobenius error
d F ( Ω ^ , Ω ∗ ) = ∥ Ω ^ − Ω ∗ ∥ F ∥ Ω ∗ ∥ F . d_{F}(\widehat{\Omega},\Omega_{*}) = \frac{\left\lVert\widehat{\Omega}-\Omega_{*}\right\rVert_{F}}{\left\lVert\Omega_{*}\right\rVert_{F}}. d F ( Ω , Ω ∗ ) = ∥ Ω ∗ ∥ F Ω − Ω ∗ F .
The former removes marginal scale; the latter retains it. Independent test observations provide the Gaussian negative log likelihood described below.
In real data, the population covariance is unknown. If S e v a l S_{\mathrm{eval}} S eval is the empirical covariance of the evaluation subjects, we use
d F ( Ω ^ , S e v a l ) = ∥ Ω ^ − S e v a l ∥ F ∥ S e v a l ∥ F . d_{F}(\widehat{\Omega},S_{\mathrm{eval}}) = \frac{\left\lVert\widehat{\Omega}-S_{\mathrm{eval}}\right\rVert_{F}}{\left\lVert S_{\mathrm{eval}}\right\rVert_{F}}. d F ( Ω , S eval ) = ∥ S eval ∥ F Ω − S eval F .
For the complete-data analysis, the fitted covariance and S e v a l S_{\mathrm{eval}} S eval use the same subjects, so this is a descriptive measure of reconstruction. For covariance generalization, the model is fitted to the training subjects and S e v a l S_{\mathrm{eval}} S eval uses only held-out subjects.
Let R ^ \widehat{R} R and R e v a l R_{\mathrm{eval}} R eval be the correlation matrices corresponding to Ω ^ \widehat{\Omega} Ω and S e v a l S_{\mathrm{eval}} S eval . Their off-diagonal standardized root mean square residual is
SRMR = { 2 p ( p − 1 ) ∑ j < l ( R ^ j l − R e v a l , j l ) 2 } 1 / 2 . \operatorname{SRMR}=\left\{\frac{2}{p(p-1)}\sum_{j<l}\left(\widehat{R}_{jl}-R_{\mathrm{eval},jl}\right)^2\right\}^{1/2}. SRMR = ⎩ ⎨ ⎧ p ( p − 1 ) 2 j < l ∑ ( R j l − R eval , j l ) 2 ⎭ ⎬ ⎫ 1/2 .
For held-out observations x 1 , … , x m x_1,\ldots,x_m x 1 , … , x m , the Gaussian negative log likelihood per variable is
NLL v a r = 1 2 m p ∑ i = 1 m { p log ( 2 π ) + log ∣ Ω ^ ∣ + ( x i − μ ^ ) T Ω ^ − 1 ( x i − μ ^ ) } . \operatorname{NLL}_{\mathrm{var}}=\frac{1}{2mp}\sum_{i=1}^{m}\left\{p\log(2\pi)+\log\left|\widehat{\Omega}\right|+\left(x_i-\widehat{\mu}\right)^{\mathsf{T}}\widehat{\Omega}^{-1}\left(x_i-\widehat{\mu}\right)\right\}. NLL var = 2 m p 1 i = 1 ∑ m { p log ( 2 π ) + log Ω + ( x i − μ ) T Ω − 1 ( x i − μ ) } .
where μ ^ \widehat{\mu} μ and every preprocessing quantity are estimated from the training subjects. A non-positive-definite covariance receives no NLL score; we do not repair it for scoring.
All methods use the same variables and subjects within a comparison. The main CFA comparison uses the variables assigned to the training-data community partition. In the complete retained-panel analysis, unassigned variables enter community-based estimates as residual-only coordinates and have zero fitted covariance with the selected variables.
Parameter recovery and interval calibration
Let I θ \mathcal{I}_{\theta} I θ denote the evaluated coordinates of a parameter θ \theta θ . Within simulation replicate b b b , we compute
RMSE b ( θ ) = { 1 ∣ I θ ∣ ∑ r ∈ I θ ( θ ^ b r − θ b r ) 2 } 1 / 2 , (60) \operatorname{RMSE}_{b}(\theta)=\left\{\frac{1}{|\mathcal{I}_{\theta}|}\sum_{r\in\mathcal{I}_{\theta}}\left(\widehat{\theta}_{br}-\theta_{br}\right)^2\right\}^{1/2}, \tag*{(60)} RMSE b ( θ ) = { ∣ I θ ∣ 1 r ∈ I θ ∑ ( θ b r − θ b r ) 2 } 1/2 , (60)
Coverage b ( θ ) = 1 ∣ I θ ∣ ∑ r ∈ I θ 1 { θ b r ∈ [ L b r , U b r ] } , (61) \operatorname{Coverage}_{b}(\theta)=\frac{1}{|\mathcal{I}_{\theta}|}\sum_{r\in\mathcal{I}_{\theta}}\mathbf{1}\{\theta_{br}\in[L_{br},U_{br}]\}, \tag*{(61)} Coverage b ( θ ) = ∣ I θ ∣ 1 r ∈ I θ ∑ 1 { θ b r ∈ [ L b r , U b r ]} , (61)
Width b ( θ ) = 1 ∣ I θ ∣ ∑ r ∈ I θ ( U b r − L b r ) . (62) \operatorname{Width}_{b}(\theta)=\frac{1}{|\mathcal{I}_{\theta}|}\sum_{r\in\mathcal{I}_{\theta}}(U_{br}-L_{br}). \tag*{(62)} Width b ( θ ) = ∣ I θ ∣ 1 r ∈ I θ ∑ ( U b r − L b r ) . (62)
We apply these definitions separately to loadings, factor covariance, factor scores, and residual variances.
For a binary cross-loading indicator, let ρ j k = Pr q ( γ j k = 1 ) \rho_{jk}=\Pr_q(\gamma_{jk}=1) ρ j k = Pr q ( γ j k = 1 ) . Its 95% equal-tail credible set is { 0 } \{0\} { 0 } when ρ j k ≤ 0.025 \rho_{jk}\leq0.025 ρ j k ≤ 0.025 , { 1 } \{1\} { 1 } when ρ j k ≥ 0.975 \rho_{jk}\geq0.975 ρ j k ≥ 0.975 , and { 0 , 1 } \{0,1\} { 0 , 1 } otherwise. Coverage is reported separately for active and inactive cross-loadings. Support recovery uses a 0.5 posterior-inclusion threshold to compute the true-positive and false-discovery rates.
Masked-measurement prediction
Masked values and their predictions are on the scale of the training-standardized data. Let M \mathcal{M} M be the set of masked subject–variable cells, y c y_c y c their observed values, y ^ c \widehat{y}_c y c their predictive means, and [ L c , U c ] [L_c, U_c] [ L c , U c ] their 95% predictive intervals. The pooled prediction summaries are
RMSE = { ∣ M ∣ − 1 ∑ c ∈ M ( y c − y ^ c ) 2 } 1 / 2 , \operatorname{RMSE} = \left\{|\mathcal{M}|^{-1}\sum_{c\in\mathcal{M}}(y_c-\hat{y}_c)^2\right\}^{1/2}, RMSE = { ∣ M ∣ − 1 c ∈ M ∑ ( y c − y ^ c ) 2 } 1/2 ,
MAE = ∣ M ∣ − 1 ∑ c ∈ M ∣ y c − y ^ c ∣ , \operatorname{MAE} = |\mathcal{M}|^{-1}\sum_{c\in\mathcal{M}}|y_c-\hat{y}_c|, MAE = ∣ M ∣ − 1 c ∈ M ∑ ∣ y c − y ^ c ∣ ,
Coverage 0.95 = ∣ M ∣ − 1 ∑ c ∈ M 1 { y c ∈ [ L c , U c ] } , \operatorname{Coverage}_{0.95} = |\mathcal{M}|^{-1}\sum_{c\in\mathcal{M}}1\{y_c\in[L_c,U_c]\}, Coverage 0.95 = ∣ M ∣ − 1 c ∈ M ∑ 1 { y c ∈ [ L c , U c ]} ,
Width 0.95 = ∣ M ∣ − 1 ∑ c ∈ M ( U c − L c ) . \operatorname{Width}_{0.95} = |\mathcal{M}|^{-1}\sum_{c\in\mathcal{M}}(U_c-L_c). Width 0.95 = ∣ M ∣ − 1 c ∈ M ∑ ( U c − L c ) .
Negative log predictive density is averaged over the same masked cells. The common Gaussian predictor uses its conditional Gaussian density. For the separate variational-posterior prediction, the reported NLPD uses a Gaussian density matched to the predictive mean and variance, while the interval endpoints are empirical quantiles of the joint predictive draws. Predictive coverage must be read together with interval width and NLPD. It concerns future observations and is distinct from the parameter coverage measured in simulation.
Loading complexity and computation
Loading complexity is summarized by the expected number of active cross-loadings per selected row, ∑ k ≠ h j E q γ j k \sum_{k\ne h_j}\mathbb{E}_q\gamma_{jk} ∑ k = h j E q γ j k , and by the density of the displayed posterior-mean loading matrix,
1 p K ∑ j , k 1 { ∣ E q λ j k ∣ > 0.05 } . \frac{1}{pK}\sum_{j,k}1\{|\mathbb{E}_q\lambda_{jk}|>0.05\}. p K 1 j , k ∑ 1 { ∣ E q λ j k ∣ > 0.05 } .
The displayed posterior mean may contain small entries in several target columns even when a posterior draw permits only one cross-loading. The 2 f + s 2f+s 2 f + s budget instead constrains the number of cross-loading rows within each community in every draw.
Runtime is recorded separately for community discovery, model fitting, covariance construction, posterior sampling, prediction, scoring, and I/O. Convergence status, iteration count, and peak memory accompany the timing results. The main GPU comparisons use estimator time—fitting plus covariance construction—because community discovery and evaluation are shared across methods.
Supplementary simulation evidence
This section gives the simulation specifications and results behind the summary in § 4.2 . It first gives the designs of the structure simulations of Comparison 1. For Comparison 2, it then gives the generating mechanisms, the results of the two main simulations (Sections G.3 and G.4), calibration and computation, variational bagging, and the stress test.
Additional details of the structure simulations
The structure simulations of Comparison 1 draw n n n independent observations from N p 0 ( 0 , Ω ∗ ) N_{p_0}(0,\Omega^*) N p 0 ( 0 , Ω ∗ ) through the factor representation, and every procedure uses the same data sets. In S1, the residual variance of community h h h is ( 1 − r h ) / r h (1-r_h)/r_h ( 1 − r h ) / r h , where r h r_h r h is its within-community correlation, and with p 0 = 2 n p_0=2n p 0 = 2 n the communities contain 15, 13, 11, 9, and 7% of the variables, rounded to integers.
The following numbers support the summary in § 4.1 . In S1, the exploratory step missed the true partition only in data sets in which it was not among the candidates, and it then returned five communities with adjusted Rand index at least 0.98. The mean error of the exploratory step was within 0.03 of the oracle error. With p 0 = 200 p_0=200 p 0 = 200 , the error multiplied by n 1 / 2 n^{1/2} n 1/2 stayed between 8.1 and 9.2; with α \alpha α set to the average α 0 \alpha_0 α 0 , the error was between 0.28 r n 0.28r_n 0.28 r n and 0.34 r n 0.34r_n 0.34 r n , where r n r_n r n has an extra factor ( log n ) 1 / 2 (\log n)^{1/2} ( log n ) 1/2 compared with the parametric rate. The standardization adds about ( 2 / n ) ∑ h ∣ V h ∣ r h 2 (2/n)\sum_h |\mathcal{V}_h|r_h^2 ( 2/ n ) ∑ h ∣ V h ∣ r h 2 to the squared error; with p 0 = 2 n p_0=2n p 0 = 2 n this term equals 0.53, an error of 0.73 on its own, close to the observed 0.73–0.78. In S2, the number of selected communities grew by about 2.05 per unit of log n \log n log n . The proof of Corollary B.17 shows that the search reaches the first K K K with n α B e − γ K ≤ ζ d K log n n\alpha_B e^{-\gamma K}\leq\zeta d_K\log n n α B e − γ K ≤ ζ d K log n . This K K K grows by ( 1 − 1 / log n ) / ( γ + d log d K / d K ) (1-1/\log n)/(\gamma+d\log d_K/dK) ( 1 − 1/ log n ) / ( γ + d log d K / d K ) per unit of log n \log n log n , which lies between 1.9 and 2.4 over the observed range when γ ≈ 0.27 \gamma\approx0.27 γ ≈ 0.27 , the decay rate of the Kullback–Leibler bias along the true path. The error decreased with a log–log slope of − 0.39 -0.39 − 0.39 , faster than the rate { ( log n ) 3 / n } 1 / 2 \{(\log n)^3/n\}^{1/2} {( log n ) 3 / n } 1/2 of the corollary, whose slope over this range is about − 0.28 -0.28 − 0.28 . The two-stage version returned the true partition in 56–86% of the S1 data sets, and when it did not, its error was between 1.6 and 25. Excluding the shared community extraction, the exploratory step fitted 78–390 candidate models per data set and took 1–15 minutes on one GPU, whereas the two-stage version fitted 19–39 models in 6–37 seconds.
Simulation designs and interval construction
The fixed-community simulation uses nine settings with ( n , p ) (n,p) ( n , p ) equal to ( 40 , 20 ) (40,20) ( 40 , 20 ) , ( 40 , 30 ) (40,30) ( 40 , 30 ) , ( 40 , 40 ) (40,40) ( 40 , 40 ) , ( 80 , 40 ) (80,40) ( 80 , 40 ) , ( 80 , 80 ) (80,80) ( 80 , 80 ) , ( 80 , 120 ) (80,120) ( 80 , 120 ) , ( 120 , 40 ) (120,40) ( 120 , 40 ) , ( 120 , 120 ) (120,120) ( 120 , 120 ) , and ( 120 , 200 ) (120,200) ( 120 , 200 ) . Each has 100 paired replicates, three oracle communities with sizes in the ratio 3 : 3 : 4 3:3:4 3 : 3 : 4 , primary-mask loadings, and block residual variances ( 0.1 , 0.2 , 0.5 ) (0.1,0.2,0.5) ( 0.1 , 0.2 , 0.5 ) . The fitted methods are SCFA and the four gg-BFA members, without bagging. The factor covariance is
Φ ∗ = ( 2.020878 0.730920 1.153572 0.730920 1.130999 1.633474 1.153572 1.633474 3.693128 ) . \Phi_* =
\begin{pmatrix}
2.020878 & 0.730920 & 1.153572 \\
0.730920 & 1.130999 & 1.633474 \\
1.153572 & 1.633474 & 3.693128
\end{pmatrix}. Φ ∗ = 2.020878 0.730920 1.153572 0.730920 1.130999 1.633474 1.153572 1.633474 3.693128 .
The cross-loading simulation fixes n = 300 n=300 n = 300 , p = 40 p=40 p = 40 , K = 4 K=4 K = 4 , with four oracle blocks of size 10. It generates data from three loading structures and fits SCFA, the four gg-BFA members, and gg-BFA (mf), (2f), and (2f+s) with bagging to each. The factor covariance has diagonal one and off-diagonal 0.3; variable residual variances follow IG ( 5 , 2 ) \operatorname{IG}(5,2) IG ( 5 , 2 ) . The multiple-cross-loading truth uses independent Bernoulli(0.1) slab indicators, with Gaussian slab and spike variances 0.25 and 10 − 4 10^{-4} 1 0 − 4 . In the single-cross-loading truth, each row overlaps with probability 0.1, chooses a uniformly random nonprimary target, and receives a N ( 0 , 0.25 ) \mathcal{N}(0, 0.25) N ( 0 , 0.25 ) amplitude. The sparse truth applies the same construction but randomly retains at most one overlapping row per block. Its support is compatible with gg-BFA (2f+s), but it is not drawn from the exact truncated prior of that member. Primary loadings are always derived from the signed row sum. There are 100 paired seeds: factor scores, residual variances, and noise are shared across the three truths within a seed, and all methods receive the same matrix within a truth.
Both simulations report parameter error, empirical 95% coverage, interval width, runtime, and loading complexity. SCFA intervals are frequentist Wald intervals, with factor-score intervals conditional on the fitted block residual variances; Bayesian intervals use the fitted variational families. Intervals for the learned loadings use the quantiles of their mixture distributions, not the moment-matched normal approximation that the package uses by default. Factor-covariance intervals use 1,000 seeded draws. In the cross-loading simulation, bagged gg-BFA uses B = 20 B = 20 B = 20 bootstrap fits of size M = 2 n M = 2n M = 2 n , with 200 posterior draws per component for marginal summaries. Its primary partition remains fixed. Appendix § 15 .§ 6 defines the bagged mixture.
The supplementary stress test uses n = 60 n = 60 n = 60 , p 0 = 128 p_0 = 128 p 0 = 128 , K = 8 K = 8 K = 8 , 1,000 independent test observations, and 30 paired seeds for each of four truths. Ninety-six variables carry factor signal and 32 are residual-only. Three truths have eight blocks of 12 signal variables, factor covariance with diagonal one and off-diagonal 0.3, signal residual variance 0.75 2 0.75^2 0.7 5 2 , and noise variance one. The first has primary loading one and no cross-loadings; the second replaces each primary loading by max { 0.05 , N ( 1 , 0.3 2 ) } \max\{0.05,\mathcal{N}(1,0.3^2)\} max { 0.05 , N ( 1 , 0. 3 2 )} ; the third additionally gives each signal variable probability 0.3 of one random cross-loading, with equiprobable sign and magnitude max { 0 , N ( 0.25 , 0.0625 2 ) } \max\{0,\mathcal{N}(0.25,0.0625^2)\} max { 0 , N ( 0.25 , 0.062 5 2 )} . Unlike the main cross-loading simulation, these continuous-loading truths need not satisfy the unit-row-sum constraint.
The fourth truth is neutral and FactorVerse-compatible, with Φ = I \Phi= I Φ = I . Its 96 signal rows have Bernoulli(0.15) support conditioned on at least one active factor per row and at least eight active rows per factor. Active loadings have equiprobable signs and Uniform(0.5,1) magnitudes. There is no generating primary partition; for the community-based fits only, the largest absolute loading supplies a post-generation oracle primary label. Unrestricted EFA and FactorVerse receive all 128 variables but no labels. All covariance scores use the full 128-variable target.
The 14 methods are the sample covariance as a reference, SCFA, the four gg-BFA members, EFA, two BCME variants, and five FactorVerse priors. FactorVerse uses fixed K = 8 K = 8 K = 8 , one chain, 2,000 iterations with 1,000 burn-in for MGPS, DL, and BASS, and 8,000 with 4,000 burn-in for SSL and HS. The primary endpoint is off-diagonal correlation RMSE; covariance Frobenius error and test Gaussian negative log likelihood are secondary. No fitted covariance is rescaled using the truth.
When the community mask is correct
In the fixed-community simulation (Appendix § 15 .§ 2 ), the true model uses the binary community mask as its loading matrix, shares residual variances within three communities, and allows an unrestricted factor covariance. gg-BFA (1f) is therefore correctly specified for both the loading matrix and the residual-variance structure. The three learned-loading members receive the same correct primary labels but estimate a separate residual variance for each variable. Comparisons with 1f consequently reflect both loading and residual parameterization, whereas comparisons among mf, 2f, and 2f+s isolate the loading-support restriction more closely.
The primary comparison is covariance recovery, measured by d F ( Ω ) d_F(\Omega) d F ( Ω ) . Parameter recovery and interval coverage help explain differences between methods, while loading complexity and runtime describe the cost of that recovery.
When the binary community mask is correct, additional loading flexibility provides little improvement in covariance recovery (Table 9 ). SCFA and gg-BFA (1f) behave almost identically, while the three learned-loading members achieve similar covariance and factor-score recovery. Their residual-variance estimates are less accurate because they estimate a separate residual variance for every variable under a truth that shares residual variation within each community. In this setting, learning cross-loadings therefore adds flexibility without materially improving the recovered covariance.
Table 9. Fixed-mask simulation: point recovery, loading complexity, and mean fit time per data set. All gg-BFA members use the same computing configuration; SCFA is an analytic reference. d F ( Ω ) d_F(\Omega) d F ( Ω ) is relative Frobenius covariance error. Because the truth has no cross-loadings, expected cross-loadings per row measure false overlap.
Because the generating model contains no cross-loadings, a well-matched loading model should suppress unnecessary overlap. The mf member retains more posterior mass on nonprimary loadings, whereas 2f and 2f+s remain closer to the true binary mask. This reduction in loading complexity leaves covariance recovery essentially unchanged and shortens fitting time. When the community mask is correct, restricting the cross-loading support can therefore improve parsimony and computation without sacrificing covariance accuracy.
Point recovery and interval calibration give a more nuanced picture. Factor-score intervals remain close to their nominal coverage, whereas residual-variance and factor-covariance intervals show some undercoverage (Table 10 ). Figure 6 shows how calibration changes across the nine settings. Because this simulation contains no active cross-loadings, the high coverage of inactive loading indicators assesses false-positive control only; uncertainty for genuine cross-loadings is examined in the next simulation.
Table 10. Fixed-mask simulation: empirical coverage of nominal 95% intervals, with mean width in parentheses. Results pool nine settings and 100 paired replicates per setting. SCFA reports confidence intervals; gg-BFA reports variational credible intervals.
Figure 6. Fixed-community simulation: empirical coverage of nominal 95% intervals for (a) factor scores, (b) residual variances, and the (c) diagonal and (d) off-diagonal entries of the factor covariance. Each point pools the nine settings, each vertical bar spans the nine setting-level coverages, and the dashed line marks 95%. gg-BFA in red, mf darkest; SCFA reports confidence intervals and gg-BFA variational credible intervals.
When variables carry cross-community signal
The cross-loading simulation (Appendix G.2) isolates the loading support more directly: it generates truths with multiple, single, and sparse single cross-loadings per row and fits each of the three learned-loading members to every truth. The fitted members share the same oracle communities and variable-specific residual parameterization. The crossed design therefore asks what is gained by a simpler loading explanation when it is compatible with the truth, and what is lost when it rules out real overlap.
The primary comparison is recovery of the loading structure, measured by loading RMSE. Covariance error shows whether structural misspecification affects the observation-level fit, while TPR and FDR distinguish missed cross-loadings from false discoveries.
The relative performance of the three loading models changes with the generating structure (Table 11 ). The mf member performs best when variables can have multiple cross-loadings, while restricting the loading support loses signal, especially under the additional sparsity budget. When each variable has at most one cross-loading, 2f recovers the loading structure more accurately and reduces false discoveries without materially changing covariance recovery. Under sparse single cross-loadings, 2f+s provides the most parsimonious loading representation while retaining the covariance accuracy of 2f. Loading restrictions are therefore useful when they reflect the form of overlap present in the data, but become harmful when they exclude genuine cross-community signal.
Table 11. Cross-loading simulation: point recovery, loading complexity, and support selection. d F ( Ω ) d_F(\Omega) d F ( Ω ) is relative Frobenius error; TPR and FDR use a 0.5 posterior-inclusion threshold. Truths with multiple, single, and sparse single cross-loadings per row are fitted by gg-BFA (mf), (2f), and (2f+s).
Point recovery and interval calibration again lead to different conclusions. Factor-score intervals remain close to nominal coverage, but the mean-field posterior substantially undercovers active cross-loadings (Table 12 ). Variational bagging improves coverage for these loadings, although it does not fully restore nominal coverage and does not uniformly improve residual-variance or factor-covariance intervals. It therefore provides a partial correction to mean-field uncertainty rather than a complete calibration solution.
Table 12. Cross-loading simulation: pooled empirical coverage (%) of nominal 95% intervals when each truth is fitted by its matching member: gg-BFA (mf), (2f), and (2f+s) for multiple, single, and sparse single cross-loadings. Base denotes the member without bagging and Bagged the member with bagging. “Active” refers to generating slab indicators equal to one; under the truth with multiple cross-loadings, inactive entries come from the narrow Gaussian spike. The γ \gamma γ column is dominated by inactive coordinates because the active base rate is low.
The high coverage of the binary inclusion indicators is dominated by inactive coordinates and should not be interpreted as accurate support recovery. Bagging increases sensitivity to active cross-loadings, but it also increases false discoveries and computation time. Improved marginal coverage therefore comes with a less selective loading summary and a substantially larger computational cost; complete support and timing results are given in Appendix § 15 .§ 5 .
SCFA and gg-BFA (1f), which fix the loadings at the community mask, provide a separate misspecification check: their residual-variance coverage deteriorates as omitted overlap grows. Because 1f also ties residual variances within blocks, this comparison cannot attribute the full difference to cross-loadings alone. The full truth-by-fit comparison among mf, 2f, and 2f+s is the cleaner evidence for the loading-support trade-off.
The stress test of Appendix § 15 .7 compares the gg-BFA members with exploratory-factor and block-covariance estimators under truths with and without a generating community structure.
Further results on recovery, calibration, and computation
Pooled coverage is the number of intervals that contain the true value divided by the number of intervals, over all evaluated coordinates of all replicates; pooled width averages over the same intervals. In the fixed-community simulation, expected cross-loadings per row are 0.0298, 0.0034, and 0.0052 for mf, 2f, and 2f+s. The three members cover primary loadings, inactive cross-loadings, and γ \gamma γ in at least 99.9% of cases; in this truth without cross-loadings, this shows that inactive support is excluded, not that intervals for genuine cross-loadings are calibrated. Their observation-covariance error is 0.1933–0.1935, compared with 0.1932 for 1f.
When each truth is fitted by its matching member, the replicate-level average coverage of active cross-loadings is 76.31%, 76.46%, and 75.09% for gg-BFA (mf), (2f), and (2f+s), compared with 87.61%, 88.65%, and 81.38% after bagging. These give the same conclusion as pooled coordinate coverage. At the 0.5 inclusion threshold, bagging the matching member raises pooled sensitivity from 0.792 to 0.838, 0.812 to 0.859, and 0.786 to 0.813. The corresponding false-discovery rates increase from 0.103 to 0.279, 0.017 to 0.316, and 0.010 to 0.086. Factor-score coverage of the matching members is 94.05–94.91% without bagging and 94.43–95.22% with it, and that of SCFA and gg-BFA (1f) is 94.13–95.10%.
Mean fit time per cross-loading data set is 0.0006 seconds for SCFA, 0.0046 for gg-BFA (1f), and 0.1407, 0.0212, and 0.0284 for gg-BFA (mf), (2f), and (2f+s); with bagging over 20 bootstrap fits, the last three take 3.0936, 0.7712, and 0.7834 seconds. Figure 6 below shows the setting-level coverage variation for the fixed-community simulation; the complete cross-loading truth-by-fit results appear in Table 11 .
Variational bagging as an uncertainty supplement
For a fixed loading option o o o and primary partition, draw B = 20 B = 20 B = 20 bootstrap samples X ∗ ( b ) X^{*(b)} X ∗ ( b ) , each containing M = 2 n M = 2n M = 2 n rows sampled with replacement. Fit q o ( b ) q_o^{(b)} q o ( b ) to each sample. The reported distribution is the equally weighted mixture of the B B B fits of the same member
q o , b a g ( ϑ ) = 1 B ∑ b = 1 B q o ( b ) ( ϑ ) , q_{o,\mathrm{bag}}(\vartheta) = \frac{1}{B}\sum_{b=1}^{B}q_o^{(b)}(\vartheta), q o , bag ( ϑ ) = B 1 b = 1 ∑ B q o ( b ) ( ϑ ) ,
where ϑ \vartheta ϑ denotes parameters expressed in a common coordinate system. Subject-score distributions are re-evaluated on the original rows under each fitted component. Joint draws choose one bootstrap component for all requested parameters and retain its row support and block budget.
For component means μ b \mu_b μ b and covariances V b V_b V b , the mixture covariance is
V m i x = 1 B ∑ b { V b + ( μ b − μ ˉ ) ( μ b − μ ˉ ) T } . V_{\mathrm{mix}} = \frac{1}{B}\sum_b\left\{V_b + (\mu_b-\bar{\mu})(\mu_b-\bar{\mu})^{\mathsf{T}}\right\}. V mix = B 1 b ∑ { V b + ( μ b − μ ˉ ) ( μ b − μ ˉ ) T } .
It includes within-component and between-component variation. At M = 2 n M = 2n M = 2 n , the marginal-coverage experiments use this raw mixture without an additional variance multiplier. Observation covariance is likewise B − 1 ∑ b E q o ( b ) ( Λ Φ Λ T + Ψ ) B^{-1}\sum_b\mathbb{E}_{q_o^{(b)}}(\Lambda\Phi\Lambda^{\mathsf{T}}+\Psi) B − 1 ∑ b E q o ( b ) ( ΛΦ Λ T + Ψ ) , not a product of pooled parameter means.
The package also implements the block-wise adjustment of joint moments suggested by variational-bagging theory [12 ] ; it was not used in the reported results, and choosing M = 2 n M = 2n M = 2 n does not by itself guarantee nominal coverage.
The stress test asks where the advantage of community guidance ends. It contrasts the three block-oriented truths defined above with a neutral sparse-factor truth that has no generating primary partition. All fitted factor models use K = 8 K = 8 K = 8 . Community-oriented methods receive the same oracle primary labels for comparison, whereas EFA and FactorVerse do not receive those labels.
The primary comparison is off-diagonal correlation RMSE. Covariance d F d_F d F and test NLL are supporting summaries of covariance scale and out-of-sample density.
The three endpoints reveal different parts of the boundary. Under the three block-oriented truths, 1f has the lowest off-diagonal correlation RMSE: 0.0554, 0.0655, and 0.0770, compared with 0.1091, 0.1084, and 0.1100 for the best unrestricted alternative, EFA (Table 13 ). The covariance-scale results are similar but show a role for controlled loading flexibility. The lowest relative Frobenius errors among the gg-BFA members are 0.2893 for 1f under fixed loadings and 0.4373 and 0.4604 for 2f under the two continuous-loading truths. EFA gives 0.4740, 0.4781, and 0.4815 in the same three settings.
Table 13. Covariance recovery beyond the loading family: off-diagonal correlation RMSE, mean (Monte Carlo standard error) over 30 paired seeds per truth. Fixed, continuous, and cross-loading are block-oriented truths; neutral has no generating community partition. Lower is better.
Test likelihood is less aligned with direct covariance recovery. Closed-form SCFA has the lowest Gaussian NLL under the fixed truth, 167.51, but FactorVerse DL has the lowest NLL under the continuous and cross-loading truths, 170.38 and 170.96, even though its Frobenius errors are larger. Under the neutral truth, the result is unambiguous: DL is best on correlation RMSE (0.0403), covariance error (0.2761), and test NLL (170.35). The strongest gg-BFA member there is mf, with 0.0895, 0.5400, and 178.81. Assigning a primary label after generation cannot recreate a community backbone that is absent from the truth.
Appendix § 15 .8 gives the complete covariance and likelihood tables for all methods, including the large errors of FactorVerse SSL and HS on the generating scale and the extreme neutral-truth likelihood of ridge-ratio BCME. The MNL prior of FactorVerse is not included: in two of the four truths, the mean covariances from the two halves of its chains differed by more than 10% in relative Frobenius norm, the stability threshold fixed before the comparison.
Stress-test covariance and likelihood endpoints
Tables 14 and 15 report every method. The covariance errors of SSL and HS are on the generating scale, with no correction that uses the truth. The automatic rule of BCME returns one block in every replicate of the block-oriented truths and can select a large K K K under the neutral truth, where its test likelihood is unstable.
Table 14. Supplementary stress-test relative Frobenius covariance error, mean (Monte Carlo standard error), with 30 paired seeds per truth. Lower is better.
Table 15. Supplementary stress-test Gaussian negative log likelihood per row, mean (Monte Carlo standard error). Lower is better. The raw sample covariance is singular at p 0 > n p_0 > n p 0 > n , so it has no prediction score; it is not regularized.
Supplementary real-data results
This appendix supplements § 5 . It describes the implementations of the comparison methods and gives the complete results at the common factor budget of Table 5 .
Implementations of the comparison methods
The four CFA references are implemented in CuPy in double precision. SCFA evaluates the closed-form block moments. ML-CFA maximizes the joint Gaussian likelihood by EM with factor-correlation rescaling; we checked it against lavaan. MFVB-CFA follows Algorithm 2 of Dang and Maestrini [2022]; it is our translation, not software distributed by the authors. PCFA-VA implements the complete-data, oblique, diagonal-residual branch of vbpm 0.9.1, including its deterministic initialization, internal standardization by the sample standard deviation, sequential updates of the factor coordinates within each loading row, four-stage path, and stopping rule [21 , 6 , 22 ] . We checked each implementation against a CPU reference on one- and three-factor examples (fitted parameters, covariance and stopping state), and PCFA-VA also against the R package, including its final ELBO.
ML-CFA uses relative log-likelihood tolerance 10 − 7 10^{-7} 1 0 − 7 , parameter tolerance 10 − 4 10^{-4} 1 0 − 4 , and at most 3,000 iterations; MFVB-CFA uses tolerance 0.01 and at most 1,000 iterations; PCFA-VA uses v 0 = ( 0.01 , 0.005 , 0.002 , 0.001 ) v_0 = (0.01, 0.005, 0.002, 0.001) v 0 = ( 0.01 , 0.005 , 0.002 , 0.001 ) , tolerance 10 − 4 10^{-4} 1 0 − 4 , and at most 5,000 iterations per stage. Times are measured with GPU synchronization; the times of the variational methods include the construction of the covariance estimate, and those of every method include its own data transfer and posterior summaries. On the real data, the GPU and CPU implementations agree for SCFA, ML-CFA, MFVB-CFA and the converged PCFA-VA fits on Kidney and miRNA. PCFA-VA does not meet its tolerance on Nightingale in either implementation, and its final covariance there depends on the numerical path, as do its nonconverged full-data fits on the imaging panels.
The held-out comparison also includes three estimators that do not produce a confirmatory loading pattern; they are fitted on Nightingale, Kidney, and miRNA. Maximum-likelihood EFA and the FactorVerse Bayesian factor models [9 ] use the same number of factors but not the community partition, and BCME [26 ] estimates a blockwise correlation matrix with the same number of blocks. Because the latent coordinates of EFA and FactorVerse depend on rotation, we compare their observation covariances and Gaussian predictions rather than their loadings. FactorVerse uses the MGPS, SSL, DL, HS, and BASS priors; the MNL prior is not used, because its chains failed the stability check of the stress test (Appendix § 15 .7). All FactorVerse fits use our CuPy implementation of the FactorVerse update equations, whose formulas and draws were checked against the native R/Rcpp code; the results apply to this implementation, and each comes from a single chain.
Complete results at the common factor budget
The tables of this section give the results of § 5 for all five panels. Table 16 gives the full-data fits on the variables assigned to communities. The held-out tables have two targets: the variables assigned to communities on the training subjects, as in the main text (Table 17 and Table 18 ), and all retained variables (Table 19 and Table 20 ); values for the two targets should not be compared. Each held-out entry gives the mean and sample standard deviation over the same five subject folds. Covariances are on the scale of the training-standardized data, all predictors use zero mean in those coordinates, and the covariances of the Bayesian CFA methods include the variance of the loadings. † marks at least one nonconverged fold, with the count in Table 21 ; these values are not used to rank the methods. ‡ marks the indefinite factor moment of SCFA on Nightingale, whose observation covariance is nevertheless positive definite. PCFA-VA was not run on the held-out folds of ABCD and UKB because of its computational cost. Table 22 gives the single-chain diagnostics of FactorVerse, and Table 23 gives the predictions of the gg-BFA members that integrate the local variational factor posterior of each test subject.
Table 16: Full-data CFA representations on the same variables assigned to communities. d F d_F d F is descriptive distance to the sample covariance, not population recovery. Cross/row is the expected number of active nonprimary loading components. Seconds include estimation and covariance construction on P100. † marks a last iterate.
Table 16. continued
Table 17. Selected variables; common factor budget. Held-out covariance: Gaussian NLL per variable, relative covariance error, and correlation SRMR. Five-fold means (sample SD). † denotes at least one fit that did not meet its tolerance; ‡ denotes the SCFA latent-factor covariance caveat.
Table 19. Continued on next page
Table 20. All retained variables; common factor budget. Masked-measurement prediction uses the common Gaussian rule; coverage is a proportion, and width is in training-standardized units. Five-fold means (sample SD). † denotes at least one fit that did not meet its tolerance; ‡ denotes the SCFA latent-factor covariance caveat.
Table 22. FactorVerse single-chain diagnostics at the common factor budget across five folds. Occupied is the mean number of occupied groups, and the half-chain range is the range of the relative difference between the first- and second-half posterior mean covariances. These diagnostics are not optimizer stopping criteria.
The comparison methods show that correlation, covariance scale, and joint density cannot be inferred from one another. With the SSL prior, FactorVerse has held-out covariance errors above 100 in Kidney and miRNA (d F = 131.298 d_F = 131.298 d F = 131.298 and 118.474), yet the smallest prediction errors there (RMSE 0.461 and 0.500, against 0.497 and 0.528 for gg-BFA (mf)), because conditional means depend only on ratios of covariances. Its coverage of 0.998 and 1.000 comes with intervals two to three times as wide as those of mf (width 4.005 and 6.020, against 1.880 and 1.993). The Nightingale EFA covariance is nearly singular: its mean NLL is about 2,600 per variable although its covariance error is close to that of mf, and four of its five folds miss the stopping tolerance.
Table 19 : All retained variables; common factor budget. Held-out covariance: Gaussian NLL per variable, relative covariance error, and correlation SRMR. Five-fold means (sample SD). † denotes at least one fit that did not meet its tolerance; ‡ denotes the SCFA latent-factor covariance caveat.
Table 21 : Estimator time in seconds on a P100 GPU (five-fold mean, with the sample standard deviation in parentheses) and stopping status at the common factor budget. For the CFA references and the gg-BFA members, the time includes fitting and covariance construction, as in Figure 2 ; for EFA, FactorVerse, and BCME, it is the fitting time in the held-out runs. Times exclude the shared community extraction and scoring; data transfers and posterior summaries differ across implementations. Fractions count converged folds, and MCMC denotes fixed-length sampling, not a claim of convergence. †: at least one fold did not converge; ‡: the SCFA latent-factor covariance caveat.
Computational reproducibility
Each analysis was run in its own directory under experiments/, which stores the configuration, a snapshot of the source code, the logs, the evaluation records, and the requested and actual computing device. The gg-BFA fits and the four CFA references ran on NVIDIA P100 GPUs; the dense-subgraph search and the psych, lavaan and semopy pipelines ran on CPUs. Every table and figure under manuscript/scfa_vb/generated/ is written by a script that records its input files and their SHA-256 hashes. The reported results come from the following directories.
Structure simulations (§ 4.1 ). One directory per design and sample size, listed in manuscript/scfa_vb/generated/sim_selection_20261009/numbers.json. The exploratory-to-confirmatory pipelines ran in 20261009_123933_sim_efa_cfa_pipelines_full_cpu_seed2610.
Simulation check in growing dimension (Appendix § 12 .§ 4 ). Four directories, listed in manuscript/scfa_vb/generated/sim_appendix_d_20261009/numbers.json.
Simulations of Comparison 2 (Appendix § 15 ). Fixed-community simulation: 20260914_experiment1_fixed_loading_gpu_full_seed24010000; cross-loading simulation: 20260904_112640_experiment2_option_matrix_full_cpu_seed24020000; stress test: 20260904_205544_experiment3_known_covariance_plotfix_full_cpu_seed24030000. The outputs used from the last two are recorded with their hashes in manuscript/scfa_vb/generated/naming_20260908/provenance.json.
Real data at the common factor budget (§ 5 ). Full data: 20260920_002338_dual_k_real_data_r1_full_gpu1_seed260917101. Held-out covariance and prediction: 20260922_082452_dual_k_real_data_r23_full_gpu1_seed260918101, with ML-CFA in 20260925_002837_classical_ml_cfa_r23_full_gpu1_seed260925201 and SCFA, MFVB-CFA and PCFA-VA in 20260925_100728_cfa_r23_extension_full_gpu1_seed260925301.
Complete pipeline on the full data (§ 5.6 and Figure 1 ). The input runs are listed in manuscript/scfa_vb/generated/enar_figures_20261013/raw_to_fit_mf_PROVENANCE.json and manuscript/scfa_vb/generated/enar_figures_20261015b/kidney_figures_PROVENANCE.json.
The software is released as the Python package ggbfa (version 0.1.0). Its function efa runs the exploratory step (Algorithm 2 by default and Algorithm 1 on request), and cfa fits the members 1f, 2f+s, 2f and mf, each with posterior summaries, the covariance estimate with loading second moments, prediction, and optional bagging. The analyses above were run with the research code from which ggbfa was extracted; ggbfa reproduces its community selections and confirmatory fits.