Tokenization Consistency Matters for Generative Models on Extractive NLP Tasks
Not on the map. Why?
Abstract (arXiv)
Generative models have been widely applied to solve extractive tasks, where parts of the input is extracted to form the desired output, and achieved significant success. For example, in extractive question answering (QA), generative models have constantly yielded state-of-the-art results. In this work, we identify the issue of tokenization inconsistency that is commonly neglected in training these models. This issue damages the extractive nature of these tasks after the input and output are tokenized inconsistently by the tokenizer, and thus leads to performance drop as well as hallucination. We propose a simple yet effective fix to this issue and conduct a case study on extractive QA. We show that, with consistent tokenization, the model performs better in both in-domain and out-of-domain datasets, with a notable average of +1.7 F2 gain when a BART model is trained on SQuAD and evaluated on 8 QA datasets. Further, the model converges faster, and becomes less likely to generate out-of-context answers. With these findings, we would like to call for more attention on how tokenization should be done when solving extractive tasks and recommend applying consistent tokenization during training.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 26 of its 36 references that are in the map. First posted on arXiv 19 Dec 2022.
Builds on
26 of 36 references.
References · 26
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
- 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 639
- 2013Generating Sequences With Recurrent Neural Networkscited by 554
- 2021ByT5: Towards a token-free future with pre-trained byte-to-byte modelscited by 509
14 more
- 2020UnifiedQA: Crossing Format Boundaries With a Single QA Systemcited by 476
- 2016NewsQA: A Machine Comprehension Datasetcited by 331
- 2022Generate rather than Retrieve: Large Language Models are Strong Context Generatorscited by 298
- 2017SearchQA: A New Q&A Dataset Augmented with Context from a Search Enginecited by 225
- 2019BPE-Dropout: Simple and Effective Subword Regularizationcited by 195
- 2020Byte Pair Encoding is Suboptimal for Language Model Pretrainingcited by 192
- 2019MRQA 2019 Shared Task: Evaluating Generalization in Reading Comprehensioncited by 184
- 2021Charformer: Fast Character Transformers via Gradient-based Subword Tokenizationcited by 160
- 2018Character-Level Language Modeling with Deeper Self-Attentioncited by 138
- 2020Injecting Numerical Reasoning Skills into Language Modelscited by 133
- 2018DuoRC: Towards Complex Language Understanding with Paraphrased Reading Comprehensioncited by 71
- 2020Dynamic Programming Encoding for Subword Segmentation in Neural Machine Translationcited by 38
- 2022CLASP: Few-Shot Cross-Lingual Data Augmentation for Semantic Parsingcited by 21
- 2021How to Split: the Effect of Word Segmentation on Gender Bias in Speech Translationcited by 11
Built on by
Citing papers per year: 2024: 3; 2025: 3; 2026: 1.
7 papers.
- 2024Tokenization counts: the impact of tokenization on arithmetic in frontier LLMscited by 115
- 2025Product of Experts with LLMs: Boosting Performance on ARC Is a Matter of Perspectivecited by 17
- 2025Watermarking Autoregressive Image Generationcited by 16
- 2024Amuro and Char: Analyzing the Relationship between Pre-Training and Fine-Tuning of Large Language Modelscited by 9
- 2024Evaluating Subword Tokenization: Alien Subword Composition and OOV Generalization Challengecited by 8
- 2025Addressing Tokenization Inconsistency in Steganography and Watermarking Based on Large Language Modelscited by 4
- 2026How Tokenization Limits Phonological Knowledge Representation in Language Models and How to Improve Themcited by 1
- 2026How Tokenization Limits Phonological Knowledge Representation in Language Models and How to Improve Them18 Apr 2026
- 2025Addressing Tokenization Inconsistency in Steganography and Watermarking Based on Large Language Models28 Aug 2025
- 2025Watermarking Autoregressive Image Generation19 Jun 2025
- 2025Product of Experts with LLMs: Boosting Performance on ARC Is a Matter of Perspective8 May 2025
- 2024Amuro and Char: Analyzing the Relationship between Pre-Training and Fine-Tuning of Large Language Models13 Aug 2024
- 2024Evaluating Subword Tokenization: Alien Subword Composition and OOV Generalization Challenge20 Apr 2024
- 2024Tokenization counts: the impact of tokenization on arithmetic in frontier LLMs22 Feb 2024