arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.12983cs.CVcs.LG
收藏

OSSCAR:基于组合优化的视觉与语言模型一次性结构化剪枝

OSSCAR: One-Shot Structured Pruning in Vision and Language Models with Combinatorial Optimization

Massachusetts Institute of Technology(麻省理工学院);Google Research(谷歌研究院)

Xiang Meng, Shibal Ibrahim, Kayhan Behdin, Hussein Hazimeh, Natalia Ponomareva, Rahul Mazumder

AI总结:

本文提出OSSCAR,一种基于组合优化的高效一次性结构化剪枝框架,通过逐层重建与低秩更新实现高效局部搜索,在视觉与语言模型上显著降低困惑度并提升推理速度,支持数百亿参数规模。

摘要:

结构化剪枝是降低大型视觉和语言模型推理成本的一种有前景的方法。通过移除精心挑选的结构(如神经元或注意力头),该方法的优势可以在标准深度学习硬件上实现。在本研究中,我们专注于一次性(训练后)设置下的结构化剪枝,该设置在剪枝后无需模型重训练。我们为该问题提出了一种新颖的组合优化框架,基于逐层重建目标和允许可扩展优化的精细重构。此外,我们设计了一种新的局部组合优化算法,利用低秩更新实现高效的局部搜索。我们的框架在时间和内存上均高效,并在视觉模型(如ResNet50、MobileNet)和语言模型(如OPT-1.3B至OPT-30B)上显著优于最先进的一次性方法。对于语言模型(如OPT-2.7B),与最先进的ZipLM方法相比,OSSCAR在WikiText上实现了125倍更低的测试困惑度,同时获得2倍的推理时间加速。我们的框架速度也提升了6倍至8倍。值得注意的是,本研究考虑了具有数百亿参数的模型,这比先前结构化剪枝文献中考虑的规模大100倍。

英文摘要:

Structured pruning is a promising approach for reducing the inference costs of large vision and language models. By removing carefully chosen structures, e.g., neurons or attention heads, the improvements from this approach can be realized on standard deep learning hardware. In this work, we focus on structured pruning in the one-shot (post-training) setting, which does not require model retraining after pruning. We propose a novel combinatorial optimization framework for this problem, based on a layer-wise reconstruction objective and a careful reformulation that allows for scalable optimization. Moreover, we design a new local combinatorial optimization algorithm, which exploits low-rank updates for efficient local search. Our framework is time and memory-efficient and considerably improves upon state-of-the-art one-shot methods on vision models (e.g., ResNet50, MobileNet) and language models (e.g., OPT-1.3B -- OPT-30B). For language models, e.g., OPT-2.7B, OSSCAR can lead to $125\times$ lower test perplexity on WikiText with $2\times$ inference time speedup in comparison to the state-of-the-art ZipLM approach. Our framework is also $6\times$ -- $8\times$ faster. Notably, our work considers models with tens of billions of parameters, which is up to $100\times$ larger than what has been previously considered in the structured pruning literature.

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

↑