Abstract
While discriminative classifiers often yield strong predictive performance, missing feature values at prediction time can still be a challenge. Classifiers may not behave as expected under certain ways of substituting the missing values, since they inherently make assumptions about the data distribution they were trained on. In this paper, we propose a novel framework that classifies examples with missing features by computing the expected prediction with respect to a feature distribution. Moreover, we use geometric programming to learn a naive Bayes distribution that embeds a given logistic regression classifier and can efficiently take its expected predictions. Empirical evaluations show that our model achieves the same performance as the logistic regression with all features observed, and outperforms standard imputation techniques when features go missing during prediction time. Furthermore, we demonstrate that our method can be used to generate "sufficient explanations" of logistic regression classifications, by removing features that do not affect the classification.
Introduction
In real-world applications, data is frequently incomplete due to sensor failures, missing survey responses, or omitted medical tests. High-performance discriminative classifiers, such as Logistic Regression (LR), are typically trained on complete feature sets. When features are missing during inference, the common practice is imputation—replacing missing values with the mean, median, or a predicted value.
However, standard imputation is theoretically problematic. First, it introduces bias; for non-linear models like LR, the prediction of the mean feature value does not equal the mean of the predictions across the feature distribution—a consequence of Jensen's Inequality. Second, imputation methods are often "classifier-agnostic," ignoring how the specific model utilizes the features. The mathematically rigorous approach is to compute the Expected Prediction: the average output of the classifier over the distribution of possible values for the missing features. Unfortunately, this computation is generally #P-hard and thus intractable for most models.
Methodology: Naive Conformant Learning (NaCL)
To address the intractability of expected predictions, we introduce Naive Conformant Learning (NaCL). This framework bridges the gap between "correct but slow" and "fast but biased" by leveraging the mathematical relationship between generative and discriminative models. Specifically, a Naive Bayes (NB) model can be reparameterized as a Logistic Regression model.
The NaCL algorithm proceeds in three main steps:
- Conformant Learning: Given a pre-trained LR model, we seek a Naive Bayes distribution that "conforms" to it. A conforming NB model produces identical classifications to the LR model when all features are observed.
- Geometric Programming: We formulate the search for this conforming distribution as a Geometric Program (GP). GPs are a class of non-linear optimization problems that can be solved globally and efficiently.
- Efficient Inference: Once the conforming NB model is obtained, the "Expected Prediction" can be calculated in linear time. This allows for robust handling of missing data without the computational overhead typically associated with exact probabilistic inference.
Experimental Evaluation
We evaluated NaCL across five diverse datasets: MNIST, Fashion-MNIST, CovType, Adult, and Splice. These datasets encompass various challenges, including high-dimensional image data, unbalanced classes, and a mix of continuous and categorical features.
Key Results
NaCL demonstrates superior performance compared to standard imputation techniques (mean, median, min, or max imputation) as the percentage of missing features increases.
- Fidelity to Original Predictions: NaCL's predictions with missing data remain significantly closer to the "full-data" predictions than any imputation method, as evidenced by lower average cross-entropy.
- Superior Accuracy: In scenarios where up to 80% of features were missing at random, NaCL consistently maintained higher classification accuracy and F1 scores compared to mean, median, min, or max imputation.
- Sufficient Explanations: The framework can generate "sufficient explanations" by identifying the minimal subset of features required to maintain the same expected prediction, effectively highlighting the most critical evidence for a given classification (e.g., identifying the specific pixels that define a digit).
Discussion and Conclusion
NaCL successfully bridges the gap between discriminative and generative modeling, retaining the high predictive power of Logistic Regression while gaining the robust missing-data handling of Naive Bayes. A key insight is the "intractability paradox": while both LR and NB inference are efficient, calculating the expectation of one over the other is generally hard, necessitating the conformant approach.
Future work includes extending NaCL to handle continuous features natively and exploring more complex model pairs, such as Conditional Random Fields (CRFs) and their generative counterparts. Additionally, investigating the framework's performance under different missingness mechanisms remains a priority.
Summary updated