paper-with-me

홈 › Papers

PaTH Attention: Position Encoding via Accumulating Householder Transformations

2025-05-22 · Songlin Yang, Yikang Shen, Kaiyue Wen, Shawn Tan, Mayank Mishra, Liliang Ren, Rameswar Panda, Yoon Kim

The attention mechanism is a core primitive in modern large language models (LLMs) and AI more broadly. Since attention by itself is permutation-invariant, position encoding is essential for modeling structured domains such as language. Rotary position encoding (RoPE) has emerged as the de facto standard approach for position encoding and is part of many modern LLMs. However, in RoPE the key/query transformation between two elements in a sequence is only a function of their relative position and otherwise independent of the actual input. This limits the expressivity of RoPE-based transformers. This paper describes PaTH, a flexible data-dependent position encoding scheme based on accumulated products of Householder(like) transformations, where each transformation is data-dependent, i.e., a function of the input. We derive an efficient parallel algorithm for training through exploiting a compact representation of products of Householder matrices, and implement a FlashAttention-style blockwise algorithm that minimizes I/O cost. Across both targeted synthetic benchmarks and moderate-scale real-world language modeling experiments, we find that PaTH demonstrates superior performance compared to RoPE and other recent baselines.

📄 PDF Abstract BibTeX arXiv:2505.16381

Code (2)

fla-org/flash-linear-attention 공식 구현 pytorch
sustcsonglin/flash-linear-attention 공식 구현 pytorch

Tasks

Language ModelingLanguage ModellingPosition

Methods 이 논문이 사용한 방법론

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$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Exploring the Limitations of Structured Orthogonal Dictionary Learning

2025-01-25 · Anirudh Dash, Aditya Siripuram

This work is motivated by recent applications of structured dictionary learning, in particular when the dictionary is assumed to be the product of a few Householder atoms. We investigate the following two problems: 1) Ho…

Dictionary Learning

Why Do Accumulated Transformations Extrapolate?

2026-06-23 · Mahesh Godavarti arxiv

PaTH Attention showed that replacing RoPE's position-indexed rotations with accumulated data-dependent Householder reflections yields strong length extrapolation, though performance degrades at extreme context lengths. W…

Generalized Classification of Satellite Image Time Series with Thermal Positional Encoding

2022-03-17 · Joachim Nyborg, Charlotte Pelletier, Ira Assent

Large-scale crop type classification is a task at the core of remote sensing efforts with applications of both economic and ecological importance. Current state-of-the-art deep learning methods are based on self-attentio…

Crop ClassificationTime SeriesTime Series Analysis

CRePE: Curved Ray Expectation Positional Encoding for Unified-Camera-Controlled Video Generation

2026-05-13 · Seonghyun Jin, Youngmin Kim, Sunwoo Park, Jong Chul Ye arxiv

Camera-conditioned video generation requires positional encoding that remains reliable under changes in camera motion, lens configuration, and scene structure. However, existing attention-level camera encodings either pr…

Video Generation

Communicability-Inspired Positional Encoding (CIPE)

2026-06-24 · Yipeng Zhang, Zhongtian Sun, Pietro Liò, Kelin Xia arxiv

Positional encodings (PEs) are essential for Transformers. Yet designing effective PEs for non-Euclidean graphs remains challenging. Such encodings should ideally induce an Attention-Compatible Geometry for self-attentio…