Introduction
Designing a high-performing neural network is often a process of expensive trial and error. To find the best architecture, researchers typically use Neural Architecture Search (NAS), which involves training hundreds or thousands of candidate models to see which one performs best. This is computationally grueling and environmentally costly.
"Zero-cost proxies" aim to solve this by scoring a model's potential using only its initial, untrained weights. However, existing proxies have major flaws: many only work with specific activation functions (like ReLU), some require labeled data, and others fail to consistently outperform a simple count of the model's parameters.
To address these limitations, researchers have developed NEAR (Network Expressivity by Activation Rank), a zero-cost proxy that predicts a neural network's potential performance without requiring any training. By measuring the "effective rank" of data as it passes through network layers, NEAR allows engineers to automate architecture search, optimize layer sizes, and select hyperparameters in a fraction of the time normally required.
The NEAR Score Methodology
The core of the proposed method is the NEAR score, which is based on the mathematical concept of Effective Rank. In simple terms, if a layer’s output matrix has a high rank, it means the neurons are producing diverse, distinct signals. If the rank is low, the neurons are essentially "copying" each other, meaning the network is redundant and lacks expressivity.
How NEAR is calculated: 1. Pass a small batch of data through an untrained network. 2. For each layer, capture the values both before ($Z_l$) and after ($H_l$) the activation function. 3. Calculate the singular values of these matrices and use them to compute the Shannon entropy (a measure of information diversity). 4. The NEAR score is the sum of these "effective ranks" across all layers.
Unlike previous methods, NEAR is unsupervised (it doesn't need to know the "correct" answers for the data) and activation-agnostic (it works with Tanh, SiLU, GELU, etc., not just ReLU).
Key Insights and Capabilities
- The "Marginal Gain" of Neurons: As neurons are added to a layer, the NEAR score follows a power-law scaling. This allows researchers to estimate the "optimal" layer size by finding the point where adding more neurons yields diminishing returns in expressivity, shrinking models significantly without losing accuracy.
- Hyperparameter Selection: NEAR can predict which activation function (e.g., SiLU vs. Tanh) or weight initialization scheme (e.g., Xavier vs. Kaiming) will work best for a specific dataset before training begins.
- Stability Through Training: While most zero-cost proxies become less predictive if the model is trained for a few epochs, NEAR's correlation with final accuracy actually improves after a small amount of training.
- Label-Free Versatility: Because NEAR only looks at the geometry of how data is transformed inside the layers, it works perfectly for unsupervised tasks or specialized scientific domains where labels are scarce.
Key Results
The authors validated NEAR across a massive range of benchmarks, including NAS-Bench-101, NATS-Bench-SSS/TSS, image classification datasets (CIFAR, ImageNet), and scientific ML tasks.
- Top-Tier Performance: In a head-to-head comparison of 13 different zero-cost proxies, NEAR achieved the best average rank (1.71) across all tested datasets and search spaces.
- Superior Correlation: On the NAS-Bench-101 benchmark, NEAR achieved a Spearman’s correlation ($\rho$) of 0.70, significantly higher than established proxies like SynFlow (0.37) or Zen-Score (0.64).
- Model Compression: In a chemistry (lMLP) task, the NEAR-based estimation suggested a model with roughly 40% fewer parameters than the human-designed baseline, while maintaining nearly identical test error.
- GPT Compatibility: NEAR successfully ranked architectures in the HW-GPT-Bench, outperforming other modern proxies in predicting perplexity.
Limitations and Future Work
The authors acknowledge that NEAR measures expressivity (capacity), not trainability. A model might have a high NEAR score but be impossible to train due to exploding gradients or a jagged loss landscape.
Additionally, while NEAR works for Convolutional Neural Networks (CNNs), the matrices involved can become massive. The authors currently use a "submatrix approximation" to keep the math efficient, but further refinements in handling high-dimensional feature maps could improve accuracy for very large computer vision models. Future work may also involve extending NEAR to more complex architectures like Transformers.
Summary updated