← 研踪 PaperTrailarXiv:2612.03570 · v1
Loss Landscape Analysis library version 1.3: embedding distribution analysis metrics
首次提交 2026-12-02 18:28
版本更新 2026-12-02 18:28
雷达观测 2026-12-03 11:48
摘要
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.
作者备注:13 pages, 6 figures, 2 tables, 17 equations
观测到的版本
相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。
v1 · 2026-12-02 18:28 · 最新观测版本
Loss Landscape Analysis library version 1.3: embedding distribution analysis metrics
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.
查看此版本解读 →查看此版本原文 ↗