arXiv:2501.08504cs.CVcs.LG2025-01被引 4

将SAM改造成可搜索的超网络,压缩后性能更强。

SuperSAM: Crafting a SAM Supernetwork via Structured Pruning and Unstructured Parameter Prioritization

  • 通过分层结构化剪枝和参数优先级排序构建ViT超网络
  • 生成的子网络比原SAM ViT-B小30%-70%且性能更优
  • 适合需要轻量化视觉模型的研究者与开发者

神经架构搜索(NAS)能自动化设计高效神经网络。与传统方法相比,最近的单次搜索方法更高效,通过构建共享权重的超网络作为子网络的搜索空间。然而,如何设计有效的搜索空间仍是挑战。本文提出一种面向视觉变换器(ViT)架构的搜索空间设计策略,将分割一切模型(SAM)转化为名为SuperSAM的共享权重超网络。方法结合逐层结构化剪枝与参数优先级排序:前者以概率方式移除部分Transformer层,后者对剩余层中的MLP块进行权重重排与切片。在多个数据集上使用夹心规则训练超网络,并借助程序自动调优器发现高效子网络。结果表明,生成的子网络规模比原始预训练的SAM ViT-B小30%-70%,同时性能更优。本工作为ViT的NAS搜索空间设计提供了新而有效的方法。

原文摘要 · Abstract (English)

Neural Architecture Search (NAS) is a powerful approach of automating the design of efficient neural architectures. In contrast to traditional NAS methods, recently proposed one-shot NAS methods prove to be more efficient in performing NAS. One-shot NAS works by generating a singular weight-sharing supernetwork that acts as a search space (container) of subnetworks. Despite its achievements, designing the one-shot search space remains a major challenge. In this work we propose a search space design strategy for Vision Transformer (ViT)-based architectures. In particular, we convert the Segment Anything Model (SAM) into a weight-sharing supernetwork called SuperSAM. Our approach involves automating the search space design via layer-wise structured pruning and parameter prioritization. While the structured pruning applies probabilistic removal of certain transformer layers, parameter prioritization performs weight reordering and slicing of MLP-blocks in the remaining layers. We train supernetworks on several datasets using the sandwich rule. For deployment, we enhance subnetwork discovery by utilizing a program autotuner to identify efficient subnetworks within the search space. The resulting subnetworks are 30-70% smaller in size compared to the original pre-trained SAM ViT-B, yet outperform the pretrained model. Our work introduces a new and effective method for ViT NAS search-space design.

视觉模型NAS超网络ViT

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。