Understand WeightWatcher Generalization Metrics
masterWeightWatcher uses metrics derived from the Theory of Heavy-Tailed Self-Regularization (HT-SR) to predict test accuracy without needing test data. Metrics are categorized into Scale, Shape, and Direct Correlation:
Scale Metrics
log_spectral_norm: $\log_{10}\Vert\mathbf{W}\Vert^{2}_{\infty}$stable_rank: $\Vert\mathbf{W}\Vert^{2}{F}/\Vert\mathbf{W}\Vert^{2}{\infty}$mp_softrank: $\lambda_{MP}/\lambda_{max}$
Shape Metrics
alpha: The Power Law (PL) exponent (slope of the tail on a log-log scale). Smalleralphavalues generally indicate better generalization.alpha_weighted: A scale-adjusted form ofalpha($\hat{\alpha}=\alpha\log_{10}\lambda_{max}$).log_alpha_norm: Shatten norm ($\log_{10}\Vert\mathbf{X}\Vert^{\alpha}_{\alpha}$).D: Kolmogorov Smirnov Distance (quality of the PL fit).
Direct Correlation Metrics
rand_distance: Distance of the layer ESD from the ideal RMT Marchenko-Pastur (MP) ESD.ww_maxdist/ww_softrank: Related correlation metrics.
Summary Statistics
Calling get_summary() returns the average of these metrics across layers. Use average alpha to compare models with different hyperparameters, and average alpha_weighted to compare models with different architectures and depths simultaneously.