I am grateful for the opportunity to comment on the timely manuscript by my…
- User
I am grateful for the opportunity to comment on the timely manuscript by my distinguished colleague, David Donoho (2024). Donoho argues that we are witnessing a fundamental shift in science, and perhaps society more broadly, due to the rapid advancements in data science and computational research. He believes this shift is not accurately captured by the popular concept of an “AI singularity.’’ Instead, he focuses on the idea of “frictionless reproducibility” (FR). The practical implication being that with FR, almost anyone can seamlessly reproduce scientific results with ease, thereby removing barriers, expediting validation, and facilitating building upon past work. It is argued that this transition drastically accelerates the spread of ideas, changes how researchers collaborate, and could ultimately erase the memory of “pre-FR” methodologies as their inefficiencies become starkly apparent. Donoho paints a compelling, if arguably utopian, picture of a scientific landscape transformed by frictionless computational omnipotence. As a practitioner of conventional “pre-FR” approaches and a more recent machine learning practitioner-convert, I find myself both exhilarated by the potential Donoho outlines and troubled by a certain undercurrent of technological determinism in the article. Let me elaborate further.
The Devil Is In The Details The pursuit of frictionless reproducibility is an undeniably worthy goal–a cornerstone of robust science. However, Donoho’s framing perhaps downplays the sheer complexity of ensuring true replicability in practice. Seemingly minor deviations in software libraries (e.g., PyTorch vs. TensorFlow), hardware configurations (e.g., numerical precision, GPU, CPU, TPU), or even the temporal order in which large data sets are processed can introduce nontrivial variance that is hard to control post hoc (Stodden & Miguez, 2014). These realities complicate the idyllic vision of effortlessly replaying any scientific computation from the past. Further, data sets in fields dealing with human systems, from social sciences to medical research, are notoriously dynamic (Sculley et al., 2015), with shifting, often tightening concerns around privacy rights. Distributions shift over time as well; behaviors evolve, and what was replicable yesterday might hold less relevance tomorrow. Thus, FR within Donoho’s paradigm needs to be tempered with an appreciation for context and change over time. I might offer a more practical framing: low-friction reproducibility.
The Human Factor There is a risk in the article’s narrative that computational advancement may overshadow the enduring centrality of human expertise and judgment. Defining the very questions data science tools might answer remains irreducibly human. In fairness, one might argue this view (Holzinger, 2016) is now outdated; but if we stipulate that the goals of scientific progress are not just understanding the world, but principally, to improve the human condition, then neither machine learning nor data science are likely, on their own, to replace the deep domain knowledge and intuition essential for identifying truly impactful research directions. While ever more powerful machine learning models achieve startling levels of predictive accuracy, they still often function as ’black boxes’ with limited explanatory power. This necessitates researchers capable of critically interpreting results and building trustworthy AI systems (Rudin, 2019).
- Assistant
我很感激能够对我杰出同事David Donoho在2024年的及时手稿发表评论。
Donoho认为,由于数据科学和计算研究的快速进展,我们正在经历科学,甚至更广泛的社会的根本转变。他认为这种转变并没有被流行的“AI奇点”概念准确描述。相反,他关注的是“无摩擦可重复性”(FR)的理念。其实际意义在于,有了FR,几乎任何人都可以轻松地再现科学研究结果,从而消除障碍,加快验证过程,并促进基于过去工作的进展。据称,这种转变大大加速了思想的传播,改变了研究人员如何合作,并且最终可能会抹去“前FR”方法的记忆,因为它们的低效变得明显可见。
Donoho描绘了一幅诱人的、甚至可以说是乌托邦式的画面,展现了通过无摩擦计算全能变革的科学景观。作为传统“前FR”方法的实践者以及最近转向机器学习的从业者,我对Donoho描绘的潜力感到兴奋,同时对文章中某种潜在的技术决定论感到不安。让我进一步详细说明。细节决定成败
追求无摩擦可重复性无疑是一个有价值的目标——是坚实科学的基石。然而,Donoho的论述或许低估了在实践中确保真正可复现性的复杂性。软件库(如PyTorch与TensorFlow)、硬件配置(如数值精度、GPU、CPU、TPU)的些微偏差,甚至大型数据集处理的时间顺序都可能引入难以事后控制的非微不足道的差异(Stodden & Miguez, 2014)。这些现实让想象中轻松重现过去任何科学计算的愿景变得复杂。此外,处理人类系统的领域中的数据集,从社会科学到医学研究,因动态特性而臭名昭著(Sculley等,2015),隐私权的关注不断变化和加强。分布随着时间迁移也会变化;行为演变,昨日可复现的今天可能不再重要。因此,在Donoho的范式下的FR需要通过对上下文和时间变化的理解进行调节。我可能会提供一个更实际的框架:低摩擦可重复性。人的因素
在文章的叙述中有一个风险,即计算进步可能会掩盖人类专业知识和判断力的持续重要性。定义数据科学工具可能回答的基本问题仍然是不可简化的人类任务。公平地说,有人可能会认为这种观点(Holzinger, 2016)已经过时;但如果我们假设科学进步的目标不仅仅是理解世界,而主要是改善人类状况,那么无论机器学习还是数据科学本身都不可能取代识别真正有影响力研究方向所需的深厚领域知识和直觉。
尽管越来越强大的机器学习模型在预测准确性上达到了惊人的水平,它们仍然常常作为“黑箱”运作,解释力有限。这需要能够批判性地解释结果并建立可靠AI系统的研究人员(Rudin, 2019)。 - User
A Hybrid Future Donoho’s concept of a stark divide between a ‘backward’ “pre-FR” era and an enlightened post-FR scientific age is perhaps a little too black and white. It seems far more likely that many fields will experience a long transitional period, retaining proven methodological foundations, while selectively integrating computational innovations as needed, and when they are deemed sufficiently mature and reliable (Brynjolfsson & McAfee, 2017). Science has always advanced by leveraging broadly defined new tools (everything from computational paradigms, new theories, and even physical sensors); computation represents a spectacular next chapter, not a wholesale rewrite.
The Ethical Imperative Donoho wisely avoids the alarmist tone that often marks conversations around advanced AI and its potential dangers. His central thesis–—that computation and data science herald a profound shift in how research is conducted—is unassailable. However, with this acceleration comes a heightened responsibility. Alongside celebrating computational efficiency, every adherent field would be wise to invest equally in critical analysis of how post-FR paradigms could perpetuate data set biases, amplify errors at scale, and sideline vital ethical considerations in the pursuit of faster, lower friction, and better science (Mittelstadt et al., 2016).
- Assistant
混合的未来
Donoho关于“落后”的“前FR”时代与启蒙的后FR科学时代之间存在鲜明界限的观念或许有些过于黑白分明。更有可能的是,许多领域将经历一个漫长的过渡期,保留经过验证的方法论基础,同时在有需要时、并且在被认为足够成熟和可靠时,有选择性地整合计算创新(Brynjolfsson & McAfee, 2017)。科学一直是通过利用广义定义的新工具(从计算范式、新理论甚至物理传感器)而进步的;计算代表了一个壮观的下一章,不是全面的重写。伦理责任
Donoho明智地避免了通常伴随关于先进AI及其潜在危险讨论的危言耸听的语调。他的核心论点——计算和数据科学预示着研究方式的深刻转变——是无懈可击的。然而,随着这种加速发展,责任也随之增加。除了庆祝计算效率之外,各个相关领域都应明智地在批判性分析方面进行同等投资,以研究后FR范式如何可能延续数据集偏见、放大规模上的错误,并在追求更快、摩擦更小的更优科学中忽视了重要的伦理考虑(Mittelstadt等,2016)。结语
最后,请允许我对现状提出个人看法。对于我们这些有足够年龄经历过“传统”科学及新时代“规模大、摩擦小”科学的人来说,往往既感到敬畏和欣喜,也感到在看到仅凭规模解决我们多年来辛勤努力过的问题时有些许失落。Sutton(2019)在一篇常被引用的文章中将其称为“苦涩的教训。”但更恰当地说,这是一堂苦乐参半的课——因为我们非常荣幸能够生活在一个深刻变革的时代——这个时期会被载入史册。 - User
- Assistant
结论
我们提出了P2L,这是一种基于潜在扩散模型的逆问题求解器,引入了两项新策略。首先,我们开发了一种用于优化扩散模型中连续输入文本嵌入的提示调优方法。我们观察到,与先前工作的空文本嵌入相比,我们的策略可以显著提升性能。其次,我们提出了一种投影方法,以在反向扩散过程中将潜变量保持在编码器的范围空间内。我们的方法有效地减轻了逆问题求解中常出现的伪影,同时也使最终输出更清晰。P2L优于先前在潜变量和图像域上操作的扩散模型基础的逆问题求解器。局限性
虽然提示调优提高了性能,但也增加了计算复杂性,因为需要额外通过潜在扩散模型和解码器的正向/反向传递。因此,当目标是时间敏感的应用时,该方法需要进一步研究。由于我们优化的是连续文本嵌入而不是直接处理离散文本,难以解读优化收敛后的文本嵌入。这是用于SD的文本嵌入器的一个限制,因为CLIP不使用解码器。我们可以选择使用Imagen (Saharia et al., 2022b),其中T-5采用编码器-解码器框架,这样可以轻松检查提示调优方案中学习到的文本。此外,我们没有考虑使用CFG,这将允许灵活控制锐化的程度。将提示调优的想法扩展到联合优化条件和无条件模型的嵌入可能是未来研究的一个有趣方向。伦理声明
虽然我们的方法可以推动计算成像、医学成像及其他逆问题普遍存在领域的进步,但我们也认识到其在深度伪造生成或未经授权的数据重建等领域被滥用的潜力,这自然来源于生成模型的应用。扩散模型训练数据集中的潜在偏差可能会因我们方法的使用而被放大。我们确保我们的实验遵循伦理准则,使用公开可用的数据集或已获得明确许可的数据集。我们敦促社区在应用我们的研究成果时采用负责任的实践,并考虑技术的更广泛的社会影响。可复现性声明
为了促进可复现性,我们以算法(算法3, 4, 5)和伪代码(图5)的形式详细说明了我们的实施方法。该方法选择的特定超参数详见附录B。 - User
- Assistant
在前一部分中,我们展示了多项使用扩散模型解决逆问题的研究成果。专家和该领域的新手可能都会有一个自然的问题:“哪种方法效果最好?”遗憾的是,在本综述的范围内,我们无法对此问题提供确凿的答案,但我们可以分享一些看法。
关于显式逼近的思考。在本综述中,我们尝试用一种包含测量分数的显式逼近的通用数学语言来表达看似非常不同的工作,如DPS和DDRM。我们观察到所有方法都会计算一个与测量一致的误差度量,然后将误差提升回图像空间维度以执行梯度更新。有些方法使用测量的带噪声版本来计算误差,而另一些使用干净的测量。据我们所知,目前尚不清楚哪种方法效果最好,可以通过对现有方法进行简单的对偶变更来推导出新的逼近算法,例如,可以通过使用带噪声的测量来计算误差来提出Score-ALD++。查看图1,也显然可以发现,方法提议的“提升”矩阵越来越复杂。其中一些逼近需要增加计算,例如矩匹配方法。我们强烈相信,为了更好地理解不同方法在计算性能上的权衡,该领域将从扩散模型和逆问题的标准化基准中受益。我们还相信,在某些分布假设下,应该可以从理论上描述由不同方法引起的逼近误差的传播。
关于变分方法的思考。变分方法试图估计更简单分布的参数。其好处在于可以使用众所周知的优化技术更好地解决当前的优化问题。此方法的一个潜在缺点是提出的分布可能无法捕捉真实后验分布的复杂性。
关于CSGM类型方法的思考。CSGM类型框架可以从先前为解决具有GAN和其他深度生成建模框架的逆问题而开发的多种技术中受益。这里的主要问题是计算方面的,因为这里需要反演的生成模型是一个概率流ODE映射,它需要多次调用扩散模型。Consistency Models [157, 163] 和其他方法如中间层优化可能缓解此问题。
关于渐近精确方法的思考。通常基于蒙特卡罗的渐近精确方法在从真实后验中采样非常重要时可能有用。然而,这些方法的理论保证仅在无限计算的设定下成立,是否能够扩展到更实际的设定中尚待观察。
结论
在本综述中,我们讨论了不同类型的逆问题以及使用扩散先验解决这些问题所开发的不同方法。我们识别出了四个不同的类别:提出测量分数显式逼近的方法、变分推理方法、CSGM类型框架,以及最终以计算量增加为代价渐近保证精确采样的方法。不同的框架和其中的工作都试图解决后验分布不可求解的基本问题。在本综述中,我们试图统一看似不同的方法并解释不同方法的权衡。我们希望本综述能够成为逆问题扩散模型这一充满活力领域的参考点。