Skip to main content
QUICK REVIEW

[Paper Review] Fractional Skipping: Towards Finer-Grained Dynamic CNN Inference

Jianghao Shen, Yonggan Fu|arXiv (Cornell University)|Jan 3, 2020
Advanced Neural Network ApplicationsComputer Science31 references7 citations
TL;DR

This paper proposes Dynamic Fractional Skipping (DFS), a framework that unifies input-adaptive layer skipping and quantization by treating layer-wise bitwidth assignment as intermediate, 'fractional' execution options between full execution and complete skipping. DFS enables finer-grained accuracy-computation trade-offs through input-dependent, dynamic bitwidth allocation for weights and activations, achieving superior performance over binary skipping and static quantization methods.

ABSTRACT

While increasingly deep networks are still in general desired for achieving state-of-the-art performance, for many specific inputs a simpler network might already suffice. Existing works exploited this observation by learning to skip convolutional layers in an input-dependent manner. However, we argue their binary decision scheme, i.e., either fully executing or completely bypassing one layer for a specific input, can be enhanced by introducing finer-grained, "softer" decisions. We therefore propose a Dynamic Fractional Skipping (DFS) framework. The core idea of DFS is to hypothesize layer-wise quantization (to different bitwidths) as intermediate "soft" choices to be made between fully utilizing and skipping a layer. For each input, DFS dynamically assigns a bitwidth to both weights and activations of each layer, where fully executing and skipping could be viewed as two "extremes" (i.e., full bitwidth and zero bitwidth). In this way, DFS can "fractionally" exploit a layer's expressive power during input-adaptive inference, enabling finer-grained accuracy-computational cost trade-offs. It presents a unified view to link input-adaptive layer skipping and input-adaptive hybrid quantization. Extensive experimental results demonstrate the superior tradeoff between computational cost and model expressive power (accuracy) achieved by DFS. More visualizations also indicate a smooth and consistent transition in the DFS behaviors, especially the learned choices between layer skipping and different quantizations when the total computational budgets vary, validating our hypothesis that layer quantization could be viewed as intermediate variants of layer skipping. Our source code and supplementary material are available at \link{https://github.com/Torment123/DFS}.

Motivation & Objective

  • To address the inefficiency of binary layer skipping, which treats each layer as either fully executed or completely skipped, leading to coarse-grained trade-offs between accuracy and computational cost.
  • To explore whether layer quantization can serve as a 'fractional' intermediate state between full execution and skipping, enabling smoother and more flexible model adaptation.
  • To develop a unified framework that dynamically assigns bitwidths to weights and activations per input, allowing for finer-grained control over computational complexity and model expressiveness.
  • To empirically validate that quantization acts as a natural soft intermediate option in the dynamic inference pipeline, with smooth transitions between skipping, quantization, and full execution.

Proposed method

  • DFS formulates layer-wise quantization (to different bitwidths) as intermediate 'soft' decisions between full execution (full bitwidth) and skipping (zero bitwidth), enabling fractional skipping.
  • The framework uses a two-step training procedure to learn input-adaptive bitwidth allocation for both weights and activations across layers, optimizing for accuracy under computational constraints.
  • It introduces a differentiable decision mechanism that allows the model to dynamically select among skip, 8-bit, 4-bit, or full-precision execution per layer based on input characteristics.
  • The method integrates dynamic inference and quantization into a single unified optimization objective, enabling end-to-end training with gradient-based optimization.
  • A computational percentage (cp) budget is used as a control knob to regulate the total inference cost, with decisions evolving smoothly as cp increases.
  • Visualizations of layer-wise decision distributions across varying cp levels demonstrate consistent, smooth transitions from skipping to quantization to full execution.

Experimental results

Research questions

  • RQ1Can layer quantization be meaningfully interpreted as a 'fractional' intermediate state between full layer execution and complete skipping in dynamic CNN inference?
  • RQ2Does input-adaptive, dynamic bitwidth allocation across layers lead to better accuracy-computation trade-offs than binary layer skipping or fixed quantization?
  • RQ3How do the learned decision behaviors of DFS evolve smoothly as the computational budget increases, and do they support the hypothesis of quantization as a soft skipping variant?
  • RQ4To what extent does DFS outperform existing state-of-the-art methods in terms of accuracy under varying computational constraints?

Key findings

  • DFS achieves a 93.54% top-1 accuracy on CIFAR-10 with only 6.25% of the original computation budget, demonstrating superior efficiency-accuracy trade-offs.
  • When the computational percentage increases from 4% to 6.25%, DFS accuracy improves from 92.91% to 93.54%, indicating a significant gain from finer-grained control via quantization.
  • Visualizations show a smooth transition from layer skipping to 8-bit quantization and eventually to full execution as cp increases, supporting the hypothesis that quantization serves as a soft intermediate state.
  • The first residual block in each residual group is consistently selected (never skipped), aligning with known architectural importance and validating the model’s learned decision logic.
  • DFS outperforms both binary layer skipping and static quantization baselines across multiple benchmarks, especially in low-computation regimes.
  • The model exhibits consistent behavior across different bitwidths, with 8-bit quantization being the dominant choice in moderate-computation settings, indicating its role as a key intermediate option.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.