Skip to main content
QUICK REVIEW

[Paper Review] Doubly Nested Network for Resource-Efficient Inference

Jaehong Kim, Sungeun Hong|arXiv (Cornell University)|Jun 20, 2018
Advanced Neural Network ApplicationsComputer Science18 references4 citations
TL;DR

This paper proposes Doubly Nested Network (DNNet), a novel neural network architecture that enables resource-efficient inference by allowing dynamic slicing along both depth and width dimensions without retraining. By using channel-causal convolutions to topologically sort channels and integrating deep supervision, DNNet maintains high performance across sub-models of varying computational and memory budgets, achieving minimal performance degradation even under aggressive slicing.

ABSTRACT

We propose doubly nested network(DNNet) where all neurons represent their own sub-models that solve the same task. Every sub-model is nested both layer-wise and channel-wise. While nesting sub-models layer-wise is straight-forward with deep-supervision as proposed in \cite{xie2015holistically}, channel-wise nesting has not been explored in the literature to our best knowledge. Channel-wise nesting is non-trivial as neurons between consecutive layers are all connected to each other. In this work, we introduce a technique to solve this problem by sorting channels topologically and connecting neurons accordingly. For the purpose, channel-causal convolutions are used. Slicing doubly nested network gives a working sub-network. The most notable application of our proposed network structure with slicing operation is resource-efficient inference. At test time, computing resources such as time and memory available for running the prediction algorithm can significantly vary across devices and applications. Given a budget constraint, we can slice the network accordingly and use a sub-model for inference within budget, requiring no additional computation such as training or fine-tuning after deployment. We demonstrate the effectiveness of our approach in several practical scenarios of utilizing available resource efficiently.

Motivation & Objective

  • Address the challenge of deploying deep neural networks in resource-constrained environments with varying time and memory budgets.
  • Overcome the inefficiency of conventional pruning and fine-tuning methods that require retraining for each new device specification.
  • Enable joint slicing along both depth (layers) and width (channels) to maximize resource utilization in diverse deployment scenarios.
  • Develop a novel channel-wise nesting mechanism that maintains model performance despite structural pruning, previously unexplored in the literature.
  • Design a single, unified architecture that supports multiple sub-models through slicing, eliminating the need for separate training or storage of multiple models.

Proposed method

  • Introduce channel-causal convolutions to topologically sort channels so that information flows only from lower-indexed to higher-indexed channels, enabling valid inference using only the first few channels.
  • Use deep supervision with intermediate classifiers on each layer to enable layer-wise slicing while preserving feature reuse and performance.
  • Construct a doubly nested architecture where each neuron represents a sub-model, allowing both depth-wise and channel-wise slicing from a single trained network.
  • Apply a learnable loss weight matrix λ(i,j) to prioritize training of specific sub-models (e.g., low-cost or low-performance models), improving their accuracy without degrading the full model.
  • Group adjacent channels during training (e.g., 2 or 4 at a time) to reduce computational cost while maintaining the ability to slice at the channel level.
  • Train the full network with a multi-task loss function that includes all possible partial models (up to i-th layer and j-th channel group), enabling end-to-end optimization of the entire sliceable structure.

Experimental results

Research questions

  • RQ1Can a single deep neural network be structured to allow efficient, dynamic inference slicing across both depth and width without retraining?
  • RQ2How can channel-wise nesting be achieved in a fully connected layer-wise architecture where all channels are interconnected?
  • RQ3What is the performance degradation of sub-models obtained via channel slicing compared to fine-tuned models or full retraining?
  • RQ4To what extent can a non-uniform loss weighting strategy improve the performance of specific sub-models (e.g., low-cost or mid-tier models) within the same architecture?
  • RQ5Does combining depth and width slicing provide better resource utilization than single-axis slicing in real-world deployment scenarios?

Key findings

  • The proposed DNNet achieves minimal performance degradation when slicing channels, with classification accuracy remaining stable even when reducing the number of channels significantly.
  • Channel-wise slicing with channel-causal convolutions allows valid inference using only the first few channels, maintaining functionality despite full connectivity between layers.
  • The model with 100× higher loss weight assigned to the (L8, C8) sub-model achieved a 7.2% accuracy gain over the baseline with the same configuration, demonstrating effective prioritization during training.
  • Using a loss weight matrix that prioritizes low-cost models improves their performance relative to the baseline, showing that training can be guided to favor specific deployment profiles.
  • The combination of depth and width slicing enables better resource utilization than single-axis slicing, as shown by improved trade-offs between computational cost and memory usage.
  • Grouping adjacent channels during training (e.g., 8 or 4 groups) results in a trade-off between training efficiency and slicing flexibility, with 16-slice baseline showing the best balance of performance and granularity.

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.