Elamur Research

SVCCA: Singular Vector Canonical Correlation Analysis for Deep Learning Dynamics and Interpretability

Paper · 2017 · Maithra Raghu, Justin Gilmer, Jason Yosinski et al.

Summary

Two neural networks can learn useful ways of processing the same data while looking quite different when their neurons are compared individually. One neuron may combine signals that another network spreads across several neurons. Differences in scale or coordinate system can also obscure a shared representation. SVCCA addresses this measurement problem: how can researchers compare what networks have learned without requiring their individual neurons to correspond? The paper develops a method for comparing groups of activation patterns, then uses it to study the dimensionality, development, and organization of learned representations.

The central move is to describe a neuron through its responses to a common collection of inputs. Each neuron becomes a vector whose entries are its activations across that collection. A layer becomes the space spanned by those vectors. Singular Vector Canonical Correlation Analysis, or SVCCA, compares such spaces through complementary operations. Singular value decomposition identifies the directions that carry most of the observed variation. Canonical correlation analysis then finds linear combinations from the two representations whose responses are strongly correlated. This makes shared structure visible even when it is spread across different neurons. The output includes both the aligned directions and a correlation coefficient for each pair, allowing a detailed comparison or an aggregate similarity score.

The experiments show that a layer’s neuron count can substantially exceed the number of directions needed to preserve its task performance. In a fully connected layer of a network trained on CIFAR-10, retaining 25 SVCCA directions gives accuracy close to that obtained with all 512 dimensions, without further training. Comparisons across training checkpoints also reveal a broad tendency for layers near the input to approach their eventual representations earlier than higher layers. The authors turn that observation into Freeze Training, which progressively stops updating lower layers while allowing higher layers to continue learning. Experiments with convolutional and residual networks indicate reduced training computation and potentially better generalization. Further analyses compare architectures, examine correlations between intermediate layers and class outputs, and explore compression through narrow projections.

The paper’s contribution to interpretability is therefore both a measurement technique and a set of questions that technique makes practical. It provides evidence that useful information can occupy a relatively small, distributed subspace; that representational change follows a structured course during training; and that output classes have different relationships with intermediate layers. These findings have limits. The evidence concerns particular networks, tasks, and input collections, while several results are presented as qualitative curves rather than complete numerical comparisons. A high SVCCA similarity establishes a form of linear correspondence over the measured inputs. It does not, by itself, prove identical computation, identical behavior on other inputs, or a complete account of what either network knows.

Interesting ideas

Compare responses on shared inputs. A useful representation comparison begins by fixing the observations on which the representations will be judged. SVCCA describes every neuron through its responses to the same examples, so neurons from different layers or networks live in a common observation space. This separates the comparison from the details of how each network stores its parameters. The idea is reusable whenever two systems produce internal numerical features for corresponding cases. It also forces a productive question before any similarity score is calculated: which inputs should define the behavior that matters? A comparison over familiar training examples and a comparison over a targeted evaluation collection need not answer the same scientific question.

Compare spaces rather than neuron identities. The information used by a network may reside in combinations of activations. Searching only for matching neurons can miss this organization, because a useful direction in one network may correspond to a weighted combination in another. SVCCA allows each side to choose its own linear coordinates before measuring agreement. This principle is useful when investigating distributed representations, comparing independent training runs, or studying architectures with different widths. Its practical value comes from distinguishing changes in coordinates from changes in the response patterns those coordinates can express. The resulting correspondence still needs interpretation, but it is less dependent on arbitrary neuron numbering.

Reduce variation before measuring correspondence. SVD and CCA serve different purposes. SVD asks how concentrated the observed variation is within each representation. CCA asks how strongly directions from the representations can be aligned. Applying only the latter can obscure the distinction between a large space containing largely weak noise and a large space containing substantial additional structure. The paper’s combination makes dimensionality part of the comparison instead of treating it as an incidental implementation detail. This is a useful design pattern for analyses with many correlated or nearly inactive features: first inspect what each side contains, then ask what they share.

Test an explanation by changing the computation. A direction that looks important in a similarity analysis is more convincing when retaining it preserves useful behavior. The authors therefore project activations onto selected SVCCA directions and evaluate the existing network without retraining. They also compare these projections with subsets based on individual neurons. This connects a descriptive measurement to a functional consequence. The same logic can strengthen other interpretability studies: after identifying a structure, intervene on the representation and measure whether the claimed role survives. The intervention need not settle every causal question to provide stronger evidence than a visualization alone.

Track representations through training. Final accuracy hides the sequence through which internal computations develop. Comparing each checkpoint with the final representation exposes whether different layers stabilize at different times. In this paper, that analysis motivates progressively freezing lower layers. The reusable idea is to connect observations about learning dynamics to a concrete optimization decision, while testing that decision separately. It applies whenever training contains components that may settle at different rates. The final checkpoint provides a convenient retrospective reference, although a practical training rule would need to decide when to stop updates without already knowing that reference.

Exploit structure before approximating. Large convolutional activation spaces make direct covariance calculations expensive. Rather than immediately reducing them through a generic approximation, the authors use translation structure to find a Fourier basis in which the required matrices separate into smaller blocks. Under the theorem’s assumptions, this preserves the relevant calculation. The wider lesson is to examine symmetries in the data and computation before choosing a numerical shortcut. A suitable change of basis can expose independent subproblems, reduce memory demands, and permit parallel computation. The assumptions matter: an exact structural result should remain distinguishable from an approximation that happens to work well empirically.

Deep dive: SVCCA: Singular Vector Canonical Correlation Analysis for Deep Learning Dynamics and Interpretability

Understand how SVCCA compares neural representations, reveals learning dynamics, and motivates compression and layer freezing. · about 36 minutes to read

How Mova uses it

For Mova, a small transparent language system written in Rust, SVCCA offers a possible instrument for inspecting numerical representations. It should be treated as a proposed analysis capability instead of an established feature. The paper supplies a way to compare activation spaces, but it does not establish that Mova already records suitable activations, implements the required decompositions, or uses a layered neural computation to which every experiment would transfer. The concrete opportunity is narrower and more useful: wherever Mova exposes numerical features for a shared collection of language inputs, those features could become the material for a representation comparison.

A first application would be comparing revisions. Suppose a change to Mova alters how an internal component represents the same sentences. Inspecting feature values directly might show many differences, especially if the change redistributes information across coordinates. An SVCCA analysis could ask whether the old and new features still express similar response patterns after linear alignment. The shared input collection would need to be fixed, and the comparison would need to report how many directions survived the SVD stage. This could help distinguish a change in numerical organization from a larger change in the measured representation.

Such an analysis would support transparency only if its meaning remained visible. A single similarity score would be insufficient as an explanation of a revision. Mova could retain the singular-value information, the individual canonical correlations, and examples that produce large changes along selected directions. Those records would make it possible to inspect whether agreement is widespread or concentrated in a narrow part of the representation. The paper’s distinction between a neuron and its response vector is helpful here: an internal coordinate becomes understandable through its behavior across explicit examples, rather than through its position in an array.

Another possible use concerns feature compression. If Mova contains a learned numerical component with redundant internal dimensions, SVCCA could identify candidate projections for a smaller representation. The paper suggests evaluating such a projection inside the existing computation before committing to a compressed implementation. For Mova, the relevant test would be whether the projected component preserves the language behaviors that matter to the system. Strong correlations alone would not establish that result. Evaluation would also need to cover cases that are important but uncommon, since a direction with little overall variation could still affect a particular linguistic distinction.

Training analysis is a further possibility if Mova includes trainable layered components. Recording their responses at checkpoints would allow a retrospective comparison with the final state. That could reveal whether lower components stabilize earlier, as they do broadly in the paper’s image experiments and its stacked LSTM example. Freeze Training would remain a separate engineering hypothesis. Before using it, Mova would need evidence that stopping updates saves meaningful computation while preserving the required behavior. The paper’s observation provides a reason to investigate that schedule; it does not supply a general rule for every language system.

The Fourier acceleration has a more restricted role. Its justification depends on spatial translation structure in convolutional processing. Language sequences and arbitrary Rust data structures do not inherit that theorem simply because they also contain numerical arrays. The transferable idea is to seek an appropriate structure in Mova’s own computation, not to assume that the image-specific acceleration applies unchanged. Across these possible uses, SVCCA would complement explicit rules, traces, and task evaluations. It could describe relationships between numerical representations while leaving the interpretation of those relationships open to direct inspection.

The problem and its context

Why individual neurons are an awkward comparison unit

A trained network contains many numerical functions, but those functions do not arrive with a natural naming scheme. The neuron occupying a particular position in one training run need not perform the same role as the neuron at that position in another. Even searching for the most similar neuron may fail when the corresponding response is distributed across several coordinates. This creates a basic difficulty for studying representations: visible differences can come from the organization of a computation rather than from the information available within it.

The paper begins from the growing importance of understanding neural networks after their empirical successes. It places its contribution among studies of internal image representations, including work on visualization, inversion, kernel-based analysis, and intermediate-layer probes. These approaches offer different views of internal processing. Some ask what an activation responds to; others investigate what information can be recovered from a layer. SVCCA concentrates on a related but distinct question: how can two collections of internal responses be compared?

The authors discuss earlier convergent-learning research that matched neurons across independently trained networks by looking for highly correlated pairings. Such matching can reveal repeated neuron-level features. Its limitation is the requirement that a correspondence be expressed through individual coordinates or their permutations. If a response direction is mixed with other directions in one network, a neuron-matching procedure may make the networks appear less alike than their broader response spaces suggest.

SVCCA changes the object being compared. Instead of demanding that a neuron find its counterpart, it permits weighted combinations of neurons to align across representations. This is especially appropriate when information is distributed. It also permits comparisons between layers of different sizes, where a complete neuron-to-neuron pairing would be unavailable or artificial. The resulting comparison concerns linear structure in the observed responses, not a direct map between the networks’ parameters.

A representation depends on the observations used to measure it

The authors first ask what it means to describe a neuron. In principle, its responses to every possible input would specify the function it computes. Such a description is impractical, and much of it would concern inputs unrelated to the task. The paper therefore uses a finite collection drawn from training or validation data. A neuron is represented through its activation on each member of that collection.

This choice makes the method empirical in a precise sense. The comparison describes behavior on sampled inputs. It does not recover the complete function represented by a neuron or layer. Two layers might agree strongly across the chosen images and differ elsewhere. Conversely, a collection containing irrelevant variation could emphasize relationships that matter little to the task under investigation. The data used for comparison are therefore part of the scientific definition of the representation, rather than merely a convenient source of matrix entries.

There is also a reversal of a familiar viewpoint. When describing the representation of a single image, researchers often collect all activations in a layer into a feature vector. Here, the authors collect all measured inputs for a single neuron. The coordinates refer to examples, and each neuron supplies a vector in that example-indexed space. A layer then contributes a collection of such vectors, which together span a subspace.

This viewpoint supplies a common setting for comparisons across networks. The networks need not have the same internal width, but their response vectors must refer to corresponding observations. That shared observation space makes it possible to ask whether different collections of neurons generate similar patterns across the data.

Why combine established statistical tools?

CCA predates this application. The paper identifies related uses in comparing predicted and observed brain activity and in constructing multilingual word embeddings. Its novelty lies in adapting a combination of statistical tools to the comparison of deep representations and using the resulting method across a broad set of analyses.

CCA is attractive because it searches for linear combinations that are maximally correlated. A representation can be rotated, reordered, or rescaled without necessarily losing the relationships CCA measures. This allows researchers to look beyond the original coordinates. However, a method that finds shared directions does not automatically explain how much additional structure exists within either representation.

SVD supplies that complementary information by exposing directions associated with different amounts of variation. The authors argue that weak directions in neural activations can include noise or effectively inactive responses. Removing them helps make the comparison reflect the substantial observed representation. Their illustrative counterexample shows why the distinction matters: a larger space can contain either weak extraneous directions or substantial additional useful directions, even when its overlap with a smaller space looks similar under a simple canonical-correlation comparison.

Computational cost is another part of the context. The authors distinguish SVCCA from approaches in which every comparison requires training an auxiliary network. Such training becomes burdensome when the aim is to examine many layers across many checkpoints. A comparatively direct calculation makes a much denser investigation practical: researchers can study whole patterns of relationships rather than selecting only a few comparisons.

The connection to efficient computation and compression follows from this measurement agenda. If useful responses occupy a small subspace, that subspace may become a bottleneck in a cheaper computation. If lower layers change little late in training, their updates may become unnecessary. These are hypotheses suggested by representation analysis. The paper tests them as applications instead of treating similarity itself as proof of an engineering benefit.

The method, step by step

Build the response vectors

SVCCA begins with a collection of inputs and two groups of neurons. The groups might come from separate training runs, different layers, different architectures, or checkpoints from the same run. Both groups must be evaluated on corresponding observations so that their response vectors can be compared meaningfully.

Comparing learned representations with SVCCA

The steps in order.

Comparing learned representations with SVCCAStep 1: Choose a shared collection of inputs1. Choose a shared collection of inputsStep 2: Record each neuron's responses2. Record each neuron's responsesStep 3: Reduce each representation with SVD3. Reduce each representation with SVDStep 4: Align retained directions with CCA4. Align retained directions with CCAStep 5: Inspect correlations and aligned directions5. Inspect correlations and aligned directionsStep 6: Test selected subspaces in the network6. Test selected subspaces in the network

The response vector for a neuron is written as:

zᶫᵢ = (zᶫᵢ(x₁), …, zᶫᵢ(xₘ))

Here, l identifies the layer, i identifies the neuron, and x₁ through xₘ are the inputs in the measurement collection. The expression zᶫᵢ(xⱼ) is that neuron’s scalar activation for input xⱼ. The complete vector zᶫᵢ contains its responses across the collection.

Every neuron vector therefore occupies the same space of example-indexed coordinates. A layer is described by the span of its neuron vectors: all response patterns that can be formed as linear combinations of those vectors. The number of neurons limits the size of that span, but it does not guarantee that every neuron adds an independent or substantial direction.

This is why neuron count and effective representational dimensionality can differ. Several neurons may respond in closely related ways, while others may vary very little across the measured examples. The method does not need to decide in advance which neuron is redundant. It examines combinations of their responses.

Identify the substantial directions with SVD

The first computational stage applies singular value decomposition separately to the two activation spaces. SVD produces a new set of directions and associated singular values. These directions are combinations of the original neuron responses, ordered so that the decomposition exposes how the activation variation is distributed.

A singular direction can be expressed as:

z′ᵢ = ∑ⱼ sᵢⱼ zⱼ

The vectors zⱼ are the original neuron response vectors. The coefficients sᵢⱼ determine how much each original response contributes to the new direction z′ᵢ. The prime distinguishes the SVD-derived direction from an individual neuron. This expression makes clear that the retained coordinates need not correspond to a subset of neurons.

The authors generally retain enough directions to account for 99% of the observed variation. Their appendix gives the cutoff through a sum of singular-value magnitudes:

∑ᵢ₌₁ᵐ′ |λᵢ| ≥ 0.99 ∑ᵢ₌₁ᵐ |λᵢ|

Here, λᵢ is a singular value, m is the number of directions before truncation, and m′ is the smallest retained count satisfying the inequality. The vertical bars denote magnitude. The condition is applied independently to each representation, so the retained spaces can have different sizes.

There is a detail worth preserving when describing an implementation. The paper discusses this step using the language of explained variance, but the displayed condition sums singular-value magnitudes. Those descriptions should not silently be exchanged for a cutoff using squared singular values. The stated procedure is the magnitude-based condition above. This distinction affects reproducibility even though it does not change the broad purpose of discarding weak directions.

The SVD stage also provides useful intermediate evidence. Its singular values show whether the observed representation is concentrated in a small number of directions or spread across many. A final similarity score cannot substitute for this information. Two comparisons can have similar canonical correlations while involving quite different retained dimensionalities.

Align the retained spaces with CCA

CCA operates on the reduced representations. It searches for a direction in each space such that the corresponding response vectors are as correlated as possible. It then finds subsequent pairs subject to the appropriate orthogonality conditions, producing a sequence rather than only a single best match.

The first correlation objective is:

ρ(a, b) = (aᵀ ΣXY b) / (√(aᵀ ΣXX a) √(bᵀ ΣYY b))

The coefficient vectors a and b select linear combinations from the first and second representations. The matrices ΣXX and ΣYY describe covariance within each representation. The matrix ΣXY describes cross-covariance between them. A superscript T denotes transpose. The numerator measures their joint variation, while the denominator normalizes by the variation of the selected responses.

This normalization explains an important feature of CCA. Multiplying a response by a scale factor does not create a different correlation merely because its numerical magnitude changes. More generally, allowing linear combinations makes it possible to recover shared response directions after changes of coordinates.

The transformations returned by CCA can be written separately for each side:

X̃ = WX X′

X′ is the first representation after SVD truncation. WX is its CCA transformation, and X̃ contains the resulting aligned response directions.

Ỹ = WY Y′

Y′ is the second truncated representation, WY is the corresponding transformation, and Ỹ contains its aligned directions. There is no requirement that WX and WY be the same transformation. Each representation is allowed its own coordinates for expressing the shared structure.

The correlation attached to a matched pair is:

ρᵢ = corr(x̃ᵢ, ỹᵢ)

The vectors x̃ᵢ and ỹᵢ are the aligned directions for pair i. The function corr measures their correlation. The sequence of coefficients indicates whether agreement is concentrated in the strongest pair or extends across much of the retained spaces.

The appendix derives the optimization through a covariance-based eigenvalue problem. Its displayed first-direction expression is:

x̃₁ = argmaxₓ [xᵀ ΣXX⁻¹ᐟ² ΣXY ΣYY⁻¹ ΣYX ΣXX⁻¹ᐟ² x / ‖x‖]

Here, x is a candidate direction, argmax selects a maximizing direction, and ‖x‖ denotes its norm. The matrix ΣYX is the cross-covariance in the reverse order. Inverse and inverse-square-root powers refer to matrix operations. The expression records the appendix’s normalization as written; its role in the explanation is to show that the alignment can be reduced to a matrix problem instead of requiring an auxiliary prediction network.

Read both directions and aggregate similarity

SVCCA returns more than a verdict that two layers are similar. It provides the SVD information, the aligned directions, and their individual correlations. In the toy regression demonstration, these directions make a hidden correspondence visible: neuron responses from separate training runs appear different, but the strongest aligned response patterns look almost the same apart from sign.

For broad learning-dynamics plots, the authors summarize the coefficients with:

ρ̄ = (1 / min(m₁, m₂)) ∑ᵢ ρᵢ

The value ρ̄ is the aggregate similarity, and ρᵢ are the canonical correlations. The denominator uses the smaller of the dimensions denoted by m₁ and m₂. The paper describes this as an average over aligned directions.

The notation needs care when reproducing the calculation. Earlier parts of the method distinguish original neuron counts from the smaller counts retained after SVD, while the aggregate expression uses the layer-size notation. A reproducible implementation should make the averaging convention explicit. The scientific interpretation also depends on inspecting the retained dimensions, because a similar average can summarize different patterns of agreement.

To study training, the authors compare checkpoint representations with final representations. They can compare a layer with its own final state, or form a matrix comparing every current layer with every final layer. Repeating this over checkpoints reveals when different parts of the network approach their eventual response spaces.

Represent convolutional activations appropriately

A convolutional layer adds spatial coordinates to the comparison. Its output has height, width, and channels, so the researcher must decide which coordinates count as variables and which count as observations.

For corresponding versions of the same layer, the authors concatenate spatial positions into the observations for each channel. A layer with shape h × w × c becomes c response vectors, each containing hwd entries. Here, h and w are spatial dimensions, c is channel count, and d is the number of input examples. This works because corresponding spatial positions in the two versions have a natural relationship.

For different layers, that spatial correspondence may be absent. The authors instead treat the h × w × c positions as separate response variables, each measured across d examples. This is more general but can create very large covariance matrices. Early convolutional layers are particularly demanding because their spatial maps are large.

The distinction changes the question being asked. Combining positions as observations emphasizes corresponding channel behavior across locations. Treating positions as separate variables retains the full spatial response space. Neither choice should be presented as a harmless reshaping operation; each defines the objects whose similarity is measured.

Use Fourier structure to reduce the calculation

The acceleration applies a discrete Fourier transform to each channel before computing covariance. A Fourier transform changes coordinates from spatial positions to frequency components. Under the paper’s assumptions, different frequencies become uncoupled in the covariance structure. The large calculation can therefore be organized into smaller blocks.

The theorem assumes translation-equivariant processing below the compared layers, with convolutional or pooling operations and circular boundaries. It also assumes that the dataset contains all translated versions of its images. Circular boundaries mean that a shift wraps around the image instead of introducing a new edge condition.

The channel transformation is written as:

DFT(c) = F c Fᵀ

The symbol c denotes a channel arranged as a spatial matrix. F is the Fourier transformation matrix, and DFT(c) is the transformed channel. The transformation acts across both spatial dimensions.

The appendix uses a vectorization identity to connect this operation to CCA’s invariance properties:

vec(AcB) = (Bᵀ ⊗ A) vec(c)

The operation vec stacks a matrix’s columns into a vector. A and B are matrices multiplying the channel from either side, and ⊗ denotes the Kronecker product. This identity shows how a spatial matrix transformation becomes an ordinary linear transformation of the vectorized channel.

For the Fourier case, the corresponding expression is:

vec(DFT(c)) = (F ⊗ F) vec(c)

The combined transformation is unitary under the normalization used in the argument. It therefore changes the orientation of the CCA directions without changing their correlation coefficients.

The covariance structure comes from translation symmetry. If every translated input is present, jointly shifting two positions does not change their empirical relationship. The spatial covariance therefore has a repeated circulant structure. Fourier coordinates diagonalize that structure within channels and between channel pairs.

An empirical covariance expression used in the proof is:

cov(c) = (1 / |X|) ∑Xᵢ∈X vec(c(Xᵢ)) vec(c(Xᵢ))ᵀ

The channel responses are assumed centered. X is the measurement dataset, |X| is its size, and c(Xᵢ) is the channel response to input Xᵢ. Each term forms an outer product of a vectorized channel response with itself.

After Fourier transformation and suitable ordering, the remaining covariance terms link channels at the same frequency. For a layer with c channels, the theorem describes blocks of size c × c. This allows covariance operations, inverses, and square roots to be performed block by block.

The appendix gives the following rough computational expression for the accelerated route:

k n log n + n² k²·⁵

Here, k is channel count and n is the spatial side length in the appendix’s square-channel setting. The logarithmic term comes from the fast Fourier transform, while the remaining term describes the blockwise matrix work.

The corresponding naive expression is:

(k n²)²·⁵

The same k and n apply. These are rough complexity descriptions, not measured runtime results. Their significance is that exposing the block structure changes how the calculation grows, while the independent blocks also permit parallel processing.

Turn selected directions into interventions

To test whether SVCCA directions preserve useful information, the authors project layer outputs onto a selected subspace. The rest of the trained network remains available to process the projected activations. Evaluating the resulting behavior gives evidence about what the selected directions retain.

The compression construction uses:

(W⁽ˡ⁾ Pₓᵀ)(Pₓ x⁽ˡ⁾)

The vector x⁽ˡ⁾ is the output of layer l. W⁽ˡ⁾ is the weight matrix that would ordinarily act on that output. Pₓ projects the original n-dimensional activation into k selected directions, so it has shape k × n. The transpose Pₓᵀ maps from the reduced coordinates back towards the original space.

The expression factors the downstream computation through a bottleneck. The reduced activation is computed first, and the downstream weights can be combined with the reverse projection. The paper describes the parameter and inference-cost reduction for the affected layer using:

compression factor ≈ k / n

Here, k is the retained dimension count and n is the original width. The expression concerns the altered layer computation; it should not be read as a complete whole-network memory or runtime measurement.

Freeze Training is a separate intervention. It does not project representations. Instead, it stops updating progressively higher parts of the network as training proceeds. The convolutional schedule freezes individual layers according to their position within the total layer sequence. The residual schedule freezes entire residual blocks according to their position among the blocks. Both use evenly spaced freezing events.

Experiments and results

The experimental settings

Most experiments use CIFAR-10 with random-translation augmentation. A convolutional network and a residual network serve as the primary architectures for images. The convolutional architecture contains convolution, pooling, batch-normalization, and fully connected stages. The residual architecture contains repeated convolutional blocks with skip connections, followed by its output stages. These settings support comparisons across checkpoints, random initializations, and architecture families.

The paper also includes a small regression demonstration. It trains a fully connected network with four hidden layers, using 1D inputs and 4D outputs to fit four simple functions. This setting makes neuron responses and aligned directions easy to visualize. It serves as an explanatory example of how apparent differences between neurons can coexist with similarity between response subspaces.

Further experiments employ a residual network for ImageNet to analyze class-related aspects, alongside a stacked LSTM trained to predict language on Penn Tree Bank to compare learning dynamics. These extensions broaden the examples beyond the main CIFAR-10 setting. They do not provide a comprehensive survey of architectures or tasks.

The measurements differ across experiments. Projection and compression studies evaluate classification accuracy after altering activations. Learning-dynamics studies use SVCCA similarity to compare response spaces. The class analysis measures correlation between intermediate representations and class logits, where a logit is the output score before conversion into a class probability. Freeze Training is evaluated through training cost and generalization curves.

A small subspace can preserve classification behavior

The strongest explicit dimensionality result concerns a fully connected CIFAR-10 layer. Keeping 25 SVCCA directions gives classification accuracy close to that obtained using its full 512-dimensional representation. The network is not retrained after the projection. This is evidence that the selected directions preserve information the existing downstream computation can already use.

CIFAR-10 fully connected layer, retained representation dimensions

A selected SVCCA subspace preserves accuracy close to that of the full representation.

CIFAR-10 fully connected layer, retained representation dimensionsFull layer: 512Full layer512SVCCA projection (this paper): 25SVCCA projection (this paper)25
The numbers
System or settingretained dimensions
Full layer512
SVCCA projection (this paper)25

This chart compares representation size rather than accuracy. The paper’s prose gives the dimensionalities and characterizes the accuracy as nearly unchanged, but it does not supply the corresponding exact accuracy values in that statement. The distinction matters because a small representation is useful only in combination with the observed preservation of task performance.

The authors compare SVCCA projections with random selections of neuron-aligned directions and selections based on maximum activation. Those alternatives need more coordinates before reaching comparable accuracy. The result supports the importance of choosing combinations of neurons rather than simply retaining a small collection of conspicuous neurons.

The toy regression study shows the same basic effect visually. It projects the penultimate representation onto 2, 6, 15, and 30 selected directions. At 30 directions, the outputs resemble those produced by the full 200-neuron representation. This is an illustration of output preservation, instead of a numerical regression-error comparison.

Useful directions can be distributed across neurons

A further CIFAR-10 experiment asks whether the compact SVCCA space can be recovered by keeping individual neurons. The authors first project onto selected SVCCA directions and then project again onto a chosen neuron subset. If the useful directions were closely aligned with those neurons, the second projection would retain the performance.

That is not what happens in the reported example. Keeping 100 neurons from the fc1 layer does not maintain the accuracy achieved with 20 SVCCA directions. The authors interpret the result as evidence that these directions draw on multiple neurons instead of corresponding to isolated coordinates.

This does not establish that every useful feature in the network is distributed to the same extent. It establishes that a compact and functionally valuable subspace can be poorly represented by a much larger neuron subset. The result directly supports the methodological choice to compare linear combinations.

Representations broadly stabilize from lower layers upward

For learning dynamics, the authors compare representations throughout training with those at the final checkpoint. The resulting matrices show a broad progression: layers closer to the input tend to resemble their final representations earlier, while higher layers continue to change.

The pattern appears in both the convolutional and residual CIFAR-10 networks. It is described as broad rather than universal, with the highest layers showing exceptions. The appendix’s per-layer plots offer another view of the same progression by tracking each layer’s similarity to its own final state.

The matrices also contain architecture-related structure. Batch-normalization stages remain highly similar to their preceding layers, consistent with the scaling invariance of CCA. Similarity is not perfectly unchanged because rescaling can alter which directions pass the SVD cutoff. In the residual network, skip connections produce bands of high similarity between representations linked through the architecture.

The stacked LSTM example on Penn Tree Bank shows a related ordering, with lower layers reaching their final representations earlier than upper layers. This supports the possibility that the observation extends beyond convolutional image processing. The paper does not report a systematic range of recurrent settings sufficient to establish a universal training law.

Freeze Training converts the observation into a schedule

Freeze Training progressively stops updates to lower parts of the network. The authors evaluate it on both principal CIFAR-10 architectures. Individual convolutional-network layers are frozen at evenly spaced points, while residual-network freezing proceeds by complete blocks.

The reported curves are averaged over ten runs. They indicate reduced training computation and suggest improved generalization relative to ordinary training. The authors interpret the effect as resembling early stopping applied at different times to different parts of the network.

The result is practically interesting because the schedule is simple. It does not require continually recomputing an SVCCA threshold during training. However, the paper’s text does not give exact numerical savings or exact accuracy gains for these curves. The supported conclusion is that the tested schedules reduce training cost and can help generalization in these experiments, without assigning an unreported effect size.

Class correlations reflect distinctions among outputs

The ImageNet analysis compares intermediate layers with the logits for five selected classes. The set includes firetruck and dog breeds arranged into visually similar pairs. One pair involves husky and eskimo dog, while another involves terriers.

The firetruck correlation profile differs from those of the dog classes, and stronger correlation appears earlier in the architecture. Within each dog pair, the profiles remain close. The authors interpret these patterns as reflecting visual and semantic relationships among the selected classes.

This is a comparison across depth in a trained network. It should not be confused with directly recording when each class was learned during optimization. The evidence shows where intermediate representations become more linearly related to the final class scores.

Compression and architecture comparisons

The compression experiment considers different ways to supply the pair of representations required by SVCCA. One uses corresponding layers from independently trained convolutional networks. Another compares layer activations with logit activations. The logit-based version performs better in the reported compression comparison.

Using that version, the final five named stages—pool1, fc1, bn3, fc2, and bn4—are reduced to 0.35 of their original size. The paper reports little performance change. This is a specific demonstration of substantial compression in the upper part of a CIFAR-10 convolutional network, rather than an exact statement about total network savings.

Cross-architecture comparisons find greater similarity among lower representations of the convolutional and residual networks, with similarity decreasing toward higher layers. Comparisons between independent initializations of the same convolutional architecture show another pattern: early and final layers align more strongly, while intermediate layers differ more. These observations show why similarity should be examined by depth instead of reduced immediately to a single network-wide judgment.

What the ablations show

Why SVD and CCA address different failure modes

The paper does not present a comprehensive ablation grid that removes every component under a common benchmark. Instead, it combines controlled projections, illustrative constructions, invariance demonstrations, and comparisons between analysis settings. These analyses explain why the method uses both decomposition and alignment.

The appendix’s dimensionality example is especially useful. It considers a space with 50 dimensions and two larger spaces with 200 dimensions. Each larger space shares 50 directions with the smaller space. In one case, the remaining 150 directions are noise; in the other, they contain useful but different structure.

A comparison focused only on the shared canonical directions does not adequately distinguish these situations. Yet they imply different conclusions about representational overlap. The mostly noisy space may be well summarized by what it shares with the smaller space. The space containing additional substantial directions is only partially represented by that overlap.

SVD introduces evidence about the size of the substantial representation before alignment. The example therefore supports a division of labor: use variation to decide which directions deserve inclusion, then use correlation to characterize shared structure. It does not establish that the chosen cutoff is optimal, because the paper does not compare a range of cutoff settings.

Why neuron selection is an informative baseline

Random-neuron and maximum-activation baselines test whether the projection result follows merely from keeping fewer coordinates. They retain neuron-aligned features rather than the combinations found by SVCCA. Their weaker dimensional efficiency indicates that choosing the subspace matters.

Maximum activation is a particularly useful comparison because it represents a plausible shortcut: keep neurons that appear numerically prominent. The experiment shows that prominence in the original coordinates does not necessarily identify the compact response directions most useful to the downstream task.

The second projection experiment asks a different question. After finding a useful SVCCA subspace, can it be expressed adequately by a selected group of individual neurons? The loss of performance after this additional restriction supports distributedness. The analysis is stronger than merely inspecting dense coefficient vectors because it measures the consequence for the network’s output.

There is nevertheless a reproducibility limitation. The manuscript leaves the rule for selecting those neuron subsets incompletely specified. That affects how exactly the comparison can be repeated and how strongly one can interpret claims about the amount of distribution across neurons. The broad projection evidence remains useful, while the selection detail deserves caution.

What the transformation demonstrations establish

The invariance demonstrations transform activation directions through operations such as permutation, rotation, and scaling, then apply CCA to recover their relationship with the original signals. They show why direct coordinate comparisons can be misleading even when the underlying response structure is preserved.

This supports the use of a subspace method when neuron identities are arbitrary. It also clarifies what the method deliberately ignores. A change that CCA treats as a coordinate transformation may still matter for implementation, numerical conditioning, or interpretation of individual units. Invariance is valuable because it defines the question consistently; it does not make every ignored distinction scientifically irrelevant.

The batch-normalization observations reveal an interaction between the stages. CCA is insensitive to the relevant scaling changes, but SVD truncation can retain different directions after scaling. Accordingly, the invariance of CCA should not be transferred without qualification to every possible use of the complete truncated procedure.

What the Fourier comparisons establish

The covariance visualizations compare spatial and Fourier coordinates, with and without a translation-complete dataset. In spatial coordinates, covariance remains dense. In Fourier coordinates, the translation-complete setting produces the diagonal structure predicted by the proof.

Without enforced translation completeness, the Fourier covariance is approximately diagonal in the illustrated example. This is practically encouraging because ordinary datasets need not contain every possible shift. However, the exact theorem and the empirical approximation support different claims. The former establishes when blockwise processing is justified exactly; the latter suggests when a similar organization may still be useful.

The analysis does not report a broad numerical study of approximation error or speed across many boundary conditions and datasets. It therefore supports the structural idea more strongly than any universal performance guarantee for the accelerated calculation.

What changing the comparison target reveals

The compression comparison shows that the representation paired with a layer affects the directions SVCCA selects. Comparing independent training runs emphasizes structure shared between runs. Comparing a layer with logits emphasizes structure related to the network’s own output scores.

The better compression result from the logit-based version illustrates a general point: a similarity method is not independent of its reference. Different references answer different questions. Shared structure across training runs may be scientifically interesting without being exactly the structure needed for the most effective output-preserving bottleneck.

Freeze Training adds another kind of controlled comparison by testing a schedule motivated by the dynamics analysis. Its success supports the engineering usefulness of the observation. It does not isolate the precise reason for any generalization improvement, nor show that SVCCA must be computed to obtain the tested schedule.

Limitations

Limits the authors state or qualify

The learning-dynamics conclusion is explicitly broad. Lower layers generally stabilize earlier in the studied networks, but the highest layers introduce exceptions. The authors do not claim a strict ordering in which every layer finishes before the next begins. A reader should preserve that qualification rather than turning a recurring pattern into a universal sequence.

The generalization claim for Freeze Training is also qualified. The paper presents improved behavior in its experiments and suggests that the schedule can reduce overfitting. It does not establish that freezing always improves held-out performance. The outcome depends on whether stopping updates prevents useful adaptation or removes updates that have become unnecessary.

The Fourier theorem has stated structural assumptions. Translation-complete data and suitable convolutional processing with circular boundaries justify the exact block decomposition. Approximate diagonal structure in an ordinary image setting is encouraging evidence, but it does not eliminate those assumptions from the theorem.

The authors also leave open the broader question of whether representations are fully distributed, neuron-aligned, or organized in some mixture. Their interventions show distributedness for useful directions in particular settings. They do not resolve every form that internal organization might take.

Limits visible in the experimental design

The response space is conditional on the chosen input collection. This follows directly from the method’s definition. Agreement on those examples does not establish agreement on a different distribution, unusual inputs, or rare cases. A comparison intended to support a particular behavioral claim needs observations appropriate to that claim.

CCA measures linear relationships after the chosen preprocessing. Two representations may support related tasks through a relationship that the method does not expose. Conversely, strong linear alignment does not prove that the networks use the aligned directions in the same way. Similarity is a property of the measured responses, while functional equivalence is a stronger claim.

The SVD stage makes weak variation less influential, but weak variation is not necessarily irrelevant. An infrequent distinction may contribute little to the overall activation distribution while mattering greatly for a particular example. The paper’s results support the usefulness of its retained subspaces in the tested tasks. They do not prove that every discarded direction is noise.

The variance description and the displayed singular-value cutoff require attention in replication. Similarly, the aggregate similarity notation does not fully resolve the relationship between original layer sizes and post-SVD dimensions. These are implementation-relevant ambiguities. A numerical comparison should state its actual cutoff and averaging convention instead of assuming that the headline method name uniquely determines them.

Projection experiments establish preservation under specific interventions. They do not show that the selected dimensions correspond to distinct human concepts. A direction may contribute to several kinds of examples, and multiple directions may jointly support the same output distinction. Compactness and interpretability should therefore remain separate conclusions.

Limits of the reported evidence

Most of the main evidence comes from CIFAR-10 image classification. The ImageNet class analysis and Penn Tree Bank recurrent example broaden the scope, but they remain selected extensions. The paper does not establish that all architectures, objectives, or language tasks exhibit the same dynamics or dimensionality.

Several important results are conveyed through plots without exact numerical effect sizes in the surrounding prose. This includes the training-cost and generalization changes for Freeze Training and the accuracy retained under some compression settings. Those results can be described directionally, but assigning precise gains would exceed what is reported.

The compression construction concerns particular projected computations. A smaller internal bottleneck does not automatically imply a proportionate reduction in whole-network runtime, memory use, or training cost. Other operations remain, and the paper does not provide a complete system-level accounting for every compression example.

The class-logit analysis uses a selected group of outputs. Similar curves for related dog breeds and a distinct profile for firetruck are meaningful observations, but they do not demonstrate a complete semantic organization of the network. Correlation with a logit also does not establish when a human-recognizable concept first becomes available or whether that correlation is causally necessary for the decision.

What remains unresolved about training

Comparing checkpoints with the final representation is retrospective. It reveals the path taken in a completed run. A practical system deciding whether to freeze a layer during a new run cannot directly consult its unknown final state.

The tested linear schedule avoids this difficulty by using predetermined freezing times. That makes it easy to apply, but it also separates the schedule from a live measurement of stabilization. The paper does not establish a general stopping criterion that adapts to each layer’s current representational change.

Finally, better generalization under freezing can have more than one explanation. Preventing late changes might preserve useful features, constrain optimization, or act through an effect resembling early stopping. The experiments show that the intervention can help in the tested settings. They do not fully isolate the mechanism behind that improvement.

What came after

SVCCA’s lasting research question is how to compare internal representations when their coordinates are arbitrary. The later citation record connects that question to similarity measurement, learning dynamics, language processing, and compression. The cited titles establish those areas of contact, but citation alone does not identify the exact experiment or methodological choice in every later paper. The connections below therefore distinguish clear subjects from claims that would require a fuller account of those studies.

Similarity of Neural Network Representations Revisited directly returns to the measurement problem at the center of SVCCA. Its relevance is methodological: a representation comparison depends on what transformations the measure ignores and what differences it preserves. SVCCA makes that issue concrete through linear alignment and dimensionality reduction. The later title signals a reconsideration of representation similarity, but the citation information alone does not justify attributing a particular replacement measure, numerical result, or verdict on SVCCA to it.

Understanding Learning Dynamics Of Language Models with SVCCA names the method explicitly. It carries the paper’s training-dynamics question into language learning objectives: how do internal representations change as training progresses? This is a particularly direct continuation because the original paper already uses comparisons with final representations and includes a recurrent language-prediction example. The later work’s title establishes SVCCA as its instrument, while leaving its detailed findings unspecified in the citation record.

The Bottom-up Evolution of Representations in the Transformer: A Study with Machine Translation and Language Modeling Objectives connects the developmental question to the Transformer. Its title also brings different training objectives into view. This matters because the original bottom-up observation concerns how representations approach their final states, and the objective helps define what those states become. The title supports the connection to representational development; it does not, on its own, establish that every layer follows the same ordering or that the original freezing schedule transfers.

Emerging Cross-lingual Structure in Pretrained Language Models places related questions in multilingual representation analysis. Here, the objects being compared can differ by language as well as by layer or training run. SVCCA’s general contribution is a way to ask about shared response structure without assuming matching internal coordinates. The later title identifies cross-lingual structure as the subject, but does not specify which comparisons use SVCCA or what alignment results they obtain.

Investigating Multilingual NMT Representations at Scale links representation analysis with machine translation across languages. The emphasis on scale connects with an important practical motivation of SVCCA: a comparison tool becomes more useful when it can support many relationships among layers, tasks, or conditions. The citation establishes a multilingual translation setting, without supplying enough detail to describe its precise representation measure or experimental outcomes.

Identifying and Controlling Important Neurons in Neural Machine Translation highlights a complementary unit of analysis. SVCCA shows why useful directions may require combinations of neurons; the later title concentrates on identifying neurons and intervening on them. These perspectives can address different aspects of internal organization. A distributed direction can be functionally important while individual neurons also provide useful intervention points. The citation does not establish that the later work confirms or rejects any particular distributedness result.

Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Models shares the interest in understanding a training trajectory rather than inspecting only its endpoint. Its title distinguishes memorization from overfitting, whereas the original SVCCA paper connects representational stabilization with the possibility of stopping selected updates. These are related questions about what continuing training changes. Their relationship should not be turned into a claim that representation similarity directly measures memorization, because the citation information does not support that conclusion.

The Geometry of Multilingual Language Model Representations and The Platonic Representation Hypothesis connect SVCCA with broader questions about representational geometry and convergence. The original paper already distinguishes visually different neuron responses from shared subspaces. That distinction provides a useful vocabulary for asking whether different systems organize related information similarly. The later titles identify this broader territory, without establishing a particular geometric finding or universal convergence claim.

Neuron-level Interpretation of Deep NLP Models: A Survey places neuron analysis within a wider interpretability literature. SVCCA contributes an important caution for such work: conclusions can depend on whether the analysis treats individual neurons or combinations of neurons as its basic objects. What Do Self-Supervised Speech Models Know About Words? extends the surrounding questions towards speech representations, where the relationship between internal features and linguistic content again requires a measurement choice.

More recent cited titles connect representation alignment with adaptation. Middle-Layer Representation Alignment for Cross-Lingual Transfer in Fine-Tuned LLMs foregrounds alignment at a particular depth. Why Does Low-Rank Adaptation Work for Hindi-English Code-Mixing? A Geometric Analysis connects low-dimensional changes with geometric investigation. Federated LoRA Fine-Tuning with Pipelined Error-Mitigated Aggregation and Matrix-Wise Freezing includes selective freezing in its subject. These titles resonate with SVCCA’s alignment, dimensionality, and freezing themes, but they do not establish that the later methods use the original projection or schedule unchanged.

Across these connections, the reusable contribution remains precise. A representation is measured through responses to explicit inputs; substantial directions are separated from weak variation; and shared structure is sought across linear combinations rather than assumed neuron identities. The paper then tests what that structure means by projecting activations, comparing checkpoints, and changing training. Later questions can borrow that discipline even when their architectures, objectives, and preferred similarity measures differ.

Cite

Cite as Maithra Raghu, Justin Gilmer, Jason Yosinski and Jascha Sohl‐Dickstein. 2017. SVCCA: Singular Vector Canonical Correlation Analysis for Deep Learning Dynamics and Interpretability. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1706.05806 · arXiv 1706.05806

@misc{raghu2017svcca,
  title = {{SVCCA: Singular Vector Canonical Correlation Analysis for Deep Learning Dynamics and Interpretability}},
  author = {Maithra Raghu, Justin Gilmer, Jason Yosinski and Jascha Sohl‐Dickstein},
  year = {2017},
  doi = {10.48550/arxiv.1706.05806},
  eprint = {1706.05806},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1706.05806}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/raghu-2017-svcca-singular-vector-canonical-correlation/

References

21 references, from the paper's own bibliography.

  1. Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using linear classifier probes. arXiv preprint arXiv:1610.01644, 2016. our card
  2. David Eigen, Jason Rolfe, Rob Fergus, and Yann LeCun. Understanding deep architectures using a recursive convolutional network. arXiv preprint arXiv:1312.1847, 2013. OpenAlex ↗ · Scholar ↗
  3. Manaal Faruqui and Chris Dyer. Improving vector space word representations using multilingual correlation. Association for Computational Linguistics, 2014. our card
  4. Nathan Halko, Martinsson Per-Gunnar, and Joel A. Tropp. Finding structure with randomness: Probabilistic algorithms for constructing approximate matrix decompositions. SIAM Rev., 53:217–288, 2011. OpenAlex ↗ · Scholar ↗
  5. D. R. Hardoon, S. Szedmak, and J. Shawe-Taylor. Canonical correlation analysis: An overview with application to learning methods. Neural Computation, 16:2639–2664, 2004. OpenAlex ↗ · Scholar ↗
  6. Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CoRR, abs/1512.03385, 2015. our card
  7. Geoffrey Hinton, Li Deng, Dong Yu, George E. Dahl, Abdel-rahman Mohamed, Navdeep Jaitly, Andrew Senior, Vincent Vanhoucke, Patrick Nguyen, Tara N Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29(6):82–97, 2012. OpenAlex ↗ · Scholar ↗
  8. Roger A Horn and Charles R Johnson. Matrix analysis. Cambridge university press, 1985. OpenAlex ↗ · Scholar ↗
  9. Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097–1105, 2012. our card
  10. Karel Lenc and Andrea Vedaldi. Understanding image representations by measuring their equivariance and equivalence. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 991–999, 2015. our card
  11. Y. Li, J. Yosinski, J. Clune, H. Lipson, and J. Hopcroft. Convergent Learning: Do different neural networks learn the same representations? In International Conference on Learning Representations (ICLR), May 2016. OpenAlex ↗ · Scholar ↗
  12. Yixuan Li, Jason Yosinski, Jeff Clune, Hod Lipson, and John Hopcroft. Convergent learning: Do different neural networks learn the same representations? In Feature Extraction: Modern Questions and Challenges, pages 196–212, 2015. OpenAlex ↗ · Scholar ↗
  13. Aravindh Mahendran and Andrea Vedaldi. Understanding deep image representations by inverting them. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5188–5196, 2015. OpenAlex ↗ · Scholar ↗
  14. Grégoire Montavon, Mikio L Braun, and Klaus-Robert Müller. Kernel analysis of deep networks. Journal of Machine Learning Research, 12(Sep):2563–2581, 2011. OpenAlex ↗ · Scholar ↗
  15. Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv preprint arXiv:1312.6034, 2013. our card
  16. David Sussillo, Mark M Churchland, Matthew T Kaufman, and Krishna V Shenoy. A neural network that finds a naturalistic solution for the production of muscle activity. Nature neuroscience, 18(7):1025–1033, 2015. OpenAlex ↗ · Scholar ↗
  17. Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. our card
  18. Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google's neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016. OpenAlex ↗ · Scholar ↗
  19. Jason Yosinski, Jeff Clune, Anh Nguyen, Thomas Fuchs, and Hod Lipson. Understanding neural networks through deep visualization. In Deep Learning Workshop, International Conference on Machine Learning (ICML), 2015. OpenAlex ↗ · Scholar ↗
  20. Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In European conference on computer vision, pages 818–833. Springer, 2014. our card
  21. Bolei Zhou, Aditya Khosla, Àgata Lapedriza, Aude Oliva, and Antonio Torralba. Object detectors emerge in deep scene cnns. In International Conference on Learning Representations (ICLR), volume abs/1412.6856, 2014. OpenAlex ↗ · Scholar ↗