Disentangling Neural Architectures and Weights: A Case Study in Supervised Classification

Nicolò Colombo, Yang Gao · DOI

Abstract

The history of deep learning has shown that human-designed problem-specific networks can greatly improve the classification performance of general neural models. In most practical cases, however, choosing the optimal architecture for a given task remains a challenging problem. Recent architecture-search methods are able to automatically build neural models with strong performance but fail to fully appreciate the interaction between neural architecture and weights. This work investigates the problem of disentangling the role of the neural structure and its edge weights, by showing that well-trained architectures may not need any link-specific fine-tuning of the weights. We compare the performance of such weight-free networks (in our case these are binary networks with {0, 1}-valued weights) with random, weight-agnostic, pruned and standard fully connected networks. To find the optimal weight-agnostic network, we use a novel and computationally efficient method that translates the hard architecture-search problem into a feasible optimization problem. More specifically, we look at the optimal task-specific architectures as the optimal configuration of binary networks with {0, 1}-valued weights, which can be found through an approximate gradient descent strategy. Theoretical convergence guarantees of the proposed algorithm are obtained by bounding the error in the gradient approximation and its practical performance is evaluated on two real-world data sets. For measuring the structural similarities between different architectures, we use a novel spectral approach that allows us to underline the intrinsic differences between real-valued networks and weight-free architectures.

Introduction

In the current deep learning paradigm, the standard approach involves defining a fixed architecture and then "learning" the optimal weights through backpropagation. However, the remarkable success of specialized structures like Convolutional Neural Networks (CNNs) for vision or Transformers for sequence modeling suggests that the architecture itself might be doing the heavy lifting. This paper explores the "disentanglement" problem: determining how much of a model's predictive power stems from its specific edge structure versus its optimized weight values.

The authors propose that a sufficiently well-designed architecture can encode the solution to a problem so effectively that the specific values of the weights become secondary. To test this, they investigate "weight-free" architectures—binary networks where weights are restricted to {0, 1}.

Methodology: Architecture Search as Binary Optimization

The core contribution of this work is a computationally efficient algorithm that treats architecture search as a binary optimization problem. Instead of searching for continuous weights, the method searches for a subset of active connections.

The Three-Stage Pipeline

The process begins with a fully connected Multi-Layer Perceptron (MLP), denoted as $N_{full}$. Through a process of binary weight optimization, the network is pruned into an optimal binary architecture ($N^*_{bin}$). Finally, if desired, the remaining weights can be fine-tuned to real values ($N^*_{bin \to real}$).

The three-stage process: starting from a fully connected MLP, optimizing for binary weights, and optional fine-tuning to real values.

Relaxed SGD and Gradient Approximation

Because binary constraints are non-differentiable, the authors employ a "soft" approximation strategy. They define two binarization functions: a hard function ($B_{M_{hard}}$) used in the forward pass to maintain the binary nature of the network, and a soft function ($B_{M_{soft}}$) used to calculate gradients during the backward pass. This relaxation allows the use of standard Stochastic Gradient Descent (SGD) to navigate the discrete search space. Crucially, the paper provides theoretical convergence guarantees by bounding the error introduced by this gradient approximation.

Spectral Analysis of Architectures

To compare the resulting architectures objectively, the authors introduce a novel spectral approach. By analyzing the eigen-spectrum of the Laplacian matrix of the network graph, they can measure structural similarity between models regardless of node labeling. This biologically-inspired method helps identify whether different training runs converge to fundamentally similar structures.

Experimental Evaluation

The method was evaluated on two real-world classification tasks: MNIST (handwritten digits) and Citeseer (scientific paper abstracts). Both datasets were pre-processed into 64-dimensional vectors to maintain a controlled experimental environment.

Optimization curves showing the convergence of the objective function across different iterations and hyperparameter settings.

Key Results and Insights

  • Superior Performance of Binary Networks: The proposed binary models (bin) and their fine-tuned counterparts (bin→real) consistently achieved the highest AUC scores. In many instances, the binary {0, 1} networks outperformed standard fully connected networks with fine-tuned real-valued weights.
  • Architecture as a Regularizer: The discrete nature of the binary search space appears to act as a powerful regularizer. The authors observed that these models are less prone to overfitting compared to their continuous counterparts.
  • Efficiency in Search: Unlike many Neural Architecture Search (NAS) methods that build networks incrementally, this approach starts with an over-parameterized "super-network" and removes redundant connections. This "pruning-style" search is significantly more computationally feasible.
  • Structural Convergence: Spectral analysis revealed that while models might appear different in terms of specific node connections, they often share "spectrally similar" underlying architectures, suggesting the existence of an intrinsic optimal structure for specific tasks.

Conclusion

This research demonstrates that the architecture of a neural network is a primary carrier of information. By successfully training binary networks that rival or exceed the performance of real-valued models, the authors prove that link-specific weight tuning is not always necessary if the underlying structure is optimized. Future work may explore how these structural insights can be applied to massive-scale architectures and transfer learning, potentially leading to more efficient and robust AI systems.

Summary updated

Abstract

The history of deep learning has shown that human-designed problem-specific networks can greatly improve the classification performance of general neural models. In most practical cases, however, choosing the optimal architecture for a given task remains a challenging problem. Recent architecture-search methods are able to automatically build neural models with strong performance but fail to fully appreciate the interaction between neural architecture and weights. This work investigates the problem of disentangling the role of the neural structure and its edge weights, by showing that well-trained architectures may not need any link-specific fine-tuning of the weights. We compare the performance of such weight-free networks (in our case these are binary networks with {0, 1}-valued weights) with random, weight-agnostic, pruned and standard fully connected networks. To find the optimal weight-agnostic network, we use a novel and computationally efficient method that translates the hard architecture-search problem into a feasible optimization problem.More specifically, we look at the optimal task-specific architectures as the optimal configuration of binary networks with {0, 1}-valued weights, which can be found through an approximate gradient descent strategy. Theoretical convergence guarantees of the proposed algorithm are obtained by bounding the error in the gradient approximation and its practical performance is evaluated on two real-world data sets. For measuring the structural similarities between different architectures, we use a novel spectral approach that allows us to underline the intrinsic differences between real-valued networks and weight-free architectures.
BibTeX
@misc{colombo2020disentangling,
  author = {Nicolò Colombo and Yang Gao},
  title = {{Disentangling Neural Architectures and Weights: A Case Study in Supervised Classification}},
  year = {2020},
  eprint = {2009.05346},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.05346},
}
Figure