Abstract Understanding the computational principles of neural systems requires comparing their underlying dynamics. While Dynamical Similarity Analysis (DSA) offers a powerful framework for this by embedding nonlinear data into linear spaces, its original implementation is computationally intensive and requires manual parameter tuning. We present fastDSA, a high-speed framework that automates rank selection and streamlines the alignment process. fastDSA achieves 10x to 100x speedups over existing methods, enabling large-scale comparisons of biological and artificial neural networks without sacrificing sensitivity to subtle dynamical differences.
Introduction
A central challenge in neuroscience is determining whether two neural circuits—whether biological or artificial—are performing the same computation. Traditional approaches like Representational Similarity Analysis (RSA) focus on the spatial geometry of neural activity. However, geometry can be misleading; two systems may follow identical dynamical "flows" while appearing spatially distinct. Dynamical Similarity Analysis (DSA) addresses this by comparing the underlying vector fields. Despite its theoretical strengths, the original DSA framework suffers from significant computational bottlenecks, requiring manual "model order" selection and slow iterative optimization to align high-dimensional systems.
Methodology
fastDSA introduces two primary innovations to overcome the bottlenecks of the original framework:
- Automatic Rank Estimation: Instead of manual tuning, fastDSA employs Optimal Singular Value Hard Thresholding (SVHT). Grounded in random matrix theory, SVHT automatically identifies the informative subspace of the data, effectively denoising the signal and selecting the optimal model order without human intervention.
- Accelerated Alignment Optimizers: Comparing systems requires aligning them via orthogonal transformations. fastDSA proposes three new strategies:
- RO-fastDSA: Uses a regularization penalty to keep the search near the space of valid rotations.
- Rim-fastDSA: A Riemannian on-manifold method ensuring every optimization step remains within the space of valid rotations.
- Land-fastDSA: Utilizes a "Landing algorithm" that allows temporary drift in Euclidean space before "landing" back on the manifold, providing an optimal balance of speed and precision.
Experimental Validation and Results
The framework was validated across diverse benchmarks, including the chaotic Lorenz attractor, neural ring attractor models, and large-scale random matrices.
- Robust Denoising and Rank Detection: On the Lorenz system, the SVHT component successfully identified the correct latent dimensionality (rank 3) even under moderate noise conditions, acting as an automated filter for neural noise.
- Massive Speedups: fastDSA demonstrated significant efficiency gains, performing approximately 15x faster in detecting topological shifts, with per-iteration computations reaching up to 100x speedups compared to the original DSA.
- Sensitivity to Dynamics: Unlike kernel-based methods (e.g., kwDSA) that only consider eigenvalues, fastDSA accounts for eigenvectors (flow directions). This allows it to distinguish between systems that are geometrically similar but dynamically distinct, proving sensitive to computationally relevant differences.
Discussion and Future Work
The development of fastDSA highlights that identifying "topological conjugacy"—proving two systems perform the same task despite different spatial configurations—is essential for neural comparison. The "Landing" algorithm emerged as the most robust optimizer, avoiding the high cost of frequent manifold retractions while maintaining precision in high dimensions.
While fastDSA automates rank selection, some parameters like delay-embedding time-lags still require manual tuning. Future work will focus on automating these remaining parameters and integrating "noise-aware" versions of Dynamic Mode Decomposition (DMD) to further enhance performance on complex biological datasets.
Summary updated