重新思考通过非欧几里得距离层的谐波损失
Rethinking the Harmonic Loss via Non-Euclidean Distance Layers
AI总结:
本文提出通过非欧几里得距离层扩展谐波损失,评估了多种距离度量在视觉和语言模型中的性能、可解释性和可持续性。
摘要:
交叉熵损失长期以来一直是训练深度神经网络的标准选择,但其存在可解释性限制、无界权重增长和效率低下等问题,这些问题可能会导致训练动态成本高昂。谐波损失是一种基于距离的替代方法,根植于欧几里得几何,它提高了可解释性并缓解了诸如‘grokking’或测试集上延迟泛化等现象。然而,谐波损失的研究仍然狭窄:仅探讨了欧几里得距离,且未对计算效率或可持续性进行系统评估。我们通过系统地研究一系列距离度量作为欧几里得距离替代方案来扩展谐波损失。我们全面评估了针对不同距离的谐波损失在视觉骨干网络和大语言模型上的表现。我们的分析围绕模型性能、可解释性和可持续性的三重评估框架展开。在视觉任务中,余弦距离提供了最有利的权衡,能够持续提高准确性同时降低碳排放,而布雷-库蒂斯和马哈拉诺斯距离在不同效率成本下进一步提高了可解释性。在语言模型中,基于余弦的谐波损失提高了梯度和学习稳定性,加强了表示结构,并相对于交叉熵和欧几里得头部减少了排放。我们的代码可在:https://anonymous.4open.science/r/rethinking-harmonic-loss-5BAB/ 获取。
英文摘要:
Cross-entropy loss has long been the standard choice for training deep neural networks, yet it suffers from interpretability limitations, unbounded weight growth, and inefficiencies that can contribute to costly training dynamics. The harmonic loss is a distance-based alternative grounded in Euclidean geometry that improves interpretability and mitigates phenomena such as grokking, or delayed generalization on the test set. However, the study of harmonic loss remains narrow: only Euclidean distance is explored, and no systematic evaluation of computational efficiency or sustainability was conducted. We extend harmonic loss by systematically investigating a broad spectrum of distance metrics as replacements for the Euclidean distance. We comprehensively evaluate distance-tailored harmonic losses on both vision backbones and large language models. Our analysis is framed around a three-way evaluation of model performance, interpretability, and sustainability. On vision tasks, cosine distances provide the most favorable trade-off, consistently improving accuracy while lowering carbon emissions, whereas Bray-Curtis and Mahalanobis further enhance interpretability at varying efficiency costs. On language models, cosine-based harmonic losses improve gradient and learning stability, strengthen representation structure, and reduce emissions relative to cross-entropy and Euclidean heads. Our code is available at: https://anonymous.4open.science/r/rethinking-harmonic-loss-5BAB/.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。