模型的生成模型:面向多样任务与资源约束的快速DNN定制
Generative Model for Models: Rapid DNN Customization for Diverse Tasks and Resource Constraints
AI总结:
受生成式AI启发,提出NN-Factory框架,利用生成模型直接组装预训练模块,实现面向多样边缘任务和资源约束的快速定制,数秒内生成高质量模型,比传统方法快数个数量级。
摘要:
与通常规模庞大且千篇一律的云端深度学习模型不同,边缘部署的模型通常需要针对特定领域任务和资源受限环境进行定制。由于边缘场景的多样性以及每个场景的训练负载,这种定制过程可能成本高昂且耗时。尽管已有多种方法分别用于快速资源导向定制和任务导向定制,但同时实现这两者仍具挑战性。受生成式人工智能和神经网络模块化可组合性的启发,我们提出了NN-Factory,一个一劳永逸的框架,用于为多样化的边缘场景生成定制化的轻量级模型。其关键思想是使用生成模型直接产生定制模型,而非训练它们。NN-Factory的主要组件包括一个带有预训练模块的模块化超网络,这些模块可以被条件激活以完成不同任务,以及一个生成式模块组装器,该组装器根据任务和稀疏性要求操纵模块。给定一个边缘场景,NN-Factory通过搜索组装模块的最优策略,能够高效地定制一个专精于边缘任务且满足边缘资源约束的紧凑模型。基于不同边缘设备上的图像分类和目标检测任务的实验,NN-Factory能够在几秒内生成高质量的任务和资源特定模型,比传统模型定制方法快数个数量级。
英文摘要:
Unlike cloud-based deep learning models that are often large and uniform, edge-deployed models usually demand customization for domain-specific tasks and resource-limited environments. Such customization processes can be costly and time-consuming due to the diversity of edge scenarios and the training load for each scenario. Although various approaches have been proposed for rapid resource-oriented customization and task-oriented customization respectively, achieving both of them at the same time is challenging. Drawing inspiration from the generative AI and the modular composability of neural networks, we introduce NN-Factory, an one-for-all framework to generate customized lightweight models for diverse edge scenarios. The key idea is to use a generative model to directly produce the customized models, instead of training them. The main components of NN-Factory include a modular supernet with pretrained modules that can be conditionally activated to accomplish different tasks and a generative module assembler that manipulate the modules according to task and sparsity requirements. Given an edge scenario, NN-Factory can efficiently customize a compact model specialized in the edge task while satisfying the edge resource constraints by searching for the optimal strategy to assemble the modules. Based on experiments on image classification and object detection tasks with different edge devices, NN-Factory is able to generate high-quality task- and resource-specific models within few seconds, faster than conventional model customization approaches by orders of magnitude.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。