DeMPT: Decoding-enhanced Multi-phase Prompt Tuning for Making LLMs Be Better Context-aware Translators

Xinglin Lyu, Junhui Li, Yanqing Zhao, Min Zhang, Daimeng Wei +3 more
2/23/2024
9 citations
cs.CL
lora-peft-merging

Official code: xllyu-nlp/DeMPT (2 stars, Ruby, last commit 2024-09-29).

Abstract

Generally, the decoder-only large language models (LLMs) are adapted to context-aware neural machine translation (NMT) in a concatenating way, where LLMs take the concatenation of the source sentence (i.e., intra-sentence context) and the inter-sentence context as the input, and then to generate the target tokens sequentially. This adaptation strategy, i.e., concatenation mode, considers intra-sentence and inter-sentence contexts with the same priority, despite an apparent difference between the two kinds of contexts.

Show full abstract

In this paper, we propose an alternative adaptation approach, named Decoding-enhanced Multi-phase Prompt Tuning (DeMPT), to make LLMs discriminately model and utilize the inter- and intra-sentence context and more effectively adapt LLMs to context-aware NMT. First, DeMPT divides the context-aware NMT process into three separate phases. During each phase, different continuous prompts are introduced to make LLMs discriminately model various information. Second, DeMPT employs a heuristic way to further discriminately enhance the utilization of the source-side inter- and intra-sentence information at the final decoding phase. Experiments show that our approach significantly outperforms the concatenation method, and further improves the performance of LLMs in discourse modeling.

View on arXivView PDF

Code Implementations(1)

xllyu-nlp/DeMPTOfficial100%

The implementation for paper DeMPT.

20Ruby, JavaScriptSep 23, 20242 years ago

Similar Papers

Cite this paper

@article{lyu2024dempt,
  title  = {DeMPT: Decoding-enhanced Multi-phase Prompt Tuning for Making LLMs Be Better Context-aware Translators},
  author = {Xinglin Lyu and Junhui Li and Yanqing Zhao and Min Zhang and Daimeng Wei and Shimin Tao and Hao Yang and Min Zhang},
  year   = {2024},
  eprint = {2402.15200},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.15200v2}
}

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

Discussion