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

Gabriele Sarti, Phu Mon Htut, Xing Niu, Benjamin Hsu, Anna Currey +2 more
5/26/2023
cs.CL

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sarti2023ramp,
  title  = {RAMP: Retrieval and Attribute-Marking Enhanced Prompting for Attribute-Controlled Translation},
  author = {Gabriele Sarti and Phu Mon Htut and Xing Niu and Benjamin Hsu and Anna Currey and Georgiana Dinu and Maria Nadejde},
  year   = {2023},
  eprint = {2305.17131},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.17131v1}
}

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/2305.17131.svg)](https://codeofpaper.com/paper/2305.17131)

Discussion