多数核:一种利用大模型动态以高效训练小模型的方法
Majority Kernels: An Approach to Leverage Big Model Dynamics for Efficient Small Model Training
AI总结:
本文提出多数核架构改动,使单次训练同时获得大模型性能与小模型部署能力,在MLP、ResNet和Transformer上以极小训练开销超越蒸馏集成和子模优化等基线。
摘要:
大型语言与视觉模型在受限环境中的近期突破和成功部署主要遵循两阶段方法。首先,训练大型模型以达到峰值性能,随后采用模型缩减方法以满足硬件约束;蒸馏、压缩或量化等方法有助于利用高性能大模型来诱导出性能较好的较小模型。形式上,这可以看作是从大小为 $k \cdot n$ 的较大模型中识别大小为 $n$ 的最优模型的问题,其中 $k > 1$ 是过参数化因子。本文探讨了这样一个假设:单次训练过程可以同时训练一个用于性能的大模型,并派生出一个用于部署的小模型。我们的贡献是一种有效的架构改动,即所谓的{\it 多数核},它与主流标准架构兼容,例如多层感知机(MLPs)、残差网络(ResNets)和Transformer。我们证明,应用我们的技术可以改变训练动态,从而在不同架构和任务上获得性能提升,同时保持推理性能一致。此外,我们的方法在训练时间成本(墙钟时间)上仅增加极小的开销。所提出的方法在广泛的数据集和模型上表现出强劲的性能,甚至优于强基线方法,如蒸馏集成以及基于子模优化的组合优化方法。
英文摘要:
Recent breakthroughs and successful deployment of large language and vision models in a constrained environment predominantly follow a two phase approach. First, large models are trained to achieve peak performance, followed by a model shrinking method to meet hardware constraints; Methods like distillation, compression or quantization help leverage the highly performant large models to induce smaller performant ones. Formally, this can be seen as the problem of identifying an optimal model of size $n$ from a larger model of size $k \cdot n$, where $k > 1$ is the overparameterization factor. This paper explores the hypothesis that a single training run can simultaneously train a larger model for performance and derive a smaller model for deployment. Our contribution is an effective architectural change, namely, {\it Majority Kernels} that is compatible with the main standard architectures such as multi-layer perceptrons (MLPs), Residual networks (ResNets), and Transformers. We demonstrate that applying our technique can modify the training dynamics resulting in performance gains across architectures and tasks while maintaining the inference performance consistent. Furthermore, our approach adds minimal overhead to the cost incurred (wall clock time) at training time. The proposed approach shows strong performance on a wide variety of datasets and models, even outperforming strong baselines such as distilled ensembles as well as combinatorial optimization methods based on submodular optimization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。