Expectation-Maximization Attention Networks for Semantic Segmentation
Xia Li, Zhisheng Zhong, Jianlong Wu, Yibo Yang, Zhouchen Lin, Hong Liu
TL;DR
The paper tackles the high computational cost of self-attention for semantic segmentation by reframing attention as an Expectation-Maximization (EM) process. It introduces EMA to iteratively learn a compact basis set and reconstruct features via a low-rank representation, leading to reduced complexity from $O(N^2)$ to $O(NKT)$ and improved robustness. The EMA Unit (EMAU) integrates this mechanism into CNNs with stability-enhancing bases maintenance and normalization, achieving state-of-the-art results on PASCAL VOC, PASCAL Context, and COCO Stuff with favorable efficiency. The work demonstrates that EM-driven attention can capture salient semantics with interpretable, semantically meaningful bases, offering practical gains for large-scale semantic segmentation.
Abstract
Self-attention mechanism has been widely used for various tasks. It is designed to compute the representation of each position by a weighted sum of the features at all positions. Thus, it can capture long-range relations for computer vision tasks. However, it is computationally consuming. Since the attention maps are computed w.r.t all other positions. In this paper, we formulate the attention mechanism into an expectation-maximization manner and iteratively estimate a much more compact set of bases upon which the attention maps are computed. By a weighted summation upon these bases, the resulting representation is low-rank and deprecates noisy information from the input. The proposed Expectation-Maximization Attention (EMA) module is robust to the variance of input and is also friendly in memory and computation. Moreover, we set up the bases maintenance and normalization methods to stabilize its training procedure. We conduct extensive experiments on popular semantic segmentation benchmarks including PASCAL VOC, PASCAL Context and COCO Stuff, on which we set new records.
