arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2307.10633cs.CLcs.LG
收藏

多方法自训练:利用文本改进代码生成,反之亦然

Multi-Method Self-Training: Improving Code Generation With Text, And Vice Versa

Martian(火星公司)

Shriyash K. Upadhyay, Etan J. Ginsberg

AI总结:

本研究提出多方法自训练(MMST)框架,通过不同方法的过滤输出交叉训练176B参数的语言-代码模型,显著提升强弱方法性能及相关任务表现,为新型训练范式提供参考。

摘要:

大语言模型拥有多种解决同一问题的方法。这带来了新的优势(不同方法可能适用于不同问题),也存在劣势(用户可能难以确定该使用哪种方法)。本文提出了多方法自训练(Multi-Method Self-Training,MMST):用一种方法的过滤后输出来训练另一种方法,以此放大每种方法的优势、弥补其劣势。我们使用一个同时在语言和代码上训练的176B参数模型开展实验,结果表明MMST能够:1)提升性能较弱的方法(最高提升30%),让模型更易用;2)提升性能较强的方法(最高提升32.2%),让模型性能更优;3)通过增强模型生成推理依据的能力,提升相关但不同任务的性能(最高提升10.3%)。随后我们开展了消融实验以探究MMST的生效原因。研究发现,MMST比传统自训练生成更多数据,但性能提升的核心驱动因素是多方法的使用。我们还分析了提示工程以及方法间的反相关性能,以此作为提升MMST效果的途径。我们希望本文的研究证据能激励机器学习研究者探索语言模型的进步所带来的新型训练方式。

英文摘要:

Large Language Models have many methods for solving the same problem. This introduces novel strengths (different methods may work well for different problems) and weaknesses (it may be difficult for users to know which method to use). In this paper, we introduce Multi-Method Self-Training (MMST), where one method is trained on the filtered outputs of another, allowing us to augment the strengths and ameliorate the weaknesses of each method. Using a 176B parameter model trained on both language and code, we show that MMST can 1) improve the less performant method (up to 30%) making the model easier to use, 2) improve the more performant method (up to 32.2%) making the model more performant, and 3) improve the performance of related but distinct tasks (up to 10.3%) by improving the ability of the model to generate rationales. We then conduct ablation analyses to explore why MMST works. We show that MMST generates more data than traditional self-training, but the improvement in performance is driven by the use of multiple methods. We also analyze prompt-engineering and anti-correlated performance between methods as means of making MMST more effective. We hope the evidence from our paper motivates machine learning researchers to explore ways in which advances in language models allow for new forms of training.

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

↑