Skip to main content
QUICK REVIEW

[Paper Review] IA-RED$^2$: Interpretability-Aware Redundancy Reduction for Vision Transformers

Bowen Pan, Rameswar Panda|arXiv (Cornell University)|Jun 23, 2021
Explainable Artificial Intelligence (XAI)Computer Science64 references68 citations
TL;DR

IA-RED2 introduces an interpretable, input-dependent redundancy reduction for vision transformers that dynamically drops uninformative patches, achieving up to 1.4x image speed-up and 4x video speed-up with minimal accuracy loss (<0.7%).

ABSTRACT

The self-attention-based model, transformer, is recently becoming the leading backbone in the field of computer vision. In spite of the impressive success made by transformers in a variety of vision tasks, it still suffers from heavy computation and intensive memory costs. To address this limitation, this paper presents an Interpretability-Aware REDundancy REDuction framework (IA-RED$^2$). We start by observing a large amount of redundant computation, mainly spent on uncorrelated input patches, and then introduce an interpretable module to dynamically and gracefully drop these redundant patches. This novel framework is then extended to a hierarchical structure, where uncorrelated tokens at different stages are gradually removed, resulting in a considerable shrinkage of computational cost. We include extensive experiments on both image and video tasks, where our method could deliver up to 1.4x speed-up for state-of-the-art models like DeiT and TimeSformer, by only sacrificing less than 0.7% accuracy. More importantly, contrary to other acceleration approaches, our method is inherently interpretable with substantial visual evidence, making vision transformer closer to a more human-understandable architecture while being lighter. We demonstrate that the interpretability that naturally emerged in our framework can outperform the raw attention learned by the original visual transformer, as well as those generated by off-the-shelf interpretation methods, with both qualitative and quantitative results. Project Page: http://people.csail.mit.edu/bpan/ia-red/.

Motivation & Objective

  • Motivate reducing redundant computation in vision transformers to improve efficiency without sacrificing interpretability.
  • Propose a dynamic, interpretable module that discards uninformative input patches conditioned on per-input significance.
  • Extend IA-RED to a hierarchical framework to prune tokens at multiple transformer stages.
  • Demonstrate model-agnostic applicability across image and video tasks and across different backbones.

Proposed method

  • Introduce a multi-head interpreter that assigns an informative score to each patch token.
  • Drop tokens with scores below a threshold to reduce input sequence length before MSA/FFN blocks.
  • Train interpreters in a hierarchical, curriculum-based scheme on a pre-trained ViT, using REINFORCE with a reward balancing accuracy and efficiency.
  • Aggregate interpretability signals over layers to produce patch-level heatmaps (visual evidence).
  • Compare against baselines (random, MemNet, raw attention) and data-dependent sparse transformers in terms of speed, accuracy, and interpretability metrics.

Experimental results

Research questions

  • RQ1How much redundancy in vision transformers can be safely removed per input without harming accuracy?
  • RQ2Can interpretability emerge as a byproduct of efficiency-driven token pruning?
  • RQ3Does the IA-RED2 framework generalize across image and video tasks and different transformer backbones?
  • RQ4What are the trade-offs between speedups and accuracy for hierarchical, input-dependent pruning?
  • RQ5How does IA-RED2 compare to existing interpretability methods on standard vision benchmarks?

Key findings

  • Achieves up to 1.4x speed-up on image recognition with DeiT and less than 0.7% accuracy loss.
  • Achieves up to 4x acceleration on video action recognition with TimeSformer while largely maintaining accuracy.
  • IA-RED2 produces interpretable heatmaps that can outperform raw attention and GradCAM in weakly-supervised segmentation on ImageNet-Seg (pixel accuracy 70.36, mAcc 64.86, mIoU 49.42).
  • In ablations, 3-group IA-RED2 (D=3) offers a favorable accuracy-speed trade-off on ImageNet-1K (Top-1 79.1%).
  • When combined with weight pruning, IA-RED2 yields a 1.7x speed-up with only 1.7% accuracy drop without finetuning.
  • Data-level redundancy reduction is complementary to model-level pruning, providing additive gains when combined.

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.