[Paper Review] Neural networks with differentiable structure
This paper proposes a differentiable method for training recurrent neural networks with dynamically adjustable architecture, using L1 regularization on outgoing weights to enable gradient-based pruning and growth of neurons. The approach allows networks to automatically expand or contract in size based on task complexity, outperforming fixed-size networks on sequence prediction tasks by adapting structure via gradient descent.
While gradient descent has proven highly successful in learning connection weights for neural networks, the actual structure of these networks is usually determined by hand, or by other optimization algorithms. Here we describe a simple method to make network structure differentiable, and therefore accessible to gradient descent. We test this method on recurrent neural networks applied to simple sequence prediction problems. Starting with initial networks containing only one node, the method automatically builds networks that successfully solve the tasks. The number of nodes in the final network correlates with task difficulty. The method can dynamically increase network size in response to an abrupt complexification in the task; however, reduction in network size in response to task simplification is not evident for reasonable meta-parameters. The method does not penalize network performance for these test tasks: variable-size networks actually reach better performance than fixed-size networks of higher, lower or identical size. We conclude by discussing how this method could be applied to more complex networks, such as feedforward layered networks, or multiple-area networks of arbitrary shape.
Motivation & Objective
- To enable gradient descent to optimize not only connection weights but also network structure, such as the number of neurons and connectivity.
- To address the limitation of fixed architecture in deep learning, where network topology is typically hand-designed or optimized via non-differentiable methods.
- To explore whether dynamically growing networks can outperform fixed-size networks in terms of performance and sample efficiency.
- To develop a method that makes network structure differentiable, allowing for end-to-end training with backpropagation.
- To demonstrate the feasibility of structural adaptation in response to changing task complexity using gradient-based optimization.
Proposed method
- Introduce L1 regularization on the outgoing weights of each neuron to encourage sparse, active connectivity and promote neuron 'soft deletion' when output contributions are minimal.
- Define a deletion threshold $T_D$ for neurons whose total outgoing weight norm falls below this value, marking them for potential removal.
- Maintain a fixed number $k$ of sub-threshold neurons; if more than $k$ exist, delete excess neurons probabilistically with probability $P_{\text{del}}$.
- If fewer than $k$ neurons are sub-threshold, add a new neuron with random initial weights, ensuring its outgoing L1-norm equals $T_D$ to minimize initial impact.
- Use probabilistic addition and deletion to stabilize training and avoid abrupt structural changes, enabling smooth adaptation.
- Start training from a single neuron, following the 'augmenting topology' principle, allowing the network to grow only as needed.
Experimental results
Research questions
- RQ1Can network architecture, specifically the number of neurons, be made differentiable and optimized via gradient descent?
- RQ2Does a dynamically growing network architecture outperform fixed-size networks on sequence prediction tasks?
- RQ3Can a network automatically adjust its size in response to sudden increases in task complexity?
- RQ4Is the structural adaptation driven by gradient descent effective in correlating network size with task difficulty?
- RQ5Can the method be extended to more complex architectures such as feedforward or multi-area networks?
Key findings
- The variable-size network achieved lower median cross-entropy loss than any fixed-size network tested, including those with the same final size (37 neurons), indicating superior performance through structural adaptability.
- For the easy task, the network stabilized at 14 neurons after 100,000 training cycles, while for the hard task, it grew to 37 neurons, demonstrating size adaptation to task difficulty.
- When task complexity abruptly increased from easy to hard after 33,000 cycles, the network successfully expanded to more neurons, and later contracted when complexity reverted, maintaining performance.
- The method enabled dynamic structural changes without performance degradation, showing robustness to sudden task shifts.
- The network’s ability to grow and shrink in response to task demands suggests that structural optimization via gradient descent can yield more efficient architectures than static designs.
- The results support the hypothesis that 'augmenting topology'—starting small and growing only when needed—can improve learning performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.