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

An Information Extraction Study: Take In Mind the Tokenization!

Christos Theodoropoulos, Marie-Francine Moens

TL;DR

This paper investigates the impact of tokenization on Information Extraction (IE) tasks, particularly in the biomedical domain. It reveals that tokenization patterns can introduce a beneficial "inductive bias," leading to improved performance, and suggests that token-free models are a viable alternative without significant performance degradation.

What Problem Does This Paper Address?

Traditional Natural Language Processing (NLP) pipelines often rely on tokenization to break down text into smaller units (words or subwords). While deep learning models have reduced the need for manual feature engineering, the tokenization step itself remains a crucial, yet often overlooked, component. Designing custom tokenizers is complex and language-specific. Data-driven tokenizers like WordPiece, BPE, and SentencePiece, while more adaptable, can struggle with linguistic nuances. The paper questions how these tokenization choices influence the performance of Information Extraction (IE) tasks, especially in specialized domains like biomedicine, and whether moving towards token-free models is a practical and effective direction.

Methods

The study employs a Partition Filter Network (PFN) [37] for joint Named Entity Recognition (NER) and Relation Extraction (RE) tasks. The core of their investigation involves comparing different language models (LMs) and their tokenization strategies. They analyze the effect of an "aggregation step" which combines word-level embeddings, hypothesizing that this step can leverage the inductive bias introduced by tokenization. To explore token-free approaches, they also incorporate CharacterBERT, a model that processes text at the character level. A key methodological component is a hyphenation analysis to identify domain-specific linguistic patterns that might be better captured by character-based models.

Datasets

The primary dataset used in this study is the ADE dataset, which contains entities related to Drugs and Adverse Effects (AE) and their associated relations. This dataset is specifically chosen for its relevance to the biomedical domain.

Key Insights and Ideas

  • Tokenization as Inductive Bias: The paper demonstrates that tokenization patterns can act as a form of "inductive bias," guiding the model towards better performance in IE tasks. This bias is particularly evident when words of interest (like drug names or adverse effects) are frequently split into multiple subwords.
  • Aggregation Enhances Tokenization Bias: The addition of an aggregation layer (averaging or summing word-level embeddings) further amplifies the performance gains derived from tokenization patterns, suggesting a synergistic effect.
  • Character-Level Models are Competitive: The study shows that character-based models, like CharacterBERT, can achieve competitive, and in some cases superior, performance compared to subword-based models, even without relying on traditional tokenization. This indicates that transitioning to token-free IE models is feasible.
  • Domain-Specific Morphology: The hyphenation analysis reveals distinct subword patterns within biomedical entities (Drugs and Adverse Effects), suggesting that character-level models might be better equipped to capture this domain-specific linguistic morphology.

Key Results

  • The aggregation step consistently improves performance for both NER and RE tasks across all tested models, with improvements ranging from 0.3% to 0.9%.
  • For the ADE dataset, the ALBERT XLL-based model with average aggregation achieved state-of-the-art (SOTA) performance, outperforming previous SOTA models by 0.7% in RE and 0.2% in NER.
  • CharacterBERT, a character-based model, outperformed the subword-based b-BERT model by approximately 2% in both RE and NER tasks in a baseline setup with frozen embeddings.
  • In an end-to-end training setup, CharacterBERT-based models also showed performance improvements over b-BERT-based models, with a 0.7% increase in NER and 1.3% in RE.
  • The similarity analysis indicated that aggregation leads to more similar entity representations, further supporting the idea of inductive bias.

Limitations and Future Work

  • Dataset Size: The paper acknowledges that the ADE dataset is relatively small. While this allowed for quick experimentation, a larger dataset would increase computational demands but could provide more robust findings.
  • Inter-Model Comparison Challenges: Isolating the effect of tokenization is challenging due to architectural differences between language models. The authors mitigate this by comparing BERT and CharacterBERT, which share similar architectures.
  • Future Work: The authors intend to explore the effect of tokenization in other sequence tagging problems beyond Information Extraction. They also suggest that retraining models with identical data would be beneficial for comparative studies involving different pre-trained LMs.

Summary updated

BibTeX
@inproceedings{theodoropoulos2023information,
  author = {Christos Theodoropoulos and Marie-Francine Moens},
  title = {{An Information Extraction Study: Take In Mind the Tokenization!}},
  booktitle = {EUSFLAT/AGOP},
  year = {2023},
}
Figure