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

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

9 May 2022Findings (NAACL) 2022 7arXiv:2205.04022archive 2025-07-28

Maria Nădejde, Anna Currey, Benjamin Hsu, Xing Niu, Marcello Federico, Georgiana Dinu

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. 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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2205.04022")

Code

Syntology Ran 0 of 12 code samples harvested from 1 repository linked to this paper; 12 have no recorded run.

By repository: official repository: 12 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

amazon-research/contrastive-controlled-mt officialmentioned in paperNOASSERTION report
awslabs/sockeye officialmentioned in papermxnetApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 0 ran; 0 honoured the contract we drafted; 12 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

12unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from awslabs/sockeye. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

average awslabs/sockeye/sockeye/average.py official repository unverified Apache-2.0 (permissive) · c368bc95cab7628c · report
define_buckets awslabs/sockeye/sockeye/data_io.py official repository unverified Apache-2.0 (permissive) · 51c1e44ee3d7ddbf · report
define_parallel_buckets awslabs/sockeye/sockeye/data_io.py official repository unverified Apache-2.0 (permissive) · e8b08e1f3ef35f68 · report
float_greater_or_equal awslabs/sockeye/sockeye/arguments.py official repository unverified Apache-2.0 (permissive) · 45b09cb09f2fcd26 · report
get_bucket awslabs/sockeye/sockeye/data_io.py official repository unverified Apache-2.0 (permissive) · 6f9de756bd25f7f5 · report
get_fp32_state_dict_from_zero1_checkpoint awslabs/sockeye/sockeye/convert_deepspeed.py official repository unverified Apache-2.0 (permissive) · 8075a144d8193c67 · report
int_greater_or_equal awslabs/sockeye/sockeye/arguments.py official repository unverified Apache-2.0 (permissive) · 299cad4b4564705e · report
interleaved_matmul_encdec_qk awslabs/sockeye/sockeye/layers.py official repository unverified Apache-2.0 (permissive) · 1bcf34acc4bfc5b5 · report
interleaved_matmul_encdec_valatt awslabs/sockeye/sockeye/layers.py official repository unverified Apache-2.0 (permissive) · 7b06d9d749b67e62 · report
load_args awslabs/sockeye/sockeye/arguments.py official repository unverified Apache-2.0 (permissive) · dbfe68e8c251c012 · report
parallel_subsample awslabs/sockeye/sockeye/checkpoint_decoder.py official repository unverified Apache-2.0 (permissive) · 0dd5254345198861 · report
strategy_best awslabs/sockeye/sockeye/average.py official repository unverified Apache-2.0 (permissive) · 80f8f7625e2ab5ff · report

Tasks

Machine TranslationSentenceTranslation

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections