NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Tokenization Matters: Navigating Data-Scarce Tokenization for Gender Inclusive Language Technologies

Anaelia Ovalle, Ninareh Mehrabi, Palash Goyal, Jwala Dhamala, Kai-Wei Chang, Richard S. Zemel, Aram Galstyan, Yuval Pinter, Rahul Gupta

Introduction

Large Language Models (LLMs) frequently struggle with gender-inclusive language, particularly non-binary neopronouns like xe/xir or fae/faer. While this is often attributed to general "data scarcity," this research identifies a specific technical culprit: Byte-Pair Encoding (BPE) tokenization. By fragmenting rare neopronouns into multiple subword units, tokenizers prevent models from treating them as cohesive functional units. This paper proposes Pronoun Tokenization Parity (PTP) to address this structural inequality, significantly improving neopronoun accuracy.

The Tokenization Bottleneck

Modern LLMs rely on BPE, an algorithm that prioritizes frequently occurring terms during vocabulary creation. Common binary pronouns like he or she are typically represented as single, atomic tokens. In contrast, infrequent neopronouns are often "shredded" into smaller, less meaningful fragments. For instance, her remains a single token, while faer might be split into f and aer.

Figure 1: Comparison of tokenization for binary pronouns versus neopronouns. Frequent pronouns are kept whole, while rare neopronouns are fragmented, leading to syntactic confusion.

This overfragmentation makes it difficult for the model to learn the syntactic role of neopronouns. If a word does not "look" like a pronoun to the model's internal logic, the model fails to recognize its grammatical function, leading to consistent misgendering and case errors.

Proposed Methodology: Pronoun Tokenization Parity (PTP)

To mitigate these issues, the authors introduce two primary strategies:

  1. Pronoun Tokenization Parity (PTP): Neopronouns are manually added to the model's vocabulary as single, atomic tokens. This ensures they are treated with the same structural integrity as binary pronouns, forcing the model to learn a dedicated embedding for the entire word.
  2. Lexical Layer Finetuning: Instead of traditional full-model finetuning, the authors propose updating only the LLM’s lexical (embedding) layer while keeping downstream transformer weights frozen. This leverages the model's existing understanding of English syntax, simply mapping new neopronoun tokens onto established grammatical patterns.
Figure 5: The proposed pipeline involving Pronoun Tokenization Parity (PTP), lexical-only finetuning, and evaluation using constrained decoding.

Evaluation and Results

The methods were evaluated using the WIKIBIOS dataset (augmented with neopronouns) and an extended version of the MISGENDERED benchmark. Key metrics included pronoun consistency, case agreement, and a novel "Adversarial Injection Error" to test if the model correctly identifies neopronouns as pronouns rather than common nouns.

Key Findings

  • Significant Accuracy Gains: Implementing PTP alongside full finetuning boosted neopronoun consistency from a baseline of 14.1% to 58.4%.
  • Reduced Grammatical Errors: The Adversarial Injection Error dropped from 85% to 27%, indicating the model successfully learned the syntactic category of the new tokens.
  • Efficiency and Stability: Lexical-only finetuning reduced compute time by up to 21.5% while maintaining performance. Crucially, improvements in neopronoun handling did not degrade the model's performance on standard binary pronouns.
  • Model Scaling: Smaller models (e.g., Pythia-160M) using PTP were able to match or outperform models more than twice their size (410M) using standard tokenization, highlighting the importance of data representation over raw parameter count.

Conclusion and Future Work

This research demonstrates that the "black box" of misgendering in LLMs is partially a byproduct of foundational tokenization choices. By ensuring token parity for neopronouns, we can build more inclusive language technologies without requiring massive increases in model size or training data. Future work will explore these strategies in morphologically rich languages and investigate other tokenization algorithms beyond BPE.

Summary updated

BibTeX
@inproceedings{ovalle2024tokenization,
  author = {Anaelia Ovalle and Ninareh Mehrabi and Palash Goyal and Jwala Dhamala and Kai-Wei Chang and Richard S. Zemel and Aram Galstyan and Yuval Pinter and Rahul Gupta},
  title = {{Tokenization Matters: Navigating Data-Scarce Tokenization for Gender Inclusive Language Technologies}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-naacl.113},
}
Figure