HyPE: Attention with Hyperbolic Biases for Relative Positional Encoding
Independent Researcher(独立研究者)
Giorgio Angelotti
备注:
8 pages. Independent Research. v2 corrects derivation notation and the causal ALiBi sign and parameter mapping, adds an explicit approximation error bound, and clarifies FlashAttention implementation requirements. The core two-coordinate hyperbolic factorization is retained
In Transformer-based architectures, unmasked self-attention without positional information is permutation-equivariant with respect to the input sequence's tokens. To impose sequential order, token positions are typically encoded using a scheme with either fixed or learnable parameters. We introduce Hyperbolic Positional Encoding (HyPE), a method that utilizes hyperbolic functions' properties to encode tokens' relative positions. This approach biases the attention mechanism without the necessity of storing the $O(L^2)$ values of the bias tensor, with $L$ being the length of the input sequence. HyPE leverages preliminary concatenation operations and matrix multiplications, encoding relative distances by indirectly incorporating biases into the softmax computation. This design supports gradient backpropagation through the encoding and can be used with FlashAttention-2 under the width and scaling conditions below. We analytically demonstrate that, by careful hyperparameter selection, HyPE can approximate the causal attention bias of ALiBi \citep{press2021train} on a bounded range; model generalization beyond the pretraining length remains to be evaluated. The experimental evaluation of HyPE is proposed as a direction for future research.
Deconstructing Positional Information: From Attention Logits to Training Biases
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院);Antai College of Economics and Management, Shanghai Jiao Tong University(上海交通大学安泰经济管理学院)
HSE University(俄罗斯国立高等经济大学);Lomonosov Moscow State University(莫斯科国立大学);Harbin Institute of Technology(哈尔滨工业大学);ISP RAS(俄罗斯科学院系统编程研究所);RANEPA(俄罗斯总统国民经济与公共管理学院);ITMO University(圣彼得堡国立信息技术机械与光学大学);Skoltech(斯科尔科沃科学技术研究院)
Graph Inductive Biases in Transformers without Message Passing
McGill University(麦吉尔大学);University of Oxford(牛津大学);Massachusetts Institute of Technology(麻省理工学院);MetaAI(Meta人工智能实验室);Mila - Quebec AI Institute(米拉-魁北克人工智能研究所);Canada CIFAR AI Chair(加拿大CIFAR人工智能讲席);FiveAI(FiveAI公司);International Laboratory on Learning Systems(国际学习系统实验室)
本文提出 GRIT,通过相对位置编码、节点对注意力和度信息注入,在无消息传递的情况下赋予 Graph Transformer 图归纳偏置,并取得理论表达力与 SOTA 性能。
Causality-Induced Positional Encoding for Transformer-Based Representation Learning of Non-Sequential Features
Department of Computer Science, Emory University(埃默里大学计算机科学系);School of Statistics and Mathematics, Zhongnan University of Economics and Law(中南财经政法大学统计与数学学院);School of Medicine, Department of Human Genetics, Emory University(埃默里大学医学院人类遗传学系)
Division of Mathematical Sciences, School of Physical and Mathematical Sciences, Nanyang Technological University(南洋理工大学物理与数学科学学院数学科学部);School of Computing, University of Kent(肯特大学计算机学院);Department of Computer Science and Technology, University of Cambridge(剑桥大学计算机科学与技术系)
Aalto University(阿尔托大学);University of Bologna(博洛尼亚大学);University of Gothenburg(哥德堡大学);Chalmers University of Technology(查尔姆斯理工大学);YaiYai Ltd(YaiYai有限公司)