arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.19268cs.LGcs.AI
收藏

大规模量化的有趣特性

Intriguing Properties of Quantization at Scale

Cohere For AI(Cohere人工智能研究院);Cohere(Cohere公司)

Arash Ahmadian, Saurabh Dash, Hongyu Chen, Bharat Venkitesh, Stephen Gou, Phil Blunsom, Ahmet Üstün, Sara Hooker

AI总结:

本文通过优化对量化友好的训练方案抑制激活值离群点,证明量化性能悬崖并非规模的固有产物,并成功对410M至52B模型实现低退化量化。

摘要:

涌现特性已被广泛用作一个术语,用来描述在较小模型中不存在但在较大模型中观察到的行为。近期研究表明,量化所带来的性能权衡也是一种涌现特性,在超过6B参数的模型中会出现性能的急剧下降。在这项工作中,我们提出疑问:“量化性能悬崖是否仅仅是规模因素造成的?”在当前研究日益关注某些涌现特性为何在大规模下显现的背景下,本工作提供了一个有用的反例。我们提出,可以通过优化一种对量化友好的训练方案来抑制大幅度的激活值离群点。在此,我们发现离群维度并非规模的固有产物,而是对预训练期间存在的优化条件十分敏感。这既为更高效的量化开辟了方向,也提出了一个问题:其他涌现特性究竟是固有的,还是可以通过优化和架构设计选择来改变和调节。我们成功地对规模从410M到52B的模型进行了量化,性能退化极小。

英文摘要:

Emergent properties have been widely adopted as a term to describe behavior not present in smaller models but observed in larger models. Recent work suggests that the trade-off incurred by quantization is also an emergent property, with sharp drops in performance in models over 6B parameters. In this work, we ask "are quantization cliffs in performance solely a factor of scale?" Against a backdrop of increased research focus on why certain emergent properties surface at scale, this work provides a useful counter-example. We posit that it is possible to optimize for a quantization friendly training recipe that suppresses large activation magnitude outliers. Here, we find that outlier dimensions are not an inherent product of scale, but rather sensitive to the optimization conditions present during pre-training. This both opens up directions for more efficient quantization, and poses the question of whether other emergent properties are inherent or can be altered and conditioned by optimization and architecture design choices. We successfully quantize models ranging in size from 410M to 52B with minimal degradation in performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑