mlsanityData to 7 Oct 2026

Number of Attention Heads vs Number of Transformer-Encoders in Computer Vision

arXiv 2209.07221 ↗First posted 15 Sep 2022cs.CV cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Determining an appropriate number of attention heads on one hand and the number of transformer-encoders, on the other hand, is an important choice for Computer Vision (CV) tasks using the Transformer architecture. Computing experiments confirmed the expectation that the total number of parameters has to satisfy the condition of overdetermination (i.e., number of constraints significantly exceeding the number of parameters). Then, good generalization performance can be expected. This sets the boundaries within which the number of heads and the number of transformers can be chosen. If the role of context in images to be classified can be assumed to be small, it is favorable to use multiple transformers with a low number of heads (such as one or two). In classifying objects whose class may heavily depend on the context within the image (i.e., the meaning of a patch being dependent on other patches), the number of heads is equally important as that of transformers.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 0 of its 12 references that are in the map. First posted on arXiv 15 Sep 2022.

Builds on

0 of 12 references.

No references here yet.

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 0; 2025: 1.

2 papers.