Explaining a probabilistic prediction on the simplex with Shapley compositions
This paper introduces "Shapley compositions," a novel framework grounded in Aitchison geometry that provides a mathematically rigorous and unique method for explaining multiclass probabilistic predictions by properly accounting for their compositional nature, overcoming the limitations of traditional one-vs-rest Shapley value approaches.
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 are trying to figure out why a machine learning model made a specific guess. Let's say the model is a weather forecaster that predicts the chance of three things happening: Sunny, Rainy, or Snowy.
The Problem: The "One-vs-Rest" Trap
Traditionally, tools used to explain these guesses (called Shapley values) work like a single-lane road. They are great for binary choices (Yes/No or Sunny/Rainy). But when you have three or more options, the old tools try to explain each option separately.
They might say:
- "Feature A made 'Sunny' 10% more likely."
- "Feature A made 'Rainy' 5% less likely."
- "Feature A made 'Snowy' 2% less likely."
The paper argues this is like trying to understand a dance by watching each dancer move in isolation. It misses the big picture: the probabilities are connected. If the chance of "Sunny" goes up, the chances of "Rainy" and "Snowy" must go down because the total probability always has to equal 100%. The old methods ignore this "tug-of-war" relationship between the classes.
The Solution: Shapley Compositions
The authors introduce a new method called Shapley Compositions. They treat the prediction not as separate numbers, but as a single, unified "recipe" or "mixture."
To make this work, they use a special mathematical toolkit called Aitchison geometry. Think of this as a new way of measuring space that respects the rules of the mixture.
The Analogy: The Flavor Blender
Imagine the model's prediction is a smoothie made of three flavors: Strawberry, Blueberry, and Banana.
- The Base Prediction is the average smoothie the machine makes for everyone (maybe 33% of each).
- The Actual Prediction is the specific smoothie for your order (maybe 80% Strawberry, 10% Blueberry, 10% Banana).
In this new method, every feature (like "sugar level" or "ice amount") is a blender push.
- Instead of saying "Sugar increased Strawberry," the new method says: "The 'Sugar' feature pushed the smoothie mixture from the average spot toward the Strawberry corner of the triangle."
- Because the flavors are linked, pushing toward Strawberry automatically pulls away from Blueberry and Banana. The new method captures this movement as a single, unified vector (an arrow) rather than three separate numbers.
How It Works (The "Geometry" Part)
The paper proves that this new method is the only way to fairly split the credit among features while respecting three golden rules:
- Linearity: If you combine two models, the explanation is just the combination of their explanations.
- Symmetry: If two features do the exact same thing, they get the exact same credit.
- Efficiency: The sum of all the "pushes" (features) must perfectly move the smoothie from the average spot to your specific order. No credit is lost, and no extra credit is invented.
Visualizing the Result
The paper shows how to draw these explanations:
- The Triangle Map: They map the three flavors onto a triangle. The center is the average. The corners are pure flavors. The "push" from a feature is drawn as an arrow moving the smoothie from the center toward a specific corner.
- The Histogram: They also show the "push" as a bar chart. If a feature strongly pushes toward "Sunny," the bar for Sunny will be high, while the bars for the others drop.
Why This Matters
The paper demonstrates this with examples like identifying flowers (Iris dataset) and recognizing handwritten digits.
- Old Way: You get a confusing list of numbers for each flower type, and you have to guess how they fit together.
- New Way: You get a clear picture of how the features (like petal length) physically "moved" the prediction from the average flower to the specific type you have.
In short: This paper gives us a new, mathematically sound way to explain complex, multi-option predictions by treating them as a single, shifting mixture rather than a list of separate numbers. It ensures that the explanation respects the fact that increasing one option's probability must decrease the others.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.