CVLGOct 6, 2021

Ripple Attention for Visual Perception with Sub-quadratic Complexity

arXiv:2110.02453v24 citations
AI Analysis

This work addresses the challenge of preserving spatial locality in vision transformers for computer vision applications, representing an incremental improvement over existing efficient attention methods.

The paper tackles the problem of spatial locality loss in vision transformers by proposing ripple attention, a sub-quadratic attention mechanism that incorporates 2D spatial distances, achieving improved performance on various visual tasks as demonstrated in experiments.

Transformer architectures are now central to sequence modeling tasks. At its heart is the attention mechanism, which enables effective modeling of long-term dependencies in a sequence. Recently, transformers have been successfully applied in the computer vision domain, where 2D images are first segmented into patches and then treated as 1D sequences. Such linearization, however, impairs the notion of spatial locality in images, which bears important visual clues. To bridge the gap, we propose ripple attention, a sub-quadratic attention mechanism for vision transformers. Built upon the recent kernel-based efficient attention mechanisms, we design a novel dynamic programming algorithm that weights contributions of different tokens to a query with respect to their relative spatial distances in the 2D space in linear observed time. Extensive experiments and analyses demonstrate the effectiveness of ripple attention on various visual tasks.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes