TL;DR
This paper introduces the Effective Number of Shared Dimensions (ENSD), a novel, model-free metric for quantifying the dimensionality of shared structure between two datasets. ENSD is robust, computationally efficient, and provides a more nuanced understanding of shared representations than existing methods, particularly in sparse or low-rank scenarios.
What Problem Does This Paper Address?
Understanding how information is represented and shared across different datasets is a fundamental challenge in neuroscience and machine learning. Researchers often want to know how similar the underlying "computational spaces" are between, for example, different layers of a neural network, different brain regions, or even different modalities of data (like neural activity and connectivity). While methods exist to measure similarity, a standard, model-free way to quantify the dimensionality of this shared structure has been lacking. Existing approaches often rely on specific models or require complex statistical testing, making them less flexible and computationally intensive. This paper aims to fill that gap with a new, versatile metric.
Methods
The core contribution is the Effective Number of Shared Dimensions (ENSD), denoted as $v_{x,y}$. ENSD is a generalization of the Participation Ratio (PR), a well-established measure of a single dataset's dimensionality. The ENSD is derived from the scaled covariance matrices of the two datasets ($X$ and $Y$).
Key aspects of the method include:
- Model-Free: It doesn't assume a specific underlying generative model for the data.
- Generalization of PR: When the two datasets are equivalent (up to an orthonormal transformation), ENSD reduces to the PR of a single dataset.
- Relationship to CKA: ENSD can be expressed as a scaled version of Centered Kernel Alignment (CKA), a popular similarity measure. ENSD provides additional information about the dimensionality of the aligned subspaces, whereas CKA can be seen as a fraction of the maximum possible ENSD.
- Robustness: It's shown to be robust to sparse and low-rank data, unlike methods like Canonical Correlation Analysis (CCA).
- Interpretability: ENSD has constituent statistics that allow for deeper analysis of the shared structure.
- Computational Efficiency: The method involves matrix operations that are computationally efficient.
Datasets
The paper uses several datasets for evaluation:
- Artificial Neural Networks: A TinyTen Convolutional Neural Network (CNN) trained on the CIFAR-10 dataset was used to analyze cross-layer similarities.
- Visual Electrophysiology Data: Data from Semedo et al. [33] examining correlated neural activity between primary (V1) and secondary (V2) visual cortices in macaques was re-analyzed.
- Olfactory Connectivity Data (Drosophila):
- Hemibrain dataset: Connectomic data from the fly brain, providing synapse counts between antennal lobe (AL) projection neurons and downstream areas (Lateral Horn - LH, Mushroom Body - MB).
- FAFB dataset: Similar connectomic data from a second individual.
- Synthetic Data: Probabilistic CCA (pCCA) models were used to generate synthetic data with known ground truth for evaluating robustness to sample size and sparsity.
Key Insights and Ideas
- Dimensionality as a Proxy for Complexity: The paper reinforces the idea that the dimensionality of a dataset can serve as a proxy for its computational complexity or the richness of its representations.
- Beyond Simple Similarity: ENSD offers more than just a similarity score; it quantifies how much of that similarity is captured by a shared dimensional structure, and how "spread out" that structure is.
- Amplification of Shared Variability: In certain cases, ENSD can be larger than the individual dataset's participation ratio, suggesting that shared dimensions can amplify subtle variations in one dataset that are less prominent in the other. This is illustrated with a sphere-to-ellipsoid example.
- Robustness is Key: The ENSD's resilience to sparsity and sample size variations makes it particularly valuable for real-world, often noisy, biological and artificial data.
- Bridging Innate and Learned Behaviors: In the fly olfactory system, ENSD analysis revealed a shared, food-tuned subspace between innate (LH) and learned (MB) pathways, suggesting a potential mechanism for how learned behaviors can influence innate responses.
Key Results
- ENSD Performance: ENSD demonstrated superior robustness to sample size and sparsity compared to CCA and RRR in simulated experiments.
- Neural Network Analysis: ENSD revealed that representation dimensionality in CNNs typically increases and then decreases with layer depth, providing a more detailed view than CKA which remained relatively constant.
- Neuroscience Applications:
- Re-analysis of visual electrophysiology data recovered previous findings on communication subspaces, but with significantly reduced computation time compared to RRR.
- Analysis of fly olfactory connectivity data confirmed existing findings about structured inputs to the MB and LH, and importantly, revealed a statistically significant, food-tuned shared subspace between LH and MB inputs, suggesting alignment between innate and learned olfactory processing.
- Computational Efficiency: ENSD analysis was orders of magnitude faster than RRR for electrophysiology data.
Limitations and Future Work
- Bias in ENSD: The authors acknowledge that ENSD is systematically biased downwards from the "strict" number of shared dimensions. This is interpreted as capturing the "effective" number, where low-variance modes might be neglected.
- Sensitivity to Low Variance Dimensions: Similar to CKA, ENSD might have limited sensitivity to very low-variance dimensions.
- Future Directions:
- Extending ENSD to analyze time-lagged neural responses to characterize representational drift.
- Incorporating scale-dependence into ENSD for analyzing local and global structure.
- Developing non-linear dimensionality metrics via kernelization of ENSD.
- Further exploring multimodal analyses and comparisons across different neural network architectures.
Summary updated