Tutorials › Multi-Omics Data Integration › Group-Sparse CCA and PLS

Canonical Correlation and Partial Least Squares · Tutorial 149 of 597

Group-Sparse CCA and PLS

Learn to formulate and interpret group-sparse CCA and PLS, including the group soft-thresholding update and its assumptions and limitations.

Intermediate 11 min read

What You'll Learn

  • Define group-L1 penalties for predefined feature sets in two-block analyses
  • Distinguish group selection from sparsity of individual features
  • Derive and calculate the group soft-thresholding operator
  • Relate group penalties to PLS covariance and CCA normalization
  • Diagnose scaling, grouping, and stability problems in fitted supports
  • Compare group-L1 penalties with featurewise and sparse-group penalties

Why Group Sparsity?

In a two-block analysis, an ordinary sparse method can retain isolated features from across an assay, even when the scientific question concerns coherent sets such as a pathway, a gene module, or a predefined metabolite class. Group sparsity instead encourages a whole predefined set of features to enter or leave a variate together. The groups must be specified before fitting; the penalty does not discover biological groups from the data.

The goal is not necessarily to make every coefficient in a selected group nonzero. A group penalty controls whether a group contributes at all. Within a retained group, coefficients can still vary in size, and some may be zero by chance or through an additional penalty. This distinction matters when interpreting a selected assay-defined set.

Definition: Let \(X\) and \(Y\) be centered data matrices for two omics blocks, with \(n\) matched samples, \(p\) features in \(X\), and \(q\) features in \(Y\). Partition the feature indices of each block into predefined, nonoverlapping groups \(G_1,\ldots,G_K\). For a coefficient vector \(u\), write \(u_{G_g}\) for its entries in group \(G_g\). A group-L1 penalty is $$ \Omega_G(u)=\sum_{g=1}^{K} w_g\|u_{G_g}\|_2, $$ where \(w_g>0\) are group weights. It penalizes the sum of group Euclidean norms, rather than the sum of absolute values of individual coefficients.

A common default is \(w_g=\sqrt{|G_g|}\), where \(|G_g|\) is the number of features in group \(g\). This partly adjusts for the fact that the norm of a noise-only group tends to grow with its size. Other weights are possible, but they change how much penalty groups of different sizes receive. Weights and feature scaling should be chosen deliberately, not treated as harmless implementation details.

Objectives for CCA and PLS

Write \(u\) and \(v\) for the coefficient vectors defining scores \(Xu\) and \(Yv\). With sample cross-covariance matrix \(S_{XY}=X^\mathsf{T}Y/n\), a group-penalized two-block PLS objective can be written as

$$ \max_{u,v}\quad u^\mathsf{T}S_{XY}v-\lambda_X\Omega_G(u)-\lambda_Y\Omega_H(v), \qquad \|u\|_2\leq 1,\quad \|v\|_2\leq 1. $$

Here \(H_1,\ldots,H_L\) are the predefined groups in the \(Y\) block, \(\Omega_H(v)=\sum_{\ell=1}^{L}a_\ell\|v_{H_\ell}\|_2\), and \(\lambda_X,\lambda_Y\geq0\) control the penalties. The cross-block term rewards covariance between the scores; the penalties discourage retaining many groups.

CCA targets association while accounting for the within-block score variances. In its usual unpenalized form, it maximizes \(u^\mathsf{T}S_{XY}v\) subject to \(u^\mathsf{T}S_{XX}u\leq1\) and \(v^\mathsf{T}S_{YY}v\leq1\), where \(S_{XX}=X^\mathsf{T}X/n\) and \(S_{YY}=Y^\mathsf{T}Y/n\). Group penalties can be added to this objective, but the covariance-metric constraints affect computation: ordinary Euclidean group thresholding is not generally an exact update under a non-diagonal metric. A Euclidean-coordinate or regularized formulation may allow a simple group-thresholding step; otherwise, the update must respect the chosen CCA metric. The exact formulation and coefficient scale therefore matter when reporting a group-sparse CCA fit.

These formulations assume the two blocks describe the same samples, features have been centered, and the groups have been defined consistently. Scaling is consequential: a feature measured on a large numerical scale can dominate a covariance objective and influence selection. Standardize features when that is appropriate for the scientific question, or state and justify a different scaling. CCA also requires a workable score-variance geometry; singular covariance matrices need an appropriate regularization or dimension-reduction treatment rather than an unexamined inverse.

How Group Soft-Thresholding Works

The group-L1 penalty has a simple proximal update in Euclidean coordinates. For a vector \(z\), the proximal operator minimizes squared distance to \(z\) plus a weighted group penalty. The minimization separates across groups, so each group is either shrunk toward zero as a unit or set exactly to zero.

Definition: For group \(G_g\), the group soft-thresholding operator with threshold \(t w_g\) is $$ \mathcal{T}_{t w_g}(z_{G_g}) = \left(1-\frac{t w_g}{\|z_{G_g}\|_2}\right)_+z_{G_g}, $$ where \((a)_+=\max(a,0)\). If \(\|z_{G_g}\|_2\leq t w_g\), the entire group is zero; otherwise, every entry is multiplied by the same shrinkage factor.

To justify the formula, consider minimizing \(\frac12\|a-z_{G_g}\|_2^2+t w_g\|a\|_2\). For a nonzero minimizer, the derivative condition is \(a-z_{G_g}+t w_g a/\|a\|_2=0\). This requires \(a\) to point in the direction of \(z_{G_g}\). Writing \(a=c z_{G_g}\) for \(c>0\) gives \(c=1-tw_g/\|z_{G_g}\|_2\), which is positive only when \(\|z_{G_g}\|_2>tw_g\). If that inequality fails, the subgradient condition at zero is satisfied, so the minimizer is zero. Combining the cases gives the stated operator.

In an alternating Euclidean-coordinate algorithm, one can hold \(v\) fixed, take a gradient-ascent step for the smooth cross-block term in \(u\), apply group soft-thresholding, and then enforce the coefficient norm constraint if needed. The corresponding update for \(v\) is analogous. Alternating updates do not make the joint objective globally concave: the method can depend on initialization, and convergence to a stationary solution does not guarantee the best possible solution. Metric-constrained CCA requires a metric-aware update or a suitable transformed formulation.

Worked Example: One Group-Thresholding Update

Suppose a hypothetical update has three \(X\)-block assay groups, \(G_1=\{1,2\}\), \(G_2=\{3,4\}\), and \(G_3=\{5,6\}\). After a gradient step, the group subvectors are \(z_{G_1}=(3,4)\), \(z_{G_2}=(1,1)\), and \(z_{G_3}=(0,6)\). Let the common threshold be \(t\lambda_X=2\), with \(w_g=1\) for every group.

For \(G_1\), \(\|z_{G_1}\|_2=\sqrt{3^2+4^2}=5\). Its shrinkage factor is \(1-2/5=0.6\), so the updated group is \(0.6(3,4)=(1.8,2.4)\).

For \(G_2\), \(\|z_{G_2}\|_2=\sqrt{1^2+1^2}=\sqrt{2}\approx1.414<2\), so both coefficients become zero. For \(G_3\), the norm is \(6\); the factor is \(1-2/6=2/3\), giving \((0,4)\). Before any norm projection, the updated vector is therefore \((1.8,2.4,0,0,0,4)\). If a unit Euclidean norm constraint is applied by radial projection, its norm is \(\sqrt{1.8^2+2.4^2+4^2}=\sqrt{25}=5\), so the constrained vector is \((0.36,0.48,0,0,0,0.8)\). The support is unchanged by this positive rescaling: groups \(G_1\) and \(G_3\) remain selected, and \(G_2\) is excluded.

Assay-Defined Sets and Penalty Choices

The scientific interpretation depends on both the groups and the fitted support. A group might be a predefined gene set measured in one assay, a panel of related proteins, or a metabolite class. If a group is retained, the defensible conclusion is that its features contribute jointly to this fitted variate under the selected model and tuning choices. It is not evidence that every member is individually associated, that the group is biologically coherent in this sample, or that the group causes variation in the other block.

Worked Example: Group Size Weights Change the Threshold

Consider hypothetical assay groups of sizes 1, 4, and 9, with gradient-step group norms 1.4, 2.5, and 2.4, respectively. Use the conventional weights \(w_g=\sqrt{|G_g|}\) and set \(t\lambda_X=1\). A group survives the proximal step precisely when its norm exceeds \(t\lambda_Xw_g\).

The thresholds are \(1\sqrt{1}=1\), \(1\sqrt{4}=2\), and \(1\sqrt{9}=3\). The size-1 group survives because \(1.4>1\); the size-4 group survives because \(2.5>2\); and the size-9 group is set to zero because \(2.4<3\). Without size weights, all three norms exceed 1 and all three groups would survive. The result illustrates the purpose and consequence of weighting: a larger group is not automatically favored just because it contains more coefficients. It does not establish that square-root weights are optimal for every application.

Featurewise L1 penalties answer a different selection question: they can retain some variables within a set while removing others, but do not directly select entire sets. Group-L1 penalties select sets but generally do not produce sparsity within a selected set. A sparse-group penalty combines both:

$$ \lambda_G\sum_g w_g\|u_{G_g}\|_2+\lambda_1\|u\|_1. $$

This can select groups and then remove individual coefficients inside retained groups. It adds another tuning choice and should not be described as the same procedure as group L1 alone.

Worked Example: A Pathway Set Versus Individual Features

Suppose a hypothetical two-block PLS calculation has current \(Y\)-score direction \(v\), and the corresponding gradient-step vector \(z=u_{\mathrm{old}}+\eta S_{XY}v\) for four \(X\)-features is \((0.8,0.6,0.5,0.5)\). Features 1 and 2 form an assay-defined pathway group, while features 3 and 4 form a second set. Take \(t\lambda_X=0.75\), unit group weights, and assume the norm constraint is a unit ball.

For the pathway group, \(\|(0.8,0.6)\|_2=\sqrt{0.64+0.36}=1\). Group thresholding multiplies it by \(1-0.75/1=0.25\), producing \((0.20,0.15)\). The second group has norm \(\sqrt{0.5^2+0.5^2}=\sqrt{0.5}\approx0.707<0.75\), so it becomes \((0,0)\). The resulting vector \((0.20,0.15,0,0)\) has norm \(0.25\), so unit-ball projection does not change it.

For comparison, applying featurewise soft-thresholding at 0.75 gives \((0.8-0.75,0,0,0)=(0.05,0,0,0)\). Thus the group penalty retains both members of the pathway set, while the featurewise penalty retains only the first feature in this update. Neither calculation proves the pathway is biologically active: each is a consequence of its objective, scaling, and threshold.

Diagnostics, Limitations, and Common Pitfalls

Group-sparse solutions are useful when coherent feature sets are central to the analysis, but a selected support should be checked rather than read off as a definitive discovery. At minimum, inspect whether the fitted groups change substantially under reasonable changes in tuning, scaling, or sample resampling; whether one very large or highly correlated set dominates; and whether the groups were defined without using the outcome information that the model is intended to evaluate. Held-out association can inform tuning, but it does not remove instability from small samples or correlated features.

A key limitation is that predefined groups can be incomplete, overlapping, or biologically heterogeneous. The formula above assumes a nonoverlapping partition. Overlapping groups require a separately specified penalty and algorithm; simply counting a feature in several groups changes its effective penalty. In addition, group selection can be unstable when sets are correlated: different but related groups may carry similar cross-block signal, so a modest data perturbation can change which one is retained.

  • Wrong: “The group penalty is zero for unselected sets, so every feature in each selected set must have a nonzero coefficient.” Correction: The group penalty applies to the group norm; group retention does not guarantee that every coefficient is nonzero.
  • Wrong: “A selected assay group is statistically significant and causes the other block’s score.” Correction: Selection is a model-dependent association pattern, not a significance test or causal conclusion.
  • Wrong: “The same numeric penalty is comparable across any group definitions and scaling choices.” Correction: Feature scale, group size, weights, and score geometry all affect the effective penalty.
  • Wrong: “The Euclidean threshold formula is automatically an exact CCA update.” Correction: It is exact for the stated Euclidean proximal subproblem; a non-diagonal CCA covariance metric requires a metric-aware treatment.

Use group L1 when the unit of interpretation is a predefined feature set and within-set sparsity is not the primary goal. Use featurewise penalties when individual features are the target of selection, or a sparse-group formulation when both levels matter. In every case, report group definitions, weights, scaling, tuning choices, and the relevant CCA or PLS normalization so that the support can be interpreted in context.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. A group has vector \(z_G=(2,2)\), weight \(w_G=1\), and threshold \(t\lambda=3\). What is its group-thresholded value, and why?
  2. In one sentence, distinguish group selection from within-group feature selection.
  3. Why can the Euclidean group-thresholding formula fail to be an exact update for covariance-constrained CCA?
  4. What does the weight \(w_g=\sqrt{|G_g|}\) change in the threshold rule?
  5. A selected group has a nonzero fitted norm. What is a defensible interpretation, and what conclusion should be avoided?

Solutions. (1) Its norm is \(\sqrt{2^2+2^2}=\sqrt{8}\approx2.828<3\), so the whole group is set to \((0,0)\). (2) Group selection decides whether a predefined set contributes; within-group selection decides which individual coefficients in a retained set are nonzero. (3) A non-diagonal covariance constraint changes the geometry of the coefficient update, so the Euclidean proximal solution need not satisfy the correct metric optimality condition. (4) It makes the group’s threshold \(t\lambda\sqrt{|G_g|}\), increasing the threshold for larger groups. (5) The group contributes to the fitted variate under the chosen model and tuning; one should not conclude that every feature is individually important, statistically significant, or causal.

Clinical Biostats