ResBuilder: Automated Learning of Depth with Residual Structures

Julian Burghoff, Matthias Rottmann, Jill von Conta, Sebastian Schoenen, Andreas Witte, Hanno Gottschalk · DOI

Designing high-performance neural networks is often considered a "black art," requiring significant expertise and computational resources. For many organizations, this complexity remains a barrier to adopting state-of-the-art AI. In the paper "ResBuilder: Automated Learning of Depth with Residual Structures," researchers Julian Burghoff and colleagues introduce an automated neural architecture search (NAS) algorithm designed to build or optimize ResNet architectures with minimal human intervention.

The Challenge of Architecture Design

While deep learning has transformed fields like computer vision, the process of selecting the optimal "architecture"—the specific arrangement of layers, filters, and connections—is a major bottleneck. Existing NAS methods are frequently computationally prohibitive or restricted to adjusting only the width (channel count) of a fixed model. ResBuilder addresses this by enabling a tool that can start from a minimal "empty" network and automatically determine the ideal depth and width for a specific task using default hyperparameters.

The ResBuilder Methodology

ResBuilder operates within the search space of Residual Networks (ResNets), utilizing three core mechanisms to evolve the architecture during training:

  1. MorphNet Integration: The algorithm incorporates the MorphNet framework to manage width optimization, shrinking or expanding layer channels based on importance. The MorphNet iterative optimization cycle used as a baseline for width adjustments. Source, p. 5
  2. LayerLasso (Greedy Out): A novel L1-regularization term, LayerLasso, penalizes the weights of entire residual blocks. If a block's contribution falls below a threshold, it is pruned from the network.
  3. Identity Insertion (Random In): To increase capacity, ResBuilder randomly inserts new residual blocks. By initializing these blocks with weights near zero, they function as identity mappings ($f(x) \approx x$), allowing the network to grow without disrupting previously learned features.
The MorphNet iterative optimization cycle used as a baseline for width adjustments.

Key Insights: The "Identity Trick"

A central innovation of ResBuilder is the ability to perform architecture search "online" during the training process. The "Identity Trick" ensures that adding layers does not cause catastrophic forgetting or performance drops.

Accuracy stability when inserting new layers with varying initial weight sizes.

As shown in the experimental results, when new layers are initialized with sufficiently small weights (typically $< 10^{-3}$), the network's accuracy remains stable. This allows the model to explore deeper architectures seamlessly. Furthermore, the authors found that hyperparameters tuned on a standard dataset like CIFAR-10 transferred effectively to diverse industrial tasks, highlighting the robustness of the approach.

Performance and Real-World Application

ResBuilder was evaluated against several academic benchmarks (CIFAR, MNIST, Animals10) and a real-world industrial dataset for insurance fraud detection.

  • CIFAR-100: Starting from an empty network, ResBuilder achieved 62.36% accuracy, significantly outperforming a standard ResNet-18 benchmark of 53.80%.
  • Industrial Fraud Detection: In a task identifying manipulated images of damaged vehicles, ResBuilder outperformed the highly optimized EfficientNet-b0 by 1.2 percentage points while utilizing 97.86% fewer parameters.

Conclusion

ResBuilder demonstrates that automated depth and width optimization can match or exceed the performance of manually tuned models while drastically reducing parameter counts. By leveraging the mathematical properties of residual connections, it provides a path toward "Auto-Model" builders that are accessible to non-experts and efficient enough for deployment on resource-constrained edge devices. Future work may extend these principles beyond the ResNet search space to architectures like Transformers.

Summary updated

BibTeX
@inproceedings{burghoff2024resbuilder,
  author = {Julian Burghoff and Matthias Rottmann and Jill von Conta and Sebastian Schoenen and Andreas Witte and Hanno Gottschalk},
  title = {{ResBuilder: Automated Learning of Depth with Residual Structures}},
  booktitle = {ICANN},
  year = {2024},
  url = {https://openreview.net/forum?id=oq29pnKOvf},
}
Figure