Manuscript Offprint

arXiv:2608.28205

Cut-ViT: Task-Specific Model Pruning via Gram Anchoring Subspace Consistency

Jianjian Yin, Liulei Li, Tao Chen, Yi Chen, Yazhou Yao, Wenguan Wang

Jianjian Yin 1,4,∗^{1,4,*} D◯\textcircled{D}, Liulei Li 2,∗^{2,*} D◯\textcircled{D}, Tao Chen 1,4^{1,4} D◯\textcircled{D}, Yi Chen 3^{3} D◯\textcircled{D}, Yazhou Yao 1,4(⊗)^{1,4(\otimes)} D◯\textcircled{D}, and Wenguan Wang 2^{2} D◯\textcircled{D}

1^{1}Nanjing University of Science and Technology, Nanjing, China

2^{2}Zhejiang University, Hangzhou, China. 3^{3}Nanjing Normal University, Nanjing, China

4^{4}State Key Laboratory of Intelligent Manufacturing of Advanced Construction Machinery, Nanjing, China

*Equal contribution ⊗\otimesCorresponding author

https://github.com/NUST-Machine-Intelligence-Laboratory/Cut-ViT

Abstract. Pruning visual foundation models has attracted considerable attention. However, existing methods focus on rigid point-to-point token alignment on a single dataset for pruning, suffering from two limitations: i) robustness degradation, and ii) task-specificity deficiency. To address these limitations, we propose a task-specific pruning pipeline, named CUT-ViT. Specifically, we first construct gram anchoring matrices from both spatial and semantic perspectives, and perform the subspace decomposition to extract the corresponding subspace bases. Basis-agnostic and residual constraints are then adopted to align the gram subspaces between the native and pruned DINOv3 models along spatial and channel dimensions, enabling subnetworks to inherit robust feature representations of native DINOv3. Furthermore, we design spectral entropy adaptation, which quantifies the information density of feature manifolds along spatial and channel dimensions, thereby adapting the pruning objective to specific downstream tasks. Experiments show that CUT-ViT requires approximately one minute on a single A100 GPU to obtain subnetworks at various sparsity levels, using only 20.9% of the time and 45.5% of the GPU memory compared with previous methods, while achieving SOTA performance on six tasks across nine datasets.

Keywords: Model pruning · Gram anchoring · Subspace constraint

1 Introduction

The emergence of visual foundation models (VFMs) [5, 22, 38, 49], notably the DINO series [5, 38, 49], has pushed the boundaries of visual representation learning [4, 29, 37, 52, 67, 72, 73]. However, despite VFMs achieving competitive performance across a wide range of downstream tasks [3, 15, 30, 64, 68, 75], their massive computational overhead poses significant challenges for deployment on resource-constrained edge devices. Consequently, the efficient compression of VFMs without compromising performance has become a research focus [16, 31, 71, 76, 77]. Among various model compression paradigms, training-free one-shot structured

J. Yin et al.

Figure

Fig. 1: Comparison with prior work. (a) To ensure feature consistency, existing methods enforce rigid alignment between CLS tokens; (b) CUT-ViT aligns the subspace induced by the inherent gram anchoring within DINOv3, thereby enabling the subnetworks to inherit the robust feature representations of the original network.

pruning (OSP) [23,25,35,50] has recently emerged as a highly promising solution. By dynamically ranking parameter importance using loss gradients, OSP enables rapid generation of lightweight subnetworks, making it particularly suitable for large-scale VFMs where retraining is computationally prohibitive.

However, existing OSP methods face two bottlenecks that hinder their applications in real-world scenarios. ① Robustness degradation. Current OSP methods rely on rigid point-to-point alignment between the tokens of native and pruned models. This localized strategy encourages the subnetwork to memorize specific numerical features rather than preserving the global semantic topology. By prioritizing exact token matching over structural consistency, these methods fail to inherit the robust manifold structure of VFMs, leading to representation degradation. ② Task-specificity deficiency. Prior training-free methods typically follow a rigid pipeline, that optimizes on a single generic dataset (e.g., ImageNet) to deploy a universal subnetwork across all downstream tasks (Fig. 1(a)). While seemingly elegant, this paradigm overlooks that for edge computing, model capacity has already been sacrificed to achieve faster inference and lower memory usage. Emphasizing a shared, task-agnostic subnetwork inevitably leads to a further compromise in precision and results in a sub-optimal trade-off between precision and efficiency for specific downstream applications.

To address these challenges, this work proposes CUT-ViT, a task-specific OSP algorithm that can generate subnetworks at various sparsity levels in approximately one minute for DINOv3 [49] using a single A100 GPU. To alleviate 1\mathbf{1}, we rethink feature alignment from the perspective of manifold consistency. Previous studies [49] found that the robustness of DINOv3 stems from the rich global topology encoded in its gram anchoring, which acts as a dense regularization constraint. However, rigid point-to-point alignment fails to preserve this structure and is sensitive to noise. Inspired by this, a gram anchoring subspace decomposition strategy (Fig. 1(b)) is proposed. Rather than matching raw features, CUT-ViT constructs spatial and channel gram matrices and decomposes them to extract orthonormal bases. These bases span the directions of maximal joint variation, thereby decoupling the core semantic topology from high-frequency noise, which enables the design of a basis-invariant subspace con-sistency strategy. By imposing basis-agnostic and residual constraints, CUT-ViT forces the feature subspace of subnetworks to geometrically align with that of the teacher. This allows the subnetwork to inherit the robust spatial and semantic manifold of DINOv3 without overfitting to specific token values. To answer 2◯\textcircled{2}, we design a pruning pipeline that adapts to both data distributions and task properties. First, unlike generic pruning, we perform optimization directly on the target dataset. By encoding the target data distribution into the gram anchoring and propagating it via subspace consistency, the subnetwork implicitly adapts to domain shifts without requiring ground-truth annotations. Second, CUT-ViT introduces spectral entropy to quantify the information density of feature manifolds. Since different tasks require different information granularities (e.g., classification relies on global semantics, while segmentation demands high spatial frequency) [18,57], spectral entropy measures this complexity along spatial and channel dimensions. This serves to dynamically weight the pruning objective to tailor the model architecture for specific downstream tasks.

CUT-ViT demonstrates superior performance over existing training-free OSP methods [23,35,50] across nine datasets covering six downstream tasks: semantic segmentation, object detection, video object segmentation, semantic matching, depth estimation, and image classification. Beyond standard benchmarks, our out-of-distribution experiments further confirm that CUT-ViT can preserve the robustness of the native DINOv3 [49] model. In terms of efficiency, CUT-ViT offers a compelling advantage. Specifically, it achieves a 3.4% improvement in (J&F)m(\mathcal{J}\&\mathcal{F})_m for video object segmentation on DAVIS-2017 [39], 5.1% improvement in PCK@0.05 for semantic matching on FG3DCar [33], 2.8% improvement in mAP for object detection on MS COCO [32] compared with prior state-of-the-art OSP approaches, while requiring only 20.9% of the inference time and 45.5% of the GPU memory. Moreover, our approach remains competitive even against training-based model pruning alternatives [16,77], while consuming only 0.44% of the pruning time and 28.2% of the GPU memory.

References (78)

  • Token cropr: Faster vits for quite a few tasks
  • Token merging: Your vit but faster (opens arXiv in a new tab)
  • Unbiased object detection beyond frequency with visually prompted image synthesis
  • Iris: Bringing real-world priors into diffusion model for monocular depth estimation
  • Emerging properties in self-supervised vision transformers
  • Efficient large multimodal models via visual context compression
  • An image is worth 1/2 tokens after layer 2: Plug-and-play inference acceleration for large vision-language models
  • Accelerating diffusion transformer via increment-calibrated caching with channel-aware singular value decomposition
  • Imagenet: A large-scale hierarchical image database
  • An image is worth $16 \times 16$ words: Transformers for image recognition at scale
  • The pascal visual object classes challenge: A retrospective
  • Sparsegpt: Massive language models can be accurately pruned in one-shot
  • Casp: Compression of large multimodal models based on attention sparsity
  • Exponential natural evolution strategies
  • Medfg-vqa: Low-frequency memory and graph attention for lightweight medical vqa
  • Hydravit: Stacking heads for a scalable vit
  • Semantic contours from inverse detectors
  • Masked autoencoders are scalable vision learners
  • Ptqd: Accurate post-training quantization for diffusion models
  • Random conditioning with distillation for data-efficient diffusion model compression
  • Faster parameter-efficient tuning with token redundancy reduction
  • Segment anything
  • Single-shot pruning for pre-trained models: Rethinking the importance of magnitude pruning
  • A fast post-training pruning framework for transformers
  • Layer-adaptive sparsity for the magnitude-based pruning
  • Customkd: Customizing large vision foundation for edge model improvement via knowledge distillation
  • Multi-criteria token fusion with one-step-ahead attention for efficient vision transformers
  • Human-object interaction detection collaborated with large relation-driven diffusion models
  • Semantic hierarchy-aware segmentation
  • Reconciling visual perception and generation in diffusion models
  • Frequency-aligned knowledge distillation for lightweight spatiotemporal forecasting
  • Microsoft coco: Common objects in context
  • Jointly optimizing 3d model fitting and fine-grained classification
  • Swin transformer: Hierarchical vision transformer using shifted windows
  • Preserving deep representations in one-shot pruning: A hessian-free second-order optimization framework
  • Tr-pts: Task-relevant parameter and token selection for efficient tuning
  • Learning straight flows: Variational flow matching for efficient generation
  • Dinov2: Learning robust visual features without supervision
  • The 2017 davis challenge on video object segmentation (opens arXiv in a new tab)
  • Robust single-stage fully sparse 3d object detection via detachable latent diffusion
  • A self-conditioned representation guided diffusion model for realistic text-to-lidar scene generation
  • Learning transferable visual models from natural language supervision
  • Xnor-net: Imagenet classification using binary convolutional neural networks
  • Unsupervised joint object discovery and segmentation in internet images
  • Movement pruning: Adaptive sparsity by fine-tuning
  • Theia: Distilling diverse vision foundation models for robot learning
  • Tinysam: Pushing the envelope for efficient segment anything model
  • Indoor segmentation and support inference from rgbd images
  • DINOv3
  • Elastic vits from pretrained models without retraining
  • A simple and effective pruning approach for large language models
  • Jo-snc: Combating noisy labels through fostering self- and neighbor-consistency
  • Training data-efficient image transformers & distillation through attention
  • Q-vlm: Post-training quantization for large vision-language models
  • Quest: Low-bit diffusion model quantization via efficient selective finetuning
  • Svd-llm: Truncation-aware singular value decomposition for large language model compression
  • Convnext v2: Co-designing and scaling convnets with masked autoencoders
  • Visual instance-aware prompt tuning
  • Prompt-based adaptation in large-scale vision models: A survey (opens arXiv in a new tab)
  • Efficientsam: Leveraged masked image pretraining for efficient segment anything
  • Gsv2x: Geometry-aware uncertainty modeling and orthogonal fusion for robust roadside perception
  • Global vision transformer pruning with hessian-aware saliency
  • Depth anything: Unleashing the power of large-scale unlabeled data
  • Beyond quadratic: Linear-time change detection with rwkv
  • Efficiency follows global-local decoupling
  • ChangeTitans: Toward remote sensing change detection with neural memory
  • Pca-seg: Revisiting cost aggregation for open-vocabulary semantic and part segmentation
  • Semi-supervised semantic segmentation with multi-constraint consistency learning
  • Depmatch: Boosting semi-supervised semantic segmentation by exploring depth difference knowledge
  • Token transforming: A unified and training-free token compression framework for vision transformer acceleration (opens arXiv in a new tab)
  • Slicing vision transformer for flexible inference
  • Learning 3d representations for spatial intelligence from unposed multi-view images
  • Unialign: Scaling multimodal alignment within one unified model
  • Scene parsing through ade20k dataset
  • Prototype-based semantic segmentation
  • Attention distillation: A unified approach to visual characteristics transfer
  • Ea-vit: Efficient adaptation for elastic vision transformer
  • Deformable DETR: Deformable Transformers for End-to-End Object Detection