Encoder-Decoder or Decoder-Only? Revisiting Encoder-Decoder Large Language Model

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhang, Biao, Cheng, Yong, Shakeri, Siamak, Wang, Xinyi, Ma, Min, Firat, Orhan
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911240683520000
author Zhang, Biao
Cheng, Yong
Shakeri, Siamak
Wang, Xinyi
Ma, Min
Firat, Orhan
author_facet Zhang, Biao
Cheng, Yong
Shakeri, Siamak
Wang, Xinyi
Ma, Min
Firat, Orhan
contents Recent large language model (LLM) research has undergone an architectural shift from encoder-decoder modeling to nowadays the dominant decoder-only modeling. This rapid transition, however, comes without a rigorous comparative analysis especially \textit{from the scaling perspective}, raising concerns that the potential of encoder-decoder models may have been overlooked. To fill this gap, we revisit encoder-decoder LLM (RedLLM), enhancing it with recent recipes from decoder-only LLM (DecLLM). We conduct a comprehensive comparison between RedLLM, pretrained with prefix language modeling (LM), and DecLLM, pretrained with causal LM, at different model scales, ranging from $\sim$150M to $\sim$8B. Using RedPajama V1 (1.6T tokens) for pretraining and FLAN for instruction tuning, our experiments show that RedLLM produces compelling scaling properties and surprisingly strong performance. While DecLLM is overall more compute-optimal during pretraining, RedLLM demonstrates comparable scaling and context length extrapolation capabilities. After instruction tuning, RedLLM achieves comparable and even better results on various downstream tasks while enjoying substantially better inference efficiency. We hope our findings could inspire more efforts on re-examining RedLLM, unlocking its potential for developing powerful and efficient LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2510_26622
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Encoder-Decoder or Decoder-Only? Revisiting Encoder-Decoder Large Language Model
Zhang, Biao
Cheng, Yong
Shakeri, Siamak
Wang, Xinyi
Ma, Min
Firat, Orhan
Computation and Language
Recent large language model (LLM) research has undergone an architectural shift from encoder-decoder modeling to nowadays the dominant decoder-only modeling. This rapid transition, however, comes without a rigorous comparative analysis especially \textit{from the scaling perspective}, raising concerns that the potential of encoder-decoder models may have been overlooked. To fill this gap, we revisit encoder-decoder LLM (RedLLM), enhancing it with recent recipes from decoder-only LLM (DecLLM). We conduct a comprehensive comparison between RedLLM, pretrained with prefix language modeling (LM), and DecLLM, pretrained with causal LM, at different model scales, ranging from $\sim$150M to $\sim$8B. Using RedPajama V1 (1.6T tokens) for pretraining and FLAN for instruction tuning, our experiments show that RedLLM produces compelling scaling properties and surprisingly strong performance. While DecLLM is overall more compute-optimal during pretraining, RedLLM demonstrates comparable scaling and context length extrapolation capabilities. After instruction tuning, RedLLM achieves comparable and even better results on various downstream tasks while enjoying substantially better inference efficiency. We hope our findings could inspire more efforts on re-examining RedLLM, unlocking its potential for developing powerful and efficient LLMs.
title Encoder-Decoder or Decoder-Only? Revisiting Encoder-Decoder Large Language Model
topic Computation and Language
url https://arxiv.org/abs/2510.26622