Abstract
While deep neural networks (DNNs) have achieved remarkable success, the geometric principles underlying their ability to disentangle complex data manifolds remain poorly understood. This paper explores the hypothesis that DNNs act as a discrete implementation of Ricci flow, a mathematical smoothing process. By measuring Forman-Ricci curvature across network layers, we demonstrate that well-trained models naturally smooth and flatten data manifolds, with the strength of this geometric flow directly correlating with classification accuracy.
Introduction
The "manifold hypothesis" suggests that high-dimensional data typically lies on lower-dimensional, curved surfaces. A primary goal of deep learning is to transform these manifolds into a representation where classes are linearly separable. However, the use of non-smooth activation functions like ReLU in modern architectures complicates traditional differential geometric analysis. This study bridges this gap by applying concepts from topology—specifically Ricci flow—to quantify the geometric transformations occurring within DNNs.
Methodology
To analyze the "chunky" data within a neural network, the researchers utilized Forman-Ricci curvature, a discrete metric suitable for graph-based data representations. By representing data at each layer as a $k$-nearest neighbor graph, they developed the Ricci coefficient ($\rho_k$). This metric measures the correlation between the change in distance between data points (the "flow") and the local curvature.
A negative coefficient indicates that the network is performing a Ricci flow-like smoothing, stretching the manifold to reduce curvature and improve separability.
Results and Discussion
The study evaluated over 1,500 DNN classifiers on synthetic manifolds, MNIST, and Fashion-MNIST datasets. The results consistently showed that as data moves through a well-trained network, the manifold is systematically "unraveled."
Geometric Smoothing
Visualizations using Principal Component Analysis (PCA) reveal how the data manifolds are smoothed and flattened across successive hidden layers. This process effectively removes "wrinkles" in the data, making the underlying structure more accessible for the final output layer.
Correlation with Accuracy
A key finding is the universal correlation between the Ricci coefficient and test accuracy. Regardless of network architecture (width, depth, or bottlenecks), models that exhibited stronger Ricci flow-like behavior achieved higher performance. This suggests that the ability to perform effective geometric smoothing is a hallmark of successful learning.
Conclusion
Linking deep learning to Ricci flow provides a robust mathematical framework for understanding the internal mechanics of DNNs. The Ricci coefficient serves as a quantifiable measure of a network's "disentangling" capability, offering a new lens for model explainability and selection. Future research will focus on local Ricci flow analysis and extending the framework to multi-class classification problems.
Summary updated