# RAMP: Retrieval and Attribute-Marking Enhanced Prompting for Attribute-Controlled Translation

Source: [RAMP: Retrieval and Attribute-Marking Enhanced Prompting for Attribute-Controlled Translation](<https://www.sota2.com/research/paper/68fa707c1e209131cea4b65a>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-01-02T03:34:34.782Z

Authors: Gabriele Sarti, Phu Mon Htut, Xing Niu, Benjamin Hsu, Anna Currey, Georgiana Dinu, Maria Nadejde

Published: 2023-05-26T17:56:53.000Z

## Abstract

Attribute-controlled translation (ACT) is a subtask of machine translation that involves controlling stylistic or linguistic attributes (like formality and gender) of translation outputs. While ACT has garnered attention in recent years due to its usefulness in real-world applications, progress in the task is currently limited by dataset availability, since most prior approaches rely on supervised methods. To address this limitation, we propose Retrieval and Attribute-Marking enhanced Prompting (RAMP), which leverages large multilingual language models to perform ACT in few-shot and zero-shot settings. RAMP improves generation accuracy over the standard prompting approach by (1) incorporating a semantic similarity retrieval component for selecting similar in-context examples, and (2) marking in-context examples with attribute annotations. Our comprehensive experiments show that RAMP is a viable approach in both zero-shot and few-shot settings.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Attribute-controlled Machine Translation on COCOA-MT (aggregated)](<https://www.sota2.com/research/sota/attribute-controlled-machine-translation-on-cocoa-mt-aggregated.md>): Attribute-controlled Machine Translation; COCOA-MT (aggregated); BLEU: 41.9.

- [Attribute-controlled Machine Translation on MT-GENEVAL (aggregated)](<https://www.sota2.com/research/sota/attribute-controlled-machine-translation-on-mt-geneval-aggregated.md>): Attribute-controlled Machine Translation; MT-GENEVAL (aggregated); BLEU: 0.343.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2305.17131>)

[PDF](<https://arxiv.org/pdf/2305.17131.pdf>)
