Emergent Structures and Lifetime Structure Evolution in Artificial Neural Networks

Siavash GolkararXiv 2019

Abstract: Motivated by the flexibility of biological neural networks whose connectivity structure changes significantly during their lifetime, we introduce the Unstructured Recursive Network (URN) and demonstrate that it can exhibit similar flexibility during training via gradient descent. We show empirically that many of the different neural network structures commonly used in practice today (including fully connected, locally connected and residual networks of different depths and widths) can emerge dynamically from the same URN. These different structures can be derived using gradient descent on a single general loss function where the structure of the data and the relative strengths of various regulator terms determine the structure of the emergent network. We show that this loss function and the regulators arise naturally when considering the symmetries of the network as well as the geometric properties of the input data.

Introduction

In contemporary deep learning, the architecture of a neural network is typically a fixed prerequisite. Engineers spend significant resources designing specific arrangements of layers, filters, and skip connections, or utilize computationally expensive Neural Architecture Search (NAS) to evolve them over generations. This stands in stark contrast to biological neural networks (BNNs), which are remarkably fluid. Biological brains adapt their connectivity structure during their actual lifetime—a process known as neuroplasticity—to cope with new tasks, environmental changes, or physical damage.

This research addresses the lack of a "lifetime evolution" analog in artificial intelligence. The goal is to move away from rigid, hand-designed structures toward a system where the network starts as a "blank slate"—a dense, unstructured recursive pool of neurons—and discovers the most efficient connectivity pattern for a given task through standard gradient descent. By introducing the Unstructured Recursive Network (URN), we demonstrate that familiar architectures like multi-layer perceptrons (MLPs) or locally connected networks can be "sculpted" from a general recursive structure during training.

The Unstructured Recursive Network (URN)

The core innovation of this work is the URN framework, which treats architecture as a signature of sparsity within a more general recursive system. Almost any feed-forward architecture can be represented as a large, sparse recursive matrix. For instance, a standard MLP is essentially a recursive network where the weight matrix possesses a specific "block sub-diagonal" structure.

Schematic of the URN architecture showing the iterative update process.

As illustrated in Figure 3, the URN operates through several key stages:

  1. The "Blank Slate" Initialization: Instead of hard-coding a specific layer structure, the URN begins with a dense, randomly initialized $S \times S$ weight matrix $W$.
  2. Recursive Processing: The input is embedded into the system's state $N^{(0)}$. An update rule is then applied iteratively for $I$ steps: $N^{(l+1)} = \phi(W N^{(l)} + b)$. This allows information to flow through the recursive pool.
  3. Regularization as a Sculptor: To force a functional structure to emerge from the dense pool, the model employs $L_1$ regularization terms in the loss function. These terms penalize both the weights ($c_W$) and the neuron activations ($c_N$), encouraging the network to "shut off" unnecessary connections and neurons. This effectively prunes the dense pool into a sparse, functional architecture.
  4. Geometric Priors: To encourage locally connected structures (reminiscent of CNNs), a "synaptic length" penalty is introduced. By assigning neurons spatial coordinates (e.g., a 2D grid for image data), the loss function penalizes long-distance connections, naturally favoring local neighborhoods.

Experimental Setup

The URN was evaluated on two primary tasks to test its structural flexibility:

  • Concentric Spheres: A binary classification task requiring the network to distinguish inputs sampled from two 10-dimensional spherical shell distributions. This served as a proof-of-concept for the emergence of MLPs from an unstructured start.
  • CIFAR-10: A standard image classification dataset (processed in monochromatic form). This task was used to demonstrate how geometric priors lead to emergent local connectivity and improved performance on spatial data.

Key Results

The experiments yielded several significant insights into how structure emerges from sparsity and symmetry-breaking.

Emergent MLPs and Sparsity

In the concentric spheres task, a URN initialized with 5000 neurons successfully pruned itself down to just approximately 123 active neurons. The resulting weight matrix clearly exhibited a 3-hidden-layer MLP structure that emerged entirely from the data and regularization constraints.

Visualization of emergent sparsity and structure in the URN weight matrix and activations.

As shown in Figure 5, the network effectively prunes itself during training. The weight matrix $W$ (right) develops a block-sub-diagonal structure, while the activations $N^{(l)}$ (left) become increasingly sparse as the iterations progress, eventually concentrating activity in the designated output nodes. This demonstrates that common architectures are not arbitrary designs but are specific sparse configurations of a more general recursive system.

Emergent Locality and Dynamic Depth

On the CIFAR-10 dataset, the addition of the synaptic length penalty caused the URN to form a feed-forward, locally connected structure. This version of the URN achieved a 52% test accuracy, representing a 10% improvement over a URN without geometric priors. This confirms that "spatial awareness" helps the network discover superior structures for image-based tasks.

Furthermore, the URN exhibited "Dynamic Depth." By utilizing residual output nodes, the network can autonomously decide how many iterations (layers) are required for a task. For simpler tasks, the network learns to stop updating the output early, effectively becoming a shallower model and saving computational effort.

Limitations and Future Work

While the URN provides a compelling proof of concept for lifetime structure evolution, several challenges remain:

  • Weight Sharing: Currently, the URN does not naturally produce the "weight sharing" characteristic of Convolutional Neural Networks. Discovering the mechanisms that allow weight sharing to emerge naturally is a primary goal for future research.
  • Computational Scaling: Training a massive $S \times S$ dense matrix is significantly more expensive than training a pre-defined sparse architecture, posing a hurdle for scaling to larger models.
  • Never-Ending Structure Accumulation (NESA): The author proposes NESA as a future paradigm where a network builds upon its emergent structure as it tackles increasingly difficult tasks. This "curriculum learning" for architecture represents a promising direction for creating truly adaptive artificial intelligence.

Summary updated

BibTeX
@misc{golkar2019emergent,
  author = {Siavash Golkar},
  title = {{Emergent Structures and Lifetime Structure Evolution in Artificial Neural Networks}},
  year = {2019},
  eprint = {1911.11691},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.11691},
}
Figure