← Latest papers
🤖 machine learning

A Geometric View of Counterfactual Behavior: Interaction of Boundary Proximity and Local Support

This paper demonstrates that counterfactual behavior—specifically the feasibility and distance of meaningful input changes—is a distinct dimension from predictive performance, driven by the interaction between decision-boundary proximity and local data support, which can vary significantly even among models with identical accuracy.

Original authors: Ioanna Gemou, Matteo Gamba, Randall Balestriero, Ritambhara Singh

Published 2026-06-04
📖 4 min read☕ Coffee break read

Original authors: Ioanna Gemou, Matteo Gamba, Randall Balestriero, Ritambhara Singh

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a very smart robot that looks at pictures and guesses what they are. You want to know: "What tiny change would make this robot change its mind?" For example, if it thinks a picture is a "cat," what small tweak would make it say "dog"? This is called a counterfactual explanation.

This paper is like a detective story investigating why some robots are easy to trick into changing their minds, while others are stubborn, even if they are equally good at guessing the right answer in the first place.

Here is the breakdown using simple analogies:

1. The Setup: The Map and the Fence

Think of the robot's brain as a giant map (called "representation space").

  • The Encoder: This is the part of the robot that turns a picture into a dot on the map.
  • The Classifier: This is the part that draws fences (decision boundaries) on the map to separate cats from dogs.

The paper asks: If two robots have the same map (they see the world the same way) and are equally accurate at guessing, why does one robot change its mind easily with a tiny nudge, while the other requires a massive shove?

2. The Two Secrets: The Fence and the Crowd

The authors discovered that the answer depends on two things working together:

  • Secret #1: How close are you to the fence? (Boundary Proximity)
    If your dot is right next to the fence between "Cat" and "Dog," it only takes a tiny step to cross over. If you are deep in the middle of the "Cat" zone, you have to walk a long way to cross.
  • Secret #2: Is there a crowd waiting on the other side? (Local Data Support)
    This is the twist. Just crossing the fence isn't enough. Imagine you cross the fence into the "Dog" zone, but you land in a barren, empty desert where no real dogs live. That's a bad explanation because it's not a realistic "dog."
    A good explanation happens when you cross the fence and land right in the middle of a crowd of real dogs.

The Paper's Big Claim: You need both to be close to the fence and close to a crowd of the other type to get a good, realistic answer.

3. The Surprise: Same Score, Different Behavior

The researchers tested many different robots (using images of shapes, handwritten numbers, medical X-rays, and movie reviews).

  • The Finding: They found pairs of robots that got the exact same test score (e.g., 90% accuracy).
  • The Twist: Even though they were equally smart, one robot was very easy to flip its opinion, while the other was very hard to flip.
  • Why? It wasn't because the robots saw the pictures differently. It was because the fences they drew were in different spots relative to the crowds. One robot drew its fence right next to a crowd; the other drew its fence far away in an empty spot.

4. The "Fence Mover" Experiment

To prove this, they took one robot, froze its map (so it couldn't change how it saw things), and just redrew the fences using different methods.

  • Result: By just moving the fences, they could make the robot suddenly become "easy to trick" or "hard to trick," even though the robot's overall accuracy stayed exactly the same.
  • Lesson: The way the robot draws its lines matters just as much as how well it sees.

5. Why This Matters (The "Why Should I Care?")

The paper suggests that when we try to explain AI decisions, we can't just look at how accurate the AI is. We have to look at the geometry (the shape of the map and the fences).

They even showed that if you tell the robot's search algorithm to "aim for the crowd" (not just cross the fence), it finds better, more realistic answers. It's like telling a lost hiker: "Don't just cross the river; cross it and walk straight to the village."

Summary in One Sentence

Two robots can be equally smart, but one might be easy to convince and the other hard, simply because one draws its decision lines right next to a crowd of examples, while the other draws them in an empty desert. To get good explanations, you need to look at both the lines and the crowds.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →