XSci

When Does Task-Aware Imputation Matter? An Analysis of Robustness Under Train–Test Mismatch

Maria V. Salvador, Ana F. Sequeira, Jaime S. Cardoso

Submitted by Maria V. Salvador

Published November 26, 2026 · Version v1, November 26, 2026 · DOI 10.66977/xsci.2611.004o

Machine Learning, Artificial Intelligence

Declaration of AI use (v1): Generative AI tools (ChatGPT, OpenAI) were used to assist with manuscript preparation, including language refinement, technical discussions, and basic coding assistance. The authors reviewed and evaluated AI-assisted suggestions and are responsible for the research methodology, implementation, experimental results, their interpretation, and the final content of the manuscript.

Abstract

Missing data is a pervasive challenge in machine learning, often degrading predictive performance and complicating model deployment. Most existing approaches treat imputation as a preprocessing step independent of the downstream task, a separation that becomes problematic under train–test mismatches in missingness mechanisms or rates. We introduce a unified framework that treats missing entries as variables in a task-conditioned optimization problem. We instantiate this framework in two settings: an amortized approach for scenarios with missing data at both training and test time, and a latent optimization approach for settings where only training data is incomplete.
The evaluation is conducted on 98 tabular datasets and robustness under train–test mismatches is assessed on 36 datasets.
Results reveal that reconstruction error constitutes a poor proxy for predictive utility (Spearman ρ≈\rho\approx 0.16–0.32), and that task-aware imputation becomes critical in scenarios where classical methods fail to recover complete-data performance, achieving win rates of up to 80\% in challenging train–test mismatch scenarios.

View PDF