Discovering Neural Wirings

Mitchell Wortsman, Ali Farhadi, Mohammad Rastegari
6/3/2019
132 citations
cs.LGcs.CVcs.NE

Official code: allenai/dnw (138 stars, Python, last commit 2026-03-05).

Abstract

The success of neural networks has driven a shift in focus from feature engineering to architecture engineering. However, successful networks today are constructed using a small and manually defined set of building blocks.

Show full abstract

Even in methods of neural architecture search (NAS) the network connectivity patterns are largely constrained. In this work we propose a method for discovering neural wirings. We relax the typical notion of layers and instead enable channels to form connections independent of each other. This allows for a much larger space of possible networks. The wiring of our network is not fixed during training -- as we learn the network parameters we also learn the structure itself. Our experiments demonstrate that our learned connectivity outperforms hand engineered and randomly wired networks. By learning the connectivity of MobileNetV1we boost the ImageNet accuracy by 10% at ~41M FLOPs. Moreover, we show that our method generalizes to recurrent and continuous time networks. Our work may also be regarded as unifying core aspects of the neural architecture search problem with sparse neural network learning. As NAS becomes more fine grained, finding a good architecture is akin to finding a sparse subnetwork of the complete graph. Accordingly, DNW provides an effective mechanism for discovering sparse subnetworks of predefined architectures in a single training run. Though we only ever use a small percentage of the weights during the forward pass, we still play the so-called initialization lottery with a combinatorial number of subnetworks. Code and pretrained models are available at https://github.com/allenai/dnw while additional visualizations may be found at https://mitchellnw.github.io/blog/2019/dnw/.

View on arXivView PDF

Code Implementations(1)

allenai/dnwOfficial100%

Discovering Neural Wirings (https://arxiv.org/abs/1906.00586)

13817Python, ShellJul 1, 20199 months agoNOASSERTION
computer-visionmachine-learningneural-networks

Similar Papers

Cite this paper

@article{wortsman2019discovering,
  title  = {Discovering Neural Wirings},
  author = {Mitchell Wortsman and Ali Farhadi and Mohammad Rastegari},
  year   = {2019},
  eprint = {1906.00586},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.00586}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1906.00586.svg)](https://codeofpaper.com/paper/1906.00586)

Discussion