Feature Attribution from First Principles

Magamed Taimeskhanov, Damien Garreau

TL;DR

Prior axiomatic frameworks for feature attribution are so restrictive that they inadvertently force methods to behave like simple Gradient × Input. To break free from this limitation, this paper introduces a constructivist, measure-theoretic framework that builds explanations from the ground up using simple indicator functions. This approach unifies several existing explainable AI (XAI) techniques and provides exact, closed-form attributions for deep ReLU networks.

What Problem Does This Paper Address?

Feature attribution methods (like Integrated Gradients, SHAP, or LIME) are widely used to explain "black-box" machine learning models by assigning importance scores to input features. However, these methods often produce wildly inconsistent explanations for the same model and input.

To establish theoretical guardrails, researchers traditionally rely on top-down axiomatic frameworks—demanding that any "good" explanation satisfy properties like Completeness (splitting the output perfectly among features) and Sensitivity (giving zero attribution to features that don't affect the output).

This paper uncovers a fundamental flaw in this approach: combining these standard axioms creates a mathematical straightjacket. The authors prove that any attribution method satisfying these axioms collapses into a minor perturbation of the classic Gradient × Input method for smooth models. This means existing axioms don't outline a broad space for designing better explanations; instead, they trap us in a single, flawed paradigm.

Methods

Rather than imposing top-down axioms, the authors propose a bottom-up, constructivist approach rooted in functional analysis:

  1. Atomic Attributions: They start by defining how to explain the simplest possible models: indicator functions on hyperrectangles (where the model outputs 1 inside a specific region and 0 outside).
  2. Model Approximation: Using a classical approximation result, any continuous function can be represented as a sum of these indicator functions, effectively slicing the model's prediction space into fine blocks.
  3. Measure-Theoretic Extension: By assuming Linearity and a mild regularity condition called Functional Supremum Continuity (FSC), they apply the Riesz-Markov representation theorem. This elegantly extends the atomic attributions to any complex continuous model via integration.

Ultimately, this transforms feature attribution into a measure-theoretic problem: choosing an explanation method becomes mathematically equivalent to choosing a specific family of weighting or data-generating measures over the input space.

Approximating a continuous function (red) with a combination of indicator functions (blue).

Datasets

Not discussed in the paper. As a purely theoretical work, it focuses on mathematical proofs and framework formulation rather than empirical evaluation on standard datasets.

Key Insights and Ideas

  • The Axiom Trap: Accepting standard axioms like Completeness, Sensitivity, and Linearity means you are essentially forced to use a variant of Gradient × Input (Theorem 2.1). This explains why many popular XAI methods behave similarly in practice.
  • Explanation as Integration: Under this new framework, explaining a model is unified under a single mathematical operation: integrating the model's function against a feature-weighting measure.
  • A Unified Lens for XAI: The authors show that several distinct existing interpretability paradigms—such as feature removal by conditional expectation or Partial Dependence Plots (PDP)—are simply different choices of the underlying Borel measure within this single framework.
How specific choices of atomic attribution measures recover existing XAI methods.
  • Exact ReLU Attributions: Because deep ReLU networks are piecewise affine, the framework yields exact, closed-form expressions for their attributions based on the center of mass of the network's linear regions, bypassing the need for noisy sampling approximations.

Key Results

  • Theorem 2.1 (Bound on Remainder): Mathematically bounds how much any axiom-compliant attribution method can deviate from Gradient × Input, proving their near-equivalence for smooth models.
  • Corollary 4.1: Derives the exact closed-form representation for the feature attribution of piecewise affine continuous functions, making it directly applicable to deep ReLU networks without sampling.
  • Theorem 4.1 (Optimal Projections): Formulates a way to theoretically optimize the evaluation metric Recall (the proportion of truly important features captured by the explanation) over the space of probability measures for linear models, mapping optimal solutions to specific geometric regions.

Limitations and Future Work

While the framework provides a elegant theoretical foundation, it has a few notable limitations:

  1. Ground-Truth Dependence: The optimization of evaluation metrics (like Precision and Recall) currently requires knowing the ground-truth feature importance, which is rarely available for complex, real-world black-box models.
  2. Indirect Characterization: The optimization results characterize the optimal measures only after they are projected onto their centers of mass. Because this projection is not bijective, reverse-engineering the unique "perfect" measure remains difficult.

For future work, the authors propose extending these metric optimization techniques directly to deep ReLU networks and developing empirical methods to discover optimal attribution measures using gradient ascent.

Summary updated

BibTeX
@misc{taimeskhanov2025feature,
  author = {Magamed Taimeskhanov and Damien Garreau},
  title = {{Feature Attribution from First Principles}},
  year = {2025},
  eprint = {2505.24729},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.24729},
}
Figure