Skip to main content
QUICK REVIEW

[論文レビュー] Rethinking Positional Encoding in Language Pre-training

Guolin Ke, Di He|arXiv (Cornell University)|Jun 28, 2020
Topic Modeling参考文献 31被引用数 67
ひとこと要約

TUPEは結び付けのない位置エンコーディングを提案し、単語の相関と位置の相関を分離し、CLSトークンを結び付けを解除することで、GLUEの性能を向上させ、事前学習をより高速化する。

ABSTRACT

In this work, we investigate the positional encoding methods used in language pre-training (e.g., BERT) and identify several problems in the existing formulations. First, we show that in the absolute positional encoding, the addition operation applied on positional embeddings and word embeddings brings mixed correlations between the two heterogeneous information resources. It may bring unnecessary randomness in the attention and further limit the expressiveness of the model. Second, we question whether treating the position of the symbol exttt{[CLS]} the same as other words is a reasonable design, considering its special role (the representation of the entire sentence) in the downstream tasks. Motivated from above analysis, we propose a new positional encoding method called extbf{T}ransformer with extbf{U}ntied extbf{P}ositional extbf{E}ncoding (TUPE). In the self-attention module, TUPE computes the word contextual correlation and positional correlation separately with different parameterizations and then adds them together. This design removes the mixed and noisy correlations over heterogeneous embeddings and offers more expressiveness by using different projection matrices. Furthermore, TUPE unties the exttt{[CLS]} symbol from other positions, making it easier to capture information from all positions. Extensive experiments and ablation studies on GLUE benchmark demonstrate the effectiveness of the proposed method. Codes and models are released at https://github.com/guolinke/TUPE.

研究の動機と目的

  • 言語事前学習における絶対位置エンコーディングと相対位置エンコーディングの再検討を動機づける。
  • 自己注意における単語と位置の相関を結び付けを解除する新しいTUPE手法を提案する。
  • CLSシンボルを通常の位置から切り離し、文全体情報をより適切に捉える。
  • BERT-Base設定全体でTUPEによるGLUEベンチマークの改善を示す。

提案手法

  • 自己注意内で、語の文脈相関と位置相関を別個の射影を用いて分けて計算する。
  • 語の埋め込みと絶対的位置埋め込みの入力レベルでの和を、注意機構内の別個の相関項に置き換える。
  • 学習可能なパラメータを用いて位置関連の相関をリセットし、CLSを結び付けから解く。
  • TUPE-A(untied absolute)とTUPE-R(untied with relative)という変種を提供する。
  • 効率のために層間で位置相関項を共有する。
  • BERT-BaseでGLUEを評価し、付録でBERT-LargeおよびELECTRAへの分析を拡張する。

実験結果

リサーチクエスチョン

  • RQ1結び付けを解除した別個の語と位置の相関は、標準の絶対/相対エンコーディングと比較してTransformerの事前学習を改善できるか。
  • RQ2CLSシンボルを通常の位置から切り離すことは、文レベルの表現を改善するか。
  • RQ3既存の相対エンコーディングと組み合わせた場合、TUPE-AとTUPE-Rは相補的な利点を提供するか。
  • RQ4TUPEがGLUEベンチマークの性能と事前学習の効率に与える影響は何か。

主な発見

手順MNLI-m/mmQNLIQQPSSTCoLAMRPCRTESTS平均
BERT-A1 M84.93/84.9191.3491.0492.8855.1988.2968.6189.4382.96
BERT-R1 M85.81/85.8492.1691.1292.9055.4389.2671.4688.9483.66
TUPE-A1 M86.05/85.9991.9291.1693.1963.0988.3771.6188.8884.47
TUPE-R1 M86.21/86.1992.1791.3093.2663.5689.8973.5689.2385.04
TUPE-A mid300 k84.76/84.8390.9691.0092.2562.1387.168.7988.1683.33
TUPE-R mid300 k84.86/85.2191.2391.1492.4162.4787.2969.8588.6383.68
TUPE-A tie-cls1 M85.91/85.7391.9091.0593.1759.4688.5369.5488.9783.81
BERT-A d1 M85.26/85.2891.5691.0292.7059.7388.4671.3187.4783.64
  • TUPE-AとTUPE-RはGLUEタスクでBERT-AおよびBERT-Rのベースラインを上回る。
  • TUPE-RはGLUEの平均85.04を達成し、BERT-Rの83.66に対し約1.38ポイントの改善。
  • TUPE-RはTUPE-Aより平均で0.57ポイント上回る。
  • TUPE-AとTUPE-Rは事前学習中の収束が速く、約30%の事前学習ステップでより良い下流性能を達成できる。
  • CLSの結び付け解除は低リソースタスク(例:CoLA、RTE)で顕著な利得をもたらし、結合を解かれた相関は高リソースタスク(例:MNLI)を助ける。
  • TUPEはパラメータを最小限に追加し(約BERT-Baseの1%程度)、追加計算コストもごくわずか; 位置項は層間で再利用可能。

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

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

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

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