EcoTransformer: Attention without Multiplication

Xin Gao, Xingming Xu, Shirin Amiraslani, Hong Xu
7/27/2025
cs.LGcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

The Transformer, with its scaled dot-product attention mechanism, has become a foundational architecture in modern AI. However, this mechanism is computationally intensive and incurs substantial energy costs. We propose a new Transformer architecture EcoTransformer, in which the output context vector is constructed as the convolution of the values using a Laplacian kernel, where the distances are measured by the L1 metric between the queries and keys. Compared to dot-product based attention, the new attention score calculation is free of matrix multiplication. It performs on par with, or even surpasses, scaled dot-product attention in NLP, bioinformatics, and vision tasks, while consuming significantly less energy. (This version (v2) supersedes v1 and reflects the intended release and licensing.)

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gao2025ecotransformer,
  title  = {EcoTransformer: Attention without Multiplication},
  author = {Xin Gao and Xingming Xu and Shirin Amiraslani and Hong Xu},
  year   = {2025},
  eprint = {2507.20096},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.20096v2}
}

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/2507.20096.svg)](https://codeofpaper.com/paper/2507.20096)

Discussion