From Baselines to Transport Geodesics: Axiomatic Attribution via Optimal Generative Flows
Organizations: Aalto University, Espoo, Finland · Alibaba, Hangzhou, China · Technical University of Denmark, Copenhagen, Denmark
Abstract
Feature attributions often hide a critical modeling choice: they explain a prediction along a counterfactual path from a reference state to an input. Different baselines, interpolations, and generative trajectories define different paths and can therefor produce different explanations. We study this path ambiguity as a modeling problem. Our central question is whether the path can be chosen by the data-generating transport process, rather than by a hand-designed interpolation or by the sensitivity geometry of the model being explained. We separate attribution into fixed-path credit allocation and path selection. For a fixed path, we prove that the Aumann-Shapley line integral is the unique attribution rule under standard fixed-path axioms and explicit coordinate-trace regularity. For path selection, we minimize kinetic action over flows that transport a reference distribution to the data distribution, yielding a transport-geodesic attribution principle. We approximate this ideal with Rectified Flow and Reflow and derive stability bounds linking vector-field error to attribution error. Experiments show that lower-action, transport-consistent paths produce more stable and structured explanations, preserving competitive deletion faithfulness, without claiming data-manifold membership. Our code is available at https://github.com/cenweizhang/OTFlowSHAP.
Figures & tables
| Steps | MAE | Std. dev. | SEM | Relative error |
|---|---|---|---|---|
| 10 | 1.483 | 1.346 | 0.177 | 19.30% |
| 20 | 0.895 | 0.778 | 0.102 | 11.65% |
| 50 | 0.411 | 0.317 | 0.042 | 5.34% |
| 100 | 0.229 | 0.181 | 0.024 | 2.98% |
| 200 | 0.101 | 0.079 | 0.010 | 1.34% |
| Method | Action | Pixel var. | SSIM | Rank corr. |
|---|---|---|---|---|
| 1-RF | 3179.2 295.8 | 0.0032 0.0021 | 0.716 0.080 | 0.662 0.087 |
| 2-RF | 3006.9 340.4 | 0.0010 0.0008 | 0.911 0.051 | 0.882 0.061 |
| Data | Method | GPS | FCE | SATV | EAS | Del. zero | Del. blur |
|---|---|---|---|---|---|---|---|
| CIFAR-10 | SmoothGrad | - | - | 0.022 0.008 | 0.363 0.117 | 0.525 0.923 | 1.216 1.202 |
| GuidedBackprop | - | - | 0.040 0.018 | 0.439 0.128 | 0.966 0.978 | 1.627 1.064 | |
| GradientSHAP | - | - | 0.669 0.408 | 0.116 0.146 | 0.691 0.975 | 1.978 1.050 | |
| Integrated Gradients | 1.000 0.000 | 0.643 0.404 | 0.114 0.134 | 0.670 0.965 | 1.931 1.105 | ||
| DDIM | 1.059 0.017 | 0.073 0.062 | 0.119 0.160 | 0.444 0.940 | 1.360 1.143 | ||
| Transport Flow | 1.023 0.008 | 0.005 0.003 | 0.062 0.048 | 0.119 0.138 | 0.456 0.967 | 1.311 1.177 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Metric | OT oracle | 1-RF | 2-RF | 3-RF |
|---|---|---|---|---|
| 27.8976 | - | - | - | |
| Action gap | 0 | |||
| Relative field error | 0 | |||
| Curvature proxy |
Feature Attribution
Feature attribution estimates which input features or internal components contribute to a model’s predictions.
See all 231 papers