[论文解读] BayLing: Bridging Cross-lingual Alignment and Instruction Following through Interactive Translation for Large Language Models
BayLing 使用一个互动翻译框架,将英文的指令遵循能力转移到非英语语言,达到 13B 参数下的 GPT-3.5-turbo 级别的性能,并具备强大的翻译与通用任务能力。
Large language models (LLMs) have demonstrated remarkable prowess in language understanding and generation. Advancing from foundation LLMs to instructionfollowing LLMs, instruction tuning plays a vital role in aligning LLMs to human preferences. However, the existing LLMs are usually focused on English, leading to inferior performance in non-English languages. In order to improve the performance for non-English languages, it is necessary to collect language-specific training data for foundation LLMs and construct language-specific instructions for instruction tuning, both of which are heavy loads. To minimize human workload, we propose to transfer the capabilities of language generation and instruction following from English to other languages through an interactive translation task. We have developed BayLing, an instruction-following LLM by utilizing LLaMA as the foundation LLM and automatically constructing interactive translation instructions for instructing tuning. Extensive assessments demonstrate that BayLing achieves comparable performance to GPT-3.5-turbo, despite utilizing a considerably smaller parameter size of only 13 billion. Experimental results on translation tasks show that BayLing achieves 95% of single-turn translation capability compared to GPT-4 with automatic evaluation and 96% of interactive translation capability compared to GPT-3.5-turbo with human evaluation. To estimate the performance on general tasks, we created a multi-turn instruction test set called BayLing-80. The experimental results on BayLing-80 indicate that BayLing achieves 89% of performance compared to GPT-3.5-turbo. BayLing also demonstrates outstanding performance on knowledge assessment of Chinese GaoKao and English SAT, second only to GPT-3.5-turbo among a multitude of instruction-following LLMs. Demo, homepage, code and models of BayLing are available.
研究动机与目标
- 旨在通过利用跨语言的互动翻译,减少非英语指令微调的人力投入。
- 提出 BayLing 将英文生成与指令遵循能力转移到其他语言,而无需大量非英语预训练数据。
- 证明互动翻译可以在多语言中提升语言对齐、指令遵循和多轮交互。
- 展示互动翻译在中文和英文任务中的知识任务及一般任务性能的提升。
提出的方法
- 使用围绕互动翻译和通用任务构建的指令数据集对 LLaMA-7B 和 LLaMA-13B 进行微调(以创建 BayLing-7B 和 BayLing-13B)。
- 构建包含 160K 个互动翻译实例的指令数据集,以及辅助英文主导的数据集(Alpaca、ShareGPT)以丰富训练。
- 以学习率 2e-5、权重衰减 0.0 训练 3 个周期,批量大小 32,最大长度 1024,并采用内存高效技术(DeepSpeed、Gradient Checkpointing)。
- 在显存 16G 的 GPU 上对 BayLing-13B 推理启用 8-bit 量化。
- 通过在 English–non-English 对之间进行翻译并在翻译中包含英文的多轮指令上进行训练,利用互动翻译来对齐多语言能力。
- 评估翻译、通用任务和标准化测试,以评估多语言对齐、指令遵循和多轮交互。
实验结果
研究问题
- RQ1基于互动翻译的指令微调是否能够在没有大规模非英语预训练数据的情况下,将英文的指令遵循能力迁移到非英语语言?
- RQ2互动翻译是否提升中文、英文及其他语言之间的跨语言对齐、指令遵循和多轮交互?
- RQ3与仅翻译的模型和通用指令遵循模型相比,BayLing 在多语言翻译基准和零-shot 语言方向上的表现如何?
- RQ4在通过互动翻译对齐后,BayLing 在通用任务和标准化知识测试中的表现如何?
主要发现
- BayLing-13B 在 Chinese↔English 翻译(COMET 分数)达到 GPT-4 水平的 94-97%,German↔English 翻译达到 97%(COMET)。
- BayLing-13B 在人类评估中的互动翻译能力达到 GPT-3.5-turbo 的 96%。
- BayLing-80 通用任务评估在 GPT-4 评估对比中达到 GPT-3.5-turbo 性能的 89%。
- BayLing 在中文高考和英文 SAT 上表现强劲,在若干指令遵循型大语言模型中仅次于 GPT-3.5-turbo,排名第二。
- 互动翻译指令在不损害英文能力的前提下提升非英语生成,并提升对人类指令的遵循和跨语言的多轮连贯性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。