Introduction
Standard Neural Machine Translation (NMT) systems are highly effective at capturing the semantic content of a source sentence but often struggle to adapt to specific stylistic requirements, such as formality. In professional or social contexts, the choice between a formal or informal tone is critical. For instance, translating the French "Comment ça va?" might result in "How are you doing?" (formal) or "What's up?" (informal). This paper introduces a novel approach to controlling translation formality using synthetic supervision, allowing models to learn stylistic nuances without requiring massive, manually labeled datasets.
The Challenge of Formality Control
The primary obstacle in training Formality-Sensitive Machine Translation (FSMT) systems is a significant data gap. Ideally, training would utilize triplets consisting of a source sentence, a target translation, and a corresponding formality label. However, existing resources are typically limited to parallel corpora (source and target without labels) or monolingual style data (formal and informal versions of the same language without a source). Previous "zero-shot" multi-task learning attempts often fail to produce distinct outputs because they lack direct supervision on how a single source sentence should transform under different formality constraints.
Online Style Inference (OSI)
To bridge this gap, the researchers developed Online Style Inference (OSI). This method allows the model to "label its own homework" during the training process, creating synthetic triplets from standard parallel data.
As illustrated in Figure 1, the process works as follows:
- Multi-Task Foundation: The model is trained jointly on translation tasks (e.g., FR→EN) and formality transfer (Formal EN ↔ Informal EN).
- Dual Tagging (TAG-SRC-TGT): Style tags (like
<2Formal>) are attached to both the source and target sequences, which significantly improves the decoder's ability to control the output style compared to source-only tagging. - The OSI Mechanism: When the model encounters a standard parallel pair $(X, Y)$, it generates both a formal ($Y_F$) and an informal ($Y_I$) version. It then measures the "closeness" of the actual reference $Y$ to these generated versions using Cross-Entropy Difference (CED). If $Y$ is closer to $Y_F$, it is synthetically labeled as formal, providing the direct supervision needed to refine the model's stylistic control.
Experimental Results
The model was evaluated using the GYAFC (Grammarly’s Yahoo Answers Formality Corpus) for style transfer and a mix of bilingual corpora including Europarl and OpenSubtitles. To measure structural style changes beyond simple word swaps, the authors introduced LEPOD (Lexical and Positional Differences), finding that formality often involves complex reordering of sentence components.
Human evaluations confirmed the effectiveness of the OSI approach across three key dimensions: the formality of requested informal translations, the formality of requested formal translations, and overall meaning preservation.
As shown in Figure 5, OSI-generated translations were consistently judged as more distinct in their target styles. On the WMT dataset, OSI achieved a LEPOD score of 14.53%, significantly higher than the 10.89% achieved by standard multi-task baselines. Crucially, as seen in Figure 5(c), the model did not sacrifice semantic accuracy for style; it was rated as better at preserving meaning than previous state-of-the-art methods.
Conclusion and Future Work
This research demonstrates that self-supervision through online inference is a powerful tool for controlling translation style. By allowing the model to infer its own labels, the system overcomes the scarcity of labeled parallel data. While currently focused on binary formality in English, future work could extend this to more granular style spectrums and languages with complex honorific systems, such as Japanese or Korean. Despite the potential for propagating synthetic noise, the OSI framework represents a significant step toward more nuanced and context-aware machine translation.
Summary updated