We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.CL

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Computation and Language

Title: Rethinking Positional Encoding in Language Pre-training

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 \texttt{[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 \textbf{T}ransformer with \textbf{U}ntied \textbf{P}ositional \textbf{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 \texttt{[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 this https URL
Comments: update to ICLR's version
Subjects: Computation and Language (cs.CL); Machine Learning (cs.LG)
Journal reference: International Conference on Learning Representations (ICLR) 2021, https://openreview.net/forum?id=09-528y2Fgf
Cite as: arXiv:2006.15595 [cs.CL]
  (or arXiv:2006.15595v4 [cs.CL] for this version)

Submission history

From: Guolin Ke [view email]
[v1] Sun, 28 Jun 2020 13:11:02 GMT (408kb,D)
[v2] Tue, 30 Jun 2020 02:57:50 GMT (408kb,D)
[v3] Thu, 9 Jul 2020 02:53:21 GMT (469kb,D)
[v4] Mon, 15 Mar 2021 07:56:22 GMT (474kb,D)

Link back to: arXiv, form interface, contact.