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

MiLe Loss:一种新的熵加权损失,用于减轻大语言模型在学习困难方面的偏差

MiLe Loss: a New Entropy-Weighed Loss for Mitigating the Bias of Learning Difficulties in Large Language Models

Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院);Kuaishou Technology(快手科技);Tsinghua University(清华大学)

Zhenpeng Su, Xing Wu, Xue Bai, Zijia Lin, Hui Chen, Guiguang Ding, Wei Zhou, Songlin Hu

AI总结:

MiLe Loss通过熵加权机制减轻大语言模型在学习困难方面的偏差,提升模型对难学标记的关注度,从而在下游任务中取得更好的表现。

摘要:

生成语言模型通常通过预测下一个标记(即子词/词/短语)来在大规模文本语料上进行预训练,给定前面的标记。最近的研究表明,大型生成语言模型在下游任务上表现出色。然而,现有的生成语言模型通常忽视了在训练过程中文本语料中频繁标记与不频繁标记之间的不平衡问题。这可能导致语言模型被常见且容易学习的标记主导,从而忽视了不频繁且难以学习的标记。为了解决这个问题,我们提出了一种MiLe损失函数,用于减轻学习困难的偏差。在训练过程中,它可以根据相应预测概率分布的信息熵动态评估待学习标记的学习难度。然后,它会自适应地调整训练损失,试图让模型更关注难以学习的标记。在Pile数据集上,我们训练了不同规模的生成语言模型,参数规模分别为468M、1.2B和6.7B。实验表明,采用所提出MiLe损失的模型在下游基准测试中能够获得一致的性能提升。

英文摘要:

Generative language models are usually pretrained on large text corpus via predicting the next token (i.e., sub-word/word/phrase) given the previous ones. Recent works have demonstrated the impressive performance of large generative language models on downstream tasks. However, existing generative language models generally neglect an inherent challenge in text corpus during training, i.e., the imbalance between frequent tokens and infrequent ones. It can lead a language model to be dominated by common and easy-to-learn tokens, thereby overlooking the infrequent and difficult-to-learn ones. To alleviate that, we propose a MiLe Loss function for mitigating the bias of learning difficulties with tokens. During training, it can dynamically assess the learning difficulty of a to-be-learned token, according to the information entropy of the corresponding predicted probability distribution over the vocabulary. Then it scales the training loss adaptively, trying to lead the model to focus more on the difficult-to-learn tokens. On the Pile dataset, we train generative language models at different scales of 468M, 1.2B, and 6.7B parameters. Experiments reveal that models incorporating the proposed MiLe Loss can gain consistent performance improvement on downstream benchmarks.

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

↑