Exploring the Integration of Key-Value Attention Into Pure and Hybrid Transformers for Semantic Segmentation

DeShin Hwa, Tobias Holmes, Klaus Drechsler
3/24/2025
cs.CVcs.AIcs.LG

No confident code implementation found for this paper. 7 possible matches can be shown below.

Abstract

While CNNs were long considered state of the art for image processing, the introduction of Transformer architectures has challenged this position. While achieving excellent results in image classification and segmentation, Transformers remain inherently reliant on large training datasets and remain computationally expensive. A newly introduced Transformer derivative named KV Transformer shows promising results in synthetic, NLP, and image classification tasks, while reducing complexity and memory usage. This is especially conducive to use cases where local inference is required, such as medical screening applications. We endeavoured to further evaluate the merit of KV Transformers on semantic segmentation tasks, specifically in the domain of medical imaging. By directly comparing traditional and KV variants of the same base architectures, we provide further insight into the practical tradeoffs of reduced model complexity. We observe a notable reduction in parameter count and multiply accumulate operations, while achieving similar performance from most of the KV variant models when directly compared to their QKV implementation.

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. 7 weaker matches are hidden by default — 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{hwa2025exploring,
  title  = {Exploring the Integration of Key-Value Attention Into Pure and Hybrid Transformers for Semantic Segmentation},
  author = {DeShin Hwa and Tobias Holmes and Klaus Drechsler},
  year   = {2025},
  eprint = {2503.18862},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.18862v1}
}

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

Discussion