宏大的错觉:软件可移植性的神话及其对机器学习进展的影响
The Grand Illusion: The Myth of Software Portability and Implications for ML Progress
AI总结:
本研究大规模评估了主流ML框架在不同硬件上的可移植性,发现移植会导致超40%功能丧失且性能严重下降,揭示了硬件专业化阻碍了机器学习研究的创新。
摘要:
突破机器学习的边界通常需要探索不同的硬件和软件组合。然而,跨不同工具栈进行实验的自由可能与追求效率的驱动力相矛盾,这种驱动力催生了日益专业化的AI硬件,并激励了围绕少数ML框架的整合。如果软件和硬件共同演化,探索性研究可能会受到限制,这使得偏离与流行工具栈配合良好的主流思路变得更加困难。尽管这种摩擦日益影响机器学习的创新速度,但据我们所知,工具缺乏可移植性的问题尚未被量化。在本研究中,我们提出问题:流行的ML软件框架的可移植性如何?我们对主流ML框架在不同硬件类型上的可移植性进行了大规模研究。我们的发现描绘了一幅令人不安的图景——当框架被移植到其他硬件时,可能会丧失超过40%的关键功能。更糟糕的是,即使功能具有可移植性,其性能的减速也可能极其严重,导致性能无法接受。总体而言,我们的结果揭示了偏离少数硬件-软件组合的代价有多高,并表明硬件的专业化阻碍了机器学习研究的创新。
英文摘要:
Pushing the boundaries of machine learning often requires exploring different hardware and software combinations. However, the freedom to experiment across different tooling stacks can be at odds with the drive for efficiency, which has produced increasingly specialized AI hardware and incentivized consolidation around a narrow set of ML frameworks. Exploratory research can be restricted if software and hardware are co-evolving, making it even harder to stray away from mainstream ideas that work well with popular tooling stacks. While this friction increasingly impacts the rate of innovation in machine learning, to our knowledge the lack of portability in tooling has not been quantified. In this work, we ask: How portable are popular ML software frameworks? We conduct a large-scale study of the portability of mainstream ML frameworks across different hardware types. Our findings paint an uncomfortable picture -- frameworks can lose more than 40% of their key functions when ported to other hardware. Worse, even when functions are portable, the slowdown in their performance can be extreme and render performance untenable. Collectively, our results reveal how costly straying from a narrow set of hardware-software combinations can be - and suggest that specialization of hardware impedes innovation in machine learning research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。