Representation Gap: Explaining the Unreasonable Effectiveness of Neural Networks from a Geometric Perspective
About
Characterizing precisely the asymptotic generalization error of neural networks using parameters that can be estimated efficiently is a crucial problem in machine learning, which relies heavily on heuristics and practitioners' intuition to make key design choices. In order to mitigate this issue, we introduce the Representation Gap, a metric closely related to the generalization error, but admitting better-behaved asymptotic dynamics. Focusing on equivariant diffusion models and leveraging results from optimal quantization and point-process theory, we derive a precise asymptotic equivalent of the Representation Gap and show that it is governed by a single parameter, the \textit{intrinsic dimension} of the task, which is easy to interpret, efficient to estimate, and can be linked to the equivariances of common neural network architectures. We show that this asymptotic dynamic also extends to a broader range of tasks and training algorithms. Finally, we demonstrate empirically that our asymptotic law and intrinsic dimension estimation are accurate on a wide range of synthetic datasets, where these quantities are known, as well as on more realistic datasets, where we obtain results consistent with the related literature.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Intrinsic Dimension Estimation | MNIST | Intrinsic Dimension Estimate13 | 13 | |
| Intrinsic Dimension Estimation | Sphere d = 1 | Estimated Intrinsic Dimension1.94 | 4 | |
| Intrinsic Dimension Estimation | Cube d = 1 | Estimated Intrinsic Dimension1.07 | 2 | |
| Intrinsic Dimension Estimation | Cube d = 5 | Estimated Intrinsic Dimension5.06 | 2 | |
| Intrinsic Dimension Estimation | Sphere d = 5 | Estimated Intrinsic Dimension5.13 | 2 | |
| Intrinsic Dimension Estimation | Swiss roll | Estimated Intrinsic Dimension2.19 | 2 | |
| Intrinsic Dimension Estimation | SVHN | Estimated Intrinsic Dimension13 | 2 | |
| Intrinsic Dimension Estimation | CIFAR-10 | Intrinsic Dimension (Estimated)18 | 2 | |
| Intrinsic Dimension Estimation | MSCOCO | Estimated Intrinsic Dimension19 | 2 | |
| Intrinsic Dimension Estimation | ImageNet | Estimated Intrinsic Dimension21 | 2 |