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

Rho-1:并非所有 Token 都是你所需要的

Rho-1: Not All Tokens Are What You Need

Xiamen University(厦门大学);Tsinghua University(清华大学);Shanghai AI Laboratory(上海人工智能实验室);Microsoft(微软公司);Microsoft Research Asia(微软亚洲研究院)

Zhenghao Lin, Zhibin Gou, Yeyun Gong, Xiao Liu, Yelong Shen, Ruochen Xu, Chen Lin, Yujiu Yang, Jian Jiao, Nan Duan, Weizhu Chen

AI总结:

本文提出 Rho-1 与选择性语言建模 SLM,通过参考模型筛选高价值 token 并聚焦训练,在数学和通用任务上以更少 token 显著提升性能。

摘要:

以往的语言模型预训练方法对所有训练 token 统一施加下一 token 预测损失。我们对这一常规提出挑战,并主张“选择性语言建模”。初步分析考察了语言模型在 token 层面的训练动态,揭示了不同 token 具有明显不同的损失模式。利用这些洞见,我们提出了名为 Rho-1 的新型语言模型。不同于学习预测语料中每个下一 token 的传统 LM,Rho-1 采用 Selective Language Modeling(SLM,选择性语言建模),选择性地在与目标分布一致的有用 token 上进行训练。该方法使用参考模型为预训练 token 打分,然后以聚焦损失在得分更高的 token 上训练语言模型。在 15B 的 OpenWebMath 语料上进行持续预训练时,Rho-1 在 9 个数学任务上的少样本准确率绝对提升最高达 30%。经过微调后,Rho-1-1B 和 7B 分别在 MATH 数据集上取得 40.6% 和 51.8% 的最先进结果——仅使用 3% 的预训练 token 即可媲美 DeepSeekMath。此外,在 80B 通用 token 上持续预训练时,Rho-1 在 15 项多样化任务上平均提升 6.8%,同时提高了语言模型预训练的效率和性能。

英文摘要:

Previous language model pre-training methods have uniformly applied a next-token prediction loss to all training tokens. Challenging this norm, we posit that "9l training". Our initial analysis examines token-level training dynamics of language model, revealing distinct loss patterns for different tokens. Leveraging these insights, we introduce a new language model called Rho-1. Unlike traditional LMs that learn to predict every next token in a corpus, Rho-1 employs Selective Language Modeling (SLM), which selectively trains on useful tokens that aligned with the desired distribution. This approach involves scoring pretraining tokens using a reference model, and then training the language model with a focused loss on tokens with higher scores. When continual pretraining on 15B OpenWebMath corpus, Rho-1 yields an absolute improvement in few-shot accuracy of up to 30% in 9 math tasks. After fine-tuning, Rho-1-1B and 7B achieved state-of-the-art results of 40.6% and 51.8% on MATH dataset, respectively - matching DeepSeekMath with only 3% of the pretraining tokens. Furthermore, when continual pretraining on 80B general tokens, Rho-1 achieves 6.8% average enhancement across 15 diverse tasks, increasing both efficiency and performance of the language model pre-training.

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

↑