Adapting Sequence to Sequence Models for Text Normalization in Social Media

Ismini Lourentzou, Kabir Manghnani, ChengXiang Zhai

Introduction

Social media platforms like Twitter and Reddit present a unique challenge for Natural Language Processing (NLP) due to the high frequency of non-standard English, including slang, abbreviations, and typographical errors. Standard NLP tools, typically trained on clean datasets like news articles, often fail when processing this "noisy" text. Text normalization—the task of converting noisy input into a canonical form—is therefore essential. Researchers from UIUC have developed a hybrid Sequence to Sequence (HS2S) model that effectively balances contextual understanding with character-level flexibility to achieve state-of-the-art results in social media text normalization.

Methodology: The HS2S Model

The core innovation of this research is the Hybrid Sequence to Sequence (HS2S) architecture. This system employs a multi-tiered strategy to handle text:

  1. Word-level Contextualization: The primary model is an attention-based encoder-decoder that processes sentences at the word level. This allows the system to use surrounding words to disambiguate tokens that might have multiple meanings or normalization forms depending on context.
  2. Character-level Backtracking: When the word-level model encounters an "Unknown" (OOV) token, it triggers a secondary character-level model. This sub-model examines individual letters to infer the intended word, providing an "open vocabulary" capability.
  3. Adversarial Training: To improve robustness against common social media errors, the character-level model is trained on synthetic adversarial examples. These include simulated deletions, character swaps, vowel elongations, and QWERTY keyboard-based typos.
The HS2S architecture integrates word-level and character-level models with adversarial training to handle noisy text.

Datasets and Evaluation

The researchers evaluated their model using the LexNorm dataset from the 2015 W-NUT workshop. The dataset contains 4,917 tweets, split into 2,950 for training and 1,967 for testing. It encompasses a wide variety of normalization challenges, including 1:1 mappings (e.g., "convo" to "conversation") and 1:N mappings (e.g., "omw" to "on my way").

Key Results and Insights

The HS2S model achieved an F1 score of 83.94%, outperforming both pure word-level (83.65%) and character-level (68.78%) architectures.

Performance comparison of the HS2S model against various baseline and dictionary-based methods.

Key findings from the study include:

  • Contextual Superiority: Word-level models significantly outperform simple dictionary lookups because they can resolve ambiguities based on sentence structure.
  • Efficiency Gains: The hybrid approach is notably faster than pure character-level models, reducing training time from 3 hours to approximately 42 minutes for the same number of epochs.
  • Data Efficiency: While the model performs comparably to the state-of-the-art MoNoise system (86.39% F1), it does so without requiring the massive external datasets that MoNoise relies upon.

Limitations and Future Work

Despite its success, the model faces challenges with extreme ambiguity and very rare tokens. Additionally, the authors note a philosophical trade-off: normalizing expressive text like "yaaaaaay" to "yay" can strip away the user's intended emotional tone. Future research aims to address these stylistic nuances and expand the adversarial training framework to support multilingual text normalization.

Summary updated

BibTeX
@inproceedings{lourentzou2019adapting,
  author = {Ismini Lourentzou and Kabir Manghnani and ChengXiang Zhai},
  title = {{Adapting Sequence to Sequence Models for Text Normalization in Social Media}},
  booktitle = {ICWSM},
  year = {2019},
}
Figure