NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Refining the Structure of Neural Networks Using Matrix Conditioning

Roozbeh Yousefzadeh, Dianne P. O'LearyarXiv 2019

Introduction

Designing optimal neural network architectures remains a significant challenge in machine learning. Practitioners often rely on trial-and-error or computationally expensive Neural Architecture Search (NAS) to determine the number of layers and neurons. Over-parameterized models risk overfitting and waste hardware resources, while under-parameterized models fail to capture complex patterns. This paper proposes a systematic, low-cost approach to architecture design using matrix conditioning—specifically Singular Value Decomposition (SVD) and QR decomposition—to identify and eliminate redundancy.

Methodology

The proposed framework treats neural network weight matrices as linear operators. By analyzing their "health" through numerical linear algebra, the authors develop three core algorithms to refine network structure.

Standard feed-forward neural network architecture used as the basis for structural refinement.

1. Layer Distribution (Algorithm 3.1)

This algorithm determines the optimal proportion of neurons across layers. After a brief partial training phase, the condition number ($\kappa$) of each weight matrix $W^{(i)}$ is calculated. A high condition number indicates near rank-deficiency, suggesting the layer contains redundant neurons. The algorithm iteratively removes neurons from these "clogged" layers until condition numbers are balanced across the network.

2. Global Scaling (Algorithm 3.2)

Once layer proportions are established, the entire network is scaled to find the "Goldilocks" size. The authors use a metric that minimizes the sum of validation error and generalization error ($2\epsilon^v - \epsilon^{tr}$) to balance underfitting and overfitting.

3. Model Squeezing (Algorithm 4.1)

For pre-trained models, the authors employ pivoted QR decomposition to identify specific redundant neurons. This "squeezing" process allows for pruning without rebuilding the model from scratch. A short fine-tuning session typically follows, often resulting in a more compact model with superior generalization.

Experimental Evaluation

The methods were tested on two datasets:

  • MNIST (Haar Wavelets): To simulate an unfamiliar dataset, the authors used the 200 most significant Haar wavelet coefficients instead of raw pixels.
  • Adult Income Dataset: A tabular dataset from the UCI Repository used to predict if an individual's income exceeds $50k/year.

Results and Discussion

The matrix conditioning approach demonstrated significant efficiency and performance gains. For the MNIST task, the method produced a compact network achieving 98.74% accuracy. Notably, squeezing an oversized model (removing over 400 neurons) improved accuracy from 98.68% to 98.74%, suggesting that removing redundancy acts as a form of structural regularization.

On the Adult Income dataset, the system designed a model with 86.05% accuracy, competitive with state-of-the-art results. A key advantage is computational efficiency: the entire MNIST pipeline, including training and refinement, took approximately two hours on a 2017 consumer-grade laptop, contrasting sharply with the GPU-days required by traditional NAS.

Conclusion

Matrix conditioning offers a robust, mathematically grounded alternative to heuristic-based architecture design. By treating weight matrices as linear operators, the proposed algorithms can systematically "squeeze" redundancy out of neural networks, improving both efficiency and generalization. While currently focused on feed-forward architectures, the principles of conditioning provide a promising path toward automating the design of more complex network structures.

Summary updated

BibTeX
@misc{yousefzadeh2019refining,
  author = {Roozbeh Yousefzadeh and Dianne P. O'Leary},
  title = {{Refining the Structure of Neural Networks Using Matrix Conditioning}},
  year = {2019},
  eprint = {1908.02400},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.02400},
}
Figure