Skip to main content
QUICK REVIEW

[Paper Review] Beyond algorithm hyperparameters: on preprocessing hyperparameters and associated pitfalls in machine learning applications

Christina Sauer, Anne‐Laure Boulesteix|arXiv (Cornell University)|Dec 4, 2024
Machine Learning and Data ClassificationComputer Science3 citations
TL;DR

This paper highlights that preprocessing hyperparameters—such as imputation methods and feature selection strategies—are often tuned informally by applied machine learning users, leading to biased performance estimates similar to algorithm hyperparameter tuning. The authors advocate for systematic, transparent, and resampling-based tuning of both algorithmic and preprocessing hyperparameters to prevent overfitting and inflated performance claims.

ABSTRACT

Adequately generating and evaluating prediction models based on supervised machine learning (ML) is often challenging, especially for less experienced users in applied research areas. Special attention is required in settings where the model generation process involves hyperparameter tuning, i.e. data-driven optimization of different types of hyperparameters to improve the predictive performance of the resulting model. Discussions about tuning typically focus on the hyperparameters of the ML algorithm (e.g., the minimum number of observations in each terminal node for a tree-based algorithm). In this context, it is often neglected that hyperparameters also exist for the preprocessing steps that are applied to the data before it is provided to the algorithm (e.g., how to handle missing feature values in the data). As a consequence, users experimenting with different preprocessing options to improve model performance may be unaware that this constitutes a form of hyperparameter tuning, albeit informal and unsystematic, and thus may fail to report or account for this optimization. To illuminate this issue, this paper reviews and empirically illustrates different procedures for generating and evaluating prediction models, explicitly addressing the different ways algorithm and preprocessing hyperparameters are typically handled by applied ML users. By highlighting potential pitfalls, especially those that may lead to exaggerated performance claims, this review aims to further improve the quality of predictive modeling in ML applications.

Motivation & Objective

  • To draw attention to the widespread but often unacknowledged practice of informal hyperparameter tuning in data preprocessing steps.
  • To demonstrate that preprocessing hyperparameters—such as imputation methods and feature selection—significantly impact model performance and require systematic treatment.
  • To highlight the risk of optimistic performance bias when preprocessing hyperparameters are tuned without proper validation or reporting.
  • To advocate for the integration of preprocessing hyperparameter tuning into formal, reproducible, and resampling-based model development workflows.
  • To promote transparency and methodological rigor in reporting all hyperparameters, including preprocessing choices, to improve reproducibility and reliability of ML models in applied research.

Proposed method

  • The paper conducts a conceptual review of hyperparameter tuning in machine learning, distinguishing between algorithmic and preprocessing hyperparameters.
  • It presents empirical illustrations using a real-world clinical dataset to compare different model development workflows involving both algorithmic and preprocessing hyperparameter tuning.
  • The authors evaluate performance using resampling-based procedures (e.g., nested cross-validation) and compare them to naive, non-resampling approaches to detect data leakage.
  • They contrast manual, informal tuning with automated, systematic tuning workflows, emphasizing the importance of separating training and evaluation data.
  • The study uses real-world data from a clinical prediction project to demonstrate that preprocessing choices—like handling missing values or feature selection—can be tuned just like algorithmic hyperparameters.
  • The authors recommend using standardized checklists (e.g., REFORMS, TRIPOD-AI) and preregistration templates to enhance transparency and reproducibility in model development.
Figure 1 : Example of a learning pipeline $\mathcal{I}$ consisting of two preprocessing steps and one learning algorithm. Left panel: HPs of the learning pipeline, with each HP set to an example value. Middle panel: Training process, where the learning pipeline is applied to the data set $\mathcal{D
Figure 1 : Example of a learning pipeline $\mathcal{I}$ consisting of two preprocessing steps and one learning algorithm. Left panel: HPs of the learning pipeline, with each HP set to an example value. Middle panel: Training process, where the learning pipeline is applied to the data set $\mathcal{D

Experimental results

Research questions

  • RQ1Why is informal tuning of preprocessing hyperparameters a critical but often overlooked source of performance bias in applied machine learning?
  • RQ2How does the lack of systematic treatment of preprocessing hyperparameters affect the reliability of model performance estimates?
  • RQ3What are the consequences of using non-resampling or non-nested evaluation procedures when preprocessing hyperparameters are tuned?
  • RQ4How can applied researchers ensure that preprocessing hyperparameter tuning is both systematic and transparent in model development?
  • RQ5What practical guidelines and tools can help researchers integrate preprocessing hyperparameter tuning into robust, reproducible workflows?

Key findings

  • Informal, manual tuning of preprocessing hyperparameters—such as imputation methods or feature selection—commonly occurs in applied ML without users recognizing it as hyperparameter tuning.
  • This informal tuning leads to data leakage and overly optimistic performance estimates, similar to the well-known pitfalls of algorithmic hyperparameter tuning.
  • Resampling-based evaluation procedures, such as nested cross-validation, are necessary to obtain unbiased performance estimates when hyperparameter tuning is involved.
  • Simple k-fold cross-validation without proper nesting can result in overly optimistic performance claims when preprocessing hyperparameters are tuned.
  • The lack of transparency in reporting preprocessing choices creates the false impression that data were not preprocessed or that no alternatives were considered.
  • Preregistering the entire model development process, including preprocessing hyperparameters, enhances reproducibility and helps detect potential biases.
Figure 2 : Overview of different model evaluation procedures and their relation to the model generation process if all HPs are pre-specified. Data leakage is present if any subset of $\mathcal{D}_{\text{test}}$ used for prediction error estimation has also been employed to generate the evaluated pre
Figure 2 : Overview of different model evaluation procedures and their relation to the model generation process if all HPs are pre-specified. Data leakage is present if any subset of $\mathcal{D}_{\text{test}}$ used for prediction error estimation has also been employed to generate the evaluated pre

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.