Grid Partitioned Attention: Efficient TransformerApproximation with Inductive Bias for High Resolution Detail Generation

Nikolay Jetchev, Gökhan Yildirim, Christian Bracher, Roland Vollgraf
7/8/2021
cs.CVcs.LG

Official code: zalandoresearch/gpa (5 stars, Python, last commit 2021-07-08).

Abstract

Attention is a general reasoning mechanism than can flexibly deal with image information, but its memory requirements had made it so far impractical for high resolution image generation. We present Grid Partitioned Attention (GPA), a new approximate attention algorithm that leverages a sparse inductive bias for higher computational and memory efficiency in image domains: queries attend only to few keys, spatially close queries attend to close keys due to correlations.

Show full abstract

Our paper introduces the new attention layer, analyzes its complexity and how the trade-off between memory usage and model power can be tuned by the hyper-parameters.We will show how such attention enables novel deep learning architectures with copying modules that are especially useful for conditional image generation tasks like pose morphing. Our contributions are (i) algorithm and code1of the novel GPA layer, (ii) a novel deep attention-copying architecture, and (iii) new state-of-the art experimental results in human pose morphing generation benchmarks.

View on arXivView PDF

Code Implementations(1)

50PythonJul 8, 20215 years ago

Similar Papers

Cite this paper

@article{jetchev2021grid,
  title  = {Grid Partitioned Attention: Efficient TransformerApproximation with Inductive Bias for High Resolution Detail Generation},
  author = {Nikolay Jetchev and Gökhan Yildirim and Christian Bracher and Roland Vollgraf},
  year   = {2021},
  eprint = {2107.03742},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.03742}
}

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

Discussion