Introduction
Deep Neural Networks (DNNs) are increasingly deployed in safety-critical environments, from autonomous vehicles to medical diagnostics. However, transitioning these models from research environments to edge devices presents a significant "double bind." On one hand, models must be efficient, requiring compression techniques like pruning or quantization. On the other hand, they must be safe, requiring certified robustness—mathematical guarantees that small input perturbations will not alter predictions.
Historically, these objectives have been treated as independent. Standard robust training often fails to maintain guarantees once a model is compressed, while training small models for robustness typically results in poor standard accuracy. CACTUS (Compression Aware Certified Training Using network Sets) addresses this gap by unifying model compression and certified robustness within a single training framework.
The CACTUS Framework
The core innovation of CACTUS is its "compression-aware" training philosophy. Rather than optimizing a single static model, CACTUS optimizes a set of networks derived from a primary model. This ensures that the learned features are resilient to the structural changes imposed by compression.
Joint Objective and Sampling
During training, CACTUS minimizes a loss function that accounts for both the full-precision model and its compressed variants. For pruning, the framework employs a sampling strategy: in each training batch, the loss is calculated for the full network and a randomly sampled pruned version. This forces the optimizer to find "flat" regions in the weight landscape where removing specific weights (sparsity) does not degrade performance.
Quantization via Adversarial Weight Perturbation (AWP)
Quantization—converting 32-bit floats to lower-precision integers (e.g., int8)—introduces non-differentiable rounding operations. CACTUS bypasses this challenge using Adversarial Weight Perturbation (AWP). By treating quantization error as a "weight attack," the model is trained to be robust against small perturbations in its own parameters. This "pre-adapts" the network to the rounding errors inherent in low-bit-width deployment.
Robustness Engine
CACTUS is built upon SABR, a state-of-the-art certified training method. SABR utilizes Interval Bound Propagation (IBP) but refines the process by analyzing smaller "boxes" around adversarial examples, significantly reducing the over-approximation errors that often hinder certified training.
Experimental Evaluation
The authors evaluated CACTUS across three standard benchmarks: MNIST, CIFAR-10, and TinyImageNet. These datasets represent a range of complexity, from simple digit recognition to large-scale object classification, demonstrating the framework's scalability.
Key Results and Resilience
CACTUS consistently outperforms specialized baselines such as HYDRA (for pruning) and QA-IBP (for quantization).
- Pruning Performance: On CIFAR-10 ($\epsilon=2/255$), CACTUS maintained 64.74% certified accuracy at 70% pruning, compared to 57.27% for the standard SABR baseline.
- Quantization Resilience: The resilience to quantization is particularly striking. For the more challenging CIFAR-10 task ($\epsilon=8/255$), CACTUS achieved 28.81% certified accuracy on 8-bit (int8) models. In contrast, the baseline SABR model effectively collapsed, dropping to just 1.12% certified accuracy.
A notable discovery was the framework's ability to generalize across compression levels. Models trained with 50% pruning remained robust even when pruned to 70% post-training, suggesting that CACTUS learns a fundamentally more stable weight configuration.
Limitations and Future Directions
While effective, CACTUS introduces a higher computational burden. Training time increases by 40% to 140% due to the need to process multiple network versions per batch. Future work may focus on optimizing this overhead through model caching or more efficient sampling techniques.
Additionally, the current framework focuses on magnitude-based pruning and uniform quantization. Expanding CACTUS to support structured pruning (removing entire filters) or non-uniform quantization schemes remains an open area for research. Despite these challenges, CACTUS represents a significant step toward deploying provably safe and efficient AI on the edge.
Summary updated