预训练语言模型的不同底层Quantization方案研究
An Investigation on Different Underlying Quantization Schemes for Pre-trained Language Models
摘要:
最近,像BERT这样的预训练语言模型在多个自然语言处理任务上表现出了良好的性能。然而,这些模型的应用一直受到限制,由于其庞大的规模。为了减小其尺寸,一种流行且有效的方法是量化。然而,大多数研究BERT量化的工作都采用了一次线性聚类作为量化方案,很少有人尝试对其进行改进,这大大限制了量化的性能。在本文中,我们实现了k-means量化和比较其性能的固定精度量化的BERT与线性量化。通过比较,我们验证了底层量化方案升级的效果被低估,k-means量化有巨大的发展潜力。此外,我们还比较了ALBERT模型上的两种量化方案,以探索不同预训练模型之间的鲁棒性差异。
英文摘要:
Recently, pre-trained language models like BERT have shown promising performance on multiple natural language processing tasks. However, the application of these models has been limited due to their huge size. To reduce its size, a popular and efficient way is quantization. Nevertheless, most of the works focusing on BERT quantization adapted primary linear clustering as the quantization scheme, and few works try to upgrade it. That limits the performance of quantization significantly. In this paper, we implement k-means quantization and compare its performance on the fix-precision quantization of BERT with linear quantization. Through the comparison, we verify that the effect of the underlying quantization scheme upgrading is underestimated and there is a huge development potential of k-means quantization. Besides, we also compare the two quantization schemes on ALBERT models to explore the robustness differences between different pre-trained models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。