[论文解读] Beyond algorithm hyperparameters: on preprocessing hyperparameters and associated pitfalls in machine learning applications
本文指出,预处理超参数(如插补方法和特征选择策略)通常由应用机器学习用户非正式地调优,导致性能估计偏差,类似于算法超参数调优带来的问题。作者主张对算法和预处理超参数进行系统化、透明化且基于重采样的调优,以防止过拟合并避免性能声称被夸大。
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.
研究动机与目标
- 引起人们对数据预处理步骤中广泛存在但常被忽视的非正式超参数调优实践的关注。
- 证明预处理超参数(如插补方法和特征选择)显著影响模型性能,需要系统性对待。
- 强调在缺乏适当验证或报告的情况下,对预处理超参数进行调优会带来性能估计过于乐观的风险。
- 倡导将预处理超参数调优整合到正式、可复现且基于重采样的模型开发工作流中。
- 推动在报告中透明化并严谨对待所有超参数,包括预处理选择,以提升应用研究中机器学习模型的可复现性和可靠性。
提出的方法
- 本文对机器学习中的超参数调优进行了概念性综述,区分了算法超参数与预处理超参数。
- 通过一个真实临床数据集的实证示例,对比了包含算法和预处理超参数调优的不同模型开发工作流。
- 采用基于重采样的评估程序(如嵌套交叉验证)来评估性能,并与非重采样子孙的朴素方法进行对比,以检测数据泄露。
- 对比了手动非正式调优与自动化系统化调优工作流,强调了训练数据与评估数据分离的重要性。
- 本研究使用临床预测项目的真实世界数据,证明预处理选择(如缺失值处理或特征选择)可像算法超参数一样被调优。
- 作者建议使用标准化清单(如 REFORMS、TRIPOD-AI)和预注册模板,以增强模型开发过程中的透明度和可复现性。

实验结果
研究问题
- RQ1为何预处理超参数的非正式调优是应用机器学习中一个关键但常被忽视的性能偏差来源?
- RQ2对预处理超参数缺乏系统性处理如何影响模型性能估计的可靠性?
- RQ3当预处理超参数被调优时,使用非重采样子孙或非嵌套评估程序会带来什么后果?
- RQ4应用研究人员如何确保预处理超参数调优在模型开发过程中既系统化又透明?
- RQ5有哪些实用指南和工具可帮助研究人员将预处理超参数调优整合到稳健、可复现的工作流中?
主要发现
- 在应用机器学习中,对预处理超参数(如插补方法或特征选择)的非正式手动调优普遍存在,但用户往往未意识到这属于超参数调优。
- 这种非正式调优会导致数据泄露和性能估计过于乐观,与算法超参数调优中已知的陷阱类似。
- 当涉及超参数调优时,基于重采样的评估程序(如嵌套交叉验证)是获得无偏性能估计的必要手段。
- 在未正确嵌套的情况下使用简单的k折交叉验证,当预处理超参数被调优时,可能导致性能声称过于乐观。
- 在报告中缺乏对预处理选择的透明度,会让人误以为数据未被预处理,或未考虑其他替代方案。
- 对整个模型开发过程(包括预处理超参数)进行预注册,可增强可复现性,并有助于发现潜在偏差。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。