Papers

Loss Landscape Analysis 1.3 发布:新增嵌入分布分析指标

Loss Landscape Analysis library version 1.3: embedding distribution analysis metrics

Why we picked it

一个开源 PyTorch 库更新,新增四个嵌入分布指标,专门诊断领域偏移下泛化差距的来源。文中用 ViT-S 在 CINIC-10 和 ImageNet-1K 上的实验演示了怎么定位分类器迁移失败的问题。做模型评估或迁移学习调优的人可以试试。

Loss Landscape Analysis(LLA)是一个基于 PyTorch 的开源库,用于可视化和分析神经网络的损失曲面与 Hessian,以评估泛化能力。本次 1.3 版本新增四个嵌入分布分析指标,用于解决几何分析在领域偏移下无法解释泛化行为的问题。

Body

实验用 CINIC-10 上训练的多个 ViT-S checkpoint 验证:当训练集与测试集的嵌入分布开始发散时,泛化差距随之增长。对两个在 ImageNet-1K 上相似训练的 ViT-S 模型的对比显示,泛化更好的模型嵌入分布错位更小;对第二个模型的分析还发现其编码器训练良好但分类器迁移失败,通过冻结编码器重训分类器即可获得高精度。

对研究泛化机制和诊断迁移学习故障的工程师来说,这些指标提供了除损失曲面几何之外的新分析维度。代码已在 GitHub 上以开源形式提供。

Original · arXiv cs.LG

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.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Loss Landscape Analysis, PyTorch, ViT-S, open-source models.

Source attribution: curated from arXiv cs.LG (@Nikita Gabdullin).

Spotted an error in the summary or translation? Tell us