Which supervised model families natively handle missing feature values without imputation?

Last updated 14 November 2026

Mainly tree-based models. Gradient-boosted tree libraries learn a default branch for missing values, and some decision tree implementations route or split missing values directly. Naive Bayes can also handle them naturally by skipping the missing feature's likelihood term. Linear models, SVMs, k-NN and standard neural networks need imputation or explicit encoding.

  • Gradient-boosted trees (XGBoost, LightGBM, CatBoost, sklearn HistGradientBoosting*):

    • At each split, the algorithm tries sending missing values left and right and keeps the direction that reduces loss more (XGBoost calls this "sparsity-aware split finding").

    • As a result, missingness itself can be informative.

  • Decision trees and random forests:

    • CART classically uses surrogate splits: a correlated feature routes the sample when the primary is missing (as in R rpart). C4.5 distributes the sample fractionally across branches.

    • Recent scikit-learn versions (1.3+) support NaN in DecisionTreeClassifier, and later versions extend this to RandomForest*. Older versions error out.

  • Naive Bayes: Because features are conditionally independent, a missing feature can be marginalized out by simply omitting its term. Not every library implements this, though.

  • Models that need imputation:

    • Linear/logistic regression, SVMs, k-NN and MLPs all need a numeric value for every input.

    • A common pattern is to impute and add a missing-indicator column (SimpleImputer(add_indicator=True)) so the signal isn't lost.

  • Caveat: native handling assumes missingness patterns are the same at train and serve time. If they shift, the learned default directions become wrong.

  • https://scikit-learn.org/stable/modules/impute.html
  • https://www.geeksforgeeks.org/machine-learning/classifiers-in-scikit-learn-that-handle-nannull/
  • https://www.geeksforgeeks.org/machine-learning/handling-missing-values-with-catboost/
All Supervised Learning interview questions