Translution: Unifying Self-attention and Convolution for Adaptive and Relative Modeling

Hehe Fan, Yi Yang, Mohan Kankanhalli, Fei Wu
10/11/2025
cs.LGcs.AIcs.CL
transformer-attention

Official code: hehefan/Translution (142 stars, Python, MIT, last commit 2026-02-07).

Abstract

When modeling a given type of data, we consider it to involve two key aspects: 1) identifying relevant elements (e.g., image pixels or textual words) to a central element, as in a convolutional receptive field, or to a query element, as in self-attention, and 2) encoding these tokens effectively. Self-attention can adaptively identify these elements but relies on absolute positional embedding for structural representation learning.

Show full abstract

In contrast, convolution encodes elements in a relative manner, yet their fixed kernel size limits their ability to adaptively select the relevant elements. In this paper, we introduce Translution, an operation that unifies the adaptive identification capability of self-attention and the relative encoding advantage of convolution. However, this integration leads to a substantial increase in the number of parameters, exceeding most currently available computational resources. Therefore, we propose a lightweight variant of Translution, named α-Translution. Experiments on computer vision and natural language processing tasks show that Translution (including α-Translution) achieves superior accuracy compared to self-attention. The code is available at https://github.com/hehefan/Translution.

View on arXivView PDF

Code Implementations(1)

MIT
14225Python, ShellAug 14, 20259 months agoMIT

Similar Papers

Cite this paper

@article{fan2025translution,
  title  = {Translution: Unifying Self-attention and Convolution for Adaptive and Relative Modeling},
  author = {Hehe Fan and Yi Yang and Mohan Kankanhalli and Fei Wu},
  year   = {2025},
  eprint = {2510.10060},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.10060v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.10060.svg)](https://codeofpaper.com/paper/2510.10060)

Discussion