TL;DR
The paper introduces NEAR (Network Expressivity by Activation Rank), a training-free, label-free "zero-cost proxy" that estimates neural network performance before training. By calculating the effective rank of pre- and post-activation matrices across network layers, NEAR achieves state-of-the-art correlation with actual model accuracy across major benchmarks. Beyond architecture search, it can also optimize layer sizes, activation functions, and weight initialization schemes without requiring a predefined search space.
What Problem Does This Paper Address?
Designing a high-performing neural network is notoriously resource-intensive, often requiring massive computational power to train and evaluate hundreds of candidate architectures—a process known as Neural Architecture Search (NAS).
To bypass this bottleneck, researchers have developed "zero-cost proxies" that score untrained networks based on initial gradients or structural properties. However, existing proxies suffer from major limitations: most are strictly tied to the Rectified Linear Unit (ReLU) activation function, many require labeled data (making them useless for unsupervised tasks), and several fail to consistently outperform a trivial baseline like simply counting the number of model parameters.
The authors introduce NEAR to overcome these hurdles, providing a universally applicable, activation-agnostic, and label-free metric for model evaluation.
Methods
NEAR operates on a intuitive principle: a well-performing network should produce highly distinct and diverse internal representations (activations) for different inputs. If a layer maps distinct inputs to highly similar activation vectors, it lacks expressivity.
To quantify this, NEAR calculates the effective rank of a layer's pre-activation matrix ($Z_l$) and post-activation matrix ($H_l$) using a random batch of sample inputs. The effective rank uses singular value decomposition (SVD) and Shannon entropy to measure the geometric diversity of the matrix rows. The total NEAR score ($s$) is the sum of these effective ranks across all layers:
$$s = \sum_{l=1}^{L} \left( \text{erank}(Z_l) + \text{erank}(H_l) \right)$$
Key Innovations:
- Activation Agnostic: Unlike proxies that track binary on/off ReLU states, NEAR uses raw activation values, allowing it to work with any activation function (e.g., SiLU, Tanh, sTanh).
- CNN Subsampling: For Convolutional Neural Networks (CNNs), where 3D feature maps create massive matrices, NEAR introduces a clever row-subsampling approximation to keep computation lightning-fast without losing sensitivity to kernel size or channel count.
- Layer Size Estimation: The authors discovered that the relative NEAR score (score divided by the number of neurons) follows a power-law decay as layer size increases. By fitting a power function to a few small test sizes, they can iteratively determine the exact point of diminishing returns to find the optimal layer size.
Datasets
The authors evaluated NEAR across several standard computer vision and specialized scientific datasets:
- NAS Benchmarks: NAS-Bench-101 (423,624 architectures) and NATS-Bench (Topology Search Space [TSS] and Size Search Space [SSS], containing up to 32,768 architectures), evaluated on CIFAR-10, CIFAR-100, and ImageNet16-120.
- Balanced EMNIST: A dataset of handwritten digits and letters used to test Multi-Layer Perceptron (MLP) layer sizing and hyperparameter selection.
- lMLP Dataset: A chemical/molecular dataset containing 8,600 structures from $S_N2$ reactions, used to evaluate machine learning potentials for predicting molecular energy and atomic forces.
Key Insights and Ideas
- Expressivity Over Gradients: Many zero-cost proxies rely on gradient information, which can be noisy or biased by initialization. NEAR focuses purely on the geometric expressivity of the data transformations, making it highly robust.
- Breaking the ReLU Monopoly: By shifting the proxy definition from "counting linear regions" to "measuring matrix rank diversity," NEAR expands zero-cost NAS to domains outside computer vision (like chemistry or language modeling) where non-ReLU activations are standard.
- Iterative Layer Sizing: Because a layer's NEAR score depends only on preceding layers, you don't need a massive, predefined search space to optimize an MLP. You can determine the optimal size of layer 1, fix it, and move on to layer 2.
Key Results
NEAR consistently outperformed or matched 12 other prominent zero-cost proxies (such as SynFlow, SNIP, and ZiCo) across all major benchmarks.
On NATS-Bench-TSS, NEAR demonstrated a high correlation with final test accuracy, closely matching the top-performing MeCo proxy:
On the larger NATS-Bench-SSS, NEAR and SynFlow were among the only proxies to consistently beat the parameter-count baseline across all datasets:
On NAS-Bench-101, NEAR achieved the single highest correlation of any proxy tested, with a Spearman’s $\rho$ of 0.70:
When averaging performance across all datasets and search spaces, NEAR secured the #1 overall rank (1.71 average rank, where 1.00 is perfect):
Practical Application in Chemistry
Using its power-law layer sizing approach on a machine learning potential (lMLP) network, NEAR predicted an optimal architecture of 52-58-60 neurons. This dramatically reduced the model's parameter count from 22,990 to 13,909 (~40% reduction) while maintaining nearly identical test loss:
Limitations and Future Work
While NEAR is highly effective, the authors note that its primary challenge lies in evaluating networks with an exceptionally large number of parameters, where its predictions can occasionally deviate from actual performance. Additionally, because NEAR only measures a network's expressivity (its capacity to learn) and ignores training dynamics, it cannot capture minor performance fluctuations caused by optimizers or learning rate schedules.
Future work could explore combining NEAR with lightweight training indicators to bridge the gap between structural expressivity and optimization behavior.
Summary updated