TL;DR
This paper introduces CARL, a novel method for learning architecture representations that predict the performance of neural architectures in Neural Architecture Search (NAS). By employing causal inference principles, CARL disentangles "critical" (causal) architectural features from "redundant" (non-causal) ones, leading to more generalizable and interpretable performance predictions, especially when training data is scarce.
What Problem Does This Paper Address?
Neural Architecture Search (NAS) automates the design of high-performing neural networks, but evaluating each candidate architecture is computationally expensive. Performance predictors aim to speed this up by learning to estimate an architecture's performance from a small set of already evaluated architectures. However, these predictors often learn spurious correlations between non-critical architectural features and performance, especially when faced with a distribution shift between limited training data and diverse unseen test architectures. This leads to poor generalization and unreliable predictions. The paper addresses this by proposing a causality-guided approach to ensure predictors focus on truly causal features.
Methods
The core of CARL lies in its causality-guided approach to architecture representation learning.
- Causal Analysis: The authors frame the problem using a Structural Causal Model (SCM), identifying "critical features" (C) that directly influence performance (Y) and "redundant features" (R) that can create spurious correlations via a "backdoor path" (X → R → Y).
- Representation Disentanglement: An encoder (specifically a Graph Convolutional Network - GCN) first transforms the architecture into a latent representation. A "substructure extractor" then disentangles this representation into separate critical (Zc) and redundant (ZR) components. This is achieved by learning importance scores for nodes and edges, effectively creating causal and redundant masks.
- Causal Intervention: To break the spurious correlations, CARL generates "interventional samples." This involves pairing critical representations (Zc) with randomly sampled redundant representations (ZR) from different architectures. This intervention aims to make the predicted performance invariant to changes in redundant features.
- Loss Functions: CARL uses a combination of loss functions:
- A hinge ranking loss (Lc) to optimize the learning of critical features, ensuring correct relative ranking of architectures.
- A mean squared error loss (LR) to encourage the predictor to output uniform predictions for redundant features, effectively disregarding them.
- An additional loss (L1) on the interventional samples to enforce consistency between critical features and performance.
Datasets
The paper evaluates CARL on several standard NAS benchmarks:
- NAS-Bench-101: A widely used benchmark for cell-based search spaces.
- NAS-Bench-201: Another cell-based search space benchmark.
- TransNAS-Bench-101: Includes micro and macro search spaces for image classification.
- NAS-Bench-NLP: A benchmark for Natural Language Processing tasks.
- DARTS: A popular differentiable architecture search benchmark.
Key Insights and Ideas
- Causality is Key for Generalization: The paper strongly argues that understanding and leveraging causal relationships, rather than just correlations, is crucial for building robust performance predictors, especially in the face of data scarcity and distribution shifts.
- Redundant Features are "Shortcuts": The research highlights how predictors can exploit non-causal features as easy shortcuts to achieve good performance on training data, but this severely hinders their ability to generalize to unseen architectures.
- Disentanglement and Intervention Work Together: The combination of separating critical and redundant features (disentanglement) and then actively manipulating the redundant ones (intervention) is shown to be more effective than either technique alone.
- Interpretability Through Causal Features: By focusing on critical features, CARL not only improves prediction accuracy but also offers insights into why certain architectural components lead to better performance, making the predictor more interpretable.
Key Results
CARL demonstrates state-of-the-art performance across various NAS search spaces:
- Ranking Accuracy: CARL achieves superior Kendall's Tau (Ktau) scores on NAS-Bench-101 and NAS-Bench-201, often outperforming other methods with significantly less training data. For example, on NAS-Bench-101, it achieves higher Ktau with 0.02% training data than methods using 0.04%.
- Predictor-Based NAS: In NAS experiments, CARL consistently discovers architectures with high test accuracy. On DARTS CIFAR-10, it achieves 97.67% accuracy, outperforming previous state-of-the-art methods with a lower search cost.
- Efficiency: CARL shows improved search efficiency, requiring fewer queried architectures compared to conventional NAS methods.
- Generalization: The method performs well across diverse tasks and search spaces, including image classification and NLP, indicating strong generalization capabilities.
Limitations and Future Work
- Hyperparameter Sensitivity: The paper notes that the hyperparameters controlling disentanglement and intervention intensity (λ1 and λ2) are crucial. If set too small, they fail to suppress redundant features; if set too large, they might miss critical features.
- Future Directions: The authors suggest exploring more advanced causal intervention approaches to further enhance CARL's capabilities. They also implicitly point to the ongoing challenge of effectively disentangling complex architectural features in real-world scenarios.
Summary updated