Parallelization of Maximum Entropy POS Tagging for Bahasa Indonesia with MapReduce

Arif Nurwidyantoro, Edi WinarkoarXiv 2012 · DOI

TL;DR

This paper explores parallelizing Maximum Entropy Part-of-Speech (POS) tagging for Bahasa Indonesia using the MapReduce framework. They found that while MapReduce speeds up the tagging process, especially with larger datasets, it introduces overhead in the training phase due to file system interactions.

What Problem Does This Paper Address?

Part-of-Speech (POS) tagging is a fundamental task in Natural Language Processing (NLP), crucial for many downstream applications like machine translation and question answering. As NLP research increasingly relies on larger datasets for better accuracy, efficiently processing these massive amounts of text becomes a significant challenge. This paper specifically addresses the scalability issue of POS tagging for Bahasa Indonesia, a language that has seen less research in this area compared to English, by leveraging the parallel processing capabilities of MapReduce.

Methods

The authors adapted the Stanford POS tagger library to work with MapReduce. The core idea is to parallelize two main stages: training and tagging.

  • Training: MapReduce was applied to several sub-processes within the training phase, including dictionary creation, tagtoken formation, histories generation, and feature creation. The Generalized Iterative Scaling (GIS) algorithm, and its variant Improved Iterative Scaling (IIS), are standard for training Maximum Entropy models. However, the paper notes that the IIS algorithm's iterative nature and feature dependency made it difficult to fully parallelize with MapReduce without affecting results.
  • Tagging: For the tagging process, MapReduce was used to parallelize the labeling of words in documents. The input documents were split, and Map functions processed partitions in parallel, with Reduce functions then combining the results.

Datasets

The study used several datasets for training and evaluation:

  • Training Data:
    • 12,000 words corpus (from Wicaksono and Purwarianti [10])
    • 100,000 words corpus
    • 1,000,000 words corpus
  • Evaluation Data: A manually annotated corpus of 6,348 words was used to test the accuracy of the trained models.
  • Tagging Data: Text documents from various news sites, ranging from 10,000 to 1,000,000 words, were used for tagging experiments.

Key Insights and Ideas

  • Tagging Benefits from Parallelization: The most significant speedup was observed in the tagging phase. MapReduce effectively distributed the workload across multiple nodes, leading to faster processing, especially for larger text inputs.
  • Training Overhead: The training phase, particularly the IIS algorithm, proved challenging to parallelize effectively. The need to read intermediate results from the file system (a characteristic of Hadoop MapReduce) introduced overhead, making the MapReduce-enhanced training slower than the non-parallelized version in some cases.
  • Corpus Size Matters: Larger training corpora consistently led to faster tagging times. This is attributed to a more comprehensive dictionary, reducing the need to consider all possible tags for unknown words.
  • Model Accuracy Unchanged: Crucially, the MapReduce modifications did not negatively impact the accuracy of the POS tagging models.

Key Results

  • Training Time: While MapReduce-enhanced training was slower for smaller corpora due to file system read times, it showed potential for larger corpora. For instance, training on 1,000,000 words took 59,492.5 seconds with MapReduce versus 58,219.7 seconds without it, indicating a slight slowdown.
  • Tagging Time: Tagging experiments demonstrated significant speedups. The fastest tagging result was achieved using a 1,000,000-word corpus and 30 map processes, indicating that parallelization is highly effective for this task. Figure 5 visually compares various tagging configurations, highlighting the advantage of using larger models and more parallel resources.
  • Accuracy: The accuracy results remained consistent across both standard and MapReduce-enhanced training, with the highest accuracy reaching around 73.70% for the 12,000-word corpus.

Limitations and Future Work

  • Training Parallelization Challenges: The paper acknowledges that the IIS algorithm's iterative nature and feature dependencies made it difficult to parallelize effectively without impacting performance or accuracy.
  • File System Overhead: The reliance on Hadoop MapReduce's file system for intermediate results introduced overhead, slowing down the training process.
  • Future Work: The authors suggest exploring larger corpora to further investigate the influence of corpus size on time and accuracy. They also propose experimenting with more nodes, potentially in cloud computing environments (like Amazon EC2), and investigating alternative parameter estimation algorithms such as Quasi-Newton or Conjugate Gradient instead of IIS.

Summary updated

BibTeX
@misc{nurwidyantoro2012parallelization,
  author = {Arif Nurwidyantoro and Edi Winarko},
  title = {{Parallelization of Maximum Entropy POS Tagging for Bahasa Indonesia with MapReduce}},
  year = {2012},
  eprint = {1208.3047},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1208.3047},
}
Figure