通过梯度一致性提升模型在分布外场景下的泛化能力
CGLearn: Consistent Gradient-Based Learning for Out-of-Distribution Generalization
- 利用多环境梯度一致性识别可靠特征
- 在线性与非线性任务中均优于现有方法
- 无需独立环境,可从观测数据子集挖掘因果不变性
提升泛化能力并构建高度预测性、鲁棒的机器学习模型,关键在于学习目标变量背后的因果结构。一种有效方法是学习跨多个环境的不变预测器。本文提出简单而强大的CGLearn方法,基于不同环境间梯度的一致性进行学习。梯度一致表明特征可靠,不一致则暗示潜在因果机制差异。实验表明,CGLearn在多种回归与分类任务中,无论线性或非线性设定,性能均优于当前最优方法。该方法即使在缺乏独立环境时仍具鲁棒性,可通过观测数据的不同子样本挖掘不变性。在合成及真实数据集上的全面实验验证了其在多样场景中的有效性。研究强调了利用梯度一致性学习因果不变性的价值,推动了鲁棒机器学习的发展。线性与非线性版本的源码已开源:https://github.com/hasanjawad001/CGLearn。
原文摘要 · Abstract (English)
Improving generalization and achieving highly predictive, robust machine learning models necessitates learning the underlying causal structure of the variables of interest. A prominent and effective method for this is learning invariant predictors across multiple environments. In this work, we introduce a simple yet powerful approach, CGLearn, which relies on the agreement of gradients across various environments. This agreement serves as a powerful indication of reliable features, while disagreement suggests less reliability due to potential differences in underlying causal mechanisms. Our proposed method demonstrates superior performance compared to state-of-the-art methods in both linear and nonlinear settings across various regression and classification tasks. CGLearn shows robust applicability even in the absence of separate environments by exploiting invariance across different subsamples of observational data. Comprehensive experiments on both synthetic and real-world datasets highlight its effectiveness in diverse scenarios. Our findings underscore the importance of leveraging gradient agreement for learning causal invariance, providing a significant step forward in the field of robust machine learning. The source code of the linear and nonlinear implementation of CGLearn is open-source and available at: https://github.com/hasanjawad001/CGLearn.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。