arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.16712cs.CL
收藏

LLM性能预测器是架构搜索的良好初始化器

LLM Performance Predictors are good initializers for Architecture Search

University of British Columbia(不列颠哥伦比亚大学);MBZUAI(穆罕默德·本·扎耶德人工智能大学);Google DeepMind(谷歌DeepMind)

Ganesh Jawahar, Muhammad Abdul-Mageed, Laks V. S. Lakshmanan, Dujian Ding

AI总结:

本文提出利用LLM构建性能预测器,并通过蒸馏得到轻量回归模型,将其用于神经架构搜索的初始阶段,在保持与最先进NAS相当性能的同时将搜索时间减少约50%。

摘要:

在这项工作中,我们将大型语言模型(LLMs)用于一种新颖的用例:构建性能预测器(PP),用于估计特定深度神经网络架构在下游任务上的性能。我们为LLMs创建了PP提示,包括(i)角色描述,(ii)对LLM的指令,(iii)超参数定义,以及(iv)展示示例架构及其效率指标和“从头训练”性能的演示。在机器翻译(MT)任务中,带有我们PP提示的GPT-4(LLM-PP)与基线预测器相比,实现了最先进的平均绝对误差,但在秩相关系数上略有下降。此外,我们证明LLM-PP的预测可以被蒸馏到一个紧凑的回归模型(LLM-Distill-PP)中,该模型令人惊讶地保留了LLM-PP的大部分性能。这为资源密集型的性能估计提供了一种经济高效的替代方案。具体而言,对于神经架构搜索(NAS),我们引入了一种混合搜索算法(HS-NAS),在初始搜索阶段使用LLM-Distill-PP,之后回退到基线预测器。HS-NAS的性能与最先进的NAS相似,将搜索时间减少了约50%,并且在某些情况下改善了延迟、GFLOPs和模型大小。代码可在以下地址找到:https://github.com/UBC-NLP/llmas。

英文摘要:

In this work, we utilize Large Language Models (LLMs) for a novel use case: constructing Performance Predictors (PP) that estimate the performance of specific deep neural network architectures on downstream tasks. We create PP prompts for LLMs, comprising (i) role descriptions, (ii) instructions for the LLM, (iii) hyperparameter definitions, and (iv) demonstrations presenting sample architectures with efficiency metrics and `training from scratch' performance. In machine translation (MT) tasks, GPT-4 with our PP prompts (LLM-PP) achieves a SoTA mean absolute error and a slight degradation in rank correlation coefficient compared to baseline predictors. Additionally, we demonstrate that predictions from LLM-PP can be distilled to a compact regression model (LLM-Distill-PP), which surprisingly retains much of the performance of LLM-PP. This presents a cost-effective alternative for resource-intensive performance estimation. Specifically, for Neural Architecture Search (NAS), we introduce a Hybrid-Search algorithm (HS-NAS) employing LLM-Distill-PP for the initial search stages and reverting to the baseline predictor later. HS-NAS performs similarly to SoTA NAS, reducing search hours by approximately 50%, and in some cases, improving latency, GFLOPs, and model size. The code can be found at: https://github.com/UBC-NLP/llmas.

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

↑