cs.LGOct 3, 2026

DASH: Fast, Valid Counterfactuals for Deep Networks via Batched Directional Search

Authors: Shraman Pal, Gabriel Medeiros, Clayton Escouper das Chagas, Can Li

Organizations: Davidson School of Chemical Engineering, Purdue University, West Lafayette, IN 47907, USA · Computer Engineering Department, Instituto Militar de Engenharia, Rio de Janeiro - RJ, Brazil

Abstract

Counterfactual explanations are most useful when they can be generated with low latency, remain close to the factual input, and satisfy input-domain, categorical, and actionability constraints. Achieving these objectives simultaneously is challenging for deep neural networks. Heuristic methods are often fast but may return invalid counterfactuals, whereas exact methods can certify global proximity but may not finish within practical time limits. We introduce DASH, a batched heuristic search method for finding close, valid, and actionable counterfactuals for deep neural networks under ℓ1\ell_1, ℓ2\ell_2, and ℓ∞\ell_\infty objectives. DASH uses directional Lipschitz bounds and local affine models to generate anchors, then ranks and expands promising regions with batched network evaluations. We compare DASH against nine prior heuristic methods and time-limited exact mixed-integer baselines on four tabular datasets, with network depths from 2 to 32, and evaluate scalability on PBMC3k. Across 9,000 tabular query-norm cases, DASH returns a valid counterfactual within 5%5\% of the best heuristic-observed valid distance in 94.6%94.6\% of cases, with a median CPU search runtime of 0.0610.061 s. PGD-bisect, the baseline with the highest pooled within-5%5\% coverage, meets this criterion in 41.1%41.1\% of cases, with a median runtime of 0.2980.298 s. These results show that the proposed search maintains high valid proximity across norms while keeping its search runtime practical.

Figures & tables

Appendix figures & tables21 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. DISCOVER: A Solver for Distributional Counterfactual Explanations

    Mar 17, 2026Yikai Gu, Lele Cao, Bo Zhao +2Counterfactual ExplanationsBlack-Box Optimization

  2. FCx: An algorithm for finding Feasible Counterfactual Explanations

    Sep 16, 2026Kleopatra Markou, Vana Kalogeraki, Dimitrios GunopulosCounterfactual Explanations

  3. MaskDiME: Adaptive Masked Diffusion for Precise and Efficient Visual Counterfactual Explanations

    Feb 21, 2026Changlu Guo, Anders Nymark Christensen, Anders Bjorholm Dahl +1Counterfactual Image GenerationCounterfactual Explanations