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

Waqwoya Abebe, Sadegh Jafari, Sixing Yu, Akash Dutta, Jan Strube +4 more
1/15/2025
cs.CVcs.LG

No official code found. Best implementation: pnnl/SuperSAM (2 stars, Apache-2.0, last commit 2024-11-20).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

pnnl/SuperSAMCommunity100%
Apache-2.0

SuperSAM

22Shell, PythonOct 28, 20241 years agoApache-2.0

Cite this paper

@article{abebe2025supersam,
  title  = {SuperSAM: Crafting a SAM Supernetwork via Structured Pruning and Unstructured Parameter Prioritization},
  author = {Waqwoya Abebe and Sadegh Jafari and Sixing Yu and Akash Dutta and Jan Strube and Nathan R. Tallent and Luanzheng Guo and Pablo Munoz and Ali Jannesari},
  year   = {2025},
  eprint = {2501.08504},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.08504v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.08504.svg)](https://codeofpaper.com/paper/2501.08504)

Discussion