---
title: Representational Dynamics Analysis (RDA)
url: https://www.emergentmind.com/topics/representational-dynamics-analysis-rda
type: topic
---

# Representational Dynamics Analysis (RDA)

Representational Dynamics Analysis (RDA) is a broad methodological framework for quantifying, visualizing, and interpreting how internal data representations evolve over time, across layers, or during optimization in neural and biological systems. RDA formally connects measurement tools from representational similarity analysis, multidimensional scaling, topology, subspace geometry, neighborhood graphs, and information theory to enable rigorous comparison of representational changes. Core use cases encompass time-resolved neural recordings, model training or transfer, and layer-wise evolution in deep networks, with implications for mechanistic interpretability, model selection, pruning, and understanding representation learning regimes [1906.09264, 2201.00058, 2605.12714, 2505.12576].

## 1. Core Methodological Pipeline: RDM, MDS, and Procrustes Alignment

RDA originated from analyses of time-dependent neural recordings where the challenge was to extract, compare, and visualize the evolving representational geometry. Lin & Kriegeskorte et al. established a canonical pipeline composed of the following steps [1906.09264]:

1. **Representational Dissimilarity Matrix (RDM):** For a set of $N$ stimuli, at each time window $t$, the response-pattern vectors $\mathbf{x}_i(t) \in \mathbb{R}^p$ (for $p$ measured units) are used to compute pairwise dissimilarity matrices $D(t)$, using either correlation distance
   $$
   D_{ij}^{\mathrm{corr}}(t) = 1 - \mathrm{corr}(\mathbf{x}_i(t), \mathbf{x}_j(t))
   $$
   or Euclidean distance.

2. **RDM Movie:** Sliding-window RDMs $D(t), t=1, \ldots, T$, are stacked to create an RDM trajectory or “movie” capturing representational dynamics throughout the stimulus period.

3. **Multidimensional Scaling (MDS):** Each $D(t)$ is embedded into a low-dimensional Euclidean space ($X(t) \in \mathbb{R}^{N \times d}$, $d=2$ or $3$), using classical or nonmetric MDS, such that pairwise distances in $X(t)$ approximate $D_{ij}(t)$.

4. **Procrustes Alignment (pMDS):** Because each $X(t)$ lives in its own arbitrary reference frame (due to indeterminacies of rotation, reflection, and scaling), all MDS configurations are aligned into a common, temporally coherent frame via generalized Procrustes analysis, producing aligned embeddings $\widetilde X(t)$.

5. **Trajectory-Based Quantification:** Category centroids, inter-centroid distances, trajectory lengths, instantaneous speeds, convex-hull areas, and oscillatory analysis (Fourier or wavelet) are extracted from $\{\widetilde X(t)\}$ for further quantification.

This RDA pipeline enabled novel insights, such as the hierarchical and stagewise emergence of categorical information in the monkey IT cortex, and the presence of oscillatory post-stimulus convergence [1906.09264].

## 2. Topological and Multi-Scale Geometric Analysis: RTD-Based RDA

Representation Topology Divergence (RTD) extends RDA to the topological domain, quantifying multi-scale (“persistent homology”-based) differences between two point cloud representations (e.g., model epochs or layers), even if embedded in spaces of differing dimensions [2201.00058]. The RTD protocol is as follows:

1. **Point Cloud Extraction:** For a fixed batch of $b$ samples with one-to-one correspondence, representations $P \subset \mathbb{R}^D$ and $\widetilde P \subset \mathbb{R}^{\widetilde D}$ are constructed.

2. **Distance Graphs and Vietoris–Rips Filtration:** Weighted complete graphs are formed using pairwise Euclidean distances. The Vietoris–Rips filtration $R_\alpha(m)$ defines simplicial complexes at every scale $\alpha$, tracking the emergence and disappearance of topological features (clusters, loops, voids).

3. **R-Cross-Barcode Construction:** The combined distance matrix merges information from both representations, capturing topological features present in one but not the other.

4. **RTD Computation:** The total persistence (sum of lifetimes of topological features in the cross-barcode) is the RTD score. This is symmetrized between both directions and tracked across epochs to measure convergence.

Empirically, RTD was shown to correlate almost perfectly with test-time label disagreement and outperform kernel-matrix-based similarity (CKA/HSIC) in detecting functionally-relevant representational change during network training [2201.00058].

## 3. Layerwise Measurement of Representation Dynamics: LRD Framework

The Layer-wise Representation Dynamics (LRD) framework advances RDA by decomposing hidden-state evolution along neural network depths into three mathematically distinct diagnostic classes [2605.12714]:

1. **Frenet Family (Global Subspace Motion):**
   - Adopts Grassmannian geometry to compute sequential subspace displacement between principal directions at each layer. The Grassmann distance $d_{\mathrm{Gr}}(Q_a, Q_b)$ is computed from principal angles. The overall end-to-end displacement $d_{0,L}$ and curvature measures further characterize the trajectory.

2. **Neighborhood Retention Score (NRS, Local Stability):**
   - For anchor points, the Jaccard overlap of $k$-nearest neighbors is computed between consecutive layers, with late-layer mean NRS ($\bar J_{\mathrm{late}}$) summarizing local retention.

3. **Graph Filtration Mutual Information (GFMI, Alignment to Final Layer):**
   - Cosine $k$-NN graphs are thresholded by distance percentile to yield a filtration per layer; mutual information is computed between connected-component partitions at layer $\ell$ and the final layer, integrated over percentiles.

Large-scale application to curated model/task matrices (31 models, 30 datasets) identified $d_{0,L}$ as the strongest unsupervised correlate of downstream task performance, while GFMI excelled at identifying layers that could be pruned without substantial performance loss. NRS was sensitive in retrieval tasks but less stable for pruning [2605.12714].

## 4. Entropy, Mutual Information, and RDA in SSL: Dynamics and Dimensionality

Recent work has connected RDA with quantitative information-theoretic analysis of self-supervised learning (SSL) representations [2505.12576]:

- **Dimensionality ($H(R)$):** Estimated by von Neumann or Renyi entropy of the normalized eigenvalue spectrum of the representation covariance.
- **Mutual Information ($I(R;Z)$):** Closed-form or matrix Renyi estimator between the high-dimensional representation $R$ and projected embedding $Z$.

Key findings:

- **Early Training:** Increases in entropy $H(R)$, driven by feature decorrelation, are accompanied by increasing $I(R;Z)$.
- **Late Training:** Increased uniformity (spread) in $R$ yields further entropy gains but causes $I(R;Z)$ to plateau or decrease, due to information bottleneck effects in $Z$.
- **Performance Manifold:** The best-performing SSL models settle at intermediate $(H(R), I(R;Z))$ values; neither maximizing entropy nor minimizing mutual information alone suffices.

These dynamics motivated AdaDim, an adaptive algorithm that interpolates between feature-decorrelating (e.g., VICReg covariance) and sample-uniformizing (e.g., InfoNCE) objectives according to the empirical effective rank of representations during training [2505.12576].

## 5. Applications and Empirical Insights

RDA methods have enabled:

- **Visualization and Interpretation:** Smooth temporal movies or layerwise trajectories revealing category separation, recurrence, and reorganization in both neural and artificial systems [1906.09264].
- **Model Selection:** Unsupervised RDA criteria (e.g., $d_{0,L}$, GFMI, RTD) predict downstream accuracy and can guide pre-benchmarking evaluation [2201.00058, 2605.12714].
- **Inference-Time Layer Pruning:** RDA identifies structurally redundant layers (GFMI achieves the lowest performance drop at 15–20% pruned budgets, outperforming both random and last-$k$ removals) [2605.12714].
- **Optimization and Training Regimes:** RDA timecourses reveal mechanistic phase transitions—e.g., cluster formation, subspace rotation, topology stabilization—that are invisible at the level of simple average similarity [2505.12576].
- **Comparative Model Analysis:** LRD signatures distinguish between encoder-/decoder-based embedders and base LLMs and explain architectural and task-level variation invisible at the final embedding layer [2605.12714].

## 6. Methodological Comparison and Theoretical Considerations

The following table summarizes major RDA methodologies:

| Method/Families                | Signal Captured                   | Main Strengths                          |
|---------------------------------|-----------------------------------|-----------------------------------------|
| RDM+pMDS [1906.09264]           | Pairwise geometry/time evolution  | Category/trajectory visualization       |
| RTD [2201.00058]                | Multiscale topology (homology)    | Topology-aware, correlates w/ function  |
| LRD: Frenet/NRS/GFMI [2605.12714]| Subspace, local, graph alignment  | Predicts accuracy, guides pruning       |
| Entropy/Mutual Info [2505.12576]| Global dim. & channel information | Dissects learning phases in SSL         |

While classical methods such as CKA or SVCCA capture linear and kernel similarity, they miss topological phenomena detected by RTD and cannot track phasewise geometry revealed by LRD. RDA methodologies with topological and geometric sensitivity have been shown to strongly correlate with functional dissimilarity and to capture true manifold evolution during optimization [2201.00058].

## 7. Open Questions and Future Directions

Open lines of investigation include:

- **Robustness to hyperparameters:** Sensitivity of RDA metrics to subsample size, distance/graphtype, or preprocessing in large models remains underexplored [2605.12714].
- **Extension to new modalities:** Application of RDA with mathematically coherent measures across vision, NLP, and speech is an emerging direction [2505.12576, 2605.12714].
- **Relation to mechanistic/causal interpretability:** Linking RDA trajectories, topological events, or phase transitions to circuit-level or conceptual units in neural/AI systems is unresolved.
- **Beyond one-to-one correspondence:** RTD and related methods require matched samples; extending RDA to domains (e.g., cross-domain transfer) without alignment is an open challenge [2201.00058].
- **Task-specific diagnostic strategies:** Refining RDA as a toolkit for early stopping, remodularization, or targeted fine-tuning via task-informed metric weighting [2605.12714, 2505.12576].

RDA thus represents a mathematically grounded, empirically validated, and still rapidly evolving set of techniques for probing the dynamics of learned and biological representations.

Source: https://www.emergentmind.com/topics/representational-dynamics-analysis-rda