Carve VFM: Carving Specialists out of Generalists, Automatic Task-Specific Compression of Vision Foundation Models
Organizations: Mohamed bin Zayed University of Artificial Intelligence
Abstract
Vision foundation models (VFMs) provide transferable visual representations, but their inference cost limits deployment in many settings. Fine-tuning specializes a VFM without shrinking it; distillation shrinks it, but through expensive teacher-guided training. Structured pruning offers a more direct route by extracting a compact subnetwork from the VFM. However, as compression gets aggressive, existing methods fail because they treat subnetwork selection and recovery as separate axes. Across layers, capacity must follow task sensitivity rather than spread uniformly. Within a layer, a removal cannot be judged by importance alone; its impact also depends on how well the lost contribution can be recovered from what remains. Selection and recovery must therefore be decided jointly. We introduce Carve VFM, which resolves this interdependence. Given a VFM, a calibration set, and a parameter budget, it (i) searches for task-specific capacity allocations across layers; (ii) guides the search via an adaptive recovery-aware fitness criterion; and (iii) reconstructs removed behavior through iterative closed-form low-rank corrections merged into the surviving weights. The result is a dense encoder produced in minutes on a single GPU without backbone retraining. Across twelve benchmarks and four models from DINOv3 and MetaCLIP-2, Carve VFM achieves the highest reported mean accuracy in seven of eight backbone-budget configurations among the evaluated dense structured-pruning methods. Further fine-tuning surpasses the strongest evaluated edge model (88.1% vs. 85.8%), and carved models cut compute and memory while delivering 1.3-2.0x higher GPU throughput than the uncompressed one. These results show that the compact model you need is inside the VFM; it only has to be carved out.
Figures & tables
| Source | Budgets (M) | Repair rank | ||
| Mild | Intermediate | Tight | ||
| DINOv3 ViT-S/16 | 14 | 10 | 6 | 128 |
| DINOv3 ViT-B/16 | 60 | 35 | 20 | 128 |
| MetaCLIP-2 ViT-B/16 | 60 | 35 | 20 | 256 |
| DINOv3 ViT-L/16 | 200 | 150 | 100 | 256 |
| Search setting | Value | Repair/linear-probing setting | Value |
| Population | 20 | Calibration examples | 512 |
| Elites | 8 | Ridge | |
| Generations | DINOv3 S/B rank | 128 | |
| Candidate cap | 120–200 | MetaCLIP/ViT-L rank | 256 |
| Mutation | 0.08 | Linear-head epochs | 10 |
| Operator flip | 0.18 | Linear-head learning rate |
| Source | Carve VFM | BlockDrop | FLAP | SVD-LLM | CORP |
| DINOv3 ViT-S/B | 5.3 2.1 | 1.5 1.1 | 0.9 0.5 | 1.4 0.7 | – |
| MetaCLIP-2 ViT-B | 7.6 1.8 | 2.0 1.3 | 1.2 0.6 | 2.1 0.5 | 2.5 1.6 |
| DINOv3 ViT-L | 16.4 2.7 | 7.2 2.9 | 2.2 0.8 | 4.7 0.8 | 27.1 7.4 |
| Model | Params (M) | General | Fine-grained | Texture/scene | Medical | Mean | ||||||||
| C10 | C100 | Cal. | Air. | CUB | Cars | Pets | DTD | MIT | Blood | Pneu. | OrganA | |||
| ResNet-18 | 11.2 | 93.7 | 77.0 | 82.0 | 61.1 | 69.6 | 63.1 | 90.4 | 64.3 | 68.7 | 98.7 | 90.5 | 95.4 | 79.6 |
| ResNet-50 | 23.5 | 95.9 | 81.1 | 87.8 | 61.7 | 74.2 | 66.8 | 92.3 | 66.3 | 73.1 | 98.7 | 91.5 | 94.2 | 82.0 |
| EfficientNet-B4 | 17.6 | 94.8 | 79.9 | 86.9 | 49.3 | 65.6 | 46.4 | 89.3 | 63.6 | 64.0 | 97.6 | 89.1 | 93.2 | 76.6 |
| DeiT-Tiny | 5.5 | 95.8 | 80.6 | 84.1 | 53.6 | 73.3 | 58.2 | 91.3 | 65.5 | 71.6 | 98.7 | 92.3 | 95.9 | 80.1 |
| ConvNeXt-Pico | 8.5 | 96.7 | 83.5 | 88.8 | 71.7 | 79.5 | 77.4 | 93.5 | 70.4 | 79.1 | 98.7 | 94.4 | 95.3 | 85.8 |
| Device | Model | Budget (M) | GFLOPs | Lat. (ms) | img/s | Mem. (MiB) |
| CPU | ViT-L/16 | Full | 125.68 | 214.2 1.8 | 7.4 2.7 | 2246 |
| SVD-LLM | 200 | 84.17 | 190.3 1.6 | 9.3 0.5 | 1837 | |
| Carve VFM | 200 | 83.49 | 117.4 3.9 | 14.2 0.6 | 1769 18 | |
| SVD-LLM | 150 | 64.11 | 182.7 1.3 | 9.8 0.6 | 1641 | |
| Carve VFM | 150 | 63.30 | 105.6 6.6 | 18.4 0.7 | 1541 13 | |
| SVD-LLM | 100 | 43.96 | 161.1 1.0 | 10.4 1.0 | 1453 |
Model Compression
Model compression reduces the storage, computation, or latency of machine-learning models while preserving task performance.
See all 122 papers