Sifting out the features by pruning: Are convolutional networks the winning lottery ticket of fully connected ones?

Franco Pellegrini, Giulio BiroliarXiv 2021

Abstract

Convolutional Neural Networks (CNNs) are the standard for computer vision, largely due to their built-in inductive biases of locality and translation invariance. This paper investigates whether these biases are strictly necessary as architectural priors or if they can emerge from a "blank slate" Fully Connected Network (FCN). By applying Iterative Magnitude Pruning (IMP) within the framework of the Lottery Ticket Hypothesis, we demonstrate that sparse sub-networks discovered within dense FCNs naturally rediscover CNN-like structures, including local receptive fields and Gabor-like filters. Our results suggest that the success of CNNs is rooted in the fact that they represent the optimal sparse structures for natural image tasks.

Introduction

The dominance of CNNs in image processing is often attributed to human-engineered architectural constraints inspired by the biological visual cortex. These constraints—specifically locality (pixels near each other are related) and translation invariance—are "hard-wired" into the network. This study asks a fundamental question: Can a network with no spatial knowledge discover these principles on its own? By pruning a 3-layer FCN on ImageNet32, we look for "winning tickets" that exhibit the structural properties of CNNs.

Methodology

The researchers utilized Iterative Magnitude Pruning (IMP) on a 3-layer FCN. The process involves training a dense network, pruning the weights with the smallest magnitudes, and "rewinding" the remaining weights to their early-training values. This cycle is repeated until the network reaches extreme sparsity. To evaluate the resulting architectures, the authors introduced a "local distance" metric to measure the spatial spread of connections and visualized the connectivity masks of the surviving nodes.

Results: Performance and Connectivity

Pruning did not merely reduce the model size; it significantly improved performance. As shown in the validation accuracy curves, the FCN's accuracy rose from approximately 9% in the dense state to over 12% when only 1% of the weights remained. This peak performance at high sparsity is a hallmark of the Lottery Ticket Hypothesis.

Validation accuracy peaks at high sparsity (a), while connectivity distributions (b) and node pruning sensitivity (c) highlight the emergence of critical 'hub' nodes.

Analysis of the connectivity distribution reveals that the network's performance is driven by a small number of "hub" nodes. Removing these highly connected nodes leads to a rapid collapse in accuracy compared to removing nodes with fewer connections, indicating that the pruning process concentrates information into a specific, efficient sub-structure.

Results: The Emergence of Locality

A key finding of this work is the spontaneous emergence of spatial locality. In a dense FCN, a hidden node can connect to any pixel in the input. However, as pruning progresses, the surviving connections in the first hidden layer become increasingly concentrated in small, localized patches.

Locality analysis (a) and heatmaps (b) showing how connections become spatially concentrated as the percentage of unpruned weights (u) decreases.

This concentration effectively "invents" the concept of a receptive field. Furthermore, the most highly connected nodes develop masks that resemble Gabor filters—edge detectors and color-opponent patches—which are the exact features found in the early layers of CNNs and the human primary visual cortex. This "CNN-ification" only occurs when the task is semantic; training on random labels results in a non-local, featureless architecture.

Discussion and Limitations

While the pruned FCNs successfully discovered locality and hierarchical feature building, they did not naturally discover weight sharing (the reuse of the same filter across different spatial locations). This remains a unique efficiency of the CNN architecture. Additionally, the study was limited to low-resolution images (32x32) due to the computational cost of training dense FCNs at higher scales.

Despite these limitations, the work proves that CNN-like inductive biases are the optimal structures emerging directly from the interplay of natural data and semantic tasks. This methodology offers a potential path for discovering optimal architectures for non-visual data types, such as genomic sequences or audio, where human-engineered biases are not yet well-defined.

Summary updated

BibTeX
@misc{pellegrini2021sifting,
  author = {Franco Pellegrini and Giulio Biroli},
  title = {{Sifting out the features by pruning: Are convolutional networks the winning lottery ticket of fully connected ones?}},
  year = {2021},
  eprint = {2104.13343},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.13343},
}
Figure