NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Expand-and-Cluster: Exact Parameter Recovery of Neural Networks

Flavio Martinelli, Berfin Simsek, Johanni Brea, Wulfram Gerstner · OpenReview

Abstract

Can we recover the hidden parameters of an Artificial Neural Network (ANN) by probing its input-output mapping? We propose a systematic method, called `Expand-and-Cluster' that needs only the number of hidden layers and the activation function of the probed ANN to identify all network parameters. In the expansion phase, we train a series of networks of increasing size using the probed data of the ANN as a teacher. Expansion stops when a minimal loss is consistently reached in networks of a given size. In the clustering phase, weight vectors of the expanded students are clustered, which allows structured pruning of superfluous neurons in a principled way. We find that an overparameterization of a factor four is sufficient to reliably identify the minimal number of neurons and to retrieve the original network parameters in $80\%$ of tasks across a family of 150 toy problems of variable difficulty. Furthermore, shallow and deep teacher networks trained on MNIST data can be identified with less than $5\%$ overhead in the neuron number. Thus, while direct training of a student network with a size identical to that of the teacher is practically impossible because of the highly non-convex loss function, training with mild overparameterization followed by clustering and structured pruning correctly identifies the target network.
BibTeX
@inproceedings{martinelli2024expand,
  author = {Flavio Martinelli and Berfin Simsek and Johanni Brea and Wulfram Gerstner},
  title = {{Expand-and-Cluster: Exact Parameter Recovery of Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=3MIuPRJYwf},
}
Figure