Akamon: An Open Source Toolkit for Tree/Forest-Based Statistical Machine Translation

Xianchao Wu, Takuya Matsuzaki, Jun'ichi TsujiiACL 2012

TL;DR

This paper introduces Akamon, an open-source toolkit for tree/forest-based statistical machine translation (SMT). Akamon aims to democratize research in this area by providing a unified implementation of state-of-the-art algorithms for tree/forest-to-string decoding, including rule extraction and efficient decoding, making it easier for researchers to build upon existing work.

What Problem Does This Paper Address?

Statistical Machine Translation (SMT) has seen significant advancements, with syntax-based approaches showing particular promise. These systems can be broadly categorized into string-based and tree/forest-based methods. While string-based methods are well-established, tree/forest-based SMT, which leverages linguistic parse trees or forests, has demonstrated superior performance in handling non-local reordering. However, a significant barrier to progress in tree/forest-based SMT has been the lack of readily available, open-source toolkits that implement the complex algorithms required for rule extraction and decoding. This forces researchers to re-implement these components from scratch, hindering rapid development and validation of new ideas. Akamon directly addresses this by providing a comprehensive, open-source toolkit for tree/forest-to-string SMT.

Methods

Akamon is designed to implement a range of algorithms crucial for tree/forest-based SMT. Key features include:

  • Tree/Forest-to-String Rule Extraction: The toolkit supports extracting translation rules using traditional maximum likelihood algorithms from Probabilistic Context-Free Grammar (PCFG) trees and Head-Driven Phrase Structure Grammar (HPSG) trees/forests. It implements algorithms from established works like Galley et al. (2004) and Mi and Huang (2008), as well as Wu et al. (2010) for HPSG structures.
  • Forest-Based Decoding: Akamon features a multi-threaded forest-based decoder. This involves:
  • N-gram Language Model Integration: The system can utilize one or multiple n-gram language models, trained using SRILM or BerkeleyLM, with weights tuned via Minimum Error Rate Training (MERT).
  • Pruning: To manage the computational complexity of decoding with large rule sets, Akamon incorporates traditional beam-pruning and cube-pruning techniques, along with a marginal probability-based inside-outside algorithm for pruning the initial parsing forest.
  • K-best Hypotheses Extraction: The decoder can extract k-best hypotheses, which are then used for parameter tuning and final translation result extraction.
  • Minimum Error Rate Training (MERT): Akamon includes its own MERT module to optimize feature weights for automatic evaluation metrics like BLEU.
  • Deep Syntactic Structures: The toolkit supports using deep syntactic structures, specifically from HPSG parsers like Enju. This allows for fine-grained rule extraction based on syntactic and semantic representations, potentially leading to more compact and effective rule sets.

Datasets

The paper mentions the use of bilingual parallel corpora for training. For evaluation, the NTCIR-9 English-to-Japanese translation task is specifically cited. The experiments also involved using a portion of a 3-million sentence training data.

Key Insights and Ideas

  • The Power of Forests: The paper emphasizes that tree/forest-based SMT systems are generally superior to string-string counterparts for handling non-local reordering, a common challenge in translation.
  • Practicality of Tree-to-String: The tree/forest-to-string approach is highlighted as being more widely adopted than tree-tree structures, likely due to the complexities and potential errors associated with parsing both source and target languages simultaneously.
  • Democratizing Research: The core insight is that by releasing Akamon as an open-source toolkit, the authors aim to significantly lower the barrier to entry for researchers interested in tree/forest-based SMT, enabling faster progress and easier validation of new methods.
  • Leveraging Deep Syntax: The integration of HPSG structures offers a promising avenue for extracting more linguistically informed and compact translation rules, potentially leading to improved translation quality.

Key Results

The paper presents a comparison of Akamon's translation accuracies against baseline systems like Moses (flat and hierarchical) and Google's online translation system on the NTCIR-9 English-to-Japanese task.

  • Akamon-Comb (a system combination including Akamon-Forest and other phrase-based systems) achieved the highest BLEU (0.3948), NIST (8.713), and RIBES (0.7813) scores among the evaluated systems, outperforming Moses (hierarchical and flat).
  • Akamon-Forest (using only 2/3 of the training data and HPSG forests) also showed competitive results, demonstrating the effectiveness of the core Akamon system.
  • The paper notes that Akamon achieves comparable translation accuracies to the widely used Moses system, despite using a subset of the training data in some configurations.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Data Limitations: Akamon-Forest's performance was limited by using only 2/3 of the total training data due to experimental constraints.
  • Future Work:
    • Target Dependency Structures: Integrating target dependency structures and language models.
  • Improved Pruning: Developing better pruning strategies for input packed forests.
  • Derivation-Based Combination: Exploring the combination of different rule types within a single decoder.
  • Advanced Evaluation Metrics: Using metrics like NIST and RIBES as optimal objectives for MERT.
  • The paper also mentions that Akamon supports PCFG tree/forest based translation as a fallback, by ignoring richer HPSG features.

Summary updated

BibTeX
@inproceedings{wu2012akamon,
  author = {Xianchao Wu and Takuya Matsuzaki and Jun'ichi Tsujii},
  title = {{Akamon: An Open Source Toolkit for Tree/Forest-Based Statistical Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2012},
  url = {https://openreview.net/forum?id=rybQ82edbS},
}
Figure