Skip to main content
QUICK REVIEW

[論文レビュー] In-context Learning as Maintaining Coherency: A Study of On-the-fly Machine Translation Using Large Language Models

Suzanna Sia, Kevin Duh|arXiv (Cornell University)|May 5, 2023
Topic ModelingComputer Science被引用数 3
ひとこと要約

この論文は、機械翻訳におけるコンテキスト内学習を、単に例から学ぶのではなく、文脈の整合性を保つこととして再定式化する。ドメインの一貫性と直前の翻訳の移動ウィンドウを用いた整合性評価により、著者らは整合性が翻訳性能を顕著に向上させることを示しており、3つのモデルと3つの言語方向で、類似度ベースの手法を最大2.6 BLEUポイント上回っている。

ABSTRACT

The phenomena of in-context learning has typically been thought of as "learning from examples". In this work which focuses on Machine Translation, we present a perspective of in-context learning as the desired generation task maintaining coherency with its context, i.e., the prompt examples. We first investigate randomly sampled prompts across 4 domains, and find that translation performance improves when shown in-domain prompts. Next, we investigate coherency for the in-domain setting, which uses prompt examples from a moving window. We study this with respect to other factors that have previously been identified in the literature such as length, surface similarity and sentence embedding similarity. Our results across 3 models (GPTNeo2.7B, Bloom3B, XGLM2.9B), and three translation directions ( exttt{en}$ ightarrow$\{ exttt{pt, de, fr}\}) suggest that the long-term coherency of the prompts and the test sentence is a good indicator of downstream translation performance. In doing so, we demonstrate the efficacy of In-context Machine Translation for on-the-fly adaptation.

研究の動機と目的

  • 機械翻訳におけるコンテキスト内学習を、例ベースの学習ではなく、整合性の維持問題として再定式化すること。
  • ドメインの一貫性と局所的整合性が、ゼロショットおよびリアルタイム設定における翻訳性能に与える影響を調査すること。
  • BM25、意味的類似度、長さ制御といった既存手法と比較して、整合性に基づくプロンプト選択の有効性を検証すること。
  • プロンプト干渉(肯定的および否定的)がゼロショットプロンプトと比較して性能に与える影響を評価すること。
  • 表面的類似度や意味的類似度と比較して、整合性がコンテキスト内MT性能の予測にどれほど優れているかを評価すること。

提案手法

  • 著者らは、ドキュメントレベルの翻訳において、各テスト文の直前に続くゴールドスタンダード翻訳の移動ウィンドウを用いて、局所的整合性を評価する。
  • 整合性に基づくプロンプト選択を、ランダムサンプリング、BM25、語彙カバレッジ付きBM25(BM25-s)、および最近傍検索(NN)検索というベースラインと比較する。
  • 性能は、3つのモデル(GPTNeo2.7B、Bloom3B、XGLM2.9B)と3つの翻訳方向(en→{pt, de, fr})におけるBLEUスコアで測定する。
  • プロンプト選択における長さバイアスの影響を分離するために、文の長さを制御する。
  • BLEUスコアの変化を比較することで、ゼロショットとプロンプト付き設定の間の干渉効果(肯定的および否定的)を分析する。
  • 「英語」と「フランス語」のラベルを含むプロンプトフォーマットを用い、代替の区切り文字も試したが、性能向上は得られなかった。
Figure 1: Factors identified and studied in this paper. Selecting from matching Domain increases coherence ( Appendix C ) and each domain has different length distributions ( subsection 5.2 ). Surface similarity and embedding similarity are associated ( Table 4 ). Surface similarity selection also r
Figure 1: Factors identified and studied in this paper. Selecting from matching Domain increases coherence ( Appendix C ) and each domain has different length distributions ( subsection 5.2 ). Surface similarity and embedding similarity are associated ( Table 4 ). Surface similarity selection also r

実験結果

リサーチクエスチョン

  • RQ1プロンプト例とテスト文との間の整合性を維持することで、コンテキスト内機械翻訳の性能が向上するか?
  • RQ2プロンプト例とテスト文との間のドメインの一貫性が翻訳品質に与える影響は何か?
  • RQ3直前のゴールド翻訳の移動ウィンドウが、類似度ベースのリtrievalと比較して、より優れたプロンプト選択戦略となるか?
  • RQ4コンテキスト内MTにおけるプロンプト選択において、整合性が表面的類似度や意味的類似度をどれほど上回るか?
  • RQ5プロンプト例を用いる際の干渉(肯定的および否定的)が、ゼロショットプロンプトと比較して性能に与える影響は何か?

主な発見

  • プロンプト例とテスト文との整合性は、翻訳性能の強力な予測要因であり、ドメインの一貫性が顕著に結果を改善する。
  • 移動ウィンドウ法は、すべてのモデルと翻訳方向で、類似度ベースのベースラインを最大2.6 BLEUポイント上回る。
  • ゼロショットと比較して、ウィンドウ法は最高の肯定的干渉割合(0.62)と最低の否定的干渉割合(0.29)を達成している。
  • テストセットと同じドメインからのプロンプト例が選ばれた場合、モデルの性能が向上するため、ドメインレベルの整合性が極めて重要である。
  • 長さ制御は必須であり、類似度メトリクスでは説明できない性能差は、多くの場合長さバイアスに起因しており、整合性がその影響を軽減する。
  • ゼロショットの能力が存在するにもかかわらず、プロンプト例を追加することで一般的に性能が向上し、整合性が否定的干渉を最小限に抑える鍵要因である。
Figure 2: Histograms of sentence lengths (word counts) randomly sampled from different domains, which has implications for the total prompt length when sampling from these domains. FLORES sentences tend to be nearly twice as long as MTNT and TED sentences.
Figure 2: Histograms of sentence lengths (word counts) randomly sampled from different domains, which has implications for the total prompt length when sampling from these domains. FLORES sentences tend to be nearly twice as long as MTNT and TED sentences.

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。