English

Predicting the generalization gap in neural networks using topological data analysis

Machine Learning 2023-08-15 v2 Algebraic Topology

Abstract

Understanding how neural networks generalize on unseen data is crucial for designing more robust and reliable models. In this paper, we study the generalization gap of neural networks using methods from topological data analysis. For this purpose, we compute homological persistence diagrams of weighted graphs constructed from neuron activation correlations after a training phase, aiming to capture patterns that are linked to the generalization capacity of the network. We compare the usefulness of different numerical summaries from persistence diagrams and show that a combination of some of them can accurately predict and partially explain the generalization gap without the need of a test set. Evaluation on two computer vision recognition tasks (CIFAR10 and SVHN) shows competitive generalization gap prediction when compared against state-of-the-art methods.

Keywords

Cite

@article{arxiv.2203.12330,
  title  = {Predicting the generalization gap in neural networks using topological data analysis},
  author = {Rubén Ballester and Xavier Arnal Clemente and Carles Casacuberta and Meysam Madadi and Ciprian A. Corneanu and Sergio Escalera},
  journal= {arXiv preprint arXiv:2203.12330},
  year   = {2023}
}

Comments

24 pages, 7 figures. The Related Work section has been updated and the experiments have been executed anew including a 5x2-fold cross-validation scheme. Figure 4.3 has been crucially improved thanks to the discovery that the clusters of neural networks that appear in that figure correspond to different depths of the corresponding architectures

R2 v1 2026-06-24T10:23:10.847Z