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

VanillaNet: the Power of Minimalism in Deep Learning

Hanting Chen, Yunhe Wang, Jianyuan Guo, Dacheng Tao

In the era of "foundation models," the prevailing wisdom in deep learning has been that "more is different." To achieve state-of-the-art performance, researchers have pushed architectures to extreme depths, added complex shortcut connections (ResNets), and introduced intricate mechanisms like self-attention (Transformers). However, a new study from Huawei’s Noah’s Ark Lab and the University of Sydney introduces VanillaNet, a neural network architecture that challenges this paradigm by proving that minimalism still holds a significant place in cutting-edge AI.

The Complexity Challenge in Modern Architectures

Modern deep learning architectures, while powerful, present several hurdles for deployment in resource-constrained or real-time environments:

  1. Memory Bottlenecks: Shortcut connections, a staple of ResNet-style architectures, require storing feature maps from previous layers to merge them later. This significantly increases off-chip memory traffic.
  2. Engineering Complexity: Advanced operations, such as the shifted window self-attention in Swin Transformers, often require sophisticated, hardware-specific CUDA kernels that are difficult to implement and optimize across different platforms.
  3. The "Plain" Performance Gap: Historically, "plain" networks (those without shortcuts) suffered from vanishing gradients and poor performance as depth increased. This led the research community to largely abandon simple architectures in favor of topological complexity.

VanillaNet seeks to bridge this performance gap for simple, shallow networks without sacrificing their inherent deployment advantages.

The VanillaNet Architecture

VanillaNet is a "plain" neural network that eschews high depth, shortcuts, and self-attention. A typical VanillaNet model consists of only a handful of convolutional layers (ranging from 6 to 13). To achieve competitive performance with such a minimalist structure, the authors introduced two primary innovations.

The architecture of VanillaNet-6, showing its straightforward, stage-based design without shortcuts or attention modules.

1. Deep Training Strategy

To provide a shallow network with the representational power of a deep one, the authors utilize a "deep training" strategy. During the training phase, the model contains extra capacity—specifically, two convolutional layers separated by an activation function. As training progresses, the non-linearity of the activation function is gradually reduced until it becomes a simple identity mapping. At this stage, the two $1 \times 1$ convolutions can be mathematically merged into a single layer. This allows the model to benefit from deep representation during training while maintaining a shallow, efficient profile for inference.

2. Series Informed Activation Function

Shallow networks often lack sufficient non-linearity to learn complex patterns. VanillaNet addresses this with a Series Informed Activation Function ($A_s$). Instead of a standard ReLU, it employs a series of concurrent learnable affine transformations: $$A_s(x) = \sum_{i=1}^{n} a_i A(x + b_i)$$ This function essentially acts as a tiny, efficient Multi-Layer Perceptron (MLP) embedded within the activation layer itself, boosting learning capacity without the latency overhead of additional network layers.

Experimental Evaluation

Performance and Efficiency

VanillaNet was evaluated on standard benchmarks, including ImageNet-1K for classification and COCO for object detection and instance segmentation. The results demonstrate that hardware efficiency often trumps raw FLOP counts. While VanillaNet may have higher FLOPs than some mobile-optimized networks, its simple, branchless structure allows for massive parallelization on modern GPUs.

  • ImageNet: VanillaNet-9 achieves 79.87% Top-1 accuracy with a latency of just 2.91ms on an Nvidia A100 GPU. In comparison, a ResNet-50 with similar accuracy takes 7.64ms, making VanillaNet nearly 2.6x faster.
  • Scaling: The architecture scales effectively; VanillaNet-13-1.5x reached 83.11% Top-1 accuracy, competing with high-performance modern models.
  • Downstream Tasks: When used as a backbone for Mask R-CNN on COCO, VanillaNet-13 achieved a similar mAP to a Swin-T backbone but at a higher frame rate (32.6 vs 28.2 FPS).

Visualization of Attention

Analysis of attention maps reveals a unique characteristic of the minimalist architecture. VanillaNet tends to activate over much larger, more holistic regions of an image compared to ResNet-50. This suggests that the network naturally learns to extract global information to compensate for its lack of depth.

Visualization of attention maps comparing ResNet-50 and VanillaNet-9. VanillaNet tends to activate over larger, more holistic regions of the input, suggesting a more global feature extraction process.

Conclusion and Future Work

VanillaNet demonstrates that the primary bottleneck for shallow networks is a lack of non-linear processing power rather than a lack of layers. By moving complexity into the activation function and utilizing a deep training strategy, VanillaNet achieves a superior speed-accuracy trade-off on modern hardware.

While the model uses a higher parameter count to achieve this efficiency (e.g., 41M for VanillaNet-9 vs 25M for ResNet-50), the gains in inference speed are substantial. Future research may explore optimal parameter allocation and the application of this minimalist philosophy to other domains, such as Natural Language Processing.

Summary updated

BibTeX
@inproceedings{chen2023vanillanet,
  author = {Hanting Chen and Yunhe Wang and Jianyuan Guo and Dacheng Tao},
  title = {{VanillaNet: the Power of Minimalism in Deep Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Q5Eb6qIKux},
}
Figure