How a student becomes a teacher: learning and forgetting through spectral methods

Lorenzo Giambagli, L. Buffoni, Lorenzo Chicchi, Duccio Fanelli
10/1/2023
10 citations

Official code: Jamba15/Spectral-regularization-teacher-student (1 star, Python, last commit 2023-10-18).

Abstract

In theoretical machine learning, the teacher–student paradigm is often employed as an effective metaphor for real-life tuition. A student network is trained on data generated by a fixed teacher network until it matches the instructor’s ability to cope with the assigned task.

Show full abstract

The above scheme proves particularly relevant when the student network is overparameterized (namely, when larger layer sizes are employed) as compared to the underlying teacher network. Under these operating conditions, it is tempting to speculate that the student ability to handle the given task could be eventually stored in a sub-portion of the whole network. This latter should be to some extent reminiscent of the frozen teacher structure, according to suitable metrics, while being approximately invariant across different architectures of the student candidate network. Unfortunately, state-of-the-art conventional learning techniques could not help in identifying the existence of such an invariant subnetwork, due to the inherent degree of non-convexity that characterizes the examined problem. In this work, we take a decisive leap forward by proposing a radically different optimization scheme which builds on a spectral representation of the linear transfer of information between layers. The gradient is hence calculated with respect to both eigenvalues and eigenvectors with negligible increase in terms of computational and complexity load, as compared to standard training algorithms. Working in this framework, we could isolate a stable student substructure, that mirrors the true complexity of the teacher in terms of computing neurons, path distribution and topological attributes. When pruning unimportant nodes of the trained student, as follows a ranking that reflects the optimized eigenvalues, no degradation in the recorded performance is seen above a threshold that corresponds to the effective teacher size. The observed behavior can be pictured as a genuine second-order phase transition that bears universality traits. Code is available at: https://github.com/Jamba15/Spectral-regularization-teacher-student/tree/master.

View on arXivView PDF

Code Implementations(1)

This repository is ment to reproduce the results of the Paper: How a student becomes a teacher: learning and forghetting through spectral methods

11PythonMay 22, 20233 years ago

Similar Papers

Cite this paper

@article{giambagli2023student,
  title  = {How a student becomes a teacher: learning and forgetting through spectral methods},
  author = {Lorenzo Giambagli and L. Buffoni and Lorenzo Chicchi and Duccio Fanelli},
  year   = {2023},
  eprint = {2310.12612},
  archivePrefix = {arXiv},
  url    = {https://iopscience.iop.org/article/10.1088/1742-5468/ad1bea/pdf},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.12612.svg)](https://codeofpaper.com/paper/2310.12612)

Discussion