Introduction
Deep learning models are traditionally "one-size-fits-all" in terms of computation. Once a model like ResNet-50 is trained, it requires a fixed number of floating-point operations (FLOPs) to process an image. However, real-world deployment environments are dynamic: a mobile device might enter power-saving mode, or a cloud server might experience peak traffic requiring request throttling.
Existing solutions, such as adding early-exit side-classifiers or training multiple models of varying sizes, are often inefficient. Early exits may underutilize deeper layers, while training multiple models is computationally expensive and creates storage overhead. The challenge lies in training a single model flexible enough to meet any resource budget at runtime.
The SDPoint Method
The authors introduce Stochastic Downsampling Point (SDPoint), a training technique that allows a single Convolutional Neural Network (CNN) to adjust its computational cost on the fly during inference. Instead of fixed downsampling (like standard pooling layers), SDPoint introduces stochasticity into where and how much the network downsamples during training.
Core Components
- Stochastic Configuration: For every mini-batch during training, the algorithm randomly selects a "downsampling point" (a specific layer) and a "downsampling ratio" (e.g., reducing resolution to 50% or 75%).
- Feature-Level Downsampling: Unlike standard multiscale training that resizes input images, SDPoint resizes internal feature maps. This forces subsequent layers to learn feature extraction from compressed representations.
- Instance-Specific Batch Normalization (BN): To handle the varying statistics of feature maps across different downsampling configurations, the authors use separate BN parameters for each configuration. This prevents statistical mismatch during inference.
- Inference Flexibility: At test time, users can "handpick" a downsampling configuration that meets a specific FLOP limit without needing to retrain the model.
Key Insights and Regularization
Beyond flexibility, SDPoint acts as a powerful regularizer. By forcing the network to handle varying resolutions, it prevents overfitting and encourages scale invariance. The authors found that internal representations were more consistent across different cropping sizes compared to standard models. Crucially, reducing spatial resolution was found to be less harmful to accuracy than skipping layers entirely, as it allows the model to maintain its full representational depth even with smaller feature maps.
Performance Evaluation
The method was validated on CIFAR-10, CIFAR-100, and ImageNet. On CIFAR-100, SDPoint-enabled models consistently outperformed "Early-Exit" and "Multiscale Training" baselines across the entire cost-accuracy curve.
On ImageNet, SDPoint reduced the Top-1 error of a ResNeXt-101 by 0.8% at the same FLOP count. Furthermore, it provided a suite of lower-cost versions of the model that outperformed baseline models specifically designed for those reduced budgets. This "regularization free lunch" allows developers to achieve higher accuracy on their primary target while gaining a range of efficient sub-models for free.
Conclusion and Future Work
SDPoint demonstrates that a single set of shared weights can support a wide range of computational budgets. While currently requiring manual selection of downsampling points for specific budgets, future work could involve automated policies to choose optimal strategies dynamically based on image content. Expanding this approach to tasks like object detection and segmentation remains a promising area for future research.
Summary updated