CodeBPE: Investigating Subtokenization Options for Large Language Model Pretraining on Source Code
Preprint
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
All Related Versions
This publication has 17 references indexed in Scilit:
- Canine: Pre-training an Efficient Tokenization-Free Encoder for Language RepresentationTransactions of the Association for Computational Linguistics, 2022
- Efficient Inference for Multilingual Neural Machine Translation2021
- A Simple Approach for Handling Out-of-Vocabulary Identifiers in Deep Learning for Source Code2021
- Big code != big vocabulary2020
- Byte Pair Encoding is Suboptimal for Language Model Pretraining2020
- CodeBERT: A Pre-Trained Model for Programming and Natural Languages2020
- Improving Multilingual Models with Language-Clustered Vocabularies2020
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension2020
- BPE-Dropout: Simple and Effective Subword Regularization2020
- Evaluating clone detection tools with BigCloneBench2015