TL;DR
This paper introduces a holistic framework that jointly optimizes Vision Transformers (ViTs) across three axes—architecture, token count, and bit-width—specifically for deployment in semiconductor manufacturing. By combining Neural Architecture Search, token merging, and FP16 mixed-precision inference, the authors achieve an impressive 12.3× improvement in throughput and a 13× reduction in energy consumption while maintaining perfect accuracy on a real-world 3D X-ray defect classification task.
What Problem Does This Paper Address?
Vision Transformers (ViTs) have set new benchmarks in visual recognition, but their massive computational footprint, heavy memory requirements, and high energy consumption make them difficult to deploy in resource-constrained industrial environments.
In semiconductor manufacturing, automated inspection systems demand real-time processing speeds and low power usage. While individual optimization techniques like Neural Architecture Search (NAS), token pruning, and low-precision quantization are widely studied, they are almost always evaluated in isolation. This single-axis approach misses out on the compounding benefits of multi-axis optimization. Furthermore, most existing literature focuses on standard benchmarks like ImageNet-1K, leaving a gap in understanding how these compression techniques perform against hardware-aware metrics (such as actual throughput and energy consumption) in specialized industrial deployments.
Methods
The authors propose a multi-axis compression framework that simultaneously targets three distinct operational bottlenecks:
- Architecture Axis (Model Level): The heavy baseline model (DeiT-B/16) is replaced with compact backbones (AutoFormer-S and AutoFormer-T) discovered via AutoFormer, a one-shot Neural Architecture Search (NAS) framework. This reduces the base parameter count and computational complexity from the start.
- Token Axis (Sequence Level): On top of the compact backbones, the framework integrates Token Merging (ToMe). ToMe progressively combines similar or redundant visual tokens (such as uniform background regions) during inference, shortening the sequence length processed by later transformer layers.
- Bit-width Axis (Operation Level): Finally, the models are exported to TensorRT and run using FP16 mixed-precision inference to accelerate per-operation execution directly on the deployment hardware (an NVIDIA RTX 6000 Ada Generation GPU).
Datasets
The framework was evaluated using two datasets with complementary roles:
- ImageNet-1K: Used as the initial benchmark to analyze aggressive accuracy-efficiency trade-offs and select the most promising pipeline configurations.
- In-house 3D X-ray Semiconductor Defect Dataset: A real-world industrial dataset capturing IC chip manufacturing defects buried inside packaging. It consists of 93 3D volumes (80 for training, 13 for testing) with maximum dimensions around $[900, 900, 875]$. The data is fully labeled with 5 expert-annotated defect types: Pillar, Solder, Void, and Pad defects.
Key Insights and Ideas
- Multi-Axis Synergy: Because NAS, token merging, and mixed-precision address entirely different bottlenecks (backbone structure vs. sequence length vs. numerical precision), their efficiency gains are highly complementary and compound effectively.
- Downstream Task Resilience: Aggressive token merging causes a noticeable top-1 accuracy drop on general benchmarks like ImageNet-1K. However, when these same heavily compressed models are transferred and fine-tuned on a specialized industrial task, they completely recover downstream performance. This indicates that specialized industrial domains can tolerate much harsher compression ratios than standard academic benchmarks suggest.
Key Results
When evaluating the optimized AutoF-Tr=15 pipeline (AutoFormer-Tiny backbone with a ToMe token merging ratio of 15) on the 3D X-ray defect dataset, the framework significantly outperformed the DeiT-B/16 baseline:
- Throughput: Increased from 13.1 FPS to 161.1 FPS (a 12.3× speedup).
- Energy Consumption: Slashed from 15339.6 J to 1151.1 J (a 13× reduction).
- Model Size: Reduced from 85.8M parameters to just 5.7M (a 15.1× reduction).
- Computation: Dropped from 16.9 GFLOPs to 0.7 GFLOPs (a 24.1× reduction).
Crucially, despite this aggressive compression, the fine-tuned models maintained the required 100% classification accuracy on the downstream industrial test set.
Limitations and Future Work
- Dataset Scale: The real-world 3D X-ray dataset used for final validation is quite small, containing only 93 3D volumes. Testing on larger, more diverse industrial datasets would be necessary to fully guarantee the model's robustness against edge cases.
- Ultra-low Quantization: While the paper reviews lower-bit quantization methods (like 8-bit or 4-bit Post-Training Quantization) in its related work section, the final framework relies primarily on FP16 mixed precision. Incorporating INT8 or INT4 quantization into the multi-axis pipeline remains an open direction for even greater edge efficiency.
Summary updated