Papers
Topics
Authors
Recent
Search
2000 character limit reached

S-RAS: Spectral Riemannian Alignment Score

Updated 4 July 2026
  • 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

f:RdRm,xD.f:\mathbb{R}^d \to \mathbb{R}^m,\qquad x\sim\mathcal{D}.

Its pullback (Jacobian) metric at xx is

Mf(x)=Jf(x)Jf(x)S+d.M_f(x)=J_f(x)^\top J_f(x)\in\mathbb{S}_+^d.

When stimuli are parameterized by coordinates sΩRps\in\Omega\subset\mathbb{R}^p with ψ:sx\psi:s\mapsto x, the induced representation is

hf(s)=f(ψ(s)),Jhf(s)=Jf(ψ(s))Dψ(s).h_f(s)=f(\psi(s)),\qquad J_{h_f}(s)=J_f(\psi(s))\cdot D\psi(s).

Under additive Gaussian noise Σ\Sigma on the representation, the pointwise local Fisher metric is

If,ψ(s)=Jhf(s)Σ1Jhf(s)S+p.I_{f,\psi}(s)=J_{h_f}(s)^\top \Sigma^{-1}J_{h_f}(s)\in\mathbb{S}_+^p.

To restrict perturbations to a kk-dimensional stimulus subspace span(P)\mathrm{span}(P), with xx0 orthonormal and xx1, the projected expected Fisher operator is

xx2

In the isotropic noise case xx3, up to the scalar xx4 this reduces to the pullback form

xx5

To compare two PSD summaries xx6 and xx7, each is lifted to strictly SPD by

xx8

The affine-invariant log-spectral distance on xx9 is

Mf(x)=Jf(x)Jf(x)S+d.M_f(x)=J_f(x)^\top J_f(x)\in\mathbb{S}_+^d.0

Thus, for two representations Mf(x)=Jf(x)Jf(x)S+d.M_f(x)=J_f(x)^\top J_f(x)\in\mathbb{S}_+^d.1 and Mf(x)=Jf(x)Jf(x)S+d.M_f(x)=J_f(x)^\top J_f(x)\in\mathbb{S}_+^d.2,

Mf(x)=Jf(x)Jf(x)S+d.M_f(x)=J_f(x)^\top J_f(x)\in\mathbb{S}_+^d.3

A normalized similarity score is then obtained by

Mf(x)=Jf(x)Jf(x)S+d.M_f(x)=J_f(x)^\top J_f(x)\in\mathbb{S}_+^d.4

In this construction, the operator Mf(x)=Jf(x)Jf(x)S+d.M_f(x)=J_f(x)^\top J_f(x)\in\mathbb{S}_+^d.5 or Mf(x)=Jf(x)Jf(x)S+d.M_f(x)=J_f(x)^\top J_f(x)\in\mathbb{S}_+^d.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,

Mf(x)=Jf(x)Jf(x)S+d.M_f(x)=J_f(x)^\top J_f(x)\in\mathbb{S}_+^d.7

Under small Mf(x)=Jf(x)Jf(x)S+d.M_f(x)=J_f(x)^\top J_f(x)\in\mathbb{S}_+^d.8 and linearization, the squared discriminability is

Mf(x)=Jf(x)Jf(x)S+d.M_f(x)=J_f(x)^\top J_f(x)\in\mathbb{S}_+^d.9

Averaging over a second-moment family with sΩRps\in\Omega\subset\mathbb{R}^p0 gives the trace form

sΩRps\in\Omega\subset\mathbb{R}^p1

Restricting perturbations to sΩRps\in\Omega\subset\mathbb{R}^p2, with sΩRps\in\Omega\subset\mathbb{R}^p3, and averaging over stimuli sΩRps\in\Omega\subset\mathbb{R}^p4 yields the projected operator sΩRps\in\Omega\subset\mathbb{R}^p5.

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

sΩRps\in\Omega\subset\mathbb{R}^p6

This distance is invariant to congruence transforms sΩRps\in\Omega\subset\mathbb{R}^p7, 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, sΩRps\in\Omega\subset\mathbb{R}^p8 is invariant under congruence transforms sΩRps\in\Omega\subset\mathbb{R}^p9 and ψ:sx\psi:s\mapsto x0. This is the invariance class naturally associated with Fisher and pullback operators.

Uniform multiplicative certificate is obtained from the log-spectral distance. If ψ:sx\psi:s\mapsto x1, then

ψ:sx\psi:s\mapsto x2

Consequently, for any probe covariance ψ:sx\psi:s\mapsto x3,

ψ:sx\psi:s\mapsto x4

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 ψ:sx\psi:s\mapsto x5 determines all expected discriminabilities ψ:sx\psi:s\mapsto x6; conversely, if two representations agree on all ψ:sx\psi:s\mapsto x7, then their ψ:sx\psi:s\mapsto x8 operators coincide. Hence ψ:sx\psi:s\mapsto x9 or hf(s)=f(ψ(s)),Jhf(s)=Jf(ψ(s))Dψ(s).h_f(s)=f(\psi(s)),\qquad J_{h_f}(s)=J_f(\psi(s))\cdot D\psi(s).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.

  1. Choose a set of hf(s)=f(ψ(s)),Jhf(s)=Jf(ψ(s))Dψ(s).h_f(s)=f(\psi(s)),\qquad J_{h_f}(s)=J_f(\psi(s))\cdot D\psi(s).1 stimulus samples hf(s)=f(ψ(s)),Jhf(s)=Jf(ψ(s))Dψ(s).h_f(s)=f(\psi(s)),\qquad J_{h_f}(s)=J_f(\psi(s))\cdot D\psi(s).2 and a hf(s)=f(ψ(s)),Jhf(s)=Jf(ψ(s))Dψ(s).h_f(s)=f(\psi(s)),\qquad J_{h_f}(s)=J_f(\psi(s))\cdot D\psi(s).3-dimensional orthonormal subspace hf(s)=f(ψ(s)),Jhf(s)=Jf(ψ(s))Dψ(s).h_f(s)=f(\psi(s)),\qquad J_{h_f}(s)=J_f(\psi(s))\cdot D\psi(s).4.
  2. For each hf(s)=f(ψ(s)),Jhf(s)=Jf(ψ(s))Dψ(s).h_f(s)=f(\psi(s)),\qquad J_{h_f}(s)=J_f(\psi(s))\cdot D\psi(s).5, compute via Jacobian-vector products the hf(s)=f(ψ(s)),Jhf(s)=Jf(ψ(s))Dψ(s).h_f(s)=f(\psi(s)),\qquad J_{h_f}(s)=J_f(\psi(s))\cdot D\psi(s).6 matrix hf(s)=f(ψ(s)),Jhf(s)=Jf(ψ(s))Dψ(s).h_f(s)=f(\psi(s)),\qquad J_{h_f}(s)=J_f(\psi(s))\cdot D\psi(s).7.
  3. Form the empirical average

hf(s)=f(ψ(s)),Jhf(s)=Jf(ψ(s))Dψ(s).h_f(s)=f(\psi(s)),\qquad J_{h_f}(s)=J_f(\psi(s))\cdot D\psi(s).8

  1. Lift to SPD:

hf(s)=f(ψ(s)),Jhf(s)=Jf(ψ(s))Dψ(s).h_f(s)=f(\psi(s)),\qquad J_{h_f}(s)=J_f(\psi(s))\cdot D\psi(s).9

  1. Repeat for a second representation Σ\Sigma0 to obtain Σ\Sigma1.
  2. Compute the eigenvalues Σ\Sigma2 of

Σ\Sigma3

  1. Evaluate the distance

Σ\Sigma4

and optionally normalize or exponentiate.

The numerical profile is also specified. The cost is Σ\Sigma5 JVPs per sample, or one JVP with Σ\Sigma6-vector batch. Building Σ\Sigma7 is Σ\Sigma8 to form Σ\Sigma9 and If,ψ(s)=Jhf(s)Σ1Jhf(s)S+p.I_{f,\psi}(s)=J_{h_f}(s)^\top \Sigma^{-1}J_{h_f}(s)\in\mathbb{S}_+^p.0 to accumulate. Eigen-decomposition of a If,ψ(s)=Jhf(s)Σ1Jhf(s)S+p.I_{f,\psi}(s)=J_{h_f}(s)^\top \Sigma^{-1}J_{h_f}(s)\in\mathbb{S}_+^p.1 SPD matrix costs If,ψ(s)=Jhf(s)Σ1Jhf(s)S+p.I_{f,\psi}(s)=J_{h_f}(s)^\top \Sigma^{-1}J_{h_f}(s)\in\mathbb{S}_+^p.2. For regularization, the summary states that one may add If,ψ(s)=Jhf(s)Σ1Jhf(s)S+p.I_{f,\psi}(s)=J_{h_f}(s)^\top \Sigma^{-1}J_{h_f}(s)\in\mathbb{S}_+^p.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 If,ψ(s)=Jhf(s)Σ1Jhf(s)S+p.I_{f,\psi}(s)=J_{h_f}(s)^\top \Sigma^{-1}J_{h_f}(s)\in\mathbb{S}_+^p.4, not directly on the ambient stimulus dimension If,ψ(s)=Jhf(s)Σ1Jhf(s)S+p.I_{f,\psi}(s)=J_{h_f}(s)^\top \Sigma^{-1}J_{h_f}(s)\in\mathbb{S}_+^p.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 If,ψ(s)=Jhf(s)Σ1Jhf(s)S+p.I_{f,\psi}(s)=J_{h_f}(s)^\top \Sigma^{-1}J_{h_f}(s)\in\mathbb{S}_+^p.6 grows.

Class-conditional diagnostic probes: For two model families If,ψ(s)=Jhf(s)Σ1Jhf(s)S+p.I_{f,\psi}(s)=J_{h_f}(s)^\top \Sigma^{-1}J_{h_f}(s)\in\mathbb{S}_+^p.7 versus If,ψ(s)=Jhf(s)Σ1Jhf(s)S+p.I_{f,\psi}(s)=J_{h_f}(s)^\top \Sigma^{-1}J_{h_f}(s)\in\mathbb{S}_+^p.8, class-conditional If,ψ(s)=Jhf(s)Σ1Jhf(s)S+p.I_{f,\psi}(s)=J_{h_f}(s)^\top \Sigma^{-1}J_{h_f}(s)\in\mathbb{S}_+^p.9 contrasts kk0 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 kk1 define a natural kk2 coordinate system. For each experiment kk3, the procedure estimates condition-mean response kk4 and noise covariance kk5, computes local Fisher and pullback metrics, and averages over kk6 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.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Spectral Riemannian Alignment Score (S-RAS).