TDAF: Top-Down Attention Framework for Vision Tasks

Bo Pang, Yizhuo Li, Jiefeng Li, Muchen Li, Hanwen Cao, Cewu Lu

Introduction

The Top-Down Attention Framework (TDAF) introduces a human-like "glimpse-then-focus" mechanism to deep learning. By utilizing a recursive nested structure, TDAF flows information from coarse, global views to detailed, local views. This approach consistently boosts performance across image classification, object detection, pose estimation, and action recognition with relatively low computational overhead.

The Bottom-Up Bottleneck

Most modern computer vision models operate in a bottom-up fashion, extracting local features like edges and textures before aggregating them into global concepts. In contrast, human vision often starts with a global "glimpse" to understand context, which then guides attention toward specific details. Standard attention mechanisms, such as Squeeze-and-Excitation blocks, are typically integrated into the bottom-up process, limiting their access to global information in early stages and resulting in trivial attention maps that fail to capture the true "part of interest."

Methodology

TDAF relies on two primary innovations:

  1. Recursive Dual-Directional Nested Structure (R2DNS): This structure uses vertical flows for standard bottom-up feature extraction and horizontal paths to carry attention information across recursive steps. Earlier steps receive downsampled, coarse images for global context, while later steps receive high-resolution versions for local detail.
  2. Attention Network across Recurrence (ANAR): Acting as a bridge between recursive steps, ANAR uses an hourglass-like encoder-decoder structure to generate soft attention masks. These masks gate information in the next recursive step, suppressing noise and highlighting important regions.

To stabilize training, the authors introduced Multi-Flow Batch Normalization (MFBN) and a "half-scale" residual learning shortcut to prevent attention masks from overly diminishing feature values.

Visualizing Recursive Refinement

A key insight of TDAF is the power of the "glimpse." By forcing the network to learn global relationships from a tiny version of the image first, the model creates a filter for subsequent high-resolution passes. This process is highly dynamic, as illustrated by the evolution of attention maps.

Progression of attention maps from coarse "Top" views to fine-grained "Down" views for different subjects.

As shown in the figure above, the attention maps evolve from broad, coarse blobs ("Top") to precise, fine-grained outlines of the subject ("Down"), demonstrating how the model literally "hones in" on the target through recursive refinement.

Key Results

TDAF demonstrated impressive universality across several benchmarks:

  • ImageNet: ResNet50 with TDAF achieved a 1.7% Top-1 accuracy improvement, even outperforming a standard ResNet101 despite having fewer parameters.
  • Object Detection: Applied to the FCOS detector, it improved Average Precision (AP) by 2.7%.
  • Pose Estimation: Boosted the SimplePose baseline by 1.6% AP on the COCO dataset.
  • Action Recognition: Achieved a 1.8% accuracy gain on Kinetics-400 using 3D-ResNet50.

Despite the recursive nature, the computational overhead remains manageable. For ResNet50, the latency increase is less than 25%, and for detection tasks, the total overhead is less than 10%.

Conclusion

TDAF successfully integrates top-down principles into CNN architectures, creating a more human-like feature extraction process. While the sequential nature of attention propagation presents a minor bottleneck for real-time applications, the significant accuracy gains across diverse tasks highlight its potential. Future work may explore integrating these recursive refinement principles into Vision Transformers (ViTs), which could further benefit from multi-scale recursive refinement.

Summary updated

BibTeX
@inproceedings{pang2021tdaf,
  author = {Bo Pang and Yizhuo Li and Jiefeng Li and Muchen Li and Hanwen Cao and Cewu Lu},
  title = {{TDAF: Top-Down Attention Framework for Vision Tasks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i3.16339},
}
Figure