S-RAS: Spectral Riemannian Alignment Score
- The paper introduces S-RAS as a novel measure that summarizes local Fisher metrics to quantify small-stimulus discriminability in neural representations.
- It employs an affine-invariant log-spectral distance on SPD matrices to compare the gain and shape of local sensitivity ellipsoids under noise.
- The method demonstrates practical advantages across applications such as network layer correspondence, training regime differences, and neural sensitivity in biological data.
Spectral Riemannian Alignment Score (S-RAS) is a representational similarity measure introduced in “Beyond Activation Alignment: The Geometry of Neural Sensitivity” to compare systems at the level of local decodable information rather than only activation-space agreement. The framework is motivated by the observation that activation-alignment measures such as Representational Similarity Analysis (RSA), Canonical Correlation Analysis (CCA), and Centered Kernel Alignment (CKA) assess agreement between optimal linear readouts over broad families of global tasks, yet representations may align in activation space while differing in their sensitivity to small perturbations. S-RAS addresses this by summarizing each representation through an expected projected pullback/Fisher metric over a specified stimulus-coordinate subspace, then comparing those summaries with an affine-invariant log-spectral distance on the manifold of symmetric positive definite (SPD) matrices (Yavari et al., 4 May 2026).
1. Motivation and scope
The central distinction drawn by the framework is between global readout agreement and local stimulus sensitivity. RSA, CCA, and CKA compare activation point clouds or global readout similarity: RSA uses representational dissimilarity matrices between all pairs of stimuli; CCA finds shared linear subspaces maximizing correlation; and CKA measures normalized Hilbert–Schmidt inner products of Gram matrices (Yavari et al., 4 May 2026). These methods are informative about population-level alignment, but they do not determine how a system uses local stimulus evidence.
The motivating limitation is stated sharply: two representations may support identical global decoder performance yet differ in which stimulus directions they amplify or suppress. They may therefore align activation clouds but disagree on local sensitivity to small perturbations. S-RAS is designed as a complementary framework that focuses on which small stimulus changes are most discriminable under noise. This yields a dataset-level, subspace-restricted comparison of local sensitivity ellipsoids.
A common misconception, directly addressed by the framing of the method, is that strong activation alignment is sufficient to establish representational equivalence. The paper instead treats agreement in local Fisher geometry as a distinct question. This suggests that representational comparison can be decomposed into at least two regimes: one governed by global readout structure and another governed by local sensitivity structure.
2. Formal definition
The framework begins with a differentiable layer representation
Its pullback (Jacobian) metric at is
When stimuli are parameterized by coordinates with , the induced representation is
Under additive Gaussian noise on the representation, the pointwise local Fisher metric is
To restrict perturbations to a -dimensional stimulus subspace , with 0 orthonormal and 1, the projected expected Fisher operator is
2
In the isotropic noise case 3, up to the scalar 4 this reduces to the pullback form
5
To compare two PSD summaries 6 and 7, each is lifted to strictly SPD by
8
The affine-invariant log-spectral distance on 9 is
0
Thus, for two representations 1 and 2,
3
A normalized similarity score is then obtained by
4
In this construction, the operator 5 or 6 is the primary object, while the exponentiated score is a derived similarity. The formalism is therefore simultaneously metric-geometric and task-oriented (Yavari et al., 4 May 2026).
3. Derivation from local discrimination tasks
The derivation starts from a two-gaussian local discrimination task,
7
Under small 8 and linearization, the squared discriminability is
9
Averaging over a second-moment family with 0 gives the trace form
1
Restricting perturbations to 2, with 3, and averaging over stimuli 4 yields the projected operator 5.
This derivation is important because it identifies the operator as a summary over a family of local tasks, rather than as a heuristic descriptor. The paper states that the resulting operator provides a minimal, complete dataset-level summary of expected discriminability for the induced second-moment family of local discrimination tasks.
The choice of log-spectral geometry is then justified by the geometry of SPD matrices. The manifold of SPD matrices carries a canonical affine-invariant Riemannian metric (AIRM) whose geodesic distance is exactly
6
This distance is invariant to congruence transforms 7, matching how metric operators transform under changes of basis. The method therefore compares both gain and shape of discriminability ellipsoids rather than only aggregate scale.
4. Theoretical properties
Three theoretical properties are emphasized in the summary: affine-invariance, a uniform multiplicative certificate, and minimal completeness (Yavari et al., 4 May 2026).
Affine-invariance follows directly from the choice of metric. By construction, 8 is invariant under congruence transforms 9 and 0. This is the invariance class naturally associated with Fisher and pullback operators.
Uniform multiplicative certificate is obtained from the log-spectral distance. If 1, then
2
Consequently, for any probe covariance 3,
4
The distance therefore controls the worst-case log-multiplicative disagreement across all lifted second-moment tasks.
Minimal complete summary is established through a trace-separation lemma. Knowing 5 determines all expected discriminabilities 6; conversely, if two representations agree on all 7, then their 8 operators coincide. Hence 9 or 0 is the unique minimal dataset-level summary of the chosen local tasks.
These properties distinguish S-RAS from similarity indices that aggregate pairwise or subspace relations without an explicit task certificate. A plausible implication is that the method is intended not only as a scalar similarity score but also as a representation of what local evidence is decodable under the chosen noise model and coordinate restriction.
5. Computational procedure and numerics
The computational recipe is explicit and finite-dimensional.
- Choose a set of 1 stimulus samples 2 and a 3-dimensional orthonormal subspace 4.
- For each 5, compute via Jacobian-vector products the 6 matrix 7.
- Form the empirical average
8
- Lift to SPD:
9
- Repeat for a second representation 0 to obtain 1.
- Compute the eigenvalues 2 of
3
- Evaluate the distance
4
and optionally normalize or exponentiate.
The numerical profile is also specified. The cost is 5 JVPs per sample, or one JVP with 6-vector batch. Building 7 is 8 to form 9 and 0 to accumulate. Eigen-decomposition of a 1 SPD matrix costs 2. For regularization, the summary states that one may add 3 before inversion or lift to ensure strict SPD.
This procedure makes the method subspace-centric: the computational burden depends on the chosen coordinate dimension 4, not directly on the ambient stimulus dimension 5. This suggests that coordinate-restricted comparisons are an intended operating regime rather than a secondary option.
6. Relationship to RSA, CCA, and CKA
The paper places S-RAS alongside established activation-alignment measures rather than presenting it as a replacement (Yavari et al., 4 May 2026). The comparison is organized around what each family of methods measures.
| Method | Comparison target | Limitation identified |
|---|---|---|
| RSA | Representational dissimilarity matrices between all pairs of stimuli | Does not determine how local stimulus evidence is used |
| CCA | Shared linear subspaces maximizing correlation | May miss differences in amplified or suppressed stimulus directions |
| CKA | Normalized Hilbert–Schmidt inner products of Gram matrices | Can align activation clouds while local sensitivity differs |
| S-RAS | Local Fisher geometry over a specified stimulus-coordinate subspace | Designed to compare local sensitivity ellipsoids |
The key conceptual distinction is that RSA, CCA, and CKA compare activation point clouds or global readout similarity, whereas S-RAS focuses on local Fisher geometry. It asks which small stimulus changes are most discriminable under noise, then compares the resulting operators after averaging over stimuli and restricting to a chosen coordinate family.
The framework is therefore complementary to methods based on global decoder agreement. It is intended for settings in which local stimulus perturbations, coordinate systems, and noise models are central to the scientific question. In biological datasets, this includes explicitly parameterized stimulus families; in artificial networks, it includes controlled perturbation subspaces and class-conditional contrasts.
7. Empirical applications
The summary lists four empirical applications of S-RAS, spanning artificial neural networks and mouse visual cortex (Yavari et al., 4 May 2026).
Layer correspondence in Tiny10 CNNs: S-RAS recovers the architecturally corresponding layers across independently trained models. Although linear CKA has higher raw top-1, S-RAS shows stronger off-diagonal suppression and coherent layer-distance decay as task subspace dimension 6 grows.
Class-conditional diagnostic probes: For two model families 7 versus 8, class-conditional 9 contrasts 0 are formed. Their leading eigenvectors yield finite smooth perturbations. These “contrast-derived probes” separate held-out images and held-out models better than random or pooled-sensitivity probes, demonstrating transfer of local-sensitivity differences.
Standard versus robust training dissociation: Comparing ERM versus PGD/TRADES/MART ResNet-18 banks under fixed architecture, S-RAS contrasts reveal regime-specific shifts in local evidence use. Contrast probes separate held-out images between training objectives, even within robust families.
Mouse visual cortex static gratings: Stimuli parameterized by 1 define a natural 2 coordinate system. For each experiment 3, the procedure estimates condition-mean response 4 and noise covariance 5, computes local Fisher and pullback metrics, and averages over 6 or coordinate-restricted families. In this setting, S-RAS retrieves matching cortical areas across animals and reveals depth- and stimulus-family-dependent structure, outperforming activation-based, decoder, and mapping baselines in area retrieval.
Taken together, these applications situate S-RAS as a geometry-aware measure of representational similarity that quantifies how two systems agree on making small stimulus perturbations discriminable under noise. The empirical results suggest that local sensitivity can separate models, training regimes, and cortical populations even when activation-based comparisons are less discriminative.