Skip to main content
QUICK REVIEW

[論文レビュー] Decoder-Only or Encoder-Decoder? Interpreting Language Model as a Regularized Encoder-Decoder

Zihao Fu, Wai Lam|arXiv (Cornell University)|Apr 8, 2023
Topic Modeling被引用数 16
ひとこと要約

この論文は、デコーダーのみの言語モデルを用いた seq2seq タスクを Regularized Encoder-Decoder (RED) フレームワークで分析し、注意機構の退化を特定し、Partial Attention Language Model (PALM) を提案して翻訳、要約、データ-to-text タスクで性能を向上させる。

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 language models directly to the seq2seq task. Despite the significant advancements in applying language models to the seq2seq task, there is still a lack of thorough analysis on the effectiveness of the decoder-only language model architecture. This paper aims to address this gap by conducting a detailed comparison between the encoder-decoder architecture and the decoder-only language model framework through the analysis of a regularized encoder-decoder structure. This structure is designed to replicate all behaviors in the classical decoder-only language model 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 language model, 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 language model 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.

研究の動機と目的

  • エンコーダ-デコーダアーキテクチャとデコーダーのみ言語モデルを seq2seq タスクで丁寧に比較する動機付け。
  • デコーダーのみモデルにおける注意機構の退化問題と、それがソース注意に与える影響の特徴づけ。
  • 公正な比較を可能にする正則化エンコーダ-デコーダ(RED)フレームワークを開発し、その構成要素を分析。
  • PALM を提案して退化を緩和しつつ LM の利点を活用。
  • 機械翻訳、要約、データ-to-text ジェネレーションのデータセットで PALM を実証的に検証。

提案手法

  • 公平な比較のために encoder を用いた LM の挙動を再現する正則化エンコーダ-デコーダ(RED)フレームワークを定義。
  • unidirectional cross attention を導入、Source Auto-Encoder (SAE)、パラメータ共有、層ごとの協調、連続的位置エンコーディングを導入して RED 内で LM の挙動を模倣。
  • 注意機構の感度(ヤコビアン境界)を理論的に分析し、単方向クロスアテンションにおける退化を説明。
  • PALM は、ソースに焦点を当てた PA アテンション分岐を追加し、生成長に対して固定、双方向ソースアテンションと別個の位置エンコーディングを使用して退化を緩和する。
  • PALM の変種とアブレーション(例: PALM w/o SAE)を提供して構成要素の影響を切り分け。
  • MT、要約、データ-to-text タスクを標準指標(BLEU、ROUGE、METEOR、CIDEr、NIST)で評価。
Figure 1: Encoder-Decoder (ED) framework and decoder-only Language Model (LM).
Figure 1: Encoder-Decoder (ED) framework and decoder-only Language Model (LM).

実験結果

リサーチクエスチョン

  • RQ1デコーダーのみ LM アーキテクチャは seq2seq タスクで ED を本質的に下回るのか、それとも正則化された LM 風の構造がギャップを埋められるのか?
  • RQ2LM ベースの seq2seq モデルにおける注意の退化は何が原因で、生成ステップごとにソース注意の感度へどう影響するのか?
  • RQ3PALM アーキテクチャは退化を緩和しつつ LM の利点を維持できるのか?
  • RQ4RED/PALM の変種は、ED および LM のベースラインと比較して MT、要約、データ-to-text のベンチマークでどう機能するか?

主な発見

モデルDe-EnEn-DeIt-EnEn-ItEn-FrEs-EnEn-EsRu-EnEn-RuHe-EnEn-HeRo-EnEn-Ro平均パラメータ数
ED34.1828.0031.9629.4240.8640.9937.5323.0918.2038.0925.4138.1428.3031.8647.1M
LM33.1926.4330.9228.6439.1639.3336.6722.2517.5334.8124.3535.5127.0230.4529.3M
LM-SPE33.3527.3531.3628.8739.9339.6936.9921.8917.9834.8924.8035.1927.7230.7729.3M
LM-LE33.5827.4631.3829.0340.1439.8737.0522.2418.0834.8024.3135.7627.9630.9029.3M
LM-PA34.5428.3532.0129.7040.1540.5837.2422.9818.4535.6425.3737.3528.0231.5735.6M
PreLM33.9027.8831.7729.3540.5340.4137.4622.8018.1135.9624.7837.5528.1131.4329.3M
PALM34.7328.5932.2229.8340.3140.9137.6123.2718.7437.0025.2937.5928.7531.9135.6M
PALM w/o SAE34.0328.3031.8329.4239.8740.6537.2522.2117.9237.0624.8937.0928.4031.4635.6M
  • LMは注意の退化により ED を下回る。生成ステップが進むにつれソースへの注意が減る。
  • 理論的な上界は、単方向クロスアテンションがターゲットが大きくなるにつれてソース入力への感度が小さくなることを示し、退化を説明する。
  • PALM は、生成長に依存せず固定される PA アテンション経路を追加し、双方向のソースアテンションと別個の位置エンコーディングを用いることで退化を緩和。
  • PALM は一貫して LM および LM バリアントを上回り、報告されたベンチマークで ED の性能に近づくまたは上回る。
  • PALM は IWSLT’14 の平均 BLEU を LM-PA ベースライン(31.57)および ED(31.86)より高い 31.91 を達成(表1)。さらに WebNLG、E2E、XSUM データセットで METEOR、ROUGE-L、CIDEr、NIST の指標が有利に改善(表4-6)。
  • Ablations は SAE が性能に寄与することを示し、PALM w/o SAE は LM レベルへ結果を低下。
  • このアプローチは ED および LM ベースラインに比べてパラメータ数を削減しつつ、優れたまたは競合する性能を提供。
Figure 2: Encoder-Decoder framework (left) and Regularized Encoder-Decoder framework (right).
Figure 2: Encoder-Decoder framework (left) and Regularized Encoder-Decoder framework (right).

より良い研究を、今すぐ始めましょう

論文設計から論文執筆まで、研究時間を劇的に削減しましょう。

クレジットカード登録不要

このレビューはAIが作成し、人間の編集者が確認しました。