paper-with-me

Papers

Dynamic Position Encoding for Transformers

2022-04-18 · COLING 2022 10 · Joyce Zheng, Mehdi Rezagholizadeh, Peyman Passban

Recurrent models have been dominating the field of neural machine translation (NMT) for the past few years. Transformers \citep{vaswani2017attention}, have radically changed it by proposing a novel architecture that relies on a feed-forward backbone and self-attention mechanism. Although Transformers are powerful, they could fail to properly encode sequential/positional information due to their non-recurrent nature. To solve this problem, position embeddings are defined exclusively for each time step to enrich word information. However, such embeddings are fixed after training regardless of the task and the word ordering system of the source or target language. In this paper, we propose a novel architecture with new position embeddings depending on the input text to address this shortcoming by taking the order of target words into consideration. Instead of using predefined position embeddings, our solution generates new embeddings to refine each word's position information. Since we do not dictate the position of source tokens and learn them in an end-to-end fashion, we refer to our method as dynamic position encoding (DPE). We evaluated the impact of our model on multiple datasets to translate from English into German, French, and Italian and observed meaningful improvements in comparison to the original Transformer.

📄 PDF Abstract BibTeX arXiv:2204.08142

Code (0)

등록된 구현이 없습니다.

Tasks

Machine TranslationNMTPosition

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Adam 설명 없음
Residual Connection 설명 없음

Similar Papers 제목 키워드 기반

DyWPE: Signal-Aware Dynamic Wavelet Positional Encoding for Time Series Transformers

2025-09-18 · Habib Irani, Vangelis Metsis arxiv

Existing positional encoding methods in transformers are fundamentally signal-agnostic, deriving positional information solely from sequence indices while ignoring the underlying signal characteristics. This limitation i…

Time Series Analysis

Conditional Positional Encodings for Vision Transformers

2021-02-22 · Xiangxiang Chu, Zhi Tian, Bo Zhang, Xinlong Wang 외

We propose a conditional positional encoding (CPE) scheme for vision Transformers. Unlike previous fixed or learnable positional encodings, which are pre-defined and independent of input tokens, CPE is dynamically genera…

AutoMLClassificationGeneral Classificationimage-classification+3

A 2D Semantic-Aware Position Encoding for Vision Transformers

2025-05-14 · Xi Chen, Shiyang Zhou, Muqi Huang, Jiaxu Feng 외

Vision transformers have demonstrated significant advantages in computer vision tasks due to their ability to capture long-range dependencies and contextual relationships through self-attention. However, existing positio…

PositionSemantic SimilaritySemantic Textual SimilarityTranslation

Comparing Graph Transformers via Positional Encodings

2024-02-22 · Mitchell Black, Zhengchao Wan, Gal Mishne, Amir Nayyeri 외

The distinguishing power of graph transformers is closely tied to the choice of positional encoding: features used to augment the base transformer with information about the graph. There are two primary types of position…

Navigate

Theoretical Analysis of Hierarchical Language Recognition and Generation by Transformers without Positional Encoding

2024-10-16 · Daichi Hayakawa, Issei Sato

In this study, we provide constructive proof that Transformers can recognize and generate hierarchical language efficiently with respect to model size, even without the need for a specific positional encoding. Specifical…