Skip to main content
QUICK REVIEW

[Paper Review] Dynamic Computational Time for Visual Attention

Zhichao Li, Yi Yang|arXiv (Cornell University)|Mar 30, 2017
Visual Attention and Saliency DetectionComputer Science51 references18 citations
TL;DR

This paper proposes Dynamic Time Recurrent Attention Model (DT-RAM), an extension of the Recurrent Visual Attention Model (RAM) that learns when to stop inference via reinforcement learning, enabling variable computational time per input. By adding a continue/stop action at each step, DT-RAM reduces average inference time by 40% on CUB-200-2011 while maintaining state-of-the-art accuracy of 81.8%.

ABSTRACT

We propose a dynamic computational time model to accelerate the average processing time for recurrent visual attention (RAM). Rather than attention with a fixed number of steps for each input image, the model learns to decide when to stop on the fly. To achieve this, we add an additional continue/stop action per time step to RAM and use reinforcement learning to learn both the optimal attention policy and stopping policy. The modification is simple but could dramatically save the average computational time while keeping the same recognition performance as RAM. Experimental results on CUB-200-2011 and Stanford Cars dataset demonstrate the dynamic computational model can work effectively for fine-grained image recognition.The source code of this paper can be obtained from https://github.com/baidu-research/DT-RAM

Motivation & Objective

  • To enable variable computational time during inference for visual attention models, adapting to input complexity.
  • To address the challenge of training deep reinforcement learning policies for dynamic stopping in recurrent attention networks.
  • To improve efficiency in fine-grained image recognition without sacrificing accuracy.
  • To explore curriculum learning and intermediate supervision as training stabilizers for long-sequence policy gradients.
  • To demonstrate that dynamic computation time leads to faster inference on easy examples while maintaining performance on hard ones.

Proposed method

  • Extend the standard RAM architecture with an additional binary action (continue/stop) at each time step.
  • Use reinforcement learning (REINFORCE) to jointly optimize the attention policy and stopping policy.
  • Apply curriculum learning by gradually increasing the maximum number of steps during pre-training of RAM.
  • Initialize DT-RAM with pre-trained RAM weights and fine-tune using policy gradient methods.
  • Introduce intermediate supervision at each time step to stabilize training for longer sequences.
  • Train end-to-end with policy gradient on a POMDP formulation where the agent decides when to stop attending.

Experimental results

Research questions

  • RQ1Can a recurrent visual attention model learn to dynamically adjust its inference time based on input complexity?
  • RQ2Does adding a learnable stopping policy improve computational efficiency without degrading recognition accuracy?
  • RQ3How effective are curriculum learning and intermediate supervision in training deep reinforcement learning policies for dynamic inference?
  • RQ4How does the distribution of stopping steps vary across different image difficulty levels in fine-grained recognition?
  • RQ5Can dynamic computation time lead to significant speedups on easy inputs while maintaining performance on hard ones?

Key findings

  • DT-RAM achieves 81.8% top-1 accuracy on the CUB-200-2011 dataset, matching the performance of standard RAM with 6 steps.
  • The average number of steps used by DT-RAM is 3.6, representing a 40% reduction in average computational cost compared to RAM with 6 steps.
  • On the Stanford Cars dataset, DT-RAM with a 3-step maximum achieves 81.8% accuracy with only 3.6 average steps.
  • The distribution of stopping steps on CUB-200-2011 shows that easy images are often classified in 1–2 steps, while harder images require up to 6 steps.
  • Using curriculum learning improves training stability and ensures performance increases with more steps, avoiding degradation seen in training from scratch.
  • Intermediate supervision significantly improves performance for longer sequences, with accuracy dropping to 74.7% without it when using 6 steps.

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.