arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.01628cs.LG
收藏

谐波损失训练可解释的人工智能模型

Harmonic Loss Trains Interpretable AI Models

MIT(麻省理工学院)

David D. Baek, Ziming Liu, Riya Tyagi, Max Tegmark

AI总结:

本文提出谐波损失作为训练神经网络和LLMs的替代监督信号,通过尺度不变的HarMax和欧氏距离计算logits,提升可解释性、加快收敛、减少数据需求和grokking,并在GPT-2上验证了其优势。

摘要:

在本文中,我们引入谐波损失作为训练神经网络和大语言模型(LLMs)的替代监督信号。谐波损失与标准交叉熵损失的不同之处在于:(a)用尺度不变的HarMax函数替换通常的SoftMax归一化;(b)通过欧氏距离而非点积计算logits。谐波损失因其尺度不变性和设计上有限的收敛点(可解释为类别中心)而实现了改进的可解释性和更快的收敛速度。我们首先在算法、视觉和语言数据集上验证了谐波模型的性能。通过大量实验,我们证明了使用谐波损失训练的模型在以下方面优于标准模型:(a)增强可解释性,(b)减少泛化所需的数据量,以及(c)减少grokking现象。此外,我们将使用谐波损失训练的GPT-2模型与标准GPT-2进行比较,表明谐波模型发展出更具可解释性的表示。展望未来,我们相信谐波损失可能成为数据可用性有限或可解释性和可靠性至关重要的高风险应用中的宝贵工具,为更稳健和高效的神经网络模型铺平道路。

英文摘要:

In this paper, we introduce harmonic loss as an alternative supervisory signal for training neural networks and large language models (LLMs). Harmonic loss differs from standard cross-entropy loss by (a) replacing the usual SoftMax normalization with a scale-invariant HarMax function and (b) computing logits via Euclidean distance rather than a dot product. Harmonic loss enables improved interpretability and faster convergence, owing to its scale invariance and finite convergence point by design, which can be interpreted as a class center. We first validate the performance of harmonic models across algorithmic, vision, and language datasets. Through extensive experiments, we demonstrate that models trained with harmonic loss perform better than standard models by: (a) enhancing interpretability, (b) requiring less data for generalization, and (c) reducing grokking. Moreover, we compare a GPT-2 model trained with harmonic loss to the standard GPT-2, illustrating that the harmonic model develops more interpretable representations. Looking forward, we believe harmonic loss may become a valuable tool in domains with limited data availability or in high-stakes applications where interpretability and reliability are paramount, paving the way for more robust and efficient neural network models.

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

↑