Abstract

We design an algorithm for finding counterfactuals with strong theoretical guarantees on its performance. For any monotone model f:Xd→{0,1}f : X^d \to \{0,1\} and instance x⋆x^\star, our algorithm makes S(f)O(Δf(x⋆))⋅log⁡d {S(f)^{O(Δ_f(x^\star))}\cdot \log d} queries to ff and returns {an {\sl optimal}} counterfactual for x⋆x^\star: a nearest instance x′x' to x⋆x^\star for which f(x′)≠f(x⋆)f(x')\ne f(x^\star). Here S(f)S(f) is the sensitivity of ff, a discrete analogue of the Lipschitz constant, and Δf(x⋆)Δ_f(x^\star) is the distance from x⋆x^\star to its nearest counterfactuals. The previous best known query complexity was d O(Δf(x⋆))d^{\,O(Δ_f(x^\star))}, achievable by brute-force local search. We further prove a lower bound of S(f)Ω(Δf(x⋆))+Ω(log⁡d)S(f)^{Ω(Δ_f(x^\star))} + Ω(\log d) on the query complexity of any algorithm, thereby showing that the guarantees of our algorithm are essentially optimal.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.