# ConvPE: Convolutional Position Embedding Improves Transformers

DevFeed: [ConvPE: Convolutional Position Embedding Improves Transformers](<https://devfeed.tech/articles/convpe-convolutional-position-embedding-improves-transformers-120660.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.07749>)

Author: Zehao Wang

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Transformer](<https://devfeed.tech/topics/transformer.md>), [Transformers](<https://devfeed.tech/topics/transformers.md>)

Tags: [attention](<https://devfeed.tech/tags/attention.md>), [bias](<https://devfeed.tech/tags/bias.md>), [content](<https://devfeed.tech/tags/content.md>), [context](<https://devfeed.tech/tags/context.md>), [convolution](<https://devfeed.tech/tags/convolution.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [embedding](<https://devfeed.tech/tags/embedding.md>), [language](<https://devfeed.tech/tags/language.md>), [long-context](<https://devfeed.tech/tags/long-context.md>), [masks](<https://devfeed.tech/tags/masks.md>), [modeling](<https://devfeed.tech/tags/modeling.md>), [models](<https://devfeed.tech/tags/models.md>), [performance](<https://devfeed.tech/tags/performance.md>), [plug](<https://devfeed.tech/tags/plug.md>), [position](<https://devfeed.tech/tags/position.md>), [projection](<https://devfeed.tech/tags/projection.md>), [reproduction](<https://devfeed.tech/tags/reproduction.md>), [rope](<https://devfeed.tech/tags/rope.md>), [transformer](<https://devfeed.tech/tags/transformer.md>), [transformers](<https://devfeed.tech/tags/transformers.md>)

## AI overview

ConvPE adds a windowed, content-dependent bias to Transformer attention scores using a lightweight causal convolution over a low-dimensional projection of hidden states. The abstract reports improved performance and efficiency in language modeling, long-context extension, and vision, and says ConvPE is compatible with RoPE, attention masks, and KV concatenation. It also supports high-dimensional position embeddings through high-dimensional convolutions. In a reported reproduction, it outperformed five 1D and eight 2D baselines; the excerpt gives no further experimental details.

## Source excerpt

arXiv:2611.07749v1 Announce Type: new 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.