ConvPE: Convolutional Position Embedding Improves Transformers
Abstract
ConvPE (Convolutional Position Embedding) improves both the performance and efficiency of Transformer models in language modeling, long-context extension, and vision. It injects a windowed, content-dependent bias into attention scores through a lightweight causal convolution over a low-dimensional projection of the hidden states. As a lightweight plug-in, ConvPE is compatible with RoPE, attention masks, and KV concatenation. It also supports high-dimensional position embeddings via high-dimensional convolutions. In a reproduction, ConvPE outperforms five 1D baselines and eight 2D baselines. The code is publicly available at https://github.com/wzhagi/convpe.
Create a lesson
Related papers
Improving Tail-Augmented Speculative Drafting with Hidden State Mixing and Gradient Detach
Shared title terminologycs.LGYaniv Galron, Rabeeh Karimi Mahabadi, Maor Ashkenazi et al.
Assessing the Physical Interpretability of AlphaEarth Foundation Embeddings Through Multi-Sensor Satellite Time-Series Benchmarking for Agricultural Mapping
Shared title terminologycs.LGEl Houcine El Moussaoui, Chouaib El Hachimi, Saïd Khabba et al.
Quaternion-Tucker ZigZag Networks: Halving Transformer Backbone Parameters and Enabling Exact 2D Zero-Loss Continual Scaling
Shared title terminologycs.LGShubham Barmase
DuoMI: Dual Mutual Information Regularization for Expert Reuse in Looped Transformers
Shared title terminologycs.LGXinlai Kang, Zhenhe Wu, Haoyu Wang et al.
FERRETS: A Scalable Symbolic Transform for Time Series Classification
Shared title terminologycs.LGAntoine Guillaume
Weight Scale Rebalancing: Transferable Training Recipes for Transformers
Shared title terminologycs.LGYikun Hou, Naomi Graham, Alp Yurtsever