PhaseWin: An Efficient Search Algorithm for Faithful Visual Attribution

Zihan Gu, Junchi Zhang, Li Liu, Xiaochun Cao, Hua ZhangarXiv 2026

TL;DR

PhaseWin is a novel subset-search algorithm that slashes the computational cost of faithful visual attribution from quadratic $O(n^2)$ to linear $O(n)$ model evaluations. By replacing exhaustive global rescoring with a phased, coarse-to-fine window search, it delivers near-greedy explanation quality at a fraction of the time, making high-quality black-box interpretability practical for large vision-language models.

What Problem Does This Paper Address?

Visual attribution is the process of explaining why a vision model made a specific prediction by identifying and ranking the most responsible image regions. While fast gradient-based methods exist, perturbation- and search-based methods (like greedy subset search) offer much stronger "faithfulness" because they directly test how the model responds when visual evidence is progressively inserted or removed.

However, standard greedy search suffers from a massive computational bottleneck: it requires a quadratic number of model evaluations ($O(n^2)$) because it re-evaluates every single remaining image region at every step of the ranking process. This cost becomes prohibitive when dealing with modern, multi-billion-parameter vision-language models (VLMs) or dense image partitions. Furthermore, previous works often justified greedy search using submodular optimization theory, but this paper reveals a theoretical gap—the standard metrics used to balance a region's sufficiency and necessity are fundamentally not submodular.

Methods

The authors introduce PhaseWin (Phase-Window Accelerated Search), an algorithm that breaks the quadratic bottleneck by organizing the region search into repeated, coarse-to-fine phases. Instead of rescoring every remaining candidate globally at every step, PhaseWin alternates between global screening and localized refinement:

  1. Global Anchor Selection: A single global scan computes the marginal gains for all remaining regions, selecting the highest-gain candidate as the "phase anchor."
  2. Fixed-Ratio Pruning: Using the anchor's performance as a reference, the remaining candidates are split into three groups: a high-potential pool, a deferred pool (saved for the next phase), and a discarded pool. This prevents obviously weak candidates from being repeatedly evaluated.
  3. Windowed Local Refinement: The algorithm slides a fixed-size window over the high-potential pool, performing fine-grained re-evaluations locally rather than globally.
  4. Accept or Defer: It accepts the best local candidates or defers ambiguous ones using an annealing delay mechanism to encourage local exploration.

By limiting exact re-evaluations to a small local window, PhaseWin reduces the overall evaluation complexity to a controllable linear scale ($O(n)$).

Fig. 1. Overview of PhaseWin for efficient high-faithfulness visual attribution. From left to right, an input image is partitioned into candidate regions, and a target response is obtained from a vision or vision–language model. Conventional greedy subset search repeatedly rescores all remaining candidates and therefore incurs quadratic evaluation cost. PhaseWin replaces exhaustive global rescoring with phased subset search, including anchoring, screening and pruning, local window refinement, and accept-or-defer decisions. The resulting importance ranking induces a saliency map that can be used for classification, grounding or detection, and caption attribution.
PhaseWin workflow showing external and internal loops

Datasets

The authors validated PhaseWin across three distinct tasks using a variety of architectures:

  • Image Classification: Evaluated on the ImageNet-1K validation set using CLIP ViT-L/14, CLIP RN101, and ResNet-101.
  • Object Detection & Visual Grounding (REC): Evaluated on MS COCO, LVIS v1 (rare categories for zero-shot detection), and RefCOCO using Grounding DINO and Florence-2.
  • Multimodal Attribution: Evaluated token-level caption attribution on MS COCO Captions using Qwen2.5-VL-3B and 7B-Instruct models.

Key Insights and Ideas

  • The Impossibility of Global Submodularity: The authors mathematically prove that the standard "sufficiency-necessity" proxy used in visual attribution cannot be a non-degenerate submodular function. This upends previous theoretical assumptions and explains why classical greedy guarantees fail here.
  • The "Partition-Dominant" Framework: To replace submodularity, the authors model visual evidence accumulation as a block-activation problem. The core intuition is that the largest boost in model confidence comes from discovering a brand-new semantic block (e.g., finding an object's head), while adding more pixels within an already discovered block yields diminishing returns. PhaseWin exploits this by using global scans only to detect new semantic blocks and local windows to refine within them.

Key Results

  • True Linear Complexity: PhaseWin empirically demonstrates a reduction from $O(n^2)$ to $O(n)$ model evaluations as the number of image regions increases.
  • Near-Greedy Faithfulness: Across classification tasks, PhaseWin retains roughly 92.5% of Greedy’s Insertion AUC and 96.6% of its Average Highest score while cutting model evaluations in half (an average 1.91× speedup).
  • Massive Speedups on Heavy Models: For object detection using Grounding DINO on MS COCO, PhaseWin reduced the average number of model evaluations from 2548.8 to 536.8 (a 4.7× reduction) while maintaining highly competitive insertion scores. On zero-shot detection tasks (LVIS), speedups exceeded 20×.
  • Outperforming Non-Search Baselines: PhaseWin consistently outperformed popular non-search methods like RISE, HSIC, and Grad-CAM on standard faithfulness metrics, proving that it successfully preserves the high-fidelity behavior of greedy search.

Limitations and Future Work

  • Boundary/Pathological Cases: In about 13.1% of image classification cases, PhaseWin's performance deviated noticeably from Greedy. This occurs when local marginal rankings are highly unstable—typically when the initial superpixel partition fragments the model's preferred evidence too finely across multiple regions.
  • Future Directions: The authors demonstrated that this limitation can be mitigated by using a coarser initial superpixel partition. Future work could explore dynamically adjusting the window size or partition granularity based on local image context or real-time model confidence.

Summary updated

BibTeX
@misc{gu2026phasewin,
  author = {Zihan Gu and Junchi Zhang and Li Liu and Xiaochun Cao and Hua Zhang},
  title = {{PhaseWin: An Efficient Search Algorithm for Faithful Visual Attribution}},
  year = {2026},
  eprint = {2606.18008},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.18008},
}
Figure