The paper defines a weight-matrix similarity index based on maximum absolute cosine values and Gumbel fitting, then uses it to show that neighboring transformer layers in open LLMs have similar weights and form clusters.
Similarity of Neural Networks with Gradients
1 Pith paper cite this work. Polarity classification is still indexing.
abstract
A suitable similarity index for comparing learnt neural networks plays an important role in understanding the behaviour of the highly-nonlinear functions, and can provide insights on further theoretical analysis and empirical studies. We define two key steps when comparing models: firstly, the representation abstracted from the learnt model, where we propose to leverage both feature vectors and gradient ones (which are largely ignored in prior work) into designing the representation of a neural network. Secondly, we define the employed similarity index which gives desired invariance properties, and we facilitate the chosen ones with sketching techniques for comparing various datasets efficiently. Empirically, we show that the proposed approach provides a state-of-the-art method for computing similarity of neural networks that are trained independently on different datasets and the tasks defined by the datasets.
citation-role summary
citation-polarity summary
fields
cs.CL 1years
2025 1verdicts
CONDITIONAL 1roles
background 1polarities
unclear 1representative citing papers
citing papers explorer
-
DOCS: Quantifying Weight Similarity for Deeper Insights into Large Language Models
The paper defines a weight-matrix similarity index based on maximum absolute cosine values and Gumbel fitting, then uses it to show that neighboring transformer layers in open LLMs have similar weights and form clusters.