arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.19787cs.CLcs.AIcs.LGcs.LOcs.PL
收藏

从符号任务到代码生成:多样化造就更优的任务执行器

From Symbolic Tasks to Code Generation: Diversification Yields Better Task Performers

Meta AI Research(元人工智能研究部)

Dylan Zhang, Justin Wang, Francois Charton

AI总结:

本文通过Markov算法理论实验与代码生成实际应用,发现提供多样化的任务和指令集能显著提升大语言模型的泛化能力、鲁棒性及指令遵循能力。

摘要:

指令微调——即在指令-输出对上微调大型语言模型——是一种使模型更好地适应现实世界的极具前景的技术。然而,驱动模型理解和遵循训练中未见过的指令的关键因素仍未被充分探索。我们的研究始于在图灵完备算法(称为Markov algorithm)的理论框架内进行的一系列合成实验,该框架允许对指令微调数据进行细粒度控制。一旦提供了足够多样化的任务集,即使每个任务仅提供极少的示例,模型也会表现出相对于训练分布的泛化能力和鲁棒性。我们将这些初步结果扩展到代码生成的真实应用场景中,发现包含非代码相关任务的更广泛的指令集能提升代码生成的性能。我们的观察表明,为指令微调集提供更多样化的语义空间,能极大提升模型遵循指令和执行任务的能力。

英文摘要:

Instruction tuning -- tuning large language models on instruction-output pairs -- is a promising technique for making models better adapted to the real world. Yet, the key factors driving the model's capability to understand and follow instructions not seen during training remain under-explored. Our investigation begins with a series of synthetic experiments within the theoretical framework of a Turing-complete algorithm called Markov algorithm, which allows fine-grained control over the instruction-tuning data. Generalization and robustness with respect to the training distribution emerge once a diverse enough set of tasks is provided, even though very few examples are provided for each task. We extend these initial results to a real-world application scenario of code generation and find that a more diverse instruction set, extending beyond code-related tasks, improves the performance of code generation. Our observations suggest that a more diverse semantic space for instruction-tuning sets greatly improves the model's ability to follow instructions and perform tasks.

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

↑