首页›The Gradient›文章

Why Doesn’t My Model Work?

Michael Lones · 2024年2月24日

AI 摘要 AI 生成,可能有误

在开发过程中看似表现良好的机器学习模型,在实际数据上常常会失败,原因在于一些常见的陷阱,例如误导性数据(隐藏变量、虚假相关性和标注错误)、数据泄露(例如,在拆分测试数据之前进行依赖于数据的预处理、预测中的前瞻性偏差,以及针对测试集的反复调优),以及不恰当的评估指标。这些错误已经导致了现实世界中的失败,例如无效的新冠预测模型,甚至助长了科学领域的可重复性危机。作者建议仔细检查模型在决策时使用了哪些信息,在整个机器学习流程中避免数据泄露,并采用诸如最近推出的面向基于机器学习的科学的REFORMS核查清单等实践做法。

Have you ever trained a model you thought was good, but then it failed miserably when applied to real world data? If so, you’re in good company. Machine learning processes are complex, and it’s very easy to do things that will cause overfitting without it being obvious. In the 20 years or so that I’ve been working in machine learning, I’ve seen many examples of this, prompting me to write “How to avoid machine learning pitfalls: a guide for academic researchers” in an attempt to prevent other people from falling into these traps.

But you don’t have to take my word for it. These issues are being increasingly reported in both the scientific and popular press. Examples include the observation that hundreds of models developed during the Covid pandemic simply don’t work, and that a water quality system deployed in Toronto regularly told people it was safe to bathe in dangerous water. Many of these are documented in the AIAAIC repository. It’s even been suggested that these machine learning missteps are causing a reproducibility crisis in science — and, given that many scientists use machine learning as a key tool these days, a lack of trust in published scientific results.

In this article, I’m going to talk about some of the issues that can cause a model to seem good when it isn’t. I’ll also talk about some of the ways in which these kinds of mistakes can be prevented, including the use of the recently-introduced REFORMS checklist for doing ML-based science.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 The Gradient

After Orthogonality: Virtue-Ethical Agency and AI Alignment

AI 摘要This essay argues that rational agency—human or artificial—should not be understood in terms of final goals or consequentialist optimization, but through 'eudaimonic rationality,' in which actions are aligned to self-structuring networks of practices. It contends that core AI-safety desiderata like transparency, harmlessness, and corrigibility are natural and stable when treated as virtue-like, always-on practices, but brittle and unnatural when interpreted as goals or rules. The author concludes that many classical alignment paradoxes stem from assuming goal-driven optimizers, and that instilling AIs with eudaimonic rationality offers a more natural, robust, and safer target for alignment.

AGI Is Not Multimodal

AI 摘要The article argues that multimodal approaches built on scaled large language models will not achieve human-level AGI, because LLMs likely learn vast collections of syntactic heuristics for predicting tokens rather than genuine world models, giving them only a superficial understanding of reality. It contends that true AGI requires grounded, embodied intelligence capable of solving physical problems like sensorimotor reasoning and motion planning, which cannot be reduced to symbol manipulation. The author advocates treating embodiment and environmental interaction as primary, viewing modality-specific processing as emergent, rather than patching together massive modular networks.

Shape, Symmetries, and Structure: The Changing Role of Mathematics in Machine Learning Research

AI 摘要The article argues that although compute-driven empirical advances have recently outpaced mathematically principled approaches in machine learning—echoing the 'Bitter Lesson'—mathematics remains highly relevant, with its role shifting from providing theoretical guarantees and guiding granular design toward post-hoc explanation of empirical phenomena and higher-level choices like matching architectures to data symmetries. This shift toward scale has broadened the applicable mathematical toolkit, bringing 'pure' fields such as topology, geometry, and algebra into machine learning to help characterize high-dimensional objects like model weights, hidden activations, and datasets that defy visual intuition. Examples such as intrinsic dimension illustrate how these geometric tools can explain generalization, robustness, and other model behaviors that standard performance statistics cannot capture.

What's Missing From LLM Chatbots: A Sense of Purpose

AI 摘要The article argues that although LLM chatbots keep improving on static benchmarks, they lack purposeful, goal-directed multi-turn dialogue, which is essential for genuine human-AI collaboration. It reviews how dialogue systems are built (pretraining, chat formatting, and RLHF) and presents empirical evidence that LLMs quickly drift away from their system prompts over long conversations, creating usability and safety problems. The author proposes treating human-AI interaction as a collaborative game and calls for training methods and benchmarks that emphasize multi-round, intention-driven dialogue.

We Need Positive Visions for AI Grounded in Wellbeing

AI 摘要The article argues that beneficial AI should be concretely grounded in human wellbeing and the health of society, rather than remaining a vague, high-minded ideal. While acknowledging that no consensus definition of wellbeing exists, the authors note that scientifically supported factors like supportive relationships, meaningful work, and positive emotional experiences offer a workable basis for guiding AI research and products. They call for the development of positive visions for an AI-infused society, highlighting foundation models as a critical leverage point that could support wellbeing through new algorithms, wellbeing-based evaluations, and training data.