使用随机操作访问特定瓦片(ROAST)散列的高效模型压缩
Efficient model compression with Random Operation Access Specific Tile (ROAST) hashing
摘要:
深度学习的进步通常与模型大小的增加有关。模型大小会显著影响深度模型的部署成本和延迟。例如,像BERT这样的模型由于其庞大的规模而无法部署在边缘设备和移动设备上。因此,深度学习的大多数进展还没有达到边缘。模型压缩在自然语言处理、视觉和推荐领域的文献中受到了应有的关注。提出了一种与模型无关、缓存友好的模型压缩方法:随机操作访问特定瓦片(ROAST)哈希。ROAST通过轻量级映射将参数聚集起来。值得注意的是,当对这些参数进行聚类时,ROAST通过将内存访问模式与参数访问模式对齐来利用缓存层次结构。ROAST比流行的参数共享方法HashedNet更快地完成$\sim 25 \times$的训练和$\sim 50 \times$的推断。此外,ROAST引入了全局权重共享,这在经验上和理论上都优于HashedNet中的局部权重共享,并且本身可以独立感兴趣。使用ROAST,我们提出了第一个压缩的BERT,它比$100\times - 1000\times$小,但不会导致质量下降。这些通用架构(如Transformers)上的压缩级别对于SOTA模型在资源受限设备(如移动设备和边缘设备)上的未来部署很有希望
英文摘要:
Advancements in deep learning are often associated with increasing model sizes. The model size dramatically affects the deployment cost and latency of deep models. For instance, models like BERT cannot be deployed on edge devices and mobiles due to their sheer size. As a result, most advances in Deep Learning are yet to reach the edge. Model compression has sought much-deserved attention in literature across natural language processing, vision, and recommendation domains. This paper proposes a model-agnostic, cache-friendly model compression approach: Random Operation Access Specific Tile (ROAST) hashing. ROAST collapses the parameters by clubbing them through a lightweight mapping. Notably, while clubbing these parameters, ROAST utilizes cache hierarchies by aligning the memory access pattern with the parameter access pattern. ROAST is up to $\sim 25 \times$ faster to train and $\sim 50 \times$ faster to infer than the popular parameter sharing method HashedNet. Additionally, ROAST introduces global weight sharing, which is empirically and theoretically superior to local weight sharing in HashedNet, and can be of independent interest in itself. With ROAST, we present the first compressed BERT, which is $100\times - 1000\times$ smaller but does not result in quality degradation. These compression levels on universal architecture like transformers are promising for the future of SOTA model deployment on resource-constrained devices like mobile and edge devices
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。