Skip to main content
QUICK REVIEW

[Paper Review] Unifying Global-Local Representations in Salient Object Detection with Transformer

Sucheng Ren, Qiang Wen|arXiv (Cornell University)|Aug 5, 2021
Visual Attention and Saliency DetectionComputer Science52 references13 citations
TL;DR

This paper proposes GLSTR, a vision transformer-based framework that unifies global and local representations in salient object detection by leveraging self-attention mechanisms in shallow layers to preserve spatial details while capturing long-range dependencies. The method uses a deeply-transformed decoder with dense skip connections and gradual upsampling, achieving a 12.17% average improvement in Mean Absolute Error (MAE) over state-of-the-art methods across five benchmarks.

ABSTRACT

The fully convolutional network (FCN) has dominated salient object detection for a long period. However, the locality of CNN requires the model deep enough to have a global receptive field and such a deep model always leads to the loss of local details. In this paper, we introduce a new attention-based encoder, vision transformer, into salient object detection to ensure the globalization of the representations from shallow to deep layers. With the global view in very shallow layers, the transformer encoder preserves more local representations to recover the spatial details in final saliency maps. Besides, as each layer can capture a global view of its previous layer, adjacent layers can implicitly maximize the representation differences and minimize the redundant features, making that every output feature of transformer layers contributes uniquely for final prediction. To decode features from the transformer, we propose a simple yet effective deeply-transformed decoder. The decoder densely decodes and upsamples the transformer features, generating the final saliency map with less noise injection. Experimental results demonstrate that our method significantly outperforms other FCN-based and transformer-based methods in five benchmarks by a large margin, with an average of 12.17% improvement in terms of Mean Absolute Error (MAE). Code will be available at https://github.com/OliverRensu/GLSTR.

Motivation & Objective

  • To address the trade-off between global context and local detail preservation in fully convolutional networks (FCNs) for salient object detection.
  • To unify global and local representations within each layer of a deep network using self-attention mechanisms.
  • To overcome the limitations of CNN-based models that require deep stacks to achieve global context, often at the cost of losing fine-grained spatial details.
  • To design a novel decoder that fully exploits the unique, non-redundant representations from each transformer layer for improved saliency prediction.

Proposed method

  • Introduces a pure vision transformer encoder that processes image patches via linear projection and applies multi-head self-attention to learn global representations from the first layer.
  • Uses a global self-attention mechanism that allows each layer to attend to the entire feature map of the previous layer, enabling long-range dependency modeling even in shallow layers.
  • Proposes a deeply-transformed decoder that densely connects features from all transformer layers, preserving rich global-local representations across scales.
  • Employs a gradually upsampling strategy—8×, 4×, 2×—for features from different stages to minimize noise injection during decoding.
  • Applies dense skip connections across decoder stages to ensure that every transformer layer contributes uniquely to the final prediction.
  • Uses a learnable density setting to control the number of connections in the decoder, optimizing feature fusion efficiency.

Experimental results

Research questions

  • RQ1Can vision transformers effectively unify global and local representations in each layer for salient object detection, reducing the need for deep stacks of convolutional layers?
  • RQ2How does the self-attention mechanism in shallow transformer layers preserve local details while capturing global context?
  • RQ3To what extent does dense decoding of multi-scale transformer features improve saliency map accuracy compared to standard skip connections?
  • RQ4Does gradual upsampling during decoding reduce noise injection and enhance boundary localization in saliency maps?
  • RQ5Can a pure transformer-based encoder outperform CNN-based encoders in salient object detection benchmarks?

Key findings

  • GLSTR achieves a 12.17% average improvement in Mean Absolute Error (MAE) over state-of-the-art methods across five benchmark datasets.
  • The method outperforms SOTA models like GateNet and BASNet, with MAE of 0.029 on DUT-OMRON and 0.033 on DUTS-TE, significantly below previous methods.
  • The proposed gradually upsampling strategy outperforms naive 16× upsampling and 4×+4× strategies, especially under high-density decoding settings.
  • The dense decoder with four connection densities shows consistent performance gains, with the highest density (4) achieving the best results.
  • Inference speed of GLSTR (15 FPS on RTX 2080Ti) is comparable to other SOTA methods, demonstrating practical feasibility despite transformer’s computational cost.
  • Visual attention maps confirm that even the first transformer layer captures global context (e.g., full object structure), while deeper layers retain local details.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.