InternLM2 技术报告

InternLM2 Technical Report

林达华 Dahua Lin · Shanghai AI Lab · 2024-03-26 · arXiv:2403.17297 ↗ · 被引 410

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

像 ChatGPT 和 GPT-4 这样的大型语言模型(LLM)的演进引发了关于通用人工智能(AGI)到来的讨论。然而,在开源模型中复制这些进展一直具有挑战性。本文介绍了 InternLM2,一个开源 LLM,通过创新的预训练和优化技术,在 6 个维度、30 个基准测试、长上下文建模以及开放式主观评估中全面超越了其前身。我们详细描述了 InternLM2 的预训练过程,强调了包括文本、代码和长上下文数据在内的多种数据类型的准备。InternLM2 高效地捕捉长期依赖关系,最初在 4k 令牌上训练,然后在预训练和微调阶段推进到 32k 令牌,在 200k 的“大海捞针”测试中表现出色。InternLM2 进一步通过监督微调(SFT)和一种新颖的条件在线强化学习从人类反馈(COOL RLHF)策略进行对齐,该策略解决了冲突的人类偏好和奖励破解问题。通过发布不同训练阶段和模型大小的 InternLM2 模型,我们为社区提供了关于模型演变的见解。

The evolution of Large Language Models (LLMs) like ChatGPT and GPT-4 has sparked discussions on the advent of Artificial General Intelligence (AGI). However, replicating such advancements in open-source models has been challenging. This paper introduces InternLM2, an open-source LLM that outperforms its predecessors in comprehensive evaluations across 6 dimensions and 30 benchmarks, long-context modeling, and open-ended subjective evaluations through innovative pre-training and optimization techniques. The pre-training process of InternLM2 is meticulously detailed, highlighting the preparation of diverse data types including text, code, and long-context data. InternLM2 efficiently captures long-term dependencies, initially trained on 4k tokens before advancing to 32k tokens in pre-training and fine-tuning stages, exhibiting remarkable performance on the 200k ``Needle-in-a-Haystack" test. InternLM2 is further aligned using Supervised Fine-Tuning (SFT) and a novel Conditional Online Reinforcement Learning from Human Feedback (COOL RLHF) strategy that addresses conflicting human preferences and reward hacking. By releasing InternLM2 models in different training stages and model sizes, we provide the community with insights into the model's evolution.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 19)

阅读逐段中英对照全文 →