NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fully Nested Neural Network for Adaptive Compression and Quantization

Yufei Cui, Ziquan Liu, Wuguannan Yao, Qiao Li, Antoni B. Chan, Tei-Wei Kuo, Chun Jason Xue

Abstract

The Fully Nested Neural Network (FN3) is a "train-once, deploy-anywhere" framework designed to create a single model capable of instant downsizing to meet diverse hardware constraints. By employing a novel Ordered Dropout (ODO) technique, FN3 ensures that smaller sub-networks are perfectly nested within larger ones. This provides a unified solution for adaptive quantization, pruning, and architectural scaling without the need for retraining or maintaining multiple sets of parameters for different deployment scenarios.

Introduction

Deploying state-of-the-art deep learning models on edge devices—such as mobile phones, IoT sensors, and embedded systems—requires balancing high performance against strict resource limits in RAM, CPU cycles, and battery life. Traditional compression techniques like pruning and quantization are often "static," requiring a complete re-optimization or Neural Architecture Search (NAS) process for every new hardware target. While "adaptive" models exist, they typically specialize in a single scaling dimension (e.g., only width) and often rely on complex workarounds like Switchable Batch Normalization to maintain accuracy across different sub-networks. FN3 addresses these limitations by treating neural networks as collections of additive, nested building blocks that can be scaled across multiple dimensions.

Methods

The FN3 framework centers on two core innovations: Ordered Dropout (ODO) and Unified Additive Blocks.

Ordered Dropout (ODO)

Unlike standard dropout, which randomly zeroes out neurons to prevent overfitting, ODO ranks building blocks by importance. During training, it samples an index and drops all blocks with a higher index. This forces lower-index blocks to learn the most critical information, effectively mimicking the behavior of Boosting, where a strong classifier is built from a sequence of weak ones. The result is a model where the first few blocks provide a coarse but functional representation, and subsequent blocks add incremental refinement.

Unified Additive Blocks

ODO is applied to various network components by treating them as additive units. This flexibility allows FN3 to handle different types of compression within the same framework:

  • Bit-level: Quantization is modeled as a sum of weighted bits.
  • Layer/Path-level: Residual paths or entire layers are treated as additive components.
  • Channel/Neuron-level: Individual filters or neurons are ranked and dropped based on their index.
Unified additive blocks for layer or path-level nesting.

Once the FN3 is trained, a fast offline heuristic search identifies the optimal "trajectory" for block removal. Because blocks are pre-ordered by ODO, the search complexity is reduced from exponential ($O(2^N)$) to linear ($O(N)$).

Key Insights

Information Disentanglement

A fundamental contribution of FN3 is the concept of Information Disentanglement. The authors prove that training with ODO and Maximum Likelihood Estimation (MLE) leads to disentangled information gain, where each additional block is forced to maximize the incremental information it provides over previous ones. This mathematical property ensures that the nesting is not just structural but functional.

True Nesting and Simplified Batch Norm

FN3 achieves "True Nesting." In many existing adaptive methods, a lower-precision model (e.g., 2-bit) might not be a strict subset of a higher-precision one (e.g., 3-bit). In FN3, smaller sub-networks are literal subsets of larger ones, ensuring seamless transitions between resource states.

Truly nested bit-level quantization where higher precision levels contain lower ones.

This nesting also simplifies Batch Normalization (BN). One of the primary challenges in adaptive networks is that changing the network width typically disrupts BN statistics. However, because ODO orders blocks by importance and scales activations accordingly, the influence of "dropped" blocks on BN is minimal. This eliminates the need for "Switchable BN," significantly simplifying the architecture and reducing the parameter overhead.

Key Results

Evaluation across MNIST, CIFAR-10/100, and ImageNet demonstrates FN3's versatility:

  • Superior Quantization: On CIFAR-100, FN3-bit achieved 74.97% accuracy at 2-bit precision, significantly outperforming the AdaBits baseline, which dropped to 51.67%.
  • Efficiency on ImageNet: Compared to Universally Slimmable Networks (US-Net), FN3-channel provided a better accuracy-to-compression trade-off. Furthermore, FN3 maintains a fixed training time, whereas US-Net's training time scales with the number of sub-networks sampled.
  • Search Speedup: The proposed heuristic search reduced evaluation requirements by 76.8% compared to random removal strategies.
  • Flexibility: A single trained FN3-bit model can provide over 16,000 different sub-network configurations, allowing for extremely fine-grained deployment adjustments.

Conclusion

FN3 provides a robust, unified framework for creating adaptive neural networks that are truly nested across bits, layers, and channels. While the current work primarily evaluates ODO on one dimension at a time, future research will explore multi-dimensional nesting—for instance, creating models that are simultaneously adaptive in both bit-width and channel count to enable even more granular resource management on the edge.

Summary updated

BibTeX
@inproceedings{cui2020fully,
  author = {Yufei Cui and Ziquan Liu and Wuguannan Yao and Qiao Li and Antoni B. Chan and Tei-Wei Kuo and Chun Jason Xue},
  title = {{Fully Nested Neural Network for Adaptive Compression and Quantization}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/288},
}
Figure