---
title: "Deep Generalized Canonical Correlation Analysis — Benton 2019"
description: "The paper explains how Deep Generalized Canonical Correlation Analysis learns from multiple data sources and tests it on speech and…"
canonical: "https://research.elamur.ai/free/en/papers/benton-2019-deep-generalized-canonical-correlation-analysis/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/benton-2019-deep-generalized-canonical-correlation-analysis/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Deep Generalized Canonical Correlation Analysis

# Deep Generalized Canonical Correlation Analysis

Paper · 2019 · Adrian Benton, Huda Khayrallah, Biman Gujral et al.

**Authors:** [Adrian Benton](https://md.research.elamur.ai/free/en/authors/adrian-benton/), [Huda Khayrallah](https://md.research.elamur.ai/free/en/authors/huda-khayrallah/), [Biman Gujral](https://md.research.elamur.ai/free/en/authors/biman-gujral/), [Dee Ann Reisinger](https://md.research.elamur.ai/free/en/authors/dee-ann-reisinger/), [Sheng Zhang](https://md.research.elamur.ai/free/en/authors/sheng-zhang/) and [Raman Arora](https://md.research.elamur.ai/free/en/authors/raman-arora/) · **Year:** 2019 · **Venue:** Proceedings of the 4th Workshop on Representation Learning for NLP (RepL4NLP-2019) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 4th Workshop on Representation Learning for NLP (RepL4NLP-2019) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/W19-4301/)
- [PDF](https://aclanthology.org/W19-4301.pdf)
- [DOI 10.18653/v1/w19-4301](https://doi.org/10.18653/v1/w19-4301)

## Summary

A spoken sound can be described by the signal a microphone records, by measurements of the speaker’s movements, and by a label identifying the sound. Each description captures something about the same event, in a different form. The paper asks how to learn a representation that draws on all these descriptions during training and can subsequently be obtained from an individual source. Earlier methods based on canonical correlation analysis could either learn nonlinear transformations of a pair of sources or use linear transformations to combine a larger collection. Deep Generalized Canonical Correlation Analysis, or DGCCA, brings nonlinear transformations and multiple sources into the same procedure.

The authors give each source, which they call a *view*, its own neural network. For the examples seen during training, they find a shared set of coordinates that the individual networks’ outputs can each approximate after a linear projection. The paper’s main mathematical contribution is to show how to calculate a learning signal for each network from this shared fit. The shared coordinates and the linear projections have an exact solution when the network outputs are held fixed. The networks themselves learn by repeated updates using batches of aligned examples. A new observation can then be mapped to the learned space through the network and projection associated with its view.

The authors first illustrate the effect of the nonlinear transformations on synthetic data, where DGCCA largely preserves the separation between groups that linear Generalized Canonical Correlation Analysis loses. They then classify phonemes, the sound categories used in the experiment, from projected acoustic measurements. DGCCA learns with articulatory measurements and phoneme labels as additional training views. On the cross-speaker test, where training and testing use different speakers, its accuracy is 54.2 against 50.2 for linear GCCA. On the speaker-dependent test, the corresponding accuracies are 72.3 and 69.8. These experiments show how additional measurements and labels can shape a representation used to classify [speech](https://md.research.elamur.ai/free/en/topics/speech/).

The recommendation experiments give a more task-dependent result. The authors learn representations of Twitter users from text and network information. For hashtag recommendation, DGCCA reaches test recall at 1,000 of .373, compared with .346 for weighted linear GCCA using text and network views. For friend recommendation, DGCCA reaches .090 on the same test metric, compared with .120 for weighted linear GCCA and .147 for principal component analysis on concatenated features. The two recommendation tasks make a useful distinction. Hashtag prediction benefits from combining information spread across views, while the paper identifies the friend network itself as the useful view for predicting friends.

## Deep dive: Deep Generalized Canonical Correlation Analysis

The paper explains how Deep Generalized Canonical Correlation Analysis learns from multiple data sources and tests it on speech and recommendation. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Several descriptions of the same example

A view is a collection of measurements attached to the examples a study cares about. The example might be a moment in an utterance. One view describes its sound, another describes the physical configuration of the speaker, and a label can supply a further view. In the recommendation study, the example is a person’s account. Its own posts, text associated with people around it, and its network connections can all describe that account. The organizing principle is alignment. The observations can have different formats and numbers of features, provided the learning procedure knows which ones belong to the same example.

What counts as a useful representation depends on how it will be used. An acoustic representation could capture details that make one speaker easy to distinguish from another, while the eventual classifier needs to distinguish speech sounds. Learning from another view gives the procedure a different basis for deciding which changes in the acoustic signal deserve to survive the transformation. If a feature of the sound varies systematically with a feature of articulation, the views supply evidence about a common source of variation. A label can give even more direct information about which distinctions matter to the task.

The evidence from agreement is indirect. The learner receives corresponding observations and an objective that rewards a shared representation. Any variation it recovers is defined by what the inputs can jointly support and what the transformations can express. The phoneme experiment makes this dependence concrete because the authors choose to include labels among the sources used to learn the space. The Twitter experiments ask what a shared space can recover from descriptions of users whose value differs with the recommendation target.

There is also a practical distinction between the information present when a representation is learned and the information needed when it is used. A system can learn about a speech sound using several observations of how it was produced, then rely on an acoustic observation for classification. This calls for a common coordinate system and an explicit map into it for the acoustic view. A procedure that only assigns coordinates to the examples already observed would give a training representation, while a learned map lets the same construction apply to new observations.

#### The trade-off in earlier correlation methods

Canonical correlation analysis, or CCA, supplies the starting point. Consider measurements of the same examples from a pair of views. Each view may contain many features, and corresponding features need not have comparable meanings or units. CCA looks for a weighted combination of features in each view so that the resulting scores vary together. A score summarizes the observation from its own view. The quality of a pair of scores is judged across matched examples.

A linear combination is a precise restriction. Once CCA has chosen the weights, each feature contributes to the score through its fixed coefficient. This is a natural way to summarize a view when the relevant variation can be read from linear directions. A relationship that only becomes clear after a nonlinear change of coordinates requires more flexibility. The paper cites kernel CCA and Deep CCA as earlier ways to obtain nonlinear relationships for a pair of views.

Deep CCA, or DCCA, applies a separate neural network to each member of the pair. Canonical correlation is then measured on the transformed outputs. The networks are adjusted to make those outputs more amenable to the correlation objective. A linear direction in the final network output can therefore yield a nonlinear function of the original observation. In the account given by the paper, the Deep CCA objective still concerns a pair of views.

Generalized CCA, or GCCA, takes a different approach to the number of views. It introduces an explicit shared representation for the training examples and fits a projection from each view toward it. Every source has the same target. This gives the optimization a way to accommodate an additional view without deciding which existing view should serve as its reference. In the formulation the authors build on, the transformations of the original inputs are linear. The solution also involves a matrix indexed by training examples along both axes, so its size creates a memory constraint as the number of observations grows.

These are differences in the objectives as well as in the permissible transformations. Deep CCA coordinates a pair of projected outputs using correlation. GCCA coordinates several views by making each approximate an auxiliary representation. Accordingly, adding a network in front of GCCA changes the question the networks have to answer. Each transformed view has to make the auxiliary target recoverable through its own projection. Training requires a derivative that accounts for the way the target and projections are chosen from the network outputs.

#### Other ways to coordinate many views

The paper also describes work outside the CCA family. Some approaches directly reward agreement between pairs of views. The resulting collection of pairwise comparisons grows quadratically in the number of views when all pairs are considered. The discussion also considers approaches that form relationships through a designated pivot view. Such a choice makes one source the reference for how the others should line up.

Another family learns a consensus representation and transformations for the individual views by alternately updating them. This shares with GCCA the idea that the common space can be learned. In DGCCA, once the network outputs have been computed, the consensus representation and linear maps can be solved together as an optimization subproblem. That property belongs to the GCCA construction. It gives the networks a well-defined objective to train against even though learning the nonlinear transformations introduces local optima.

The paper’s design thus makes a specific choice about where to use flexibility. Each input source gets its own nonlinear transformation, which can account for the form of that source’s measurements. The transformed views meet through one shared representation whose fit is measured in the same way across views. This division also provides the basis for the training algorithm.

### The method, step by step

#### From aligned observations to a shared space

Start with a batch of examples observed through several sources. In the speech study, an aligned example comprises an acoustic vector, an articulatory vector and a label vector. The method keeps these inputs separate. Each is passed through a network whose parameters belong to that view. The output of a network is a new description of the corresponding examples, expressed in coordinates the network can change during learning.

The next step is to find a common representation of the batch. Give every example a column of shared coordinates. For each view, fit a linear map from its current network output to those coordinates. Good shared coordinates are ones that can be recovered, with small errors, from all the transformed views. An error is a discrepancy between an example’s shared coordinates and those recovered from a particular view. The objective collects these discrepancies across the batch and over views.

The shared coordinates have to carry variation. If an unconstrained procedure were free to assign zero coordinates to every example and make every projection zero, the reconstruction error would vanish. DGCCA requires the rows of the shared representation to be orthonormal. A row records one coordinate across all the examples in the batch. Orthonormality gives each row unit length and requires different rows to be orthogonal. The assignment therefore has to use the requested dimensions in the shared space.

For a given batch, the procedure solves for the best shared coordinates and the linear maps using the outputs the networks presently supply. This gives one error signal for each network. A network update changes the nonlinear functions that produce those outputs, which in turn changes what the shared representation can capture on a later batch. The important distinction is between fitting the shared coordinates given the current outputs and changing the functions that supply those outputs. The fitting step is a linear algebra problem, while the network update uses back-propagation.

How DGCCA learns a shared representation The steps in order.

A fitted network and its linear projection can be composed into a map for new observations. The network provides the nonlinear transformation. The projection puts its output into the shared coordinate system learned from aligned data. In the phoneme experiments, this is how the acoustic measurements become the features used by the classifier. The shared space mediates what the sources teach one another during fitting, and the acoustic map determines which parts of that space can be recovered from the acoustic input at use time.

#### What CCA optimizes

The paper introduces CCA with a pair of random vectors. A vector is the collection of feature values observed from a view. Choosing a direction means choosing a weight for each of those features. Multiplying a vector by those weights produces a scalar score, and CCA chooses directions by judging how the two resulting scores co-vary across observations.

```
(u₁*, u₂*) = argmax over u₁, u₂ of corr(u₁ᵀX₁, u₂ᵀX₂)
```

Here `X₁` and `X₂` are random vectors for the respective views, with feature dimensions `d₁` and `d₂`. The candidate directions are `u₁` and `u₂`, each with the dimension of its corresponding view. The superscript `ᵀ` transposes a vector so that `u₁ᵀX₁` and `u₂ᵀX₂` are scalar weighted sums. The function `corr` measures the correlation of those scores. The operator `argmax` returns directions attaining the maximum, and the stars mark an optimal pair.

The paper also expresses that search using the covariance of the two views. A covariance matrix for one view describes how its features vary together. A cross-covariance matrix describes how features in one view vary with features in the other. Once each projected score is required to have unit variance, maximizing the covariance of the scores is equivalent to maximizing their correlation.

```
(u₁*, u₂*) = argmax over u₁, u₂ of u₁ᵀΣ₁₂u₂, subject to u₁ᵀΣ₁₁u₁ = u₂ᵀΣ₂₂u₂ = 1
```

The directions `u₁` and `u₂` and the optimal pair indicated by `*` retain their meanings. The matrices `Σ₁₁` and `Σ₂₂` contain the within-view covariances and `Σ₁₂` contains the cross-view covariances. The transpose is `ᵀ` and the operator `argmax` selects maximizing directions. The quantity after `of` is the covariance of the projected scores. The constraints fix their variances at `1`, giving a common scale for the maximization.

DCCA places a learned function before each projection. Changing one of those functions changes the features whose correlation is being measured. Back-propagation then adjusts the functions’ parameters in response to the correlation objective.

```
(u₁*, u₂*, W₁*, W₂*) = argmax over u₁, u₂, W₁, W₂ of corr(u₁ᵀZ₁, u₂ᵀZ₂), with Z₁ = f₁(X₁; W₁), Z₂ = f₂(X₂; W₂)
```

The vectors `X₁` and `X₂` are the original inputs, and `Z₁` and `Z₂` are the transformed outputs. The functions `f₁` and `f₂` are the view networks with weight collections `W₁` and `W₂`. The directions `u₁` and `u₂` now act on the corresponding outputs through the transpose `ᵀ`. The function `corr` is correlation of the resulting scores, `argmax` searches over the projection directions and network weights, and `*` marks optimal values in the objective. The semicolon within a function call separates its input from its parameters.

#### The common target in GCCA and DGCCA

GCCA uses a matrix convention suited to a collection of matched observations. Each column is an example. View matrices can have different numbers of rows, since a row represents a feature in that particular view. They have the same number of columns and use the same example order. The shared representation has a column for each of those examples and a row for each learned coordinate.

```
minimize over G and Uⱼ:  Σⱼ₌₁ᴶ ‖G − UⱼᵀXⱼ‖²_F,  subject to GGᵀ = Iᵣ
```

Here `J` is the number of views and `j` indexes them. The view matrix `Xⱼ` has `dⱼ` rows for features and `N` columns for examples. The projection matrix `Uⱼ` has `dⱼ` rows and `r` columns, where `r` is the requested shared dimension. Its transpose `Uⱼᵀ` maps from the feature coordinates to the shared coordinates. The matrix `G` has `r` rows and `N` columns, so each projected matrix can be subtracted from it entry by entry. The sum `Σⱼ₌₁ᴶ` includes every view. The squared Frobenius norm `‖·‖²_F` sums squared entries of a matrix, here the residuals between projected and shared coordinates. The constraint uses the `r`-dimensional identity matrix `Iᵣ` to impose orthonormality on the rows of `G`.

This formulation gives a particular meaning to reconstruction. The method measures how closely the view projections reconstruct the shared coordinates. The input features themselves can have highly unequal widths, and the reconstruction comparison still takes place in the same shared space for each view. A projection that captures a substantial amount of variation in its own input can therefore be a poor fit to this objective if its coordinates disagree with the common target.

DGCCA changes what is being projected. Let a network for a view have a sequence of layers, each taking the preceding layer’s output and transforming it. The paper describes the network with a nonlinear activation applied after multiplication by the layer’s weight matrix.

```
hⱼₖ = s(Wⱼ⁽ᵏ⁾ hⱼ,ₖ₋₁)
```

The index `j` selects the view and `k` selects a layer in its network. The vector `hⱼₖ` is that layer’s output and `hⱼ,ₖ₋₁` is its input from the preceding layer, beginning with the observed features. The matrix `Wⱼ⁽ᵏ⁾` contains the weights from the preceding layer to the current one. The function `s` is a nonlinear activation applied to the entries of the weighted vector. The paper uses `Kⱼ` for the number of layers and `oⱼ` for the output width. Applying the network to the columns of `Xⱼ` produces the output matrix `fⱼ(Xⱼ)`.

```
minimize over G, Uⱼ and Wⱼ:  Σⱼ₌₁ᴶ ‖G − Uⱼᵀfⱼ(Xⱼ)‖²_F,  subject to GGᵀ = Iᵣ
```

In this expression `Xⱼ` is the input matrix for view `j` and `fⱼ` is its network, determined by the collection of layer weights `Wⱼ`. The output `fⱼ(Xⱼ)` has `oⱼ` rows and `N` example columns. The matrix `Uⱼ` now has `oⱼ` rows and `r` columns so its transpose `Uⱼᵀ` projects the network output into the coordinates of `G`. The sum `Σⱼ₌₁ᴶ` runs over the `J` views and the squared Frobenius norm measures each projection’s reconstruction error. The matrix `G` again has `r` rows and `N` columns, and `Iᵣ` is the identity required by the orthonormality constraint.

The combination of a nonlinear network and a linear output projection is deliberate. The network can alter the geometry of the measurements so that a shared pattern becomes linearly accessible. The projection keeps the problem of finding common coordinates tractable once that geometry is fixed. In a synthetic example with groups that resist linear separation in the input views, a network can change the layout of each view before GCCA has to find a common arrangement. The group identity is then a way to judge what structure survived the transformation.

#### Solving for the shared coordinates

The authors derive the training signal by first solving the GCCA problem at fixed network outputs. To see what that accomplishes, imagine choosing a candidate `G` and fitting the best linear map to it for a particular view. Whatever the map, the resulting rows across examples must be formed from combinations of the output rows of that network. The chosen `G` is easy for the view to reconstruct when its rows already lie close to the space spanned by those outputs.

The paper first forms a matrix from each network output and its transpose. This is the quantity it calls a scaled empirical covariance. Its dimensions depend on the number of output features and its entries summarize products of those features over the examples being considered.

```
Cⱼⱼ = fⱼ(Xⱼ) fⱼ(Xⱼ)ᵀ
```

The matrix `Cⱼⱼ` is the scaled covariance for view `j`. The function `fⱼ` maps the input matrix `Xⱼ` to the network output, and `ᵀ` denotes transposition. With `oⱼ` output rows and `N` example columns in `fⱼ(Xⱼ)`, the product has `oⱼ` rows and `oⱼ` columns.

The solution uses the inverse of that covariance in a projection. The projection acts in example coordinates. Its action on a row of shared coordinates retains the part that can be expressed using the output features from that view. It is this recoverability, instead of a feature-by-feature matching of raw inputs, that determines how informative the view is for a proposed shared representation.

```
Pⱼ = fⱼ(Xⱼ)ᵀ Cⱼⱼ⁻¹ fⱼ(Xⱼ)
```

Here `Pⱼ` is the projection associated with view `j`, with `N` rows and `N` columns. The transposed output `fⱼ(Xⱼ)ᵀ` has examples as rows. The factor `Cⱼⱼ⁻¹` is the inverse of the scaled covariance matrix defined above. The last factor is the untransposed network output. The resulting `Pⱼ` is symmetric and idempotent in the derivation. Symmetry means transposition leaves it unchanged, and idempotence means projecting twice gives the same result as projecting once. The formula with an inverse is stated for a covariance that can be inverted. The speech experiments also use covariance regularization as a setting for the label view.

The views contribute by summing these projections. This makes it possible to score a proposed shared direction according to the amount of it recovered across views. Directions fit by several views receive support through several terms of the same sum.

```
M = Σⱼ₌₁ᴶ Pⱼ
```

The matrix `M` adds the view projectors `Pⱼ`, with `j` ranging across all `J` views. It has the same example-by-example dimensions as a single projector. The projectors are positive semidefinite, meaning their quadratic forms are non-negative, and their sum has the same property. The symmetric `M` consequently has orthonormal eigenvectors available for the solution. An eigenvector here is a direction across examples that multiplication by `M` rescales by its eigenvalue.

The rows of `G` are chosen as the `r` orthonormal eigenvectors associated with the largest eigenvalues of `M`, written as rows. This supplies the jointly fitted coordinates. For each view there is also a least-squares solution for predicting those coordinates from the corresponding network output.

```
Uⱼ = Cⱼⱼ⁻¹ fⱼ(Xⱼ) Gᵀ
```

Here `Uⱼ` is the linear projection parameter for view `j`, with `oⱼ` rows and `r` columns. The inverse covariance `Cⱼⱼ⁻¹` acts on the output feature coordinates. The product of the network output `fⱼ(Xⱼ)` and the transpose `Gᵀ` of the shared representation measures how those features align with the shared rows across the `N` examples. The transpose of the fitted `Uⱼ` is what maps a network output into shared coordinates.

These solutions explain why the shared representation can be learned without appointing one view as the target. Every view contributes its projector to `M`. The eigenvectors are chosen from that combined matrix. The leading directions are favored for their total recoverability across the views, under the constraint that the shared rows be orthonormal. Individual views can still recover those rows with different degrees of fidelity. Their separate residuals add up to the reconstruction objective.

#### Turning the shared fit into a learning signal

The original minimization couples the network weights to a constrained matrix `G`. The paper handles the constraint through the exact inner solution. It expresses the reconstruction error attained at that solution as an equivalent score that depends on the network outputs. This avoids having to treat the orthonormality condition as a constraint on ordinary updates of the network weights.

```
Σⱼ₌₁ᴶ ‖G − Uⱼᵀfⱼ(Xⱼ)‖²_F = rJ − Tr(GMGᵀ)
```

The left side is the sum over the `J` views of the squared Frobenius norm of their reconstruction residuals, with the projections `Uⱼ` and `G` taken at the inner optimum. The functions `fⱼ` produce the view outputs from `Xⱼ`, and `ᵀ` denotes transpose. On the right, `r` is the shared dimension, so `rJ` is fixed when the dimension and views are fixed. The operator `Tr` adds the diagonal entries of its matrix argument. With the chosen `G`, `Tr(GMGᵀ)` gives the total contribution of the selected shared directions.

The objective can now be read as a reward for network outputs that support the leading common directions. The term `rJ` does not vary as the network weights change. Raising the trace lowers the reconstruction error by the corresponding amount. The paper writes the trace at the optimum as a sum of leading eigenvalues.

```
L = Σᵢ₌₁ʳ λᵢ(M)
```

The scalar `L` is the score to maximize for the fixed shared width `r`. The matrix `M` is the sum of projectors. The symbol `λᵢ(M)` denotes its eigenvalue at position `i` when ordered from largest downward, and the sum includes the leading `r` values. A network update is desirable under this objective if it makes those shared directions more recoverable from the transformed data.

The key result is the derivative of that score with respect to the output of each network. The paper gives it in terms of the optimal shared coordinates and the fitted map for the corresponding view.

```
∂L / ∂fⱼ(Xⱼ) = 2UⱼG − 2UⱼUⱼᵀfⱼ(Xⱼ)
```

Here `∂L / ∂fⱼ(Xⱼ)` is the matrix of partial derivatives of the score `L` with respect to entries of the network output for view `j`. The matrix `Uⱼ` maps a vector from the shared coordinate dimensions back into the dimensions of that output for this expression. The product `UⱼG` takes the target shared coordinates into those output dimensions. The product `UⱼUⱼᵀfⱼ(Xⱼ)` takes the network’s actual projected coordinates, obtained by `Uⱼᵀ`, into the same output dimensions. The coefficient `2` multiplies each term as a consequence of the squared error.

The two terms give a direct interpretation of the derivative. First ask where the current network output lands in the shared space. Compare that with the fitted target for the same examples. The derivative translates their discrepancy back into the output features that helped determine the projection. Back-propagation can then calculate how changes to the earlier network weights would affect those features and, through them, the optimized score.

Each batch repeats the sequence using a sample of aligned columns. The outputs change as the networks change, and the shared fit is recomputed from those outputs. The authors describe this as stochastic optimization because the update uses a batch estimate of the objective’s derivative. The exact solution applies to the common space and the linear projections given current outputs. The resulting updates search over nonlinear networks using the usual dependence on initialization and optimization that accompanies a problem with local optima. The authors make an implementation of DGCCA available together with the synthetic experiment data.

### Experiments and results

#### A mixture whose structure survives the nonlinear maps

The synthetic study makes the geometric question visible before testing a downstream task. The authors construct aligned data with three views from a mixture distribution. An example comes from one of the mixture components, and the figure uses the same color to indicate component membership across views. Thus, readers can compare where points from the same component land as the method moves from the observed views to the learned coordinates. The colors show the underlying structure against which the learned layout is judged.

The chosen example is difficult for linear projections. In each input view, the component groups cannot be separated by a linear transformation. The paper compares the shared coordinates produced by linear GCCA with those produced by DGCCA. In the plot of the learned two-dimensional representation, the groups in the GCCA result lose their visible structure. The DGCCA result mostly retains it. The authors observe that much of the separation remains visible even along the first coordinate.

Each view network in this example has three hidden layers with ten units per layer and begins with randomly initialized weights. The experiment illustrates what the extra transformations can buy. The same type of shared target can describe very different patterns depending on the coordinates presented to its linear projections. The evidence here is the arrangement of the plotted points. The paper gives a qualitative comparison of the recovered mixture structure.

#### Speech features learned from sound, movement and labels

The speech experiments use the University of Wisconsin X-ray Microbeam Database, abbreviated XRMB. The measurements used in the paper include acoustic recordings and observations of articulation, with a phoneme label for each aligned frame. An acoustic observation describes the recorded sound at a point in time. The articulatory observation supplies information about how the speaker produced it. Both can be associated with the same frame and with the label identifying its sound category.

After preprocessing, the acoustic and articulatory inputs are 273 and 112 dimensional, respectively. Each speaker contributes roughly 50,000 frames. In the GCCA and DGCCA experiments, a 39-dimensional one-hot vector gives the label view. A one-hot vector identifies the category through the position of its active entry. Learning from this view invites the shared space to capture distinctions associated with the known labels. DCCA uses the acoustic and articulatory views.

The cross-speaker setup trains on JW11 and uses separate splits of JW24 for tuning and testing. It asks whether features learned using one speaker can be applied to measurements from a different speaker. The speaker-dependent setup uses 5-fold cross-validation on JW11, including tuning for the label view. The authors limit the experiments to a subset of speakers to keep the runtime manageable. Accordingly, the cross-speaker and speaker-dependent results answer questions about different evaluation conditions within XRMB.

The acoustic and articulatory networks have three hidden layers each. The acoustic hidden layers are 1024 units wide, and the articulatory hidden layers are 512 units wide. The paper reports L2 penalty constants of 0.0001 for the acoustic network, 0.01 for the articulatory network and 0.0005 for the label network. An L2 penalty discourages large weights by adding a cost based on their squared magnitudes. The output layers of DCCA and DGCCA have width 30.

For the speaker-dependent folds, the authors search label-view network sizes of 128, 256, 512 and 1024. They also search covariance regularization settings given as powers of ten with exponents −2, −4, −6 and −8. Regularizing the covariance affects the matrix calculation used to fit the label view. The paper reports a stochastic gradient step size of 0.005 and a batch size of 2,000 for optimizing the speech networks.

After the representation stage, the authors classify the acoustic features with a k-nearest neighbor classifier. This type of classifier uses the labels of nearby examples in the input space it is given. The study compares the original acoustic features, listed as MFCC in the results, with acoustic features projected using DCCA, GCCA or DGCCA. Keeping the classifier type the same makes the performance comparison a test of the features available to it. A strong result means examples from sound categories can be distinguished from their positions in the acoustic feature space under this decision rule.

Cross-speaker phoneme classification on XRMB, test accuracy DGCCA leads the comparison when the acoustic representation is tested on a different speaker.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Original acoustic features (MFCC) | 49.3 |
| DCCA | 46.1 |
| GCCA | 50.2 |
| DGCCA (this paper) | 54.2 |

In the cross-speaker setting, development accuracy follows the same ordering as test accuracy. DGCCA records 53.8 on development, GCCA 49.6, the original acoustic features 48.9 and DCCA 45.4. The comparison with GCCA holds the training views constant and changes the transformation. The comparison with DCCA puts the nonlinear many-view method against a nonlinear method trained with the acoustic and articulatory inputs. Its lower score is evidence about classification from those projected acoustic features under the paper’s setup.

On the speaker-dependent development and test splits, DGCCA reports 72.6/72.3 accuracy. GCCA reports 69.5/69.8, the original acoustic features 66.3/66.2 and DCCA 65.9/65.8. Therefore, the ordering of the feature sets also holds when training and evaluation concern the same speaker. The accuracy values for that setup are higher across methods than in the cross-speaker setup. Since speaker identity and the evaluation design change together, the two columns describe distinct conditions rather than serving as a direct measurement of the effect of any one change to the data.

The speech results also report reconstruction error for the methods that fit a shared `G`. In the cross-speaker setup it is 40.7 for GCCA and 35.9 for DGCCA. In the speaker-dependent setup the corresponding errors are 40.4 and 20.5. These numbers describe the fit among the projected views. Accuracy describes the success of the classifier on acoustic inputs. Both favor DGCCA in these comparisons, supplying separate evidence that the networks improve the shared fit and that the resulting acoustic coordinates are useful for recognizing phonemes.

#### User representations for recommendation

The Twitter study uses users as the aligned examples. It follows the training, development and test sets of the earlier Twitter work described by the authors. Four text views summarize the account’s own posts and text associated with users it mentions, its friends and its followers. The text inputs start as bags of words, which describe word occurrence while leaving word order out of the representation. Principal component analysis, or PCA, supplies lower-dimensional features for these inputs. The other two views encode the local friend and follower networks with indicators for network membership.

This preprocessing gives each account several ways of being similar to another. Text can reflect what users write about or what people around them write about. The network views reflect who is connected to whom. The same account can look alike to some users under a text description and to others under a network description. Learning one set of coordinates asks which patterns of similarity can be carried across those representations. Evaluating hashtags and friends separately tests whether those coordinates retain what each task needs.

For DGCCA, the authors train 40 architectures. Within an architecture the view networks have identical layer sizes, while each view learns its own parameters. The authors use a single hidden layer with a rectified linear activation, which preserves positive activations and sets negative ones to zero. The hidden and output widths, written `c₁` and `c₂` for this experiment, are drawn uniformly from [10, 1000]. The shared width `r` is drawn uniformly from [10, c₂]. This fixes a common architectural pattern while varying how much capacity is available in the view transformations and the shared space.

The paper reports 102,328 users for this representation-training procedure, with 90% used for fitting and 10% used for tuning based on held-out reconstruction error. It reports training for 200 epochs, a learning rate given as ten to the power of −4, and regularization values given as ten to the powers of −2 and −4. The downstream development set supplies the basis for the choice of DGCCA architecture whose development and test results are reported. For the network updates the study uses [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/).

The baselines put the same kinds of user information together in different ways. PCA[T+N] applies PCA to concatenated text and network features. The notation `T` denotes the text views and `N` the network views. GCCA[T] uses the text views separately in a linear GCCA objective. GCCA[T+N] adds the network views. Weighted GCCA, or WGCCA, gives different views different influence over the shared solution. Its text-only and text-plus-network settings allow the evaluation to consider which input descriptions are valuable when their contributions can be tuned. The linear methods use representation widths in [10, 1000] and are selected by development recall at 1,000.

The paper reports macro precision and recall at 1,000 recommendations, denoted P@1K and R@1K. Precision measures the proportion of the recommended items that are relevant. Recall measures the proportion of relevant items retrieved among the recommendations. Macro evaluation aggregates user-level performance, giving a user influence through the score for that user. A rank cutoff makes these measures about the items included in the evaluated recommendations. The paper uses the same cutoff for both the friend and hashtag tasks.

#### Hashtag recall favors DGCCA

Twitter hashtag recommendation, test recall at 1,000 DGCCA recovers the largest share of relevant hashtags among the reported methods.

**The numbers**

| System or setting | R@1K |
| --- | --- |
| PCA[T+N] | .290 |
| GCCA[T] | .326 |
| GCCA[T+N] | .334 |
| WGCCA[T] | .325 |
| WGCCA[T+N] | .346 |
| DGCCA[T+N] (this paper) | .373 |

On hashtag recommendation, DGCCA reports development R@1K of .385. The comparable development values are .359 for GCCA[T+N], .360 for WGCCA[T+N] and .312 for PCA[T+N]. The text-only GCCA and WGCCA results are .351 and .357. DGCCA has the highest recall on development and test, and its test result exceeds that of weighted GCCA even though the weighted baseline can adjust which views it uses.

The precision results give a narrower comparison. DGCCA reports hashtag P@1K of .013/.010 on development and test. The test precision of .010 is shared with GCCA[T+N], which reports .012/.010. WGCCA[T+N] reports .013/.009, while PCA[T+N] reports .011/.008. Both text-only linear methods report .012/.009 in their displayed development and test columns. At the precision reported in the paper, DGCCA’s clearest advantage is therefore in the share of relevant hashtags retrieved. The precision column places it alongside the strongest linear result on the test split.

#### Friend recommendation favors the linear baselines

Twitter friend recommendation, test recall at 1,000 PCA has the highest recall and weighted GCCA also places above DGCCA.

**The numbers**

| System or setting | R@1K |
| --- | --- |
| PCA[T+N] | .147 |
| WGCCA[T+N] | .120 |
| WGCCA[T] | .091 |
| DGCCA[T+N] (this paper) | .090 |
| GCCA[T+N] | .089 |
| GCCA[T] | .081 |

For friend recommendation, DGCCA reports development R@1K of .099. GCCA[T+N] reports .088 and GCCA[T] .080, while WGCCA[T] reports .089. The strongest development recall comes from PCA[T+N] at .149, followed by WGCCA[T+N] at .123. Those two methods also lead DGCCA on the test split. Among the more closely performing methods, the test ordering differs from development. Text-only WGCCA comes out just ahead of DGCCA, and the unweighted all-view GCCA is just below it on recall.

Friend P@1K follows the same broad pattern at the top. DGCCA reports .297/.268 on development and test. PCA[T+N] gives .445/.439, and WGCCA[T+N] gives .376/.364. Unweighted GCCA using all views moves from .271 on development to .276 on test, placing below DGCCA on development and above it on test. Text-only WGCCA records .269/.279 and text-only GCCA .244/.249. Taken together, these values support a task-specific account of DGCCA’s performance. Its clearest recommendation result is hashtag recall, while the friend task retains a substantial advantage for the strongest linear methods in this comparison.

### What the ablations show

#### Separating the effect of the nonlinear transformations

The paper’s explanations rely on controlled contrasts and diagnostic analyses. The synthetic experiment gives the most direct visual comparison. Linear GCCA and DGCCA use the same underlying views and a shared representation of the same displayed dimensionality. The change is that DGCCA can learn a nonlinear transformation of each view before performing the shared projection. The separation recovered in the DGCCA plot is consistent with those transformations making the mixture structure accessible to the shared space. The example is intentionally chosen to exhibit a structure that linear transformations of the individual inputs have difficulty retaining.

The speech comparison between GCCA and DGCCA tests the role of nonlinearity in a downstream setting. Both methods receive acoustic measurements, articulatory measurements and labels. DGCCA has lower reconstruction error in each speech setup, showing that its projections match the shared target more closely under the authors’ objective. It also has higher phoneme accuracy, using projected acoustic features and the same type of nearest neighbor classifier. This connects the improved fit to a recognizable change in downstream performance.

The cross-speaker and speaker-dependent reconstruction errors give further detail about that connection. The reduction in reconstruction error is particularly pronounced within the speaker-dependent setup. The accompanying accuracy results have to be read on their own scale. Reconstruction measures agreement among the training views in the learned space, while the classifier counts correct label predictions based on the projected acoustics. The two diagnostics are complementary because the former is the quantity DGCCA is designed to improve and the latter tests why that improvement might matter.

The DCCA comparison addresses a related question with a different set of changes. DCCA and DGCCA both learn nonlinear transformations, but DCCA uses the acoustic and articulatory views with a pairwise correlation objective and DGCCA also uses the labels with a shared-target objective. The lower DCCA accuracy therefore describes the performance of that whole setup. An estimate of what the label view alone contributes would require a comparison within DGCCA with the training views varied and the other choices held fixed.

There is also a contrast with the unprojected acoustic baseline. According to the paper, prior speech research added the original acoustic view’s 39-dimensional center frame to the DCCA output. The current experiment classifies from the learned projection alone for its DCCA condition. With the output width set to 30 and the two input views used here, the projected acoustic features give lower accuracy than the original acoustic features. This tells the reader what was lost for the classifier under that specific representation choice. An experiment that augments the projection with the original acoustic frame poses a different feature question.

#### Which phonemes account for the improvement

For the speaker-dependent test, the authors examine a portion of the confusion matrices for GCCA and DGCCA. A confusion matrix groups predictions according to the true category and the category assigned by the classifier. It can show whether an accuracy improvement reflects a broad change across categories or a correction of a smaller set of recurrent mistakes. The displayed subset directs attention to places where the two learned acoustic spaces lead the same classifier to different decisions.

The authors identify large improvements for D, F, K, SH, V and Y. An example is V, which the GCCA features often lead the classifier to assign to P, R or B. The corresponding pattern is reduced under DGCCA. The paper also points to changes involving S and T and to better classification of voiceless consonants including F, K and SH. These observations are about the errors represented in the speaker-dependent analysis. The vowel categories are classified with nearly equal accuracy by the two methods, so the aggregate improvement is compatible with very similar performance for an entire group of phonemes.

This diagnostic adds discrimination to the reconstruction result. A lower alignment error by itself describes a better fit to shared coordinates over examples. The confusion matrices show some of the speech distinctions for which acoustic neighbors become more informative. They leave open whether the underlying cause is better separation of a target class, a change in the positions of classes it was confused with, or a combination of these effects.

#### Changing which user views count

The text-only and text-plus-network linear baselines show how the set of views affects recommendation. In unweighted GCCA, adding the network views raises the reported test recall for both tasks. In the weighted comparison, the all-view candidate set also has higher reported test recall than the text-only set for both tasks. These comparisons concern the respective linear methods and the fitted representations selected for development recall. Within a weighted fit, a view can have little influence even when it is available during the search.

The weighted baselines are particularly informative because the authors search every combination of view weights in {0, 0.25, 1.0}. A weight of 0 allows the procedure to discard a view. This gives the weighted method a mechanism to specialize the representation to the task through view selection. DGCCA uses all the views in its recommendation experiments. Its hashtag recall exceeds the weighted baseline’s result under this comparison, which supports the authors’ interpretation that nonlinear transformations can make useful additional information recoverable when the task draws on several views.

For friend recommendation, the paper points to the earlier result that the friend network view supplies the useful information. It also describes corroborating evidence from applying PCA to that view. The all-view DGCCA objective rewards agreement with the common representation across sources. A strong signal concentrated in the friend network can therefore be less prominent in a shared space learned from all the views than in a representation allowed to specialize in that network. The friend recommendation scores fit this explanation. They do not identify which additional views caused which errors or show what a differently weighted nonlinear objective would have achieved.

### Limitations

#### Limits the authors identify

The authors distinguish the exact solution of the shared-space problem from training the networks. The solution for `G` and the view projections is globally optimal conditional on the current outputs. The full problem includes the nonlinear transformations themselves, which introduce local optima. The derivative turns these transformations into parameters that can be trained with back-propagation. Guarantees for the fitted projections and shared coordinates therefore apply at the inner step. The results of the overall procedure remain tied to the trained networks.

The authors also identify the memory issue associated with a matrix indexed by examples along both axes. As sample size grows, the size of that matrix grows quadratically. The stochastic procedure forms its gradient estimates on batches, so the experiment settings are part of how the authors make the calculation practical. Their discussion about the number of views concerns a different axis of scaling. The method adds projectors over views and avoids forming every pairwise comparison. This property can coexist with substantial work on the examples inside a batch.

The speech study limits the number of speakers to reduce runtime. The authors report a cross-speaker experiment training on JW11 and evaluating on splits of JW24, complemented by speaker-dependent experiments on JW11. Those choices provide evidence about transfer across the speakers and splits actually studied. The reported articulatory and label views, along with the fixed acoustic and articulatory settings, are part of the conditions under which the speech results were obtained.

For Twitter, the authors deliberately restrict their search to networks with a single hidden layer and the same architecture across views. This tests whether the method can give useful user representations within a bounded search. The result describes that family, including the reported width and shared dimension choices. The authors explicitly recognize that the friend network supplies a signal that the all-view DGCCA treatment does not exploit as effectively as the weighted linear representation focused on the useful view.

#### Limits of the comparisons

A careful reading of the speech comparison separates the kinds of evidence for nonlinearity and for the use of labels. The GCCA-to-DGCCA comparison uses the same training views and supports the contribution of nonlinear preprocessing to the shared fit and the resulting classifier. The DCCA-to-DGCCA comparison changes both the objective and the view set. The independent contribution of labels within DGCCA therefore remains unresolved by those numbers. Since labels are an input to representation learning in these conditions, the DGCCA result measures the value of an acoustic projection shaped partly by supervision.

The synthetic comparison supplies a clear example of the geometry the method can recover. Its force comes from the chosen arrangement, in which linear projections are poorly suited to separating the mixture components. The figure illustrates a possibility with particular views and a particular network setup. A general estimate of how reliably DGCCA recovers mixture structure under changes in initialization, data generation or view quality would require evidence beyond the illustrated example.

The recommendation comparisons also combine differences in objective and selection. The methods have different ways to combine information, and weighted GCCA can search for a useful subset of views. DGCCA’s architecture search varies network widths and the shared dimension while using the all-view setup. The resulting scores describe those procedures as evaluated. They cannot isolate the contribution of nonlinearity relative to weighted GCCA as cleanly as the all-view GCCA comparison, because the weighted method has a different mechanism for controlling which signals reach the representation.

For recommendation, the evidence concerns macro precision and recall at the evaluation cutoff. DGCCA’s ordering against other methods can differ across those measures and between development and test. For example, its unweighted GCCA comparison on the friend test favors DGCCA slightly in recall and GCCA in precision. Similarly, its hashtag test precision ties all-view GCCA at the displayed precision while its recall leads. Claims about overall recommendation quality should preserve these distinctions and the use of the reported cutoff. The published comparisons give point estimates, and the stability of small gaps across repeated trials remains open.

Finally, the formulation begins with matched examples in the input matrices. This makes the mechanics of agreement explicit. Each network sees a view of the same batch, and each projection is constructed over the same example columns. The ability to project a new observation from one view is a separate property from the data requirements of fitting the shared space. The experiments establish the former through the acoustic classification setup and offer evidence about training with the aligned observations used in the paper. Behavior when views are missing during fitting, or when alignment is uncertain, remains outside the evaluated conditions.

### What came after

The documented sequence ends with DGCCA. No subsequent study can be attributed a specific extension, application or finding on this record. The paper itself establishes the contribution at that point in the sequence. It retains GCCA’s shared-target objective, derives a gradient that lets view-specific networks learn from it, and shows how the resulting representations fare on speech and two recommendation tasks whose relevant information is distributed differently across views.

## Cite

Cite as Adrian Benton, Huda Khayrallah, Biman Gujral, Dee Ann Reisinger, Sheng Zhang and Raman Arora. 2019. Deep Generalized Canonical Correlation Analysis. Proceedings of the 4th Workshop on Representation Learning for NLP (RepL4NLP-2019).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/w19-4301](https://doi.org/10.18653/v1/w19-4301)

```bibtex
@inproceedings{benton2019deep,
  title = {{Deep Generalized Canonical Correlation Analysis}},
  author = {Adrian Benton, Huda Khayrallah, Biman Gujral, Dee Ann Reisinger, Sheng Zhang and Raman Arora},
  booktitle = {Proceedings of the 4th Workshop on Representation Learning for NLP (RepL4NLP-2019)},
  year = {2019},
  doi = {10.18653/v1/w19-4301},
  url = {https://doi.org/10.18653/v1/w19-4301}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
