CodeBPE:探究源代码大型语言模型预训练的子词切分选项
CodeBPE: Investigating Subtokenization Options for Large Language Model Pretraining on Source Code
AI总结:
本研究探究源代码大型语言模型预训练中不同子词切分选项的影响,提出一种结合代码特性的子词切分方法,在将平均长度缩短17%且不降低下游性能的同时,还可通过优化切分使质量提升0.5-2%。
摘要:
近期研究广泛采用大型语言模型预训练处理源代码,提出了源代码特定的预训练目标,并探究了多种基于Transformer的语言模型架构在源代码上的适用性。本研究考察此类模型的另一重要方面,即不同子词切分选项的影响,旨在结合代码特性,找出最有效且长度高效的子词切分方式。我们提出的子词切分方法将平均长度缩短了17%且不降低下游性能,并表明精心选择的子词切分可将质量提升0.5-2%,但可能略微增加长度。
英文摘要:
Recent works have widely adopted large language model pretraining for source code, suggested source code-specific pretraining objectives and investigated the applicability of various Transformer-based language model architectures for source code. This work investigates another important aspect of such models, namely the effect of different subtokenization options, and aims at identifying most effective and length-efficient subtokenizations, taking into account code specifics. We propose subtokenziation that reduces average length by 17% without downstream performance drop, and show that a carefully chosen subtokenization may improve quality by 0.5-2%, possibly with some length increase.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。