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

SimQ-NAS:同步量化策略与神经架构搜索

SimQ-NAS: Simultaneous Quantization Policy and Neural Architecture Search

Intel Corporation(英特尔公司);University of California, Merced(加州大学默塞德分校)

Sharath Nittur Sridhar, Maciej Szankin, Fang Chen, Sairam Sundaresan, Anthony Sarah

AI总结:

本文提出SimQ-NAS,通过多目标搜索与轻量预测器同步优化子网络架构和量化策略,在Transformer及卷积网络上同时提升准确率、延迟和模型大小,最高分别获得4.80倍和3.44倍改进。

摘要:

近期的一次性神经架构搜索算法依赖于训练一个针对特定任务定制的、与硬件无关的超网络,然后为不同的硬件平台提取高效的子网络。主流方法将超网络的训练与子网络的搜索分离,通常采用预测器来减轻搜索带来的计算开销。此外,某些方法还将量化策略纳入搜索空间。然而,尽管卷积神经网络的量化策略搜索已被充分研究,但这些方法向Transformer尤其是基础模型的扩展仍探索不足。在本文中,我们证明通过使用多目标搜索算法搭配轻量训练的预测器,我们可以高效地同时搜索子网络架构和相应的量化策略,并在准确率、模型大小和延迟等不同性能目标上超越各自的基线。具体而言,我们展示了我们的方法在单模态(ViT和BERT)和多模态(BEiT-3)基于Transformer的架构以及卷积架构(ResNet)上均表现良好。对于某些网络,与完全量化的INT8基线相比,我们在延迟和模型大小上分别实现了高达4.80倍和3.44倍的改进,且准确率没有下降。

英文摘要:

Recent one-shot Neural Architecture Search algorithms rely on training a hardware-agnostic super-network tailored to a specific task and then extracting efficient sub-networks for different hardware platforms. Popular approaches separate the training of super-networks from the search for sub-networks, often employing predictors to alleviate the computational overhead associated with search. Additionally, certain methods also incorporate the quantization policy within the search space. However, while the quantization policy search for convolutional neural networks is well studied, the extension of these methods to transformers and especially foundation models remains under-explored. In this paper, we demonstrate that by using multi-objective search algorithms paired with lightly trained predictors, we can efficiently search for both the sub-network architecture and the corresponding quantization policy and outperform their respective baselines across different performance objectives such as accuracy, model size, and latency. Specifically, we demonstrate that our approach performs well across both uni-modal (ViT and BERT) and multi-modal (BEiT-3) transformer-based architectures as well as convolutional architectures (ResNet). For certain networks, we demonstrate an improvement of up to $4.80x$ and $3.44x$ for latency and model size respectively, without degradation in accuracy compared to the fully quantized INT8 baselines.

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

↑