Dense xUnit Networks

Idan Kligvasser, Tomer MichaeliarXiv 2018

Introduction

The "quest for efficiency" in deep learning typically focuses on macro-architectural changes (e.g., skip connections in ResNets) or layer-level optimizations (e.g., depth-wise separable convolutions in MobileNet). However, the activation function—the non-linear "gate" following a convolution—is often overlooked. Most state-of-the-art models still rely on the Rectified Linear Unit (ReLU), which operates on a simple per-pixel basis.

The authors introduce DxNet, a deep learning architecture that achieves state-of-the-art performance in image classification and restoration while using significantly fewer parameters. By replacing simple ReLU activations with learnable, spatially-aware xUnit modules, the researchers demonstrate that making individual layers "smarter" allows for much leaner overall network designs.

Methods: The xUnit Module and DxNet Architecture

The core innovation is the integration of the xUnit activation into the DenseNet architecture.

The xUnit Module

Unlike ReLU, which simply zeros out negative values, the xUnit is a small sub-network. It passes the input through a 1x1 convolution to capture cross-channel dependencies, followed by a depth-wise convolution to capture spatial context, and finally a sigmoid function to create a "soft" weight map. This map is then multiplied by the original input.

Comparison of the standard ReLU activation and the proposed learnable xUnit module.

The DxNet Architecture

The authors incorporate these xUnits into DenseNet blocks. Because xUnits add their own parameters, simply replacing every ReLU would increase model size. Instead, the authors strategically place xUnits in "slim" parts of the network (where channel counts are low) and discard a significant number of layers. An improved xUnit design adds a 1x1 convolution at the start of the activation branch, allowing it to learn relationships between different feature maps.

Experimental Evaluation

DxNet was evaluated across a diverse range of computer vision tasks:

  • Image Classification: CIFAR-10, SVHN, and ImageNet (ILSVRC 2012).
  • Image Restoration: BSD100 and DIV2K for super-resolution; BSD68 for image denoising.

Key Results

The experimental results highlight the efficiency gains of the DxNet approach:

  • ImageNet Efficiency: DxNet-105 outperformed a standard ReLU-based DenseNet that had 30% more parameters. It also achieved better Top-1 accuracy than other prominent lightweight models like MobileNetV2 and ShuffleNet at similar parameter counts.
  • Super-Resolution: In 4x upscaling tasks, the tiny DxNet16 (0.86M parameters) matched the performance of the much larger ProSRl model (3.1M parameters)—a nearly four-fold reduction in model size.
  • Denoising: DxNet outperformed the industry-standard DnCNN while using only one-fourth of the parameters.
Top-1 Accuracy vs. Number of Parameters on ImageNet. DxNet-105 shows superior accuracy with fewer parameters compared to standard models.

Discussion and Future Work

A key insight from this work is that spatial activations matter. Traditional activations treat every pixel as an island, whereas xUnits allow the network to decide whether to "fire" a neuron based on surrounding context. Furthermore, DxNet exhibits "flatter minima" in the loss surface, which is strongly associated with better generalization.

While DxNet is highly parameter-efficient, the xUnit module involves more sequential operations than a simple ReLU. On current hardware optimized for ReLU, this may not translate to a direct 1:1 speedup in wall-clock inference time. Future work will focus on optimizing the xUnit internal structure and developing specialized hardware kernels to leverage these sophisticated activations for deployment on mobile and wearable devices.

Summary updated

BibTeX
@misc{kligvasser2018dense,
  author = {Idan Kligvasser and Tomer Michaeli},
  title = {{Dense xUnit Networks}},
  year = {2018},
  eprint = {1811.11051},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.11051},
}
Figure