Inferensys

Glossary

Missingness

A SHAP property requiring that features not present in the original input are assigned an attribution of zero.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
SHAP AXIOM

What is Missingness?

Missingness is a fundamental SHAP property requiring that a feature absent from the original input must receive an attribution of exactly zero.

Missingness is a core axiomatic property of the SHAP framework, formally dictating that any feature not present in the original model input must be assigned a Shapley value of zero. This ensures that a feature which did not contribute to the prediction—often represented by a zero or a placeholder during the explanation process—does not incorrectly receive credit or blame. It directly links the explanation to the actual data instance.

This property is mathematically enforced by mapping absent features to a reference value from the background dataset and ensuring their marginal contribution is null. Without missingness, an explanation could attribute importance to a feature that was never observed, violating local accuracy and undermining trust in the model's audit trail.

MISSINGNESS IN SHAP

Frequently Asked Questions

Clarifying the foundational SHAP property that ensures absent features receive zero attribution, maintaining the logical consistency of additive explanations.

Missingness is a fundamental SHAP axiom that requires features not present in the original input to be assigned an attribution of exactly zero. This property ensures that if a feature value is missing or unknown—often represented by a placeholder like NaN or a specific baseline value—it does not arbitrarily influence the explanation. In the additive feature attribution framework, the explanation model g(z') = φ₀ + Σ φᵢz'ᵢ uses a binary mapping vector z' where z'ᵢ = 1 indicates a feature is present and z'ᵢ = 0 indicates it is missing. The Missingness axiom formally states that when z'ᵢ = 0, the corresponding Shapley value φᵢ must be zero. This prevents the model from fabricating importance for features that were never observed, maintaining the logical integrity of the explanation and ensuring that the sum of attributions only accounts for actually observed inputs.

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.