Beyond Decoder-only: Large Language Models Can be Good Encoders for Machine Translation

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Luo, Yingfeng, Zheng, Tong, Mu, Yongyu, Li, Bei, Zhang, Qinghong, Gao, Yongqi, Xu, Ziqiang, Feng, Peinan, Liu, Xiaoqian, Xiao, Tong, Zhu, Jingbo
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909631163400192
author Luo, Yingfeng
Zheng, Tong
Mu, Yongyu
Li, Bei
Zhang, Qinghong
Gao, Yongqi
Xu, Ziqiang
Feng, Peinan
Liu, Xiaoqian
Xiao, Tong
Zhu, Jingbo
author_facet Luo, Yingfeng
Zheng, Tong
Mu, Yongyu
Li, Bei
Zhang, Qinghong
Gao, Yongqi
Xu, Ziqiang
Feng, Peinan
Liu, Xiaoqian
Xiao, Tong
Zhu, Jingbo
contents The field of neural machine translation (NMT) has changed with the advent of large language models (LLMs). Much of the recent emphasis in natural language processing (NLP) has been on modeling machine translation and many other problems using a single pre-trained Transformer decoder, while encoder-decoder architectures, which were the standard in earlier NMT models, have received relatively less attention. In this paper, we explore translation models that are universal, efficient, and easy to optimize, by marrying the world of LLMs with the world of NMT. We apply LLMs to NMT encoding and leave the NMT decoder unchanged. We also develop methods for adapting LLMs to work better with the NMT decoder. Furthermore, we construct a new dataset involving multiple tasks to assess how well the machine translation system generalizes across various tasks. Evaluations on the WMT and our datasets show that results using our method match or surpass a range of baselines in terms of translation quality, but achieve $2.4 \sim 6.5 \times$ inference speedups and a $75\%$ reduction in the memory footprint of the KV cache. It also demonstrates strong generalization across a variety of translation-related tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2503_06594
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Beyond Decoder-only: Large Language Models Can be Good Encoders for Machine Translation
Luo, Yingfeng
Zheng, Tong
Mu, Yongyu
Li, Bei
Zhang, Qinghong
Gao, Yongqi
Xu, Ziqiang
Feng, Peinan
Liu, Xiaoqian
Xiao, Tong
Zhu, Jingbo
Computation and Language
The field of neural machine translation (NMT) has changed with the advent of large language models (LLMs). Much of the recent emphasis in natural language processing (NLP) has been on modeling machine translation and many other problems using a single pre-trained Transformer decoder, while encoder-decoder architectures, which were the standard in earlier NMT models, have received relatively less attention. In this paper, we explore translation models that are universal, efficient, and easy to optimize, by marrying the world of LLMs with the world of NMT. We apply LLMs to NMT encoding and leave the NMT decoder unchanged. We also develop methods for adapting LLMs to work better with the NMT decoder. Furthermore, we construct a new dataset involving multiple tasks to assess how well the machine translation system generalizes across various tasks. Evaluations on the WMT and our datasets show that results using our method match or surpass a range of baselines in terms of translation quality, but achieve $2.4 \sim 6.5 \times$ inference speedups and a $75\%$ reduction in the memory footprint of the KV cache. It also demonstrates strong generalization across a variety of translation-related tasks.
title Beyond Decoder-only: Large Language Models Can be Good Encoders for Machine Translation
topic Computation and Language
url https://arxiv.org/abs/2503.06594