arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.15239cs.CV
收藏

保持角度可改进特征蒸馏

Preserving Angles Improves Feature Distillation

School of Mathematics and Statistics(数学与统计学学院);University of Melbourne(墨尔本大学)

Evelyn J. Mannix, Liam Hodgkinson, Howard Bondell

AI总结:

针对现有特征蒸馏难以迁移视觉基础模型鲁棒性、OOD检测等特性的问题,提出CosPress特征蒸馏方法,通过保持嵌入余弦相似度压缩教师潜在空间,可在多数据集上训练出性能更优的轻量模型。

摘要:

知识蒸馏方法通过利用高质量教师模型的分类输出来训练学生网络以实现模型压缩,但无法有效地将计算机视觉基础模型的特性从教师模型迁移到学生模型。近期研究表明,特征蒸馏(即复现教师模型的输出特征)能够在大量下游任务中复现基础模型的性能,但这类方法在匹配鲁棒性、分布外(OOD)检测性能等关键特性上存在不足。本文通过提出余弦相似度保持压缩(CosPress)来克服这一缺陷,这是一种特征蒸馏技术,通过保持图像嵌入之间的余弦相似度,学习映射将教师模型的潜在空间压缩为学生模型更小的潜在空间。该方法支持直接对学生网络进行优化,能够更忠实地复现教师模型的特性。实验表明,在包含ImageNet在内的多种数据集上使用CosPress进行蒸馏,可得到精度更高的模型,在泛化性、鲁棒性和OOD检测基准上取得更优性能,同时该技术为在小数据集上训练高性能轻量模型提供了极具竞争力的路径。代码可在github.com/emannix/cospress获取。

英文摘要:

Knowledge distillation methods compress models by training a student network using the classification outputs of a high quality teacher model, but can fail to effectively transfer the properties of computer vision foundation models from the teacher to the student. While it has been recently shown that feature distillation$\unicode{x2013}$where a teacher model's output features are replicated instead$\unicode{x2013}$can reproduce performance for foundation models across numerous downstream tasks, they fall short in matching critical properties such as robustness and out-of-distribution (OOD) detection performance. This paper overcomes this shortcoming by introducing Cosine-similarity Preserving Compression (CosPress), a feature distillation technique that learns a mapping to compress the latent space of the teacher model into the smaller latent space of the student, by preserving the cosine similarities between image embeddings. This enables direct optimisation of the student network and produces a more faithful reproduction of the teacher's properties. It is shown that distillation with CosPress on a variety of datasets, including ImageNet, produces more accurate models with greater performance on generalisability, robustness and OOD detection benchmarks, and that this technique provides a competitive pathway for training highly performant lightweight models on small datasets. Code is available at github.com/emannix/cospress.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑