Abstract
This work aims to produce translations that convey source language content at a formality level that is appropriate for a particular audience. Framing this problem as a neural sequence-to-sequence task ideally requires training triplets consisting of a bilingual sentence pair labeled with target language formality. However, in practice, available training examples are limited to English sentence pairs of different styles, and bilingual parallel sentences of unknown formality. We introduce a novel training scheme for multi-task models that automatically generates synthetic training triplets by inferring the missing element on the fly, thus enabling end-to-end training. Comprehensive automatic and human assessments show that our best model outperforms existing models by producing translations that better match desired formality levels while preserving the source meaning.
Introduction
Standard Neural Machine Translation (NMT) focuses primarily on semantic accuracy, often neglecting the stylistic nuances required for different social contexts. For instance, a simple French phrase like "Bonne idée" can be rendered as a casual "Good idea" or a more formal "This is a helpful idea." The primary obstacle in developing Formality-Sensitive Machine Translation (FSMT) is the lack of labeled bilingual data. While large parallel corpora exist, they rarely contain explicit formality labels. Conversely, monolingual style-transfer datasets exist but lack the cross-lingual mapping necessary for translation. Previous attempts at multi-task learning often struggled to produce distinct outputs or introduced translation errors when attempting to shift style.
Methodology
To address the data bottleneck, this paper proposes two key innovations: TAG-SRC-TGT and Online Style Inference (OSI).
TAG-SRC-TGT (Side Constraints)
While traditional methods apply style tags only to the source sentence, the authors demonstrate that the decoder benefits from direct guidance. By attaching style tags (e.g., <2Formal>) to both the source and target sequences during training, the model learns to more effectively control stylistic markers like contractions and vocabulary choice. This dual-tagging approach ensures the decoder is actively aware of the target style throughout the generation process.
Online Style Inference (OSI)
The core contribution is OSI, a technique that allows the model to "self-label" unlabeled bilingual data during training. For any parallel pair $(X, Y)$, the model generates both a formal ($Y_F$) and an informal ($Y_I$) translation. It then calculates the "closeness" of the ground-truth reference $Y$ to these generated outputs using Cross-Entropy Difference (CED). If $Y$ is significantly closer to the formal generation, it receives a formal label, creating a synthetic training triplet $(X, \ell, Y)$. This bootstrapping method effectively treats the model's own uncertainty as a signal for classification, enabling supervised training on previously unlabeled data.
Experimental Setup
The models were trained using the GYAFC (Grammarly’s Yahoo Answers Formality Corpus) for monolingual formality transfer and a 16-million sentence-pair collection (Europarl, News-Commentary, and OpenSubtitles) for bilingual MT. Evaluation was conducted on the WMT newstest2014 (formal) and MSLT (informal) datasets. Beyond standard BLEU scores, the authors introduced LEPOD (Lexical and Positional Differences) to measure the diversity between formal and informal outputs, ensuring that the model is making meaningful stylistic changes rather than superficial ones.
Results and Discussion
Human evaluation confirms that the OSI model significantly outperforms baselines in both formality control and meaning preservation.
Key findings include:
- Superior Formality Control: In head-to-head tests, OSI's informal translations were judged "more informal" 151 times compared to only 52 for the baseline. Similarly, formal translations showed a strong preference for the OSI model's outputs.
- Meaning Preservation: Unlike previous multi-task models that often sacrificed semantics for style, OSI maintained high fidelity to the source text. As shown in the evaluation charts, the majority of OSI translations were rated as having the same or better meaning preservation than the reference.
- Qualitative Improvements: The model successfully learned complex transformations, such as removing fillers (e.g., "so", "and") in formal contexts, ensuring grammatical completeness (e.g., adding relative pronouns), and performing sophisticated lexical substitutions (e.g., swapping "dad" for "father" or "moving to" for "relocating").
Conclusion
This work demonstrates that synthetic supervision via Online Style Inference is a powerful tool for overcoming data scarcity in stylistic NMT. By allowing models to infer their own training labels, researchers can leverage massive unlabeled corpora to improve translation quality. While currently limited to binary formality and French-to-English translation, the framework provides a foundation for more granular style control across diverse language pairs. Future research may explore continuous style scales and the application of OSI to other linguistic attributes beyond formality, as well as addressing the potential for noise in synthetic labels.
Summary updated