mlsanityData to 7 Oct 2026

Scaffold-BPE: Enhancing Byte Pair Encoding for Large Language Models with Simple and Effective Scaffold Token Removal

arXiv 2404.17808 ↗First posted 27 Apr 2024cs.CLcited by 16

Not on the map. Why?

Abstract (arXiv)

Byte Pair Encoding (BPE) serves as a foundation method for text tokenization in the Natural Language Processing (NLP) field. Despite its wide adoption, the original BPE algorithm harbors an inherent flaw: it inadvertently introduces a frequency imbalance for tokens in the text corpus. Since BPE iteratively merges the most frequent token pair in the text corpus to generate a new token and keeps all generated tokens in the vocabulary, it unavoidably holds tokens that primarily act as components of a longer token and appear infrequently on their own. We term such tokens as Scaffold Tokens. Due to their infrequent occurrences in the text corpus, Scaffold Tokens pose a learning imbalance issue. To address that issue, we propose Scaffold-BPE, which incorporates a dynamic scaffold token removal mechanism by parameter-free, computation-light, and easy-to-implement modifications to the original BPE method. This novel approach ensures the exclusion of low-frequency Scaffold Tokens from the token representations for given texts, thereby mitigating the issue of frequency imbalance and facilitating model training. On extensive experiments across language modeling and even machine translation, Scaffold-BPE consistently outperforms the original BPE, well demonstrating its effectiveness.

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 28 of its 53 references that are in the map. First posted on arXiv 27 Apr 2024.

Builds on

28 of 53 references.

References · 28

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2020Scaling Laws for Neural Language Modelscited by 6,411
  5. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  6. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  7. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  8. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  9. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  10. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
  11. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  12. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
16 more
  1. 2017Decoupled Weight Decay Regularizationcited by 1,722
  2. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199
  3. 2023Baichuan 2: Open Large-scale Language Modelscited by 664
  4. 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 413
  5. 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 385
  6. 2019BPE-Dropout: Simple and Effective Subword Regularizationcited by 189
  7. 2024Tokenization Is More Than Compressioncited by 87
  8. 2019Revisiting Low-Resource Neural Machine Translation: A Case Studycited by 61
  9. 2020Vocabulary Learning via Optimal Transport for Neural Machine Translationcited by 58
  10. 2020Dynamic Programming Encoding for Subword Segmentation in Neural Machine Translationcited by 38
  11. 2016Character-based Neural Machine Translationcited by 33
  12. 2019SocialIQA: Commonsense Reasoning about Social Interactionscited by 33
  13. 2019A Call for Prudent Choice of Subword Merge Operations in Neural Machine Translationcited by 30
  14. 2023MorphPiece : A Linguistic Tokenizer for Large Language Modelscited by 9
  15. 2023MiLe Loss: a New Entropy-Weighed Loss for Mitigating the Bias of Learning Difficulties in Large Language Modelscited by 8
  16. 2020Finding the Optimal Vocabulary Size for Neural Machine Translationcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 8; 2026: 8.

16 papers.

Sort: