Geometry matters: insights from Ollivier Ricci Curvature and Ricci Flow into representational alignment

Nahid Torbati, Michael Gaebler, Simon M. Hofmann, Nico Scherf

TL;DR

This paper introduces a novel geometry-aware framework using Ollivier Ricci Curvature and Ricci Flow to analyze representational alignment between humans and neural networks. It reveals that traditional metrics can miss crucial geometric discrepancies, especially when shifting between 2D and 3D viewing conditions, highlighting the importance of intrinsic geometry for understanding representational congruence.

What Problem Does This Paper Address?

Understanding how biological and artificial neural networks (ANNs) represent information is a central challenge. Representational Similarity Analysis (RSA) is a popular method for comparing these representations by correlating their relational structures. However, RSA primarily relies on Euclidean geometry, which can distort the true underlying structure of these representations. This limitation is particularly problematic because human perception itself often deviates from simple Euclidean assumptions. The authors argue that conclusions drawn from RSA can be misleading if the intrinsic geometry of the representations isn't considered, leading to a superficial understanding of alignment. They aim to bridge this gap by introducing a method that captures the fine-grained local geometry of representations, allowing for a more sensitive comparison between human judgments and model outputs.

Methods

The core of this paper is a novel framework for representational alignment that moves beyond Euclidean assumptions. The authors represent each system's representations (human judgments or neural network activations) as a graph. They then apply Ollivier Ricci Curvature (ORC) to quantify local connectivity and geometric properties within these graphs. ORC, adapted from Riemannian geometry to discrete settings using optimal transport, provides an edge-based measure of local connectivity. Positive curvature indicates cohesive neighborhoods with low transport cost, while negative curvature highlights bottlenecks.

To analyze these curvature distributions, they use Gaussian Mixture Models (GMMs) to capture structural complexity and Wasserstein distance to measure differences between distributions. They also employ Ricci Flow, a curvature-driven process that contracts well-connected regions and expands sparse ones, to detect community structures within the graphs. This flow-metric is then used to create a new distance metric for comparing representations.

Datasets

The study uses two main sources of data:

  • Human Judgment Data: This data comes from a large-scale online experiment where 2,710 participants judged similarities among 100 generated faces (both male and female) under static 2D and dynamic 3D viewing conditions.
  • Neural Network Models:
    • VGG-Face: A baseline 2D-native convolutional neural network.
  • Aligned-VGG: A variant of VGG-Face trained to predict human similarity judgments from the experiment.

Key Insights and Ideas

  • Geometry is Key: The paper strongly emphasizes that simply aligning task performance or overall similarity doesn't guarantee alignment of the underlying representational geometry.
  • 2D vs. 3D Divergence: A striking finding is that while a 2D-native network can be aligned to human judgments in a 2D viewing condition, this alignment doesn't generalize well to 3D. The network fails to capture the complex geometric structure of human perception in 3D, even if its overall performance remains high.
  • Traditional Metrics Fall Short: Standard metrics like Euclidean and Cosine similarity can miss significant geometric discrepancies that the proposed geometry-aware methods (like the Ricci flow-metric) readily expose.
  • Semantic Structure Matters: The geometry-aware approach reveals that the network struggles to form coherent semantic structures (like gender clusters) in 3D, indicating a failure to capture the richer geometric information present in dynamic 3D perception.
  • Modality Mismatch is Critical: The study highlights that aligning a 2D-trained network to 3D human data reveals limitations, suggesting that models need to possess appropriate representational capacities (e.g., for 3D processing) to truly align with complex human experiences.

Key Results

  • In the 2D condition, the Aligned-VGG network successfully induced a human-like geometric organization, showing a clear block-diagonal structure in its Ricci flow-metric RDM, mirroring human judgments and indicating a shared gender-based clustering.
  • In the 3D condition, this geometric alignment significantly weakened. The Aligned-VGG model's RDM lost its distinct block structure, becoming more similar to the baseline VGG-Face.
  • Traditional metrics showed moderate alignment (e.g., Pearson correlation of 0.54 for Human Judgment vs. Aligned-VGG in 3D), while the Ricci flow-metric correlation dropped to 0.33, demonstrating the sensitivity of the new method.
  • Curvature distribution analysis confirmed this divergence: Human Judgment in 3D had a more complex, multi-modal curvature distribution, while Aligned-VGG regressed towards the simpler distribution of VGG-Face.
  • Community structure analysis revealed that in 2D, Aligned-VGG clustered faces by gender similarly to humans, but in 3D, this structure became incoherent and more akin to the baseline VGG-Face.

Limitations and Future Work

  • Model Family: The study was limited to the VGG-Face model family. Future work should investigate whether these geometric findings generalize to other architectures, such as Transformers.
  • Stimulus Type: The study used controlled, computer-generated faces. Future research should explore whether these results hold for more naturalistic images with greater variability.
  • Discrete Approximation: The graph-based approach relies on discrete approximations of curvature. Exploring alternative formulations of these geometric concepts could offer deeper insights.
  • Beyond Behavioral Alignment: The authors suggest developing geometrically guided alignment methods that incorporate elements of their framework, moving beyond purely behavioral alignment.

Summary updated

BibTeX
@inproceedings{torbati2025geometry,
  author = {Nahid Torbati and Michael Gaebler and Simon M. Hofmann and Nico Scherf},
  title = {{Geometry matters: insights from Ollivier Ricci Curvature and Ricci Flow into representational alignment}},
  booktitle = {NeurReps @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=fu0zFXL4cB},
}
Figure