KLAS:利用相似性拼接神经网络以改进精度-效率权衡
KLAS: Using Similarity to Stitch Neural Networks for Improved Accuracy-Efficiency Tradeoffs
AI总结:
提出KLAS框架,通过KL散度度量中间表示相似性自动选择最佳拼接配置,在相同微调成本下提升拼接模型的精度-效率曲线。
摘要:
鉴于部署目标的广泛性,灵活模型选择对于在给定计算预算内优化性能至关重要。最近的研究表明,在模型家族内拼接预训练模型能够实现精度-效率权衡空间的成本效益插值。拼接将一个预训练模型的中间激活变换到另一个模型,生成新的插值拼接网络。这类网络沿精度-效率谱提供了部署选项池。然而,现有拼接方法往往产生次优权衡且缺乏泛化性,因为它们主要依赖启发式方法选择拼接配置。我们认为,构建改进的精度-效率权衡需要显式捕获并利用被拼接预训练模型之间的相似性。为此,我们引入KLAS,一种新颖的拼接选择框架,通过利用中间表示之间的KL散度,自动化和泛化跨模型家族的拼接选择。KLAS从$O(k^2n^2)$种可能性中为$k$个深度为$n$的预训练模型识别最有前景的二元拼接。通过全面实验,我们证明KLAS在相同微调成本下改进了拼接模型的精度-效率曲线,与基线相比,KLAS在相同计算成本下实现了高达$1.21\%$的ImageNet-1K top-1准确率提升,或在保持准确率的同时将FLOPs降低$1.33\times$。
英文摘要:
Given the wide range of deployment targets, flexible model selection is essential for optimizing performance within a given compute budget. Recent work demonstrates that stitching pretrained models within a model family enables cost-effective interpolation of the accuracy-efficiency tradeoff space. Stitching transforms intermediate activations from one pretrained model into another, producing a new interpolated stitched network. Such networks provide a pool of deployment options along the accuracy-efficiency spectrum. However, existing stitching approaches often yield suboptimal tradeoffs and lack generalizability, as they primarily rely on heuristics to select stitch configurations. We argue that constructing improved accuracy-efficiency tradeoffs requires explicitly capturing and leveraging the similarity between pretrained models being stitched. To this end, we introduce KLAS, a novel stitch selection framework that automates and generalizes stitch selection across model families by leveraging KL divergence between intermediate representations. KLAS identifies the most promising binary stitches from the $O(k^2n^2)$ possibilities for $k$ pretrained models of depth $n$. Through comprehensive experiments, we demonstrate that KLAS improves the accuracy-efficiency curve of stitched models at the same finetuning cost as baselines. KLAS achieves up to $1.21\%$ higher ImageNet-1K top-1 accuracy at the same computational cost, or maintains accuracy with a $1.33\times$ reduction in FLOPs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。