TL;DR
TNASP introduces a Transformer-based predictor for Neural Architecture Search (NAS) that masters graph topology using Laplacian positional encodings. By pairing this with a novel "self-evolution" framework—which treats historical evaluation scores as optimization constraints—the authors achieved state-of-the-art accuracy on major NAS benchmarks and secured 2nd place in the CVPR 2021 NAS Competition.
What Problem Does This Paper Address?
Neural Architecture Search (NAS) is the "holy grail" of automated machine learning, but it is notoriously expensive, often requiring thousands of GPU hours to find a single high-performing model. To solve this, researchers use performance predictors: small "surrogate" models trained to guess an architecture's accuracy without actually training it.
However, existing predictors face two major hurdles:
- Spatial Blindness: Most predictors (like GCNs or LSTMs) struggle to represent the complex "spatial topology" (how nodes and edges connect) of a neural network graph.
- Wasted Experience: During a search, we generate a lot of "temporal information"—historical evaluations and feedback. Most methods ignore this history, treating each training iteration as a fresh start rather than learning from past mistakes.
Methods
The authors propose a two-pronged solution: TNASP (the model) and a Self-evolution Framework (the training strategy).
1. TNASP (The Predictor)
Instead of relying on standard Graph Convolutional Networks (GCNs), the authors utilize a Transformer encoder. To make the Transformer "graph-aware," they introduce a Laplacian matrix-based positional encoding.
- The Math: They calculate the Laplacian matrix ($L = D - A$, where $D$ is the degree matrix and $A$ is the adjacency matrix).
- The Benefit: Unlike a simple adjacency list, the Laplacian matrix captures both the connectivity and the "centrality" of each node, giving the Transformer a much clearer "map" of the architecture.
2. Self-evolution (SE) Framework
This is a model-agnostic training loop designed to squeeze every bit of utility out of historical data.
- The Mechanism: It treats previous evaluation scores (like those received from a competition leaderboard or a validation set) as hard constraints.
- Optimization: They reformulate the training as a minimax optimization problem using Lagrangian Multipliers. Essentially, the model is forced to update its parameters so that its new predictions align more closely with the historical ground truths it previously missed.
Datasets
The researchers validated their approach on the industry-standard NAS benchmarks:
- NAS-Bench-101: A massive dataset of 423,624 architectures.
- NAS-Bench-201: A smaller, controlled search space of 15,625 architectures.
- DARTS Search Space: Evaluated on CIFAR-10 and ImageNet to test real-world transferability.
Key Insights and Ideas
- Laplacian > Adjacency: The paper demonstrates that standard adjacency matrices are insufficient for Transformers to understand graph hierarchy. The Laplacian encoding acts as a "coordinate system" for the graph, significantly boosting the predictor's ability to generalize to unseen architectures.
- Feedback as a Regularizer: The "Self-evolution" idea turns the search process into a conversation. By treating historical feedback as a constraint rather than just a data point, the model avoids overfitting on small "proxy" datasets and generalizes better to the full search space.
- Efficiency in Few-Shot Scenarios: TNASP shines when training data is scarce. Even with only 0.02% of the available data, it significantly outperformed established methods like NAO and Neural Predictor.
Key Results
- Benchmark Dominance: On NAS-Bench-101, TNASP achieved a Kendall’s Tau of 0.820 (a measure of ranking correlation), outperforming competitors like ReNAS (0.816) and NAO (0.775).
- Top-Tier Performance: In the CVPR 2021 NAS Competition (Track 2), this method helped the team rank 2nd overall among all participants.
- Superior Architectures: When applied to the DARTS search space on CIFAR-10, the predictor found a model with 97.48% accuracy, surpassing the original DARTS (97.24%) and CTNAS (97.41%) while maintaining a low search cost (0.3 GPU days).
Limitations and Future Work
While highly effective, the authors acknowledge a few areas for improvement:
- Metric Complexity: The current self-evolution framework relies on Mean Squared Error (MSE). The authors haven't yet explored how to incorporate more complex, non-differentiable metrics as constraints.
- Constraint Selection: The paper notes that choosing the most "reasonable and effective" constraints is vital for stability, suggesting that future work could automate the selection of which historical data points are most valuable for the evolution process.
Summary updated