TL;DR
The University of Edinburgh’s submission to the WMT22 Code-Mixing Shared Task (MixMT) demonstrates that robust data curation and strong machine translation baselines outperform complex, specialized modeling techniques. By focusing on high-quality backtranslation and ensembling, their systems achieved second place overall in both translating text into Hinglish (Hindi-English code-mixed text) and translating Hinglish back to English.
What Problem Does This Paper Address?
Code-mixing—the practice of alternating between two or more languages within a single conversation—is a widespread global phenomenon, particularly online. A prime example is "Hinglish," a blend of Hindi and English written in the Roman script. Despite its prevalence, code-mixed text remains severely underserved by natural language processing (NLP) technologies.
The primary bottleneck is data scarcity: there are very few parallel datasets matching code-mixed text with its monolingual equivalents. Furthermore, Hinglish lacks standardized grammar or spelling rules, making it highly variable and noisy. The WMT22 MixMT shared task challenged participants to tackle two problems under these low-resource conditions:
- Subtask 1: Generating Hinglish text given parallel Hindi and English sentences.
- Subtask 2: Translating Hinglish text back into standard English.
Methods
The authors focused heavily on data engineering rather than architectural complexity, establishing strong baselines using the Marian MT framework.
- Subtask 1 Baseline: They implemented a dual-encoder Transformer model initialized from standard Hindi$\leftrightarrow$English translation models. Training proceeded in two stages: general domain training using massive backtranslated and transliterated corpora, followed by fine-tuning on task-specific data.
- Subtask 2 Baseline: They initialized a Hinglish$\rightarrow$English model using a Hindi$\rightarrow$English MT system, training it on a mix of backtranslated internet corpora, domain-specific social media text, and an ensemble of four models to maximize performance.
Alongside these baselines, the team explored two novel, alternative approaches:
- Lexically Constrained Decoding (Subtask 1): Hypothesizing that Hinglish outputs should only contain words directly from the English source or transliterated from the Hindi source, they modified the decoding process to prune out-of-vocabulary words.
- Aligned Augmentation (Subtask 2): They experimented with Aligned Augmentation (AA), a denoising-based pretraining technique that trains models to reconstruct original sentences from artificially code-mixed text generated via bilingual dictionaries.
Datasets
The authors utilized a diverse mix of parallel, monolingual, and synthetic datasets:
- HinGe: A parallel Hindi-English-Hinglish dataset used for Subtask 1 training and validation.
- PHINC: A parallel Hinglish-English social media corpus used for Subtask 2.
- Samanantar: A massive parallel Hindi-English corpus. The authors word-transliterated the Hindi side into Roman script to simulate Hinglish data.
- L3Cube-HingCorpus & CC-100 Hindi Romanized: Monolingual Hinglish datasets backtranslated into English and Hindi using the XLM toolkit to expand training data.
- ToxicWiki & Sentiment140: To match the social media domain of Subtask 2, the authors curated "ToxicWiki" (a subset of WikiMatrix containing frequent validation keywords like hate and terrorism) and used Sentiment140 (1.6M English tweets), backtranslating both into Hinglish.
Key Insights and Ideas
- Baselines Win the Day: Surprisingly, the complex alternative methods failed to beat the authors' original baselines. Simple initialization from strong bilingual models combined with massive, filtered backtranslated data yielded the best results.
- The Transliteration Trap: Lexically constrained decoding actually degraded performance. As beam sizes increased, the model heavily favored generating English tokens over transliterated Hindi. This occurred because error propagation in the initial Hindi-to-Roman transliteration step meant the exact required Hinglish words were missing from the constraint list.
- Character Metrics Matter: The authors argue that character-based metrics like ChrF++ are far superior to word-based metrics (like BLEU or WER) for evaluating code-mixed text. Because Hinglish has no formal spelling rules, word-based metrics unfairly penalize valid phonetic variations of the same word.
Key Results
The University of Edinburgh's baseline systems ranked second place overall on the official Codalab leaderboards for both subtasks, achieving competitive results in both automatic and human evaluations.
| Subtask | BLEU | ChrF++ | TER | WER | ROUGE-L | Human Eval (1-5) |
|---|---|---|---|---|---|---|
| Subtask 1 (Into Hinglish) | 26.9 | 52.7 | 55.2 | 56.2 | 57.9 | 3.85 |
| Subtask 2 (Hinglish to English) | 28.7 | 51.2 | 59.1 | 61.3 | 62.5 | 3.75 |
Final Test Results for the submissions (Table 6).
Limitations and Future Work
A key limitation of the constrained decoding approach was its reliance on a single transliteration tool. To prevent error propagation, future work should explore running multiple transliteration schemes simultaneously to create a more diverse and forgiving set of lexical constraints.
For Aligned Augmentation, the authors note that massive fine-tuning might cause the model to "forget" the representations learned during pretraining. Optimizing the size of the fine-tuning data and explicitly incorporating common misspellings into the code-mixing lexicons are promising avenues for making future models more robust to real-world internet slang.
Summary updated