A Flow Matching Framework for Neural Representational Dissimilarity
Organizations: Department of Neuroscience, The University of Texas at Austin
Abstract
Neural representational dissimilarity quantifies differences between neural response distributions, and is essential for comparing neural codes across stimuli, brain areas, tasks, and models. Commonly used distance metrics involve different assumptions and are estimated with separate methods. Here, we show that a variety of distance metrics can be unified under a flow matching framework developed in deep generative models. That is, these distances arise as Jeffreys divergences under different velocity constraints. We find that flow matching has advantages for estimating distances involving complicated distributions and continuous variables. Furthermore, this framework enables the design of new distance metrics in a principled way. Together, flow matching provides a unified approach for understanding, estimating, and designing neural representational dissimilarity metrics.
Figures & tables
| Velocity field | Induced distance |
|---|---|
| v_{c}(x,t)=\dot{\beta}_{t}{\color[rgb]{0.5703,0.1367,0.1367}b_{c}} | Euclidean distance |
| v_{c}(x,t)=\dot{\beta}_{t}{\color[rgb]{0.5703,0.1367,0.1367}b_{c}},\ \|{\color[rgb]{0.5703,0.1367,0.1367}b_{c}}\|=r | Cosine distance |
| v_{c}(x,t)=\dot{\beta}_{t}{\color[rgb]{0.5703,0.1367,0.1367}b_{c}},\ \mathbf{1}^{\top}{\color[rgb]{0.5703,0.1367,0.1367}b_{c}}=0,\ \|{\color[rgb]{0.5703,0.1367,0.1367}b_{c}}\|=r | Correlation distance |
| v_{c}(x,t)=\dot{\beta}_{t}{\color[rgb]{0.5703,0.1367,0.1367}b_{c}}+{\color[rgb]{0.5703,0.1367,0.1367}A_{t}}(x-\beta_{t}{\color[rgb]{0.5703,0.1367,0.1367}b_{c}}) | Mahalanobis distance |
| v_{c}(x,t)=\dot{\beta}_{t}{\color[rgb]{0.5703,0.1367,0.1367}b_{c}}+{\color[rgb]{0.5703,0.1367,0.1367}A_{c,t}}(x-\beta_{t}{\color[rgb]{0.5703,0.1367,0.1367}b_{c}}) | Gaussian Jeffreys divergence |
| v_{\theta}(x,t)=\dot{\beta}_{t}{\color[rgb]{0.5703,0.1367,0.1367}b_{\theta}}+{\color[rgb]{0.5703,0.1367,0.1367}\bar{A}_{\theta,t}}(x-\beta_{t}{\color[rgb]{0.5703,0.1367,0.1367}b_{\theta}}) | Linear Fisher information |
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| Experiment | Flow family | Width depth | Batch | Learning rate |
|---|---|---|---|---|
| Categorical RDM | constrained and nonlinear | for correlation/cosine; otherwise | ||
| Independent Gaussian Fisher | affine | |||
| Independent mixture Fisher | affine and nonlinear | |||
| Gaussian OU | affine | |||
| Mixture OU | affine and nonlinear | |||
| Stringer | affine and nonlinear |
| Benchmark | Mean-kernel widths | Covariance-kernel widths |
|---|---|---|
| Linear Fisher | ||
| Gaussian-mixture full Fisher | ||
| Stringer recordings (initial grid) | ||
| Gaussian OU | ||
| Two-scale Gaussian-mixture OU | ||
| Allen Neuropixels PCA-10 |
Neural Representation Geometry
Neural representation geometry studies how learned features are arranged and how that structure relates to model behavior and performance.
See all 256 papers