CoCoA-MT: A Dataset and Benchmark for Contrastive Controlled MT with Application to Formality

Maria Nădejde, Anna Currey, Benjamin Hsu, Xing Niu, Marcello Federico +1 more
5/9/2022
42 citations
cs.CLcs.AI
benchmark-dataset

Official code: awslabs/sockeye (1,214 stars, Python, Apache-2.0, PyTorch, last commit 2024-10-24). 1 more implementation below.

Abstract

The machine translation (MT) task is typically formulated as that of returning a single translation for an input segment. However, in many cases, multiple different translations are valid and the appropriate translation may depend on the intended target audience, characteristics of the speaker, or even the relationship between speakers.

Show full abstract

Specific problems arise when dealing with honorifics, particularly translating from English into languages with formality markers. For example, the sentence "Are you sure?" can be translated in German as "Sind Sie sich sicher?" (formal register) or "Bist du dir sicher?" (informal). Using wrong or inconsistent tone may be perceived as inappropriate or jarring for users of certain cultures and demographics. This work addresses the problem of learning to control target language attributes, in this case formality, from a small amount of labeled contrastive data. We introduce an annotated dataset (CoCoA-MT) and an associated evaluation metric for training and evaluating formality-controlled MT models for six diverse target languages. We show that we can train formality-controlled models by fine-tuning on labeled contrastive data, achieving high accuracy (82% in-domain and 73% out-of-domain) while maintaining overall quality.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
awslabs/sockeyeOfficial1,214PythonApache-2.02024-10-24
amazon-science/contrastive-controlled-mtOfficial22Ruby–2023-05-24
awslabs/sockeyeOfficial100%
PyTorchApache-2.0

Sequence-to-sequence framework with a focus on Neural Machine Translation based on PyTorch

1,214319Python, JavaScriptJun 8, 20172 years agoApache-2.0
attention-is-all-you-needattention-mechanismattention-modeldeep-learningdeep-neural-networks+13 more

Code and data for the IWSLT 2022 shared task on Formality Control for SLT

227Ruby, JavaScriptJan 13, 20223 years agoNOASSERTION

Similar Papers

Cite this paper

@article{ndejde2022cocoamt,
  title  = {CoCoA-MT: A Dataset and Benchmark for Contrastive Controlled MT with Application to Formality},
  author = {Maria Nădejde and Anna Currey and Benjamin Hsu and Xing Niu and Marcello Federico and Georgiana Dinu},
  year   = {2022},
  eprint = {2205.04022},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.04022}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.04022.svg)](https://codeofpaper.com/paper/2205.04022)

Discussion