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

Eigenspectrum Analysis of Neural Networks without Aspect Ratio Bias

Yuanzhe Hu, Kinshuk Goel, Vlad Killiakov, Yaoqing Yang

TL;DR

Evaluating the "health" of a neural network by analyzing the eigenvalues of its weight matrices is a powerful diagnostic tool, but it suffers from a hidden geometric flaw: matrix aspect ratios distort the results. The authors introduce FARMS (Fixed-Aspect-Ratio Matrix Subsampling), a simple yet highly effective method that eliminates this shape bias by analyzing fixed-ratio submatrices. Implementing FARMS uniformly improves layer-wise hyperparameter tuning and model compression, notably slashing the post-pruning perplexity of LLaMA-7B by 17.3%.

What Problem Does This Paper Address?

In recent years, researchers have used Heavy-Tailed Self-Regularization (HT-SR) theory to diagnose whether deep neural networks (DNNs) are well-trained without ever looking at validation data. By plotting the eigenvalues of a layer's weight matrix—known as the Empirical Spectral Density (ESD)—one can fit a power-law distribution to calculate a "heavy-tailedness" index ($\alpha$). Smaller $\alpha$ values typically indicate a well-trained, highly correlated layer, while larger values signal an undertrained layer.

However, this paper exposes a critical blind spot in HT-SR: aspect ratio bias.

According to Random Matrix Theory, the physical dimensions (rows $m$ vs. columns $n$) of a matrix fundamentally alter the shape of its ESD. As a matrix becomes "tall and skinny" or "short and wide," its eigenvalue spectrum naturally compresses, mimicking an undertrained layer purely because of its geometry.

Figure 1: Comparing FARMS with common HT-SR methods in analyzing the weight matrices of a DNN. We use the weight matrix Wi of a well-trained layer with a large aspect ratio as an example (i.e., γ = m/n is much larger than 1). Due to the influence of the aspect ratio γ = m/n ≫1, the ESD is more concentrated and less HTed than other layers. As a result, previous methods for fitting a power-law distribution (shown as “PL Fitting”) tend to overestimate the heavytailness metric PL Alpha (the HT index) and incorrectly suggest that the layer is poorly trained. Due to this aspect ratio bias, some optimization methods (such as TempBalance) cannot accurately assign per-layer hyperparameters, leading to suboptimal training. In contrast, our method, FARMS, which conducts ESD analysis with a fixed aspect ratio, accurately measures the training quality of the layer. See a concrete numerical example in Figure 7 in Appendix A.

As a result, existing diagnostic tools misclassify well-trained structural layers (like final classification layers or specific LLM projections) as poorly trained. This leads to broken hyperparameter scheduling and suboptimal model pruning.

Figure 2: ESD shapes can be biased by the aspect ratio. Here we visualize the eigenvalues of the symmetric matrix 1

Methods

To level the playing field, the authors propose FARMS (Fixed-Aspect-Ratio Matrix Subsampling). Instead of analyzing the full, irregularly shaped weight matrix $W$, FARMS standardizes the aspect ratio across the entire network.

  1. Sliding Window Subsampling: For a 2D linear layer, FARMS uses a sliding window to extract smaller, potentially overlapping submatrices ($W_{i1}, W_{i2}, \dots$) of size $m' \times n'$. Crucially, the submatrix aspect ratio $Q = m'/n'$ is kept strictly fixed across all layers (typically set to a square $1.0$).
  2. Eigenvalue Concatenation: It computes the singular value decomposition (SVD) for each submatrix and concatenates their eigenvalues into a single combined series.
  3. Unbiased Evaluation: Finally, the power-law distribution is fitted to this combined, aspect-ratio-normalized spectrum to extract a true reflection of the layer's training quality.

For 4D convolutional layers, FARMS flattens the kernel dimensions into a single dimension before applying a similar block-wise sampling strategy.

Figure 3: Main Steps in FARMS.

Datasets

The authors validated FARMS across three distinct domains:

  • Computer Vision (CV): CIFAR100 dataset used to train ResNet-18/34 and VGG-16/19 architectures.
  • Large Language Models (LLMs): WikiText validation set for language modeling perplexity, alongside seven zero-shot downstream tasks (including BoolQ, RTE, HellaSwag, WinoGrande, ARC, and OpenbookQA) evaluated on OPT and LLaMA (7B to 13B) models.
  • Scientific Machine Learning (SciML): A simulated 2D Compressible Navier-Stokes fluid dynamics dataset from PDEBench, evaluated on Operator Transformers (DPOT-Tiny/Small).

Key Insights and Ideas

  • Geometry is a Confounder: Matrix shape acts as a statistical confounder when measuring heavy-tailedness. Directly comparing the raw ESD of a square attention matrix to a rectangular classification matrix is fundamentally an apples-to-oranges comparison.
  • Subsampling Preserves Global Features: A common concern with subsampling is the loss of global weight correlations. However, modern deep learning theory shows that well-trained networks develop "feature spikes"—essentially rank-one updates that span the entire matrix. Because these spikes are global, random submatrices reliably capture them while stripping away the shape-dependent bulk noise.
  • Eliminating the "Layer Selection" Hack: Previous state-of-the-art optimization methods like TempBalance had to manually exclude the first and last layers of a network because their extreme aspect ratios broke the algorithm. FARMS completely removes the need for this manual heuristic, allowing robust, automated tuning across all layers.

Key Results

  • LLM Pruning Breakthroughs: When integrated into AlphaPruning (a layer-wise pruning framework), FARMS significantly preserved model intelligence at high sparsities. For LLaMA-7B at 0.8 sparsity using SparseGPT, FARMS reduced perplexity from 96.02 down to 79.42 (a 17.3% improvement). For LLaMA-13B at 0.7 sparsity, magnitude pruning perplexity plummeted from 2029.20 to 413.76.
  • More Robust CV Training: Integrating FARMS into layer-wise learning rate assignments yielded higher test accuracies across ResNet and VGG networks while maintaining stable performance even when the traditional layer-selection safety nets were disabled.
  • SciML Improvements: In operator transformer fine-tuning, FARMS consistently outperformed baseline methods across all data subsampling ratios, achieving up to a 5.66% error reduction in L2 Relative Error.

Limitations and Future Work

  • Computational Cost: Performing SVD on multiple submatrices inherently introduces more computational overhead than analyzing the original matrix once. While the authors demonstrate that using larger window sizes with fewer sampling steps can mitigate this, it remains a trade-off.
  • Hyperparameter Sensitivity: FARMS introduces new hyperparameters, such as the choice of window size and the number of sampling steps. While the paper provides stable defaults (like an aspect ratio of 1.0), finding the absolute optimal window configuration for highly exotic architectures may require additional tuning.
  • Future Work: The authors suggest exploring how fixed-aspect-ratio diagnostics can be applied to other emerging areas, such as optimizing Low-Rank Adaptations (LoRA) or guiding neural architecture search (NAS).

Summary updated

BibTeX
@inproceedings{hu2025eigenspectrum,
  author = {Yuanzhe Hu and Kinshuk Goel and Vlad Killiakov and Yaoqing Yang},
  title = {{Eigenspectrum Analysis of Neural Networks without Aspect Ratio Bias}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=7ywj1B3DuO},
}
Figure