paper-with-me

Papers

Positional Encoding Helps Recurrent Neural Networks Handle a Large Vocabulary

2024-01-31 · Takashi Morita

This study reports an unintuitive finding that positional encoding enhances learning of recurrent neural networks (RNNs). Positional encoding is a high-dimensional representation of time indices on input data. Most famously, positional encoding complements the capabilities of Transformer neural networks, which lack an inherent mechanism for representing the data order. By contrast, RNNs can encode the temporal information of data points on their own, rendering their use of positional encoding seemingly redundant/unnecessary. Nonetheless, investigations through synthetic benchmarks reveal an advantage of coupling positional encoding and RNNs, especially for handling a large vocabulary that yields low-frequency tokens. Further scrutinization unveils that these low-frequency tokens destabilizes the gradients of vanilla RNNs, and the positional encoding resolves this instability. These results shed a new light on the utility of positional encoding beyond its canonical role as a timekeeper for Transformers.

📄 PDF Abstract BibTeX arXiv:2402.00236

Code (1)

tkc-morita/position-encoded_rnn 공식 구현 pytorch

Tasks

Time Series

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Position-Wise Feed-Forward Layer 설명 없음
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…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Residual Connection 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…

Similar Papers 제목 키워드 기반

Two Stones Hit One Bird: Bilevel Positional Encoding for Better Length Extrapolation

2024-01-29 · Zhenyu He, Guhao Feng, Shengjie Luo, Kai Yang 외

In this work, we leverage the intrinsic segmentation of language sequences and design a new positional encoding method called Bilevel Positional Encoding (BiPE). For each position, our BiPE blends an intra-segment encodi…

DisentanglementPosition

On the Relation between Position Information and Sentence Length in Neural Machine Translation

2019-11-01 · CONLL 2019 11 · Masato Neishi, Naoki Yoshinaga

Long sentences have been one of the major challenges in neural machine translation (NMT). Although some approaches such as the attention mechanism have partially remedied the problem, we found that the current standard N…

Machine TranslationNMTPositionRelation+2

Recurrent Memory-Augmented Transformers with Chunked Attention for Long-Context Language Modeling

2025-07-01 · Ankit Kashyap arxiv

We present a Transformer architecture for long-context language modeling that combines global attention with two biologically inspired components: chunked local attention and a gated FIFO memory mechanism. This unified a…

Code Completion

Round and Round We Go! What makes Rotary Positional Encodings useful?

2024-10-08 · Federico Barbero, Alex Vitvitskyi, Christos Perivolaropoulos, Razvan Pascanu 외

Positional Encodings (PEs) are a critical component of Transformer-based Large Language Models (LLMs), providing the attention mechanism with important sequence-position information. One of the most popular types of enco…

A Morphology-Based Investigation of Positional Encodings

2024-04-06 · Poulami Ghosh, Shikhar Vashishth, Raj Dabre, Pushpak Bhattacharyya

Contemporary deep learning models effectively handle languages with diverse morphology despite not being directly integrated into them. Morphology and word order are closely linked, with the latter incorporated into tran…

Dependency Parsingnamed-entity-recognitionNamed Entity RecognitionNatural Language Inference+1