[Paper Review] Analyzing and Mitigating Interference in Neural Architecture Search
This paper proposes MAGIC, a method to reduce interference in weight-sharing neural architecture search (NAS) by minimizing topological changes between consecutive child model samples (MAGIC-T) and aligning inputs/outputs of shared operators (MAGIC-A). The approach improves rank correlation between predicted and actual accuracy, leading to a BERT architecture that outperforms RoBERTa by 1.1 and 0.6 points on GLUE dev and test sets, and surpasses ELECTRA by 1.6 and 1.1 points.
Weight sharing is a popular approach to reduce the cost of neural architecture search (NAS) by reusing the weights of shared operators from previously trained child models. However, the rank correlation between the estimated accuracy and ground truth accuracy of those child models is low due to the interference among different child models caused by weight sharing. In this paper, we investigate the interference issue by sampling different child models and calculating the gradient similarity of shared operators, and observe: 1) the interference on a shared operator between two child models is positively correlated with the number of different operators; 2) the interference is smaller when the inputs and outputs of the shared operator are more similar. Inspired by these two observations, we propose two approaches to mitigate the interference: 1) MAGIC-T: rather than randomly sampling child models for optimization, we propose a gradual modification scheme by modifying one operator between adjacent optimization steps to minimize the interference on the shared operators; 2) MAGIC-A: forcing the inputs and outputs of the operator across all child models to be similar to reduce the interference. Experiments on a BERT search space verify that mitigating interference via each of our proposed methods improves the rank correlation of super-pet and combining both methods can achieve better results. Our discovered architecture outperforms RoBERTa$_{ m base}$ by 1.1 and 0.6 points and ELECTRA$_{ m base}$ by 1.6 and 1.1 points on the dev and test set of GLUE benchmark. Extensive results on the BERT compression, reading comprehension and ImageNet task demonstrate the effectiveness and generality of our proposed methods.
Motivation & Objective
- To investigate the root causes of interference in weight-sharing NAS, where shared operators receive conflicting gradient updates from different child models.
- To quantify how architectural differences and input/output variations affect interference on shared operators.
- To propose a method that reduces interference by controlling the topological changes between consecutive child model samples.
- To design a mechanism that aligns inputs and outputs of shared operators across child models to reduce gradient conflict.
- To validate the effectiveness of the proposed methods on BERT pre-training, model compression, and ImageNet classification tasks.
Proposed method
- MAGIC-T gradually modifies one operator at a time between adjacent training steps to minimize topological changes and reduce interference on shared weights.
- MAGIC-A selects a high-performing model as an anchor and aligns the inputs and outputs of shared operators across all child models to the anchor’s activations.
- The method uses gradient similarity analysis to quantify interference, showing it increases with the number of differing operators between child models.
- The approach leverages the observation that interference is reduced when shared operators have similar input and output distributions across child models.
- The two methods can be combined as MAGIC-AT to further reduce interference and improve search performance.
- Experiments use a hybrid super-net with multi-head attention, feed-forward networks, and convolutions for BERT and MobileNet-V2 search spaces.
Experimental results
Research questions
- RQ1What factors contribute to interference in weight-sharing NAS, particularly in complex search spaces with diverse operator types?
- RQ2How does the number of differing operators between consecutive child models affect interference on shared weights?
- RQ3To what extent does input/output similarity of shared operators across child models influence interference?
- RQ4Can gradual architectural changes between sampling steps reduce interference and improve accuracy ranking in NAS?
- RQ5Can aligning inputs and outputs of shared operators via an anchor model reduce interference and enhance search performance?
Key findings
- MAGIC-T and MAGIC-A individually improve the rank correlation between predicted and actual accuracy in the super-net, with both methods combined yielding the best results.
- The proposed method discovers a BERT architecture that achieves 1.1 and 0.6 higher points than RoBERTa on the GLUE dev and test sets, respectively.
- The discovered model also outperforms ELECTRA by 1.6 and 1.1 points on the same benchmarks, despite using fewer parameters.
- On SQuAD v1.1 and v2.0 reading comprehension tasks, the model achieves 0.6 and 0.7 higher EM scores and 1.7 and 2.2 higher F1 scores than RoBERTa.
- On ImageNet, MAGIC-AT achieves a 23.2% top-1 error rate under a 600M FLOPS constraint, outperforming prior NAS methods like ProxylessNAS and PC-NAS.
- In BERT model compression, the method discovers an architecture that surpasses previous approaches without additional distillation techniques, demonstrating strong generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.