Attention Normalization Impacts Cardinality Generalization in Slot Attention

Markus Krimmel, Jan Achterhold, Joerg Stueckler
7/4/2024
cs.CV

No official code found. Best implementation: EmbodiedVision/slot_attention_normalization (2 stars, last commit 2024-10-03).

Abstract

Object-centric scene decompositions are important representations for downstream tasks in fields such as computer vision and robotics. The recently proposed Slot Attention module, already leveraged by several derivative works for image segmentation and object tracking in videos, is a deep learning component which performs unsupervised object-centric scene decomposition on input images. It is based on an attention architecture, in which latent slot vectors, which hold compressed information on objects, attend to localized perceptual features from the input image. In this paper, we demonstrate that design decisions on normalizing the aggregated values in the attention architecture have considerable impact on the capabilities of Slot Attention to generalize to a higher number of slots and objects as seen during training. We propose and investigate alternatives to the original normalization scheme which increase the generalization capabilities of Slot Attention to varying slot and object counts, resulting in performance gains on the task of unsupervised image segmentation. The newly proposed normalizations represent minimal and easy to implement modifications of the usual Slot Attention module, changing the value aggregation mechanism from a weighted mean operation to a scaled weighted sum operation.

View on arXivView PDF

Code Implementations(1)

Source code for the article (Krimmel, M., Achterhold J, Stueckler, J.): "Attention Normalization Impacts Cardinality Generalization in Slot Attention", in TMLR, 2024

20PythonAug 27, 20242 years agoNOASSERTION

Similar Papers

Cite this paper

@article{krimmel2024attention,
  title  = {Attention Normalization Impacts Cardinality Generalization in Slot Attention},
  author = {Markus Krimmel and Jan Achterhold and Joerg Stueckler},
  year   = {2024},
  eprint = {2407.04170},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.04170v2}
}

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

Discussion