Inferensys

Glossary

Sensitivity-n

Sensitivity-n is an axiom requiring that if a model's output is mathematically independent of a feature, that feature must receive an attribution of zero.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
AXIOMATIC ATTRIBUTION

What is Sensitivity-n?

A foundational axiom for evaluating the correctness of feature attribution methods, ensuring that irrelevant features receive zero importance.

Sensitivity-n, also known as the Dummy or Null Feature axiom, is a mathematical requirement for feature attribution methods stating that if a model's output is functionally independent of a specific input feature, that feature must receive an attribution of exactly zero. This principle ensures that explanations do not falsely assign importance to variables that the model ignores, providing a critical sanity check for the faithfulness of an interpretability technique.

The axiom is a core component of the axiomatic attribution framework, which evaluates methods like Integrated Gradients and DeepLIFT. A violation of Sensitivity-n occurs when a method assigns a non-zero importance score to a constant feature or a feature to which the model's weights are disconnected, indicating a fundamental flaw in the explanation's logic and undermining trust in the model's audit trail.

The Insensitivity Axiom

Key Characteristics of Sensitivity-n

Sensitivity-n, also known as the Insensitivity axiom, is a foundational mathematical constraint for feature attribution methods. It mandates that if a model's output is functionally independent of a specific input feature, that feature must receive an attribution score of exactly zero.

01

The Core Axiom: Insensitivity

Sensitivity-n states that if a feature x_i does not mathematically influence the model's output F(x)—meaning the partial derivative of F with respect to x_i is zero everywhere in the local input domain—then the attribution assigned to x_i must be exactly zero. This prevents attribution methods from hallucinating importance for features the model ignores.

  • Formal Definition: If ∂F(x)/∂x_i = 0 for all points in a neighborhood, then Attribution(x_i) = 0.
  • Contrast with Sensitivity: Sensitivity (the 'n' is often dropped) requires non-zero attribution when a feature does affect the output; Sensitivity-n handles the opposite case.
  • Violation Example: A method that assigns non-zero importance to a constant input pixel that is multiplied by a zero weight fails this axiom.
0
Required Attribution for Irrelevant Features
02

Distinction from Completeness

While Completeness ensures the sum of attributions equals the output difference, Sensitivity-n ensures individual feature fidelity. A method can satisfy Completeness by distributing attribution across all features, but it fails Sensitivity-n if it assigns a non-zero score to a feature with a zero gradient.

  • Completeness: Σ Attributions = F(x) - F(baseline)
  • Sensitivity-n: If feature is functionally irrelevant, its attribution must be 0.
  • Combined Strength: Together, these axioms guarantee that the attribution vector is both exhaustive (sums correctly) and sparse (ignores truly unused features).
03

Role in Axiomatic Attribution Frameworks

Sensitivity-n is one of the key axioms proposed by Sundararajan, Taly, and Yan in their 2017 paper on Integrated Gradients. It serves as a critical filter for evaluating the mathematical soundness of any attribution technique.

  • Benchmark Axiom: Methods like DeepLIFT and LRP were designed with this constraint in mind.
  • Failure Case: Raw Gradient × Input can violate Sensitivity-n when the gradient is zero but the input value is non-zero, incorrectly yielding a zero attribution for a relevant feature, or vice versa in edge cases.
  • Guarantee: Integrated Gradients provably satisfies Sensitivity-n by integrating gradients along a path, ensuring that features with zero gradient everywhere contribute nothing.
04

Practical Implications for Model Debugging

When debugging a model, Sensitivity-n guarantees that features shown with zero attribution are genuinely disconnected from the prediction. This allows engineers to confidently prune irrelevant inputs or identify dead neurons.

  • Feature Selection: Safely remove features that consistently receive zero attribution across a dataset.
  • Architecture Validation: If a known critical feature receives zero attribution, it signals a vanishing gradient problem or a disconnected sub-network.
  • Compliance: For regulated industries, proving that a protected attribute (e.g., race) has zero attribution requires an axiom like Sensitivity-n to ensure the explanation is not hiding its influence.
05

Relationship to Implementation Invariance

Sensitivity-n works in tandem with Implementation Invariance. Two functionally identical networks must not only produce the same output but also the same attributions. Sensitivity-n ensures that if one network architecture ignores a feature, the attribution method cannot arbitrarily assign importance to it just because of a different internal weight configuration.

  • Functional Equivalence: If Network A and Network B compute the exact same function F(x), their attributions for a feature with zero gradient must both be zero.
  • Prevents Gaming: Without this axiom, an attribution method could be manipulated by simply adding a disconnected computational branch to the network.
06

Limitations and Edge Cases

Sensitivity-n only applies to features with a strictly zero gradient in a local neighborhood. It does not require zero attribution for features with a small but non-zero influence, which is governed by the related Sensitivity axiom.

  • Local vs. Global: A feature might have a zero gradient at a specific input point but influence the output elsewhere. Sensitivity-n applies locally.
  • Discrete Inputs: For text or categorical data, gradients are not directly defined, requiring embedding-space approximations.
  • Shattered Gradients: In deep networks, noisy gradients can make it computationally difficult to verify if a gradient is truly zero or just numerically small, complicating strict enforcement.
SENSITIVITY-N AXIOM

Frequently Asked Questions

Clear answers to common questions about the Sensitivity-n axiom, its mathematical foundations, and its role in evaluating and designing faithful feature attribution methods.

The Sensitivity-n axiom, also known as the Sensitivity or Dummy axiom, is a fundamental mathematical principle in the axiomatic attribution framework that requires a feature attribution method to assign a value of exactly zero to any input feature that is mathematically independent of the model's output. Formally, if a function f(x) does not depend on a specific input variable x_i—meaning the partial derivative of f with respect to x_i is zero everywhere, or the function's value never changes regardless of the value of x_i—then the attribution A_i for that feature must be zero. This axiom ensures that attribution methods do not hallucinate importance for features that the model literally ignores. It is one of the core axioms proposed alongside Implementation Invariance and Completeness in the foundational work on Integrated Gradients, serving as a critical sanity check for the faithfulness of any explanation technique. A method that violates Sensitivity-n risks misleading users by highlighting irrelevant inputs, undermining trust in the model's decision-making process.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.