Vulcan: Crafting Compact Class-Specific Vision Transformers For Edge Intelligence

Ziteng Wei, Qiang He, Feifei Chen, Ranjie Duan, Xiaodan Li, Bin Li, YueFeng Chen, Hui Xue, Hai Jin, Yun YangICLR 2026

TL;DR

Vision Transformers (ViTs) are often too massive for edge devices, but edge applications usually only need to recognize a specific subset of classes rather than the entire pre-training dataset. This paper introduces Vulcan, a novel "train-then-prune" method that exploits how ViTs store knowledge to derive highly compact, task-specific models that are up to 80% smaller yet actually outperform the original massive models on their target classes.

What Problem Does This Paper Address?

State-of-the-art Vision Transformers are computationally expensive and memory-intensive, making them difficult to deploy on resource-constrained edge devices like drones, smartphones, or autonomous vehicles.

Comparison of traditional cloud-based ViT deployment versus Vulcan's class-specific edge model derivation.

To fix this, engineers typically use model compression techniques (like pruning or quantization). However, existing compression methods try to preserve the all-classes knowledge of the original pre-trained model. This is incredibly inefficient. For example, a traffic camera needs to recognize vehicles, pedestrians, and street signs; it doesn't need the capacity to classify 120 different breeds of dogs. By forcing a compressed model to retain irrelevant knowledge, existing methods waste precious parameter budgets and suffer suboptimal performance on the classes the edge device actually cares about.

The authors tackle the challenge of extracting only the relevant, class-specific knowledge from a massive base ViT to create a specialized, lightweight edge model, avoiding the latency, privacy, and reliability issues of cloud-based deployment.

Methods

To build a class-specific model, the authors first had to figure out where class-specific knowledge lives inside a ViT. They discovered a structural disentanglement: Feed-Forward Networks (FFNs) store class-specific semantic knowledge, while Multi-Head Attention (MHA) modules capture class-agnostic routing patterns.

The Vulcan architecture, highlighting Class-Centric Neuron Collapse for FFNs and Truncated Nuclear Norm Regularization for MHAs.

Based on this, they built Vulcan, which flips the traditional "prune-then-train" paradigm on its head. Vulcan uses a train-then-prune approach, deliberately injecting redundancy into the network during a post-training phase so that pruning becomes a mathematically near-lossless operation. It does this via two main techniques:

  • Class-Centric Neuron Collapse (CCNC): For FFNs, Vulcan clusters neurons based on their weights. Using a calibration dataset of the target classes, it finds the "anchor" neuron in each cluster that activates the most for those specific classes. It then forces all other neurons in the cluster to collapse into that anchor neuron.
  • Truncated Nuclear Norm Regularization (TNNR): For MHAs, Vulcan applies a penalty that forces the query-key and value-output projection matrices to become low-rank.

Once the model is post-trained with these constraints (using an Augmented Lagrangian framework), the redundant FFN neurons are safely sliced away, and the MHA matrices are compressed using Singular Value Decomposition (SVD)—resulting in a tiny model with virtually no immediate performance drop.

Datasets

  • ImageNet-1K: Used to create sub-tasks of 25, 50, and 100 classes for core evaluation.
  • CIFAR-100 & CIFAR-10: Used for smaller-scale recognition tasks.
  • COCO (2017): Used to test object detection and instance segmentation (via Fast/Mask R-CNN).
  • Robustness/Transfer Learning: ImageNet-V2, ImageNet-R, Stanford Cars, Oxford Flowers-102, and Food-101.
  • 20 NewsGroups: Used to prove the method also works on NLP models (BERT).

Key Insights and Ideas

  • ViT Knowledge is Disentangled: The authors provide fascinating visualizations showing that FFN neurons act as highly interpretable "knowledge neurons." Shallow FFN blocks look for textures and colors, while deeper blocks look for specific semantic concepts (like dog snouts or snake scales). MHAs, conversely, are mostly class-agnostic.
  • SVD Beats Score-Based Pruning for Attention: Surprisingly, data-free SVD compression of MHA dimensions consistently outperforms data-driven, score-based pruning methods. SVD mathematically guarantees the best preservation of intermediate representations, meaning you don't even need target-class data to effectively compress the attention heads.
  • Train-then-Prune Prevents Brain Damage: Standard pruning deletes weights based on importance scores, which often permanently destroys useful knowledge. By forcing the network to map its knowledge into a smaller subspace before cutting, Vulcan avoids this irreversible damage.

Key Results

  • Massive Accuracy Gains: On specific sub-tasks, Vulcan-derived edge ViTs outperformed the original, uncompressed base ViTs by up to 15.12% in accuracy.
  • Beating the State-of-the-Art: Compared to top-tier structured pruning methods (like X-Pruner and MDP), Vulcan improved class-specific accuracy by up to 13.92%.
  • Real-World Speedups: At pruning rates of 60% to 80% (meaning the model is 20-40% of its original size), Vulcan models achieved 1.23× to 3.02× inference speedups on a Jetson Orin NX edge device, while reducing memory consumption by up to 76%.
  • Highly Scalable: The method proved effective not just on standard DeiT models, but also on Swin Transformers for dense prediction tasks, larger ViT-L/16 models, and even BERT in the NLP domain.

Limitations and Future Work

  • LoRA Compatibility: While Vulcan can be combined with LoRA to reduce memory usage during the derivation process, the authors note this introduces a slight accuracy drop (~6.5%), as low-rank matrices struggle to fully satisfy the strict neuron collapse constraints.
  • Open-Domain Transfer: When deriving models for classes entirely outside the base model's original pre-training data (open-domain transfer learning), performance is slightly lower than in closed-domain scenarios.
  • Future Work: The authors observed a counterintuitive phenomenon where models with higher pruning rates sometimes exhibited better generalization on distribution-shifted datasets (like ImageNet-V2). Exploring exactly why extreme class-specific pruning boosts out-of-distribution robustness is a promising direction for future research.

Summary updated

BibTeX
@inproceedings{wei2026vulcan,
  author = {Ziteng Wei and Qiang He and Feifei Chen and Ranjie Duan and Xiaodan Li and Bin Li and YueFeng Chen and Hui Xue and Hai Jin and Yun Yang},
  title = {{Vulcan: Crafting Compact Class-Specific Vision Transformers For Edge Intelligence}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=0xE0kNdGIz},
}
Figure