Activation-aware Score Function
- Activation-aware Score Function is a zero-cost proxy metric that quantifies a network’s ability to separate inputs and its activation capacity using binary ReLU masks.
- It decouples traditional evaluation by leveraging the log-determinant of a normalized Hamming kernel for distinguishing ability and an activation count penalty for capacity.
- The method is enhanced by a fast training strategy that boosts ranking accuracy and has been validated across multiple NAS benchmarks.
An activation-aware score function is a class of zero-cost proxy metrics in neural architecture search (NAS) that evaluates candidate networks by directly analyzing their layer activations, quantifying both their ability to separate inputs (“distinguishing ability”) and their activation capacity, without the need for full training. The Distinguishing Activation Score (DAS) is the canonical instance of this approach, explicitly formulated to address non-atomicity in earlier activation-based proxies. DAS is defined as a function of the log-determinant of a Hamming kernel on binary ReLU activation masks, combined with an explicit activation-count penalty weighted by a tunable hyperparameter. This construction yields a lightweight, interpretable measure that correlates strongly with downstream trained accuracy and is further enhanced by a fast-training augmentation that requires only minimal epochs of partial overfitting to a single minibatch (Liu et al., 2022).
1. Foundations and Motivation
The high computational burden of evaluating candidate architectures has historically impeded the scalability and adoption of NAS. Zero-cost proxies, which attempt to infer likely post-training test accuracy from untrained or only partially trained model properties, offer a remedy. Traditional gradient-based and saliency-based metrics often lack specificity to the inductive properties of individual architectures. Activation-aware approaches, in contrast, exploit the behavior of binary ReLU activation patterns across input batches, positing a direct link between an architecture’s ability to produce diverse activation responses and its eventual discriminative capacity after training.
The original “without training” (WOT) score encapsulated this principle by computing the log-determinant of a Hamming-similarity kernel between activation masks. However, WOT entangled several underlying factors, motivating its decoupling into atomic metrics that reveal and separately measure input-distinguishability and activation unit capacity (Liu et al., 2022).
2. Atomic Metrics: Distinguishing Ability and Activation Capacity
Let denote a candidate convolutional-ReLU architecture, and a sampled minibatch. For each , the binary activation mask records the activation state of each ReLU unit. The pairwise Hamming kernel is given by:
where denotes Hamming distance.
The decomposed atomic metrics are:
- Distinguishing-ability metric (): Normalizing by removes scale dependence,
The metric is then 0, corresponding to the separability of activation patterns across inputs.
- Activation-unit count (1): The total number of ReLU units in the network, 2. This term, commonly included in logarithmic form, proxies network capacity and representational richness (Liu et al., 2022).
3. Distinguishing Activation Score (DAS): Formulation and Decoupling
The distinguishing activation score (DAS) is defined by a linear composition of the above atomic metrics:
3
where 4 is a tunable coefficient, with 5 (where 6 is the batch size) providing robust performance across evaluated search spaces.
Theoretical analysis shows that WOT’s original score,
7
decomposes as
8
revealing that WOT implicitly fixes 9. DAS generalizes this by allowing 0 to be chosen or tuned, thereby exposing and correcting for WOT’s conflation of activation count and input separability (Liu et al., 2022).
Both 1 and 2 exhibit positive empirical correlation with post-training held-out accuracy. 3 reflects intrinsic discriminative properties, while 4 tracks parameter budget and latent representational power.
4. Fast Training Strategy for Enhanced Proxy Accuracy
Untrained activation metrics, while computationally efficient, may not robustly reflect the trained generalization accuracy. Full model training, although accurate, is impractically expensive for NAS. The “fast training” strategy interpolates between these extremes by briefly overfitting the candidate architecture to a fixed minibatch-label pair 5 for a small number 6 of epochs, recording activation masks post-adaptation, and then recalculating DAS.
Algorithmically:
- Randomly initialize network weights.
- For each epoch 7, run forward/backward passes on 8 and update weights (e.g., via SGD).
- After 9 epochs, extract binary activation masks from the adapted model.
- Compute DAS with the new activations.
Empirically, 0 in 1 suffices for significant improvement in ranking fidelity (Kendall’s 2), with 3 capturing most obtainable benefit. This procedure increases compute cost over pure zero-training proxies but remains orders of magnitude cheaper than full training (e.g., 4 more accurate with 5 of the full cost) (Liu et al., 2022).
5. DARTS-Training-Bench (DTB): Dataset for Proxy Evaluation
The DARTS-Training-Bench (DTB) dataset constitutes a benchmark for zero-cost and partial-training proxy metrics. DTB features:
- 500 architectures sampled from the DARTS cell search space.
- For each architecture, snapshots of weights and binary activation patterns at epochs 0, 1, 2, ..., 5 of training (on CIFAR-10).
- Final test accuracy for each model after 6 epochs of conventional training.
DTB uniquely enables quantitative study of how partial adaptation (few-shot training) impacts the predictive validity of zero-cost proxies, addressing the limitation in existing NAS-Bench datasets which only report fully trained outcomes (Liu et al., 2022).
6. Empirical Evaluation and Practical Implications
Evaluation across seven standard NAS search spaces, including NAS-Bench-101, Network Design Spaces (NDS-PNAS, NDS-ENAS, NDS-DARTS, NDS-Amoeba, NDS-NASNet), and DTB, demonstrates that DAS consistently improves both raw evaluation accuracy (as measured by Kendall’s 7) and final searched architecture performance. Gains with DAS+fast training over pure WOT range from 8 to 9 in accuracy ranking.
Example outcomes for NAS-Bench-101:
| Method | Cost (s) | Accuracy (%) |
|---|---|---|
| Random | — | 0 |
| NASWOT (1) | 2 | 3 |
| DAS (4) | 5 | 6 |
| DAS (7) | 8 | 9 |
DAS with fast training outperforms prior activation-based proxies even when evaluated with significantly fewer architecture samples. The gain is consistent across search spaces, with especially pronounced relative improvement observed for more complex or less regular architectures (Liu et al., 2022).
7. Limitations, Parameterization, and Extensions
- The optimal choice of 0 is empirically sensitive to batch size, search space, and label distribution; practical default is 1, but grid-search over a hold-out set is recommended for maximal fidelity.
- Fast training entails modest additional compute; the trade-off between 2 and ranking precision should be adjusted to compute budget.
- Additional atomic metrics (e.g., layer count, synflow-based saliency) could be integrated into the DAS framework, though new combination weights would need to be calibrated.
- The method’s interpretability derives from its explicit decoupling: DAS exposes the contributions of separability and activation count, informing both proxy and architecture design (Liu et al., 2022).
In summary, the activation-aware score function, and specifically the distinguishing activation score (DAS), provides a robust, interpretable, and empirically validated proxy for neural architecture evaluation in NAS. Its formulation as a composite of input separability (via ReLU activation diversity) and activation capacity offers natural guidance for further research on zero-cost proxies and efficient NAS pipelines.