Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
119 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Decoder-Only or Encoder-Decoder? Interpreting Language Model as a Regularized Encoder-Decoder (2304.04052v1)

Published 8 Apr 2023 in cs.CL, cs.AI, and cs.LG

Abstract: The sequence-to-sequence (seq2seq) task aims at generating the target sequence based on the given input source sequence. Traditionally, most of the seq2seq task is resolved by the Encoder-Decoder framework which requires an encoder to encode the source sequence and a decoder to generate the target text. Recently, a bunch of new approaches have emerged that apply decoder-only LLMs directly to the seq2seq task. Despite the significant advancements in applying LLMs to the seq2seq task, there is still a lack of thorough analysis on the effectiveness of the decoder-only LLM architecture. This paper aims to address this gap by conducting a detailed comparison between the encoder-decoder architecture and the decoder-only LLM framework through the analysis of a regularized encoder-decoder structure. This structure is designed to replicate all behaviors in the classical decoder-only LLM but has an encoder and a decoder making it easier to be compared with the classical encoder-decoder structure. Based on the analysis, we unveil the attention degeneration problem in the LLM, namely, as the generation step number grows, less and less attention is focused on the source sequence. To give a quantitative understanding of this problem, we conduct a theoretical sensitivity analysis of the attention output with respect to the source input. Grounded on our analysis, we propose a novel partial attention LLM to solve the attention degeneration problem. Experimental results on machine translation, summarization, and data-to-text generation tasks support our analysis and demonstrate the effectiveness of our proposed model.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Zihao Fu (17 papers)
  2. Wai Lam (117 papers)
  3. Qian Yu (116 papers)
  4. Anthony Man-Cho So (97 papers)
  5. Shengding Hu (34 papers)
  6. Zhiyuan Liu (433 papers)
  7. Nigel Collier (83 papers)
Citations (36)

Summary

We haven't generated a summary for this paper yet.