Abstract
We present an open-source framework for large-scale online structured learning. Developed with the flexibility to handle cost-augmented inference problems such as statistical machine translation (SMT), our large-margin learner can be used with any decoder. Integration with MapReduce using Hadoop streaming allows efficient scaling with increasing size of training data. Although designed with a focus on SMT, the decoder-agnostic design of our learner allows easy future extension to other structured learning problems such as sequence labeling and parsing.
Introduction
In Natural Language Processing (NLP), structured learning tasks—such as machine translation or dependency parsing—present significant scaling challenges. Unlike simple classification, the output space has a complex internal structure. While online learning algorithms like the Margin Infused Relaxed Algorithm (MIRA) are popular for their speed and ability to handle high-dimensional data, they are traditionally difficult to parallelize effectively on commodity clusters.
Before the development of Mr. MIRA, researchers often relied on ad-hoc cluster management or were locked into specific, tightly-coupled software implementations. Mr. MIRA was designed to fill this gap by providing a tool that is scalable to tens of millions of sentences, flexible enough to work with any decoder, and robust enough to run on standard industrial infrastructure like Hadoop.
Methodology
Mr. MIRA leverages Hadoop Streaming to parallelize the training process through a specific MapReduce strategy.
The Algorithm and MapReduce Strategy
The system uses MIRA, an online large-margin learner that processes examples sequentially, making minimal weight updates to maintain a confidence margin between correct and incorrect hypotheses. In the Map Phase, each mapper loads the current model weights and processes a "split" of the training data, running the online learner locally. In the Reduce Phase, a single reducer collects the final weights from all mappers and computes a weighted average based on the number of sentences processed. This averaged weight vector serves as the starting point for the subsequent iteration.
Decoder-Agnostic Design
To ensure compatibility across different systems, the authors developed a simple line-based text protocol. The learner communicates with the decoder via a pipe, sending an input sentence and receiving a "k-best" list of hypotheses and their associated features. This decoupling allows researchers to swap translation engines without modifying the learning code.
Optimization and Sparsity
The framework supports sparse features using $\ell_1/\ell_2$ regularization and adaptive per-feature learning rates. This allows the model to learn effectively from rare features that appear infrequently in the training data.
Experimental Setup and Datasets
The system was evaluated on a German-English machine translation task using the Europarl and News Commentary corpora, totaling approximately 2.08 million sentences. Tuning and testing were conducted using WMT12 translation task data. To test scalability, the authors created various tuning sets ranging from 3,000 to 50,000 sentences.
Key Results
Scalability and Efficiency
Mr. MIRA demonstrates linear scalability. As shown in the experimental results, the time per iteration grew predictably as the tuning set size increased from 5k to 50k sentences. In a direct comparison with a standard PBS-managed cluster using 15 learners, Mr. MIRA on Hadoop proved significantly more efficient. While the standard setup completed one iteration (scoring 19.5 BLEU), Mr. MIRA completed five iterations, achieving a score of 30.98 BLEU.
Impact of Sparse Features
A major finding was the power of high-dimensional feature spaces. Moving from 16 basic features to approximately 200,000 sparse features (such as word bigrams or rule IDs) led to consistent gains in translation quality across all test scenarios. While weight averaging is mathematically distinct from a single global learner, the results indicate that it works remarkably well in practice with minimal loss in convergence quality.
Conclusion and Future Work
Mr. MIRA successfully brings large-scale structured learning to the MapReduce ecosystem. While the authors noted challenges regarding domain mismatch—where tuning on larger portions of parliamentary bitext did not always improve news-domain test scores—the framework provides a robust foundation for large-scale NLP. Future work includes addressing the bottleneck of shipping large Language Models to workers and extending the framework to other structured tasks like sequence labeling and parsing.
Summary updated