English

CodeBPE: Investigating Subtokenization Options for Large Language Model Pretraining on Source Code

Machine Learning 2023-08-02 v1 Computation and Language Software Engineering

Abstract

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.

Keywords

Cite

@article{arxiv.2308.00683,
  title  = {CodeBPE: Investigating Subtokenization Options for Large Language Model Pretraining on Source Code},
  author = {Nadezhda Chirkova and Sergey Troshin},
  journal= {arXiv preprint arXiv:2308.00683},
  year   = {2023}
}

Comments

Published at ICLR 2023

R2 v1 2026-06-28T11:45:45.700Z