An Unsupervised Normalization Algorithm for Noisy Text: A Case Study for Information Retrieval and Stance Detection

Anurag Roy, Shalmoli Ghosh, Kripabandhu Ghosh, Saptarshi GhosharXiv 2021

TL;DR

Researchers have developed UnsupClean, a novel unsupervised and language-independent algorithm for normalizing "noisy" text—ranging from garbled OCR scans to informal social media slang. By combining lexical similarity with both local and global contextual information, UnsupClean significantly improves performance in downstream tasks like information retrieval and stance detection without requiring expensive labeled training data.

What Problem Does This Paper Address?

We live in an era of massive textual data, but much of it is "noisy." This noise generally falls into two buckets:

  1. Machine-generated: Errors from Optical Character Recognition (OCR) or Automatic Speech Recognition (ASR) systems.
  2. Human-generated: Slang, abbreviations (e.g., "tmrw" for "tomorrow"), and typos common on platforms like Twitter.

This noise breaks standard Natural Language Processing (NLP) pipelines. While text normalization—mapping noisy variants back to a "canonical" form—exists, most current solutions are supervised. They require massive parallel corpora (pairs of noisy and clean text) which are expensive to produce and often unavailable for low-resource languages. The authors aim to bridge this gap with a robust, unsupervised method that works across different languages and noise types.

Methods

The proposed algorithm, UnsupClean, follows a four-step pipeline to identify morphological variants of a word:

  1. Candidate Generation: For a given "clean" word, the system identifies potential noisy variants in the corpus using Bi-character Longest Common Subsequence Ratio (BLCSR). This string similarity measure is more robust than standard edit distance for capturing the types of character swaps and deletions common in noisy text.
  2. Graph Construction: It builds a similarity graph where nodes are candidate words. Edges are drawn based on a threshold of cosine similarity between word embeddings (capturing local context). The edges are then weighted by a combination of that embedding similarity and document-level co-occurrence counts (capturing global context).
  3. Clustering: The algorithm applies the Louvain community detection method to fragment the graph into clusters of words that are both syntactically and semantically related.
  4. Cluster Selection: Finally, it selects the cluster containing the word with the minimum edit distance to the original clean word. All words in that cluster are then normalized to the clean form.
Figure 1: An overview of the proposed algorithm UnsupClean

This hybrid approach is key: string similarity finds the "look-alikes," while embeddings and co-occurrence ensure they are actually used in the same "sense," preventing the accidental normalization of homonyms or unrelated words with similar spellings.

Datasets

The authors evaluated UnsupClean across two distinct tasks using six datasets:

  • Information Retrieval (IR):
    • RISOT Bengali OCR: 62,825 news articles in Bengali, testing language independence.
  • TREC Confusion 2005: English documents with a 5% character error rate from scanning.
  • TREC Microblog 2011: Over 16 million English tweets, testing scalability and human-generated noise.
  • Stance Detection:
    • SemEval 2016 Task 6A: Three sub-datasets (Atheism, Climate Change, Hillary Clinton) consisting of noisy tweets labeled for sentiment/stance.

Key Insights and Ideas

  • Context is Multi-Scale: The authors found that using only word embeddings or only co-occurrence counts wasn't enough. Embeddings capture local context (nearby words), while co-occurrence captures global context (same document). Combining them (Step 2) is what allows the model to handle both short tweets and long OCR-ed documents effectively.
  • The Power of Graph Clustering: Rather than just picking the "closest" word, clustering the variants allows the model to identify groups of related errors. This helps isolate true variants from "distractor" words that might have high string similarity but different meanings (e.g., "Kashmiri" vs. "Kashmira").
  • Language Independence: Because the model relies on character-level similarity and unsupervised embeddings (Word2vec), it requires no language-specific rules, making it a "plug-and-play" solution for low-resource languages like Bengali.

Key Results

UnsupClean consistently outperformed or matched state-of-the-art baselines like Aspell, Enelvo, and Sridhar.

  • In Retrieval: On the Bengali OCR dataset, UnsupClean achieved a Mean Average Precision (mAP@1000) of 23.00%, a significant jump over the raw data (18.50%) and the next best baseline (20.98%).
  • In Stance Detection: Using the Target Specific Attention Neural Network (TAN), UnsupClean reached the highest F1-scores across all three SemEval categories. For example, on the Atheism dataset, it achieved an F-score of 0.6250, compared to 0.5508 on raw, uncleaned data.
  • Ablation Study: The authors proved that every step matters. Removing the graph clustering step caused the biggest performance drop, highlighting that simply finding similar-looking words isn't enough for accurate normalization.

Limitations and Future Work

While UnsupClean is powerful, it does require a lexicon of clean words ($L_c$) to act as the target for normalization. In some extremely low-resource scenarios, even this might be a hurdle.

The authors also noted that while they tested OCR and microblog noise, they haven't yet applied the model to ASR (speech-to-text) noise, which has its own unique phonetic error patterns. Future work involves extending the algorithm to handle these phonetic variants and exploring its impact on other tasks like text summarization.

Summary updated

BibTeX
@misc{roy2021unsupervised,
  author = {Anurag Roy and Shalmoli Ghosh and Kripabandhu Ghosh and Saptarshi Ghosh},
  title = {{An Unsupervised Normalization Algorithm for Noisy Text: A Case Study for Information Retrieval and Stance Detection}},
  year = {2021},
  eprint = {2101.03303},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.03303},
}
Figure