
NG
Nikita Gabdullin
· 1 min read
ResearcharXiv cs.LG
Loss Landscape Analysis library version 1.3: embedding distribution analysis metrics
arXiv:2612.03570v1 Announce Type: new
Abstract: Generalization of neural networks (NN) is vital for their industrial applications. Whereas empirical rules for high generalization training methods do exist, there is still no well-established methodology. It has been shown that curvature of loss landscapes and properties of NN Hessian can provide important insights into NN generalization. Loss Landscape Analysis (LLA) is a PyTorch library which facilitates visualization and analysis of loss landscapes and Hessian of NNs, with emphasis on generalization criteria evaluation. However, there are cases when geometry analysis cannot explain generalization behavior, which is often caused by misalignment between existing and real class cluster distributions under domain shift (dataset change). To address this issue, four embedding distribution analysis metrics are included in the latest LLA 1.3 update. Tests performed using different checkpoints of ViT-S model trained on CINIC-10 dataset clearly show that generalization gap starts growing when train and test embedding distributions start diverging. Furthermore, the analysis of two ViT-S models similarly trained on ImageNet-1K shows that the higher generalization model exhibits less embedding distribution misalignment. Moreover, the analysis of the second model identifies poor classifier transfer with well-trained encoder, which is verified by classifier retraining with frozen encoder to achieve high accuracy. New functions enrich the existing geometry analysis capabilities of the library available at: https://github.com/GabdullinN/loss-landscape-analysis.
Original source
This story was published by arXiv cs.LG and written by Nikita Gabdullin. SyncAI.news shows a preview; the complete article is on the publisher's site.
Read the full story on arxiv.org


