Λ -DARTS: M ITIGATING P ERFORMANCE C OLLAPSE BY H ARMONIZING O PERATION S ELECTION AMONG C ELLS
Anonymous authors
Paper under double-blind review
A BSTRACT
Differentiable neural architecture search (DARTS) is a popular method for neural architecture search (NAS), which performs cell-search and utilizes continuous relaxation to improve the search efficiency via gradient-based optimization.
The main shortcoming of DARTS is performance collapse, where the discovered architecture suffers from a pattern of declining quality during search.
Performance collapse has become an important topic of research, with many methods trying to solve the issue through either regularization or fundamental changes to DARTS.
However, the weight-sharing framework used for cell-search in DARTS and the convergence of architecture parameters has not been analyzed yet.
In this paper, we provide a thorough and novel theoretical and empirical analysis on DARTS and its point of convergence.
We show that DARTS suffers from a specific structural flaw due to its weight-sharing framework that limits the convergence of DARTS to saturation points of the softmax function.
This point of convergence gives an unfair advantage to layers closer to the output in choosing the optimal architecture, causing performance collapse.
We then propose two new regularization terms that aim to prevent performance collapse by harmonizing operation selection via aligning gradients of layers.
Experimental results on six different search spaces and three different datasets show that our method ( Λ -DARTS) does indeed prevent performance collapse, providing justification for our theoretical analysis and the proposed remedy.
I NTRODUCTION
With the growth of the popularity of deep learning models, neural architecture design has become one of the most important challenges of machine learning.
Neural architecture search (NAS), a now prominent branch of AutoML, aims to perform neural architecture design in an automatic way (Elsken et al., 2019;
Ren et al., 2021).
Initially, the problem of NAS was addressed through reinforcement learning or evolutionary algorithms by the seminal works of (Zoph & Le, 2017; Baker et al., 2017; Stanley & Miikkulainen, 2002;
Real et al., 2017).
But despite the recent advancements in efficiency (Baker et al., 2018; Liu et al., 2018; Cai et al., 2018), these methods remain impractical and not widely accessible.
One-shot methods aim to address this impracticality by performing the architecture search in a one-shot and end-to-end manner (Liu et al., 2019;
Guo et al., 2020; Pham et al., 2018; Brock et al., 2018; Bender et al., 2018).
Another technique for increasing the efficiency of search is cell-search (Zoph et al., 2018), which performs NAS for a set of cells stacked on top of each other according to a pre-defined macro-architecture.
Differentiable neural architecture search (DARTS)
(Liu et al., 2019) is a one-shot method that performs cell-search using gradient descent and continuous relaxation.
It performs the cell-search using a weight-sharing framework.
As a result of these innovations, DARTS is one of the most efficient methods of architecture search (Elsken et al., 2019).
One of the most severe issues of DARTS is the performance collapse problem (Zela et al., 2020), which states that the quality of the architecture selected by DARTS gradually degenerates into an architecture solely consisting of skip-connections.
This issue is usually attributed to gradient vanishing (Zhou et al., 2020) or large Hessians of the loss function (Zela et al., 2020), and mostly addressed by heavily modifying
DARTS
(Chu et al., 2021;
Wang et al., 2021; Gu et al., 2021; Ye et al., 2022).
In this paper, we argue that these theories fail to grasp the main reason behind the performance collapse: the conditions imposed on the convergence of DARTS by the weight-sharing framework.
Specifically, we first define a measure to show the correlation between the gradient of each layer corresponding to the architecture parameters - dubbed layer alignment ( Λ ).
Then, following a careful analysis of the convergence conditions of DARTS and the effects of weight-sharing, we find that:
[Figure]
DARTS
Due to the value of Λ , DARTS can only achieve convergence by reaching the saturation point of the softmax function, where the normalized architecture parameters become almost one-hot vectors.
This convergence point does not depend directly on the loss function, giving an unfair advantage to the layers that do not suffer from gradient vanishing.
Low value for Λ means that the optimal architecture corresponding to each layer varies wildly, with layers that are closer to the output - and therefore not suffering from gradient vanishingmainly preferring non-parametric operations.
The aforementioned issues are direct contributors to the performance collapse problem.
Furthermore, increasing the depth of the search model or the number of iterations used for the search increases the severity of performance collapse.
In Figure-1, we can see an illustration of DARTS and the concept of layer alignment (which we will define in section-3.2), and observe a clear correlation between the layer alignment and the performance of the discovered architecture on the NAS-Bench-201 search space (Dong & Yang, 2020).
In this paper, we will use a combination of analytical and empirical evidence to support the claim that this relationship is in fact a causal relationship, resulting from the weight-sharing framework used in DARTS.
Following these conclusions, we introduce a regularization term that aims to alleviate the problem of performance collapse by increasing the layer alignment.
Then, through a comprehensive empirical examination, we show that our method - dubbed Λ -DARTS - significantly improves the performance of DARTS on various search spaces and datasets without any modification to the algorithm of DARTS or the structure of the cells.
Specifically, our method achieves an average accuracy of 96 .
57% and 83 .
85% on the CIFARand CIFAR-100 datasets on the DARTS search space, improving upon the current state-of-the-art by 0 .
06% and 0 .
39% , respectively.
To the best of our knowledge, our work is the first to investigate DARTS from the point-of-view of its wight-sharing framework and convergence conditions .
R ELATED W ORK
DARTS (Liu et al., 2019) proposed a continuous and differentiable search space through weighting a fixed set of operations to make NAS more scalable.
It trains a super-graph with gradient descent and chooses the sub-graph consisted of weightiest operation edges.
Its simplicity made it very popular and many variations emerged to address its theoretical and empirical setbacks:
Overlooked effects of design decisions in DARTS.
(Wang et al., 2021) and (Gu et al., 2021) claim that
DARTS chooses the final architecture with regard to operation weights, whereas these magnitudes do not necessarily correlate with the performance.
(Wang et al., 2021) tries to measure operation impact directly and DOTS (Gu et al., 2021) tries to decouple topology from operation during search.
IDARTS (Xue et al., 2021) posits that the innate relationship between the architecture’s parameters is ignored by the gradient descent method used in DARTS and formulates their optimization as a bi-linear problem.
Generalization ability.
The differentiable NAS methods are often executed on a smaller dataset of a certain task to reduce the required computational resources.
AdaptNAS (Li et al., 2020), MixSearch (Liu et al., 2021), P-DARTS
(Chen et al., 2021b), and DrNAS (Chen et al., 2021a) show that the discovered architecture does not always perform as well as on the proxy task on another more challenging dataset.
They solve this issue by providing the network with domain information, making the search network progressively deeper, and reformulating the search algorithm.
Performance collapse.
Zela et al.
Chu et al.
(2021) point out the performance collapse problem of
DARTS.
They show that DARTS consistently discovers networks with mainly skip-connection operations, which causes severe performance declination.
Zela et al.
(2020) monitors the eigenvalues of the Hessian of the architecture parameters and performs early stopping.
Based on their work, SmoothDARTS (Chen & Hsieh, 2020) performs Hessian regularization to smooth the architecture Hessian.
PC-DARTS
(Xu et al., 2020) reduces the number of output channels of each operation, for the sake of lower memory consumption and a larger batch size during search.
iDARTS (Zhang et al., 2021) focuses on improving the optimization of the architecture parameters by estimating the descent direction more accurately.
DARTS-
(Chu et al., 2021) argues that skip-connection operations have a potentially sharp loss curvature that leads to their advantage during search, and tries to solve it by adding auxiliary skip-connections to cell structure.
β -DARTS
(Ye et al., 2022) replaces the ℓ 2 -regularization on the architecture parameters with a new regularization term to alleviate the unfair advantage of skip-connections.
In this paper, we provide a novel analysis of DARTS from the point-of-view of its convergence, diagnosing an overlooked issue of its weight-sharing system that sends convergence down an irrelevant path and may be the root cause of performance collapse.
We propose a solution for the matter without modifying the core formulation of DARTS.
A N A NALYSIS ON THE C ONVERGENCE OF DARTS
We start with an analysis of the weight-sharing framework used for cell-search in DARTS, and the required conditions for its convergence.
We then empirically investigate whether DARTS can satisfy any of these conditions, and show that it is only capable of reaching convergence under one of them.
Finally, using these observations, we will show that this type of convergence causes performance collapse, providing a motivation for Λ -DARTS.
For the uninitiated reader, we provide a brief explanation of DARTS and the weight-sharing framework used by it for cell-search in Appendix-A.1.
3. T HE CONVERGENCE OF DARTS
Assuming the primary loss function L ( .,. ) to be differentiable, we can write the necessary and sufficient condition for optimality of the architecture parameters, ( α ) as (Boyd & Vandenberghe, 2014):
[Equation]
where ω represents the parameters corresponding to the operations, and L val ( .,. )
is the loss function calculated over the validation set.
Let p = σ ( α ) be the softmax normalized architecture parameters, where σ ( . ) corresponds to the softmax function.
Then we can re-write (1) as:
[Equation]
where J σ ( α ) =
diag ( σ ( α )) − σ ( α ) σ ( α ) T corresponds to the Jacobian of the softmax function on all edges, and diag ( . ) being the diagonal matrix.
Note that given the weight-sharing framework, we can write ∇ p L ( ω,α ∗ ) =
∂ L ∂p ( ω,α ∗ ) as the sum of gradients received by each layer:
[Equation]
Now note that J σ ( . ) is a block-diagonal matrix, with each block corresponding to one of the edges in the architecture.
Therefore, J σ ( . ) is a positive semi-definite matrix with its null-space containing vectors of the following form:
[Equation]
4) where the vector v consists of concatenated vectors v i ∈ R | E | of the form v Ti ∈{ c i · [1 1 ... 1] T | c i ∈ R } (Gao & Pavel, 2017).
Considering the diverse set of operations used in DARTS, it is not an unfair assumption that ∇ p L ( ω,α ) won’t be in the form presented in (4).
In fact, we have seen empirical evidence to support this claim, which will be discussed in Section-3.2.
So assuming that ∇ p L ( ω,α ) does not belong to the null space of J σ ( α ) , satisfying (1) can only be achieved in two ways:
∇ p L ( ω,α ∗ ) approaching 0 .
The Jacobian J σ ( α ∗ ) approaching 0 .
3. T HE LAYER ALIGNMENT ISSUE
Assuming that ∀ ℓ : ∇ ℓ p L ( ω,α ∗ ) ̸ = 0 , a necessary condition for ∇ p L ( ω,α ∗ ) to be able to approach zero is that for each ℓ we have ∃ ℓ ′ ̸ = ℓ : ∇
[Equation]
p L ( ω,α ∗ ) ̸⊥∇
ℓ ′ p L ( ω,α ∗ ) .
Because otherwise, we can write ∇ p L ( ω,α ∗ )
[Equation]
,α
[Equation]
∥∇
[Equation]
L
[Equation] [Equation]
∥
[Equation]
̸ = 0 .
Empirically, we noticed that this is not the case in
DARTS.
More specifically, we define the function Λ - which we dub layer alignment - as:
[Equation]
We noticed that regardless of the search space, the layer alignment is always near zero, i.e. the layer gradients are almost orthogonal.
In Figure 1, we can see the value of Λ( .,. )
on the NAS-Bench-201 search space (Dong & Yang, 2020) for both DARTS and Λ -DARTS.
As a result of this orthogonality, we expect that under the aforementioned assumptions DARTS is incapable of reaching convergence the first way, since it is likely incapable of satisfying the necessary condition for it.
So we will propose a lower-bound on the value ∥∇ α L ( ω,α ) ∥ 22 , which formalizes our claim:
Proposition 1 Let ∇ α L ( ω,α ) be orthogonal to the null space of J σ ( α ) , and assuming we have L layers of cells in our search network, we have ∀ ℓ ̸ = ℓ ′ ∇ ℓ p L ( ω,α ) ⊥∇ ℓ ′ p L ( ω,α ) .
Let λ i ( α ) > 0 be the set of eigenvalues corresponding to J σ ( α ) .
Then the square norm of the gradient ∇ α L ( ω,α ) can be bounded by:
[Equation]
We provide a proof for this proposition in Appendix-A.9.
This proposition shows that for any value of min ℓ ∥∇ ℓ p L ( ω,α ) ∥ 22 , we have a large enough value for L that prevents the right-hand-side of (6) to become too small.
As a result, for a deep enough search network, the only way for α to reach convergence is through reaching the softmax saturation point, wherein we have near zero eigenvectors corresponding to
J σ ( α ) , and the normalized architecture parameters become close to one-hot vectors.
This phenomenon has been observed in the literature (Bi et al., 2019; Dong & Yang, 2020), where DARTS usually converges to a softmax saturation point with all of the edges selecting the skip-connection or none operations, depending on the search space.
In Figure-8, we can see this effect, where the absolute changes in the softmax normalized architecture weights of DARTS during search is rapidly growing, compared to Λ -DARTS which reaches a plateau during search.
Note that converging to a softmax saturation point is not an inherently bad outcome, because it corresponds to near zero optimality gap when using continuous relaxation (Boyd & Vandenberghe, 2014).
But as we will see, this characteristic gives an advantage to layers closer to the output in selecting the optimal architecture, contributing to performance collapse (Zela et al., 2020).
3. T HE PERFORMANCE COLLAPSE
Another issue caused by low layer alignment is that the optimal architectures corresponding to each layer are going to be vastly different.
In Figure 2 we can see the exponential average of the sum of the gradients for convolution and skip-connection operations in the first 5 layers (furthest from the output of the network) and the last 5 layers (closest to the output of the network) averaged over all edges in a search cell on the NAS-Bench-201 search space (Dong & Yang, 2020).
As evident, the optimal cell corresponding to the shallower layers (closer to the input) mostly contains convolution operations, while the optimal cell corresponding to the deeper layers (closer to the output) mostly contains skip-connection operations.
We attribute this observation to skip-connections having a proclivity towards allowing the gradients to flow further into the network, while convolutions provide more complex features for upper layers.
Furthermore, due to gradient vanishing, the gradients corresponding to the skip-connection operations on average have larger magnitudes, with the magnitude of the layer gradients gradually becoming smaller the deeper we go.
As a result, ∇ α L ( ω,α ) will have much smaller negative values corresponding to the skip-connection operations.
[Figure]
a 95% confidence interval.
The search is performed on
CIFAR-10.
Using these observations, we can clearly bridge the analytical gap between the performance collapse problem and the layer alignment.
Due to the weight-sharing structure, the value of the function Λ( ω,α ) is close to zero.
As a result, DARTS can only achieve convergence in the softmax saturation points.
Furthermore, given the low layer alignment, the optimal architecture from the perspective of the layers are going to be extremely varied, with deeper layers having a strong inclination towards skip-connections.
This gives skip-connections a clear advantage due to the larger magnitude of their gradients.
So as the search progresses, the architecture parameters corresponding to the skip-connection operations become larger than the convolution operations, eventually resulting in a saturation point that overwhelmingly selects skip-connection operations (Bi et al., 2019; Chu et al., 2021).
As the depth of the search network increases, vanishing gradient becomes more severe, further exacerbating the issue (He et al., 2016).
This is evident when comparing the results of DARTS on its original search space and the NAS-Bench-201 search space, which utilizes deeper search networks (Dong & Yang, 2020).
Similarly, increasing the number of iterations used for the search results in further exacerbation of the performance collapse problem (Bi et al., 2019), which can be attributed to the severity of vanishing gradient increasing as the loss function approaches its optimal point (He et al., 2016).
These observations motivate us to alleviate both of these issues caused by low layer alignment through increasing the value of Λ( ω,α ) .
In Appendix-A.3 we provide a thorough analysis that connects our method to some of the prior works.
T HE P ROPOSED M ETHOD TO M ITIGATE P ERFORMANCE C OLLAPSE
In the previous segment, we saw that the main contributor to the performance collapse problem is low layer alignment (i.e. Λ( ω,α )
≈ 0 ).
Now we will introduce two regularization terms based on this value to solve performance collapse.
Furthermore, we will introduce a method to estimate the gradient corresponding to the regularization terms that grow linearly with the size of the network.
4. T HE REGULARIZATION TERM
For the sake of simplicity, let’s assume we aim to search for a single cell.
To increase the value of Λ( ω,α ) , we can directly use the function itself, since it is a differentiable function.
So we define our main regularization term as the function Λ( ω,α ) , which we aim to maximize.
In our preliminary experiments, we noticed that in case the dimension of α is large, Λ( ω,α ) only concentrates on the operations with relatively larger gradients.
This means that while the angle between the gradients of the layers is reduced, only the gradient of a small portion of the operations will have the same sign, resulting in lower performance.
So given ℓ g = ∇ ℓ p L ( ω,α ) and ℓ ′ g = ∇ ℓ ′ p L ( ω,α ) , we will also introduce another regularization term that aims to increase the correlation between the signs of the gradients of each layer:
[Equation]
where | .
| corresponds to the element-wise absolute value function.
Note that while the optimal point of Λ( ω,α ) corresponds to ∇ ℓ p L ( ω,α )
=
c ∇ ℓ ′ p L ( ω,α ) , where c is a constant, the optimal point of Λ ± ( ω,α ) corresponds to sign( ∇ ℓ p L ( ω,α ))
=sign( ∇ ℓ ′ p L ( ω,α )) , where sign( . ) is the element-wise signum function.
Given one of the regularization terms above, the bi-level optimization problem of Λ -DARTS will become:
[Equation]
Similar to most variants of DARTS, we use a linear scheduling for λ (Zela et al., 2020; Chen & Hsieh, 2020): i.e. λ t =
λ × tT , where t is the number of current epoch and T is the total number of epochs used for search.
4. E STIMATING THE GRADIENTS OF THE REGULARIZATION TERMS
Assuming the gradients corresponding to the operations are non-zero, both Λ( ω,α ) and Λ ± ( ω,α ) are differentiable.
So their gradient with respect to ω can be written as:
[Equation]
where we have:
[Equation]
with I corresponding to the identity matrix.
Note that calculating ∇ ω Λ( ω,α ) will be of O ( L ·
| ω |·| α | ) due to the existence of second derivative matrices for each layer.
So a direct calculation of (9) is out of the question.
But similar to (Liu et al., 2019), we can use finite difference approximation to estimate ∇ ω Λ( ω,α ) .
Let L ( ω, P ) be the loss function as a function of ω and P ∈ R L ×| α | , where:
[Equation]
corresponds to the softmax normalized architecture weights used for each layer in the search network.
Furthermore, let ∆ ∈ R L ×| α | be:
[Equation]
Then we can write:
[Equation]
where we set ϵ = ϵ 0 ∥ ∆ ∥ F .
The cost of using this approximation technique is two extra forward-backward pass, which is of O ( | ω | + | α | )
=
O ( | ω | ) .
So we have eliminated the L ·| α | factor from the complexity of Λ -DARTS, which significantly reduces the computational complexity, while completely eliminating the memory overhead.
In Appendix-A.7 we provide the cost of our method in terms of GPU days along with another approximation technique which can reduce the overhead of Λ -DARTS significantly.
[Table]
E XPERIMENTAL R ESULTS AND D ISCUSSIONS
In this section, we will show the effectiveness of Λ -DARTS by performing experiments on the NAS-Bench201 (Dong & Yang, 2020) and
DARTS (Liu et al., 2019) search spaces.
We will then demonstrate the robustness of Λ -DARTS by performing more experiments on the reduced DARTS search spaces proposed by (Zela et al., 2020) on different datasets.
Finally, by performing an ablation study, we will analyze the effects of the hyper-parameters of Λ -DARTS over the performance of DARTS.
For all experiments, we report the mean and the standard deviation of Λ -DARTS for 4 independent searches with different random seeds, as well as the result of the best performing architecture, except for the experiments on the reduced DARTS search spaces, wherein only the best performance is reported.
In all experiments, unless explicitly mentioned otherwise, the search is performed on CIFAR-10.
For details of the experiment settings, we direct the reader to Appendix-A.8.
5. NAS-B ENCH -201 SEARCH SPACE
In order to demonstrate the effectiveness of Λ -DARTS in a reproducible setting, we used the NASBench-201 search space for our first set of experiments.
In Table-1 we can see the results of Λ -DARTS compared to other DARTS-based methods.
We omit from reporting the results of Λ ± ( ω,α ) here, since it performed similar to Λ( ω,α ) .
As evident, Λ -DARTS performs exceptionally well compared to the baselines, surpassing all but one of them in terms of the mean and standard deviation of the performance.
Compared to the current state-of-the-art (Ye et al., 2022), Λ -DARTS discovers the same architecture in all 4 experiments.
Considering how close to the optimal the performance of Λ -DARTS is, we attribute the slightly less than optimal performance to the high variance of the CIFAR-10 dataset.
Furthermore, we note that the method proposed in (Ye et al., 2022) converges to its optimal architecture very early in the search process (the first 10 epochs), which may indicate a premature convergence to a sub-optimal architecture.
In comparison, Λ -DARTS does not reach its optimal performance until late in the search procedure, where the performance of the search model is close to optimal and the correlation between the gradient of the layers is very high.
In fact, in the DARTS search space we will show further evidence for this claim, where Λ -DARTS is capable of surpassing the performance of (Ye et al., 2022) on the DARTS search space by a large margin on two datasets.
In Figure-1, we can see a clear correlation between the layer alignment and the accuracy of the architecture on CIFAR-10, which reaches its optimal point at around the 40 th search epoch.
Comparing the results to DARTS, we see that the performance of the discovered architecture declines consistently, eventually reaching an extremely low point.
5. DARTS SEARCH SPACE
In order to show that Λ -DARTS is effective in mitigating the performance collapse problem in a complex search space, we used the original search space of DARTS proposed in (Liu et al., 2019) for our second experiment.
In Table-2, we can see the results of Λ -DARTS compared to the baselines.
Λ -DARTS is able to achieve state-of-the-art results on the CIFAR-10 and CIFAR-100 datasets, surpassing the baseline models by a large margin on the more complex dataset of CIFAR-100.
Furthermore, Λ -DARTS achieves comparable results on ImageNet, with about 0 .
1% difference in accuracy compared to the state-of-the-art results on the same macro-architecture.
Furthermore, compared to (Ye et al., 2022), we see that Λ -DARTS achieves better performance on two of the three datasets, supporting our claim that β -DARTS may be
[Table] [Table]
converging to sub-optimal architectures due to pre-mature convergence.
Interestingly, compared to most baselines, Λ -DARTS does not select unnecessarily complex architectures, with the number of parameters averaging around 3 . 5 on Λ( ω,α ) and 3 . 6 on Λ ± ( ω,α ) on CIFAR-10.
This means that the architectures are much more efficient in terms of performance, further proving the superiority of Λ -DARTS.
This is especially the case on the ImageNet search space, where our model is well within the boundaries of the mobile setting introduced in (Liu et al., 2019).
Comparing Λ( ω,α ) with Λ ± ( ω,α ) , we see that the second function achieves a much better performance.
Comparing the discovered cells, we noticed that Λ ± ( ω,α ) usually discovers deeper cells with more parametric operations, a quality that highly correlates with the performance of the model.
This observation can be attributed to the large dimension of α on this search space.
In Appendix-A.10 we can see the best architectures discovered by Λ -DARTS using both methods.
5. R EDUCED SEARCH SPACES
In order to show the effectiveness of Λ -DARTS in alleviating the performance collapse problem even in the most extreme circumstances, we used the reduced search spaces proposed in (Zela et al., 2020) for further experimentation.
In Table-3 we can see the results of Λ -DARTS compared to the baselines.
Out of 12 different experiments performed, Λ -DARTS performs better than the baselines in 10 of them, with its performance in the other two experiments being comparable to the baselines.
Following these observations, we can claim that our model is robustly stepping out of the performance collapse trap without any modifications to the original formulation of DARTS.
In Appendix-A.10 we can see the architectures discovered by Λ -DARTS on these search spaces and datasets.
[Figure]
Comparing the baselines, we can see that while DARTS+PT performs better on the S4 search space,
SDARTS performs mostly better on the other search spaces.
Furthermore, we see similar inconsistencies in PC-DARTS and R-DARTS, where they both perform well on S3 but usually not as well on the other search spaces.
On the other hand, Λ -DARTS consistently performs well across all search spaces and datasets, which further shows the robustness of our method.
5. A BLATION STUDY
In order to assess how the hyper-parameters affect Λ -DARTS, we conducted an ablation study on ϵ 0 and λ on the NAS-Bench-201 search space.
Furthermore, to show that Λ -DARTS has solved the performance collapse issue, we perform the search for longer epochs (starting from 50 , up to 400 epochs) following (Chu et al., 2021;
Ye et al., 2022).
In Figure 4a, we can see the effect of ϵ 0 over the performance of the discovered architecture.
We observe that smaller values of ϵ 0 correlate positively with the quality of the discovered architecture.
Considering that lower values of ϵ 0 correspond to lower approximation error in (13), this is expected behavior.
But we note that due to the problem of round-off error, we expect this trend to reverse for smaller values of ϵ
(Shen et al., 2020).
In fact, we can see that the variance of the performance is already starting to increase for the smallest value of ϵ 0 .
Figure 4b shows the effect of λ over the performance of the discovered architecture.
Clearly, the model is not very sensitive to the value of λ , with the best performing value and the worst performing value having a difference of about 2% in their mean accuracy.
Furthermore, the best performing value at λ = 0 .corresponds to an average length normalized dot-product of about 0 .
7 , while the worst performing value at λ =0 .
5 is around 0 .
So we are well within the realm of diminishing returns for larger λ s, and as a result of increased emphasis on the regularization term in the Pareto-optimal point, we observe negative effects from the main objective being sidetracked in the form of lower quality architectures.
We can see the performance of Λ -DARTS for different numbers of search epochs in Figure-4c.
Unlike other methods that try to address the issue of performance collapse for larger number of epochs (Bi et al., 2019; Chu et al., 2021), we see a negligible drop in performance (about 0 .
4% ) when comparing the best performing and the worst performing setting.
This is a clear indication that the models have achieved convergence at around 100 epochs, reaching a local-minima that corresponds to near-optimal architectures.
In fact, we can observe further proof for the convergence of Λ -DARTS in Figure-8, where clearly the absolute changes in the softmax normalized architecture weights has reached a plateau inepochs of search, resulting in a concave curvature.
C ONCLUSION
In this paper, we use a set of analytical and empirical tools to show that the main reason behind performance collapse in DARTS is the lack of correlation between the gradient of its layers, caused by the multi-layer structure and the use of weight-sharing for cell-search.
Based on the aforementioned analysis, we propose Λ -DARTS which manages to achieve better or comparable performance when compared to state-of-the-art baselines.
Here, we focused our discussion and experiments on DARTS, however the analysis and ideas are extendable to any other type of differentiable NAS model that performs cell search using weight sharing, which we plan to study in future works.
Furthermore, we point out to the cost of estimating the gradient of the regularization terms proposed here as another potential subject for further research.
A A PPENDIX A. R EVIEW ON DIFFERENTIABLE NEURAL ARCHITECTURE SEARCH (DARTS) A.1. C ONTINUOUS RELAXATION
For simplicity, let’s assume we are searching for a single cell.
Let the vector α ∈ R | E |·|O| be the set of parameters corresponding to the architecture, where E is the set of all the possible edges in the computational graph of the cell, and O is a set of pre-defined operations.
The goal is to find the optimal topology and operations in the continuous space using gradient-descent, and then transfer it from the continuous space to the discrete space using the argmax operator to get a near-optimal architecture.
Specifically, let x j be the output of the j th node in the computational graph; We can write x j as:
[Equation]
where p ( i,j ) o is the softmax normalized architecture weights: p ( i,j ) o
[Equation]
DARTS then solves the following bi-level optimization problem to find the optimal value for α :
[Equation]
[Equation]
where L train ( .,. ) and L val ( .,. ) correspond to the loss function calculated on the train and validation set, and ω is the set of parameters corresponding to the operations.
There are two methods proposed by the original paper to solve the problem above using gradient descent.
The first method - dubbed first-order - performs gradient descent on α and ω in an interleaved fashion, while the second method - dubbed second-order - considers the dependency between ω ∗ ( α ) and α when calculating the descent direction corresponding to α .
In this paper, we focus on the first-order method since it is more widely used (Elsken et al., 2019).
For further information, we direct the reader to the original paper (Liu et al., 2019).
A.1. W EIGHT - SHARING FOR CELL - SEARCH
In order to perform cell-search, DARTS utilizes a weight-sharing framework.
Specifically, in a cell-search scheme, L layers of the same cell are stacked on top of each other according to a pre-defined macro architecture.
These cells share the same α - i.e. share the same architecture parameter - but have different parameters corresponding to the operations.
So they have the same structure, but different operation weights.
As a result, we can write the gradient corresponding to the architecture parameter as the sum of the gradients received by each layer.
In order to define this weight-sharing framework concretely, let ℓ x j correspond to the output of the j th node of the architecture graph produced by the ℓ th layer.
Then we can write the gradient received by p ( i,j ) o from the ℓ th layer as:
[Equation]
In other words, the gradient received by p ( i,j ) o from the ℓ th layer corresponds to the dot product of the output of the i th node in ℓ th layer and the gradient of the j th node in ℓ th layer.
Since we have L layers in the macro-architecture, we can write the gradient corresponding to p ( i,j ) o as the sum of the gradients received by each layer:
[Equation]
Now, by writing the gradient for all edges and operations for p in vector form, we have:
[Equation]
A
T HE ROOT CAUSE OF LOW LAYER ALIGNMENT
An important matter to consider is the root cause of low layer alignment, which can help us further understand the reason behind the performance collapse, and the superior performance of Λ -DARTS.
Here, we will consider two likely candidates that may have caused this issue:
• High level of approximation in the formulation of first-order DARTS (Zhang et al., 2021).
• Learning unrolled iterative estimates in the ResNet family of networks (Greff et al., 2017).
In the following, we will further investigate these candidates and their effects over performance collapse.
A.2. H IGH LEVEL OF APPROXIMATION IN FIRST - ORDER DARTS
In (15), the optimality of ω ∗ ( α ) w.r.t.
the train loss is added to the formulation of the optimization problem of DARTS in the form of a constraint.
Using the implicit function theorem, we can write the gradient corresponding to the outer optimization problem as (Zhang et al., 2021):
[Equation]
where ω = ω ∗ ( α ) and (cid:0) ∇ 2 ω L train ( ω,α ) (cid:1) − 1 is the inverse of the Hessian w.r.t.
ω .
In second-order DARTS, the inverse Hessian is estimated using the identity matrix, while in iDARTS the inverse Hessian is estimated using Neumann series.
Note that it is entirely plausible for these approximations to be the cause of low layer alignment, and by extention, the performance collapse problem.
So it may be the case that by eliminating at least one of these approximations in DARTS, the layer alignment may get improved.
In order to investigate this claim, we apply the layer alignment function Λ( ω,α ) over the layer gradients with the approximations removed:
[Equation]
where we can equivalently see ω ∗ ( α ) as a function of ω ∗ ( p ) with the softmax function removed from the abstraction.
Since we need to calculate (20) for each layer, we estimate the inverse Hessian with the identity function similar to second-order DARTS.
Note that estimating (20) with this simplification can be performed similar to estimating the gradient corresponding Λ( ω,α ) , by using finite difference approximation and perturbing the value of p for each layer separately.
[Figure]
Comparing the average value for layer alignment for firstorder and second-order estimation, we did not notice any meaningful differences.
In both cases, the value of Λ( ω,α ) would vary between 0 .
6 to 0 .
8 on the NAS-Bench-201 search space, as can be observed in Figure-5, with the variation resembling the noise caused by mini-batching.
Considering the performance of Λ -DARTS doesn’t improve significantly until the layer alignment reaches a value larger than 0 .
2 (as observed in Figure-1), we can confidently assert that the low layer alignment is not caused by the approximation of the gradient corresponding to architecture parameters.
A.2. T HE ITERATIVE ESTIMATION THEORY
An interesting observation to note is that the value of layer alignment is much lower for parametric operations compared to non-parametric operations.
So it is completely plausible that the low layer alignment problem is somehow caused by the parametric operations (specifically, convolution operations) and their dynamic with the network in some way.
Here, we will show that at according to the iterative estimation theory in ResNets (Greff et al., 2017), this is indeed the case.
According to (16), we can write the gradient corresponding to each operation on each edge for each layer as the dot product between the gradient of the node receiving the edge in that layer and the value of the operation itself.
So we can write the correlation between the gradients of the layers ℓ and ℓ ′ for operation o on edge ( i,j ) as:
[Equation]
which implicitly assumes the two layers work on the same number of height, width, and channels.
Assuming ∂
L ∂ ℓ x j and ∂ L ∂ ℓ ′ x
j are very similar (an assumption we will confirm empirically), then their outer product is very close to a positive semi-definite matrix.
As a result, the correlation between layer gradients mainly depends on whether the value of the operations o ( ℓ x i ) and o ( ℓ ′ x i ) highly correlate or not.
Interestingly, the iterative estimation theory provides a framework for us to answer this question.
According to this theory, the layers of a ResNet model try to iteratively refine an estimate of an ideal output that will ultimately result in an accurate prediction at the classification level (Greff et al., 2017; Jastrzebski et al., 2018).
As a result, we can see the output of each ResNet block as a representation in the same vector-space, with each block trying to move this representation in a direction that better estimates the ideal representation using its corresponding convolution operations.
Note that in this case, an optimal iterative estimation would correspond to a set of orthogonal updates, since undoing the work of previous blocks in undesirable.
Furthermore, since most of the search spaces used for DARTS (and generally, NAS) are from the family of ResNets, we can apply these findings to DARTS as well.
Therefore, under the iterative estimation theory, we can claim that the reason behind low layer alignment in convolution operations is the orthogonality of their output.
This is inline with the motivation behind DARTS-PT in (Wang et al., 2021), which showed a direct connection between performance collapse and the iterative estimation theory.
In this paper, we provide further evidence for this claim, but also provide a solution to the problem that does not require significant changes to the DARTS framework.
In order to confirm our assumptions and provide empirical evidence for our analysis, here we will provide a visualization of the cosine similarity between ∂ L ∂ ℓ x j and ∂ L ∂ ℓ ′ x j , and the convolution operation outputs o ( ℓ x i ) and o ( ℓ ′ x i ) , averaged over each pair of layers on the NAS-Bench-201 search space.
Since DARTS works in three stages with respect to input scale, we will provide the aforementioned values for the three stages separately.
You can observe the results in Figure-6.
[Figure]
The first thing to note is the large correlation between node gradients, which increases in higher stages.
On the otherhand, we can see that the correlation between the output of the convolution operations is incredibly low.
This observation confirms our assumption that the main reason behind low layer alignment is low correlation between the output of the convolution operation, which can be attributed to the iterative estimation theory.
Furthermore, we can observe that in order to increase the value of layer alignment, Λ -DARTS focuses on increasing the correlation between the output of convolutions, and does not have a noticeable impact on the correlation between node gradients.
Given the analytical and empirical evidence provided here, we can confidently assert that as pointed in (Wang et al., 2021), one of the main reasons behind performance collapse is the residual connections and the ResNet-like structure of most DARTS search spaces.
But unlike (Wang et al., 2021), we attribute performance collapse to the discrepancies caused by the residual connections on the optimal architecture from the perspective of each layer, and the resulting problem in the convergence point of DARTS.
The superior performance of Λ -DARTS compared to DARTS-PT confirms the validity of this claim, and we hope these findings can provide new directions for further research.
A. R ELATIONSHIP TO PRIOR WORKS
In this section, we will provide an analysis on the relationship between our work and some of the prior works that aim to solve the performance collapse problem.
More specifically, we will show that most of the papers that reduce the severity of performance collapse to some degree can be explained through our analytical framework, suggesting that they may be alleviating the symptoms of low layer alignment indirectly.
A.3. T HE CONVERGENCE OF DARTS AND ITS RELATION TO ℓ 2 REGULARIZATION
In (Ye et al., 2022), it has been suggested that one of the possible solutions to performance collapse is ℓ 2 regularization performed on the log-sum-exp of the architecture values: L β ( α )=
log( (cid:80) i<j,o ∈O exp( α ( i,j ) o )) .
The regularization term is then added to the loss function corresponding to the outter optimization problem, changing it to: min α L ( ω ∗ ( α ) ,α )+ γ L β ( α ) , where γ is scheduled linearly, starting from 0 and increased to a very large value (usually around 25 to 100 ).
Note that in the case of ℓ 2 regularization, the optimality condition in 1 can be re-written as:
[Equation]
where we have ∇ α L β ( α )
=
σ ( α )= p .
Given that p is normalized over each edge, we have ∥ σ ( α ) ∥ 1 = | E | .
So we can given a lower-bound on the ℓ 2 norm of ∇ α L β ( α ) using the Cauchy-Schwarz inequality:
[Equation]
Since the number of edges and operations are usually comparable in most search spaces (for example, in DARTS it is equal to 14 and 7 , and in NAS-Bench-201 it is 6 and 5 , respectively), the lower-bound
[Table]
proposed above is very close to 1 .
Therefore, as γ increases to a very large value, the convergence point of β -DARTS no longer correspond to the stationary point of the primary loss function.
Moreover, in our experiments we noticed that ∥∇ α L val ( ω,α ) ∥ 2 usually has a very small value (in the order of O (10 − 1 ) ).
This means that the convergence point doesn’t happen on the saturation point of the softmax function, but instead, becomes dominated by the regularization term, which corresponds to the current value of p .
So similar to the case of DARTS, the convergence point does not directly depend on the loss function, but is directed by the current value of α which is based on previous information from the gradient of the loss, which may be inaccurate at the current point.
This analysis is supported by the experiment results provided by (Ye et al., 2022) in its Figure-4c, where at the convergence point the value of α increases monotonically and linearly, while the value of p does not change at all, and indeed does not correspond to the saturation point of softmax.
Note that a similar analysis can be done on implicit gradient and second-order methods of DARTS as well, where the convergence point no longer corresponds to a stationary point of the explicit gradient of the architecture parameters
A.
V ANISHING GRADIENT AND THE LOW LAYER ALIGNMENT ISSUE
In (Zhou et al., 2020) it has been observed that the rate of the convergence of the search model with respect to the operation parameters is directly impacted by the architecture weights corresponding to the skip-connection operations.
This observation is then used an incentive to propose auxiliary skip-connections by (Chu et al., 2021) - dubbed DARTS-, where the effect of auxiliary connections is gradually reduced by a linearly scheduling their magnitude to approach zero.
Independently, in order to reduce the memory consumption of the search model, PC-DARTS proposes performing the candidate operations on a subset of the channels of the input, thereby implicitly providing an auxiliary skip-connection on a subset of the input channels (Xu et al., 2020).
Here, we will argue that both of these methods are implicitly trying to solve a symptom of the lower layer alignment issue by up-weighting the gradients corresponding to the lower layers.
Firstly, in order to show that the increased batch size doesn’t benefit PC-DARTS greatly, we performed the search using PC-DARTS on a batch size of 64 and compared the results to performing the search with a batch size of 256 on the NAS-Bench-201 search space in Table-4.
Clearly, we can claim that the batch size is not the main contributer to the better performance of PC-DARTS, and instead, it is the partial-channeling that appears to be alleviating performance collapse.
Note that according to (16), we can write the gradient received by each architecture weight as the dot product of the gradient of the receiving node and the corresponding operation.
While gradient vanishing does not affect the operation, it does have an impact over the gradient of the loss w.r.t.
the receiving node.
We can see this effect in Figure-2, wherein the gradients corresponding to the first 5 layers generally have smaller magnitudes.
Therefore, one way of alleviating the symptoms of low layer alignment can be reducing the effects of gradient vanishing by providing stronger skip-connections.
This is effectively what is done by the auxiliary skip-connection proposed by DARTS- and the partial-channel structure of
PC-DARTS, which causes limited improvements in the performance of DARTS.
In order to make our argument stronger, we also provide the gradients corresponding to the first five layers and the last five layers similar to Figure-2 for both DARTS- and PC-DARTS, which you can see in
Figure-7.
The first thing to notice is the striking similarity between the two figures, where the gradients corresponding to layers closer to the output have been extremely down-weighted compared to the gradients corresponding to layers closer to the input.
This observation proves the validity of our claim that auxiliary skip-connection and partial-channeling significantly up-weights the gradients corresponding to the layers closer to the input.
Since these layers prefer parametric operations, we observe better performance by these models.
But note that despite the improvements, these methods are merely circumventing the problem of low layer alignment, which is the reason behind their poor performance compared to Λ -DARTS.
[Figure]
A.3. H IGH LAYER ALIGNMENT AS A PRIOR BY ELIMINATING WEIGHT - SHARING IN SAMPLE - BASED NAS
One of the popular methods of cell-based NAS is the use of sampling candidate architectures from a pre-determined distribution, wherein the sufficient statistics of the distribution are optimized according to the performance of the sampled architecture.
Among these methods, we can mention DrNAS which utilizes a Dirichlet distribution for the search (Chen et al., 2021a), and SNAS which utilizes a concrete distribution (Xie et al., 2019).
In both of these cases, the sufficient statistics are optimized according to a gradient estimation technique that approximates the gradient corresponding to the sufficient statistics based on the gradients received by the sampled operations.
We argue that the mere act of using sample-based NAS is a way to circumvent the problem of low layer alignment.
Firstly, because such a formulation of the NAS problem completely eliminates the issue of convergence at softmax saturation points, thus preventing the optimal architecture to be completely dictated by the layers closer to the input.
Secondly, because the sampled architecture in a cell-based NAS method is used on all of the cells, sampling itself comes with an implicit prior that the optimal architecture according to each layer must be the same.
Therefore, sample-based NAS can be also viewed as a way to enforce high layer alignment in an a priori fashion.
Therefore, we can see sampled-based differentiable NAS as a way of solving the problem of performance collapse.
But we should note that since in these methods only a subset of the supernet is optimized, they usually come with the caveat of low sample efficiency and longer search time (Ren et al., 2021).
A. R EGULARIZATION OF THE OUTER OBJECTIVE
An interesting point to consider is whether we can apply the regularization term of Λ -DARTS over the outer objective, which will directly optimize the architecture parameters α .
Here, we will first investigate this matter from a theoretical standpoint, and provide two points that shows the sub-optimality of such approach.
Then provide empirical results to confirm our analytical findings.
The first problem with regularizing the outer objective has to do with the fact that the gradient of p ( i,j ) o does not directly depend on p ( i,j ) o itself, but the output of the corresponding operation o ( . ) and the gradient of the receiving node x j , as observed in (16).
Therefore, increasing the layer alignment must be done by changing the composition of the operations of the layers in the higher layers to adjust ∂ L ∂ ℓ x j , while changing the composition of the operations in the lower layers to adjust o ( ℓ x i ) .
Considering the small size of α , and the weight-sharing framework, this may be an impossible task that may result in overfitting on the regularization term as well.
Another issue we need to take note of is the connection between the problem of low layer alignment and the iterative estimation theory, as noted in Appendix-A.2.
Assuming the problem of low layer alignment is caused by the orthogonality of the output of convolution operations in each layer, then resolving this problem is only possible through regularizing the convolution operations themselves.
While it may be possible to resolve the issue through adjusting the input, we note that as pointed in the previous paragraph, this adjustment may lead to overfitting due to the low complexity of the model with respect to α .
[Table] [Table]
In order to provide empirical evidence for our analysis
[Table]
we tried to perform the regularization on the outer objective.
You can see the results of 50 epochs of search in Table-
[Table]
where we compared Λ -DARTS with inner objective regularized with Λ -DARTS with outer objective regularized.
Clearly, we observe that regularizing the outer objective performs poorly compared to the case where we regularized the inner objective.
This observation further supports our analytical reasoning
[Table]
and shows that performing the regularization on ω yields more superior and robust performances compared to regularizing α .
A. C OMBINATION WITH ORTHOGONAL VARIANTS OF DARTS
In this section, we will empirically demonstrate that our method can be extended to orthogonal variants of DARTS to yield better and more robust results.
Specifically, we will discuss two popular variants of
DARTS, P-DARTS and SDARTS, and how Λ -DARTS can eliminate the need for strong prior assumptions or costly regularization in these methods.
A.5. P ROGRESSIVE -DARTS AND THE PROBLEM OF STRONG PRIOR ASSUMPTIONS
Progressive-DARTS (P-DARTS) is a low-cost variant of DARTS that is based on performing the search in a progressive manner.
P-DARTS performs the search in three stages, with each stage eliminating some of the candidate operations while also making the search model deeper and more similar to the evaluation architecture (Chen et al., 2021b).
One of the issues with PC-DARTS is its reliance on two very strong priors in the search process: 1) limiting the number of skip-connections to two, which severely reduces the size of the search space, 2) using dropout on skip-connections to limit their utility during search.
Following (Chu et al., 2021), here we will show that Λ -DARTS can eliminate the need for both of these strong priors, which further validates the effectiveness of our method.
You can see the results in Table-6.
We can see that our method successfully removes any need for strong prior assumptions or auxiliary connections in the progressive search format, achieving superior performance to both cases.
We note that these results are attained without any adjustment to the hyperparameters of Λ -DARTS, which is likely going to further benefit the results, considering that the progressive framework changes the macro-architecture and the search space significantly in each stage.
A.5. SDARTS AND THE PROBLEM OF COSTLY REGULARIZATION
SDARTS is a variant of DARTS that aims to improve generalization by regularizing the Hessian of the loss function corresponding to the architecture parameters (Chen & Hsieh, 2020).
The regularization is done through additive noise to the architecture parameters during the optimization of operation parameters ( ω ).
There are tow methods proposed by (Chen & Hsieh, 2020) based on this idea: 1) SDARTS-RS and 2)
SDARTS-ADV.
SDARTS-RS is based on random perturbations sampled from a uniform distribution, while
SDARTS-ADV utilizes the costly method of projected gradient descent to produce adversarial perturbations.
One of the issues with SDARTS-RS is that it is not as effective as the costly method of SDARTS-ADV,
[Table] [Table]
which needs more than four forward-backward propagations to estimate an effective perturbation.
Here, we will show that by combining our proposed method with SDARTS-RS, we will achieve better results than both SDARTS-RS and SDARTS-ADV, at the cost of only two forward-backward propagations.
In Table-
[Table]
you can see the performance of SDARTS with and without adversarial perturbations, and compare them to that of Λ -SDARTS-RS, which utilizes our proposed regularization term along with the random perturbation regularization of SDARTS-RS.
Clearly, our proposed regularization completely eliminates the need for costly adversarial training, reducing the cost to almost half of what SDARTSADV requires.
This observation further proves the importance of increasing the layer alignment in
DARTS, regardless of the type of DARTS variant used during search.
We note that these results are attained without any adjustment to the hyperparameters of Λ -DARTS, which is likely going to further benefit the results, considering that the Hessian regularization is likely to change the optimal ϵ 0 due to changes in the loss landscape.
A. P ERFORMANCE COLLAPSE WITH MORE EPOCHS
[Figure]
Recently, it has been shown that performance collapse happens more consistently and frequently the longer the search process is performed (Bi et al., 2019).
This observation is inline with our analysis, which shows the negative impacts of low layer alignment becomes more pronounced with longer epochs of search, which is attributed to the softmax saturation point and vanishing gradients.
In order to show that Λ -DARTS has successfully alleviated this problem even in the most complex search spaces, we performed the search on the DARTS search space for 200 epochs following (Bi et al., 2019).
You can see the results in Table-8.
Clearly, our method successfully mitigates performance collapse even in the most complex search spaces.
Among the baselines, the only method with comparable performance to Λ -DARTS is Amended-DARTS, which performs the search at 50% more search cost due to its second-order
[Table]
nature. Furthermore, comparing the number of parametric operations, we can see that our method is much better at discovering efficient architecture that are not unnecessarily over-parameterized.
On the otherhand, Amended-DARTS perform poorly despite the fact that it has two more parametric operations.
Furthermore, we can see that the only models performing better than random baseline are PC-DARTS,
Amended-DARTS, and Λ
-DARTS.
Considering the connection between Λ -DARTS and PC-DARTS, as pointed out at Appendix-A.3, this observation further proves the role of vanishing gradient and low layer alignment in performance collapse.
A. S EARCH COST
One of the important factors in NAS is the cost of performing the search on a large-scale dataset, which is usually measured in terms of GPU hours or GPU days on the DARTS search space and the CIFARdataset (Elsken et al., 2019).
Since Λ -DARTS requires two extra forward-backward passes to estimate the gradients of the regularization term, it costs twice as much as DARTS to perform the search on the same dataset.
Therefore, the cost of our method in terms of GPU days is 0 .
8 days on a GTX
Ti GPU on the DARTS search space and CIFAR-10 dataset, which is 20% less than the second-order
DARTS (at 1 .
GPU days) and about 40% less than SDARTS-ADV (at about 1 .
3 GPU days), both of which perform inferior to our model.
In order to reduce the search cost and make our method comparable to most baselines, we can perform forward or backward finite difference approximation instead of a central difference approximation (Shen et al., 2020):
[Equation]
Note that since ∇ fwdω Λ( ω,α ) and ∇ bwdω Λ( ω,α ) are biased estimations, we can use them in an interleaved fashion, where we perform forward estimation for one mini-batch, and a backward estimation in the next.
This will reduce the cost by 25% , putting our method at around 0 .
6 GPU days, which is only 50% more than the original first-order DARTS (at 0 .
4 GPU days), and comparable to DrNAS with progressive search.
You can see a thorough comparison with state-of-the-art NAS models in terms of performance on CIFAR-10 and search cost in Table-10.
In order to show the reduction in the accuracy of the estimation does not reduce the effectiveness of Λ -DARTS, we have provided the results of discovered architectures by this low-cost method compared to the central method for 50 epochs on the NAS-Bench-201 search space on CIFAR-10 in Table-9.
We can see that in all three datasets, the drop in average performance is negligible (less than 0 .
1% in CIFARand less than 0 .
5% in CIFAR-100 and ImageNet).
Therefore, it is clear that using forward/backward finite difference approximation can be a good technique to reduce the cost of searching on large datasets, which makes our method comparable to DrNAS in terms of cost for large scale applications.
A. E XPERIMENT SETTINGS A.8.
[Table]
NAS-Bench-201 provides a DARTS-like cell-search framework, where we search for a single cell containing 3 nodes and 5 operations.
The performance of the discovered architecture on CIFAR-10, CIFAR-100, and ImageNet16-120 datasets can be attained by querrying the database provided by (Dong & Yang, 2020).
We used the implementation of (Dong & Yang, 2020) for our search.
The operation parameters
[Table]
[Table] [Table]
025 , gradually reduced to 0 .
001 using cosine scheduling.
The weight decay and momentum are set to 0 . 0005 and 0 .
9 , respectively.
For architecture parameters ( α ), we use Adam with the learning rate set to 10 − 4 and the weight decay rate set to 0 .
The momentum values β
and β 2 are set to 0 .
5 and 0 . 999 , respectively.
We perform the search on CIFAR-10 for 100 epochs, and we set ϵ 0 =0 . 0001 and λ =0 .
125 for this experiment.
A.8. DARTS SEARCH SPACE
The search space of DARTS contains two types of cells: Normal and Reduction, corresponding to layers with stride of 1 and 2, respectively.
Each cell has 4 intermediate nodes and 7 operations.
Here, we only apply the regularization term to the normal cell, since the performance collapse is not usually associated with the reduction cell (Zela et al., 2020).
We used the implementation provided by (Wang et al., 2021;
Chen & Hsieh, 2020).
The operation parameters ( ω ) are optimized using stochastic gradient descent with momentum.
The learning rate is set to 0 .
025 , gradually reduced to 0 .
001 using cosine scheduling.
The weight decay and momentum are set to 0 .
0003 and 0 . 9 , respectively.
For architecture parameters ( α ), we use Adam with the learning rate set to 3 × 10 − 4 and the weight decay rate set to 0 .
The momentum values β
and β 2 are set to 0 .
5 and 0 . 999 , respectively.
We perform the search on CIFAR-10 for 50 epochs, and we set the value for λ to 0 .
25 for Λ( ω,α ) and 0 .
125 for Λ ± ( ω,α ) .
In both cases, we set the value of ϵ 0 to 0 . 0001 .
A.8. R EDUCED SEARCH SPACES
The four search spaces proposed by (Zela et al., 2020) contain some subset of the operations used in the
DARTS search space, except for the fourth search space which contains convolutions and random noise as operations.
Otherwise, the cells have the same structure as in the DARTS search space.
We perform the search and evaluation on three different datasets: CIFAR-10, CIFAR-100, and SVHN.
For CIFAR-10, the search setting is the same as in Section-5.2.
For SVHN and CIFAR-100, we increase the batch size and the value of ϵ 0 to 96 and 0 .
001 , respectively.
The evaluation setting for these datasets is the same as in (Zela et al., 2020).
For all experiments, we only report the results of Λ( ω,α ) , since both methods perform similarly.
A.8. A BLATION STUDY
For this experiment, we used the exact same setting as in Section-5.1, except for the architecture learning rate.
For the experiments on ϵ 0 and λ , the architecture learning rate is set to 3 × 10 − 4 .
For the experiments on the number of epochs, the architecture learning rate is set to 3 × 10 − 4 when performing the search for 50 epochs, and reduced to 10 − 4 when performing the search for more than 50 epochs.
For experiments corresponding to ϵ 0 , we set λ =0 .
125 , while for experiments corresponding to λ , we set ϵ 0 =0 . 0001 , and for experiments corresponding to the number of epochs, we set ϵ 0 =0 . 0001 and λ =0 .
A. P ROOF OF P ROPOSITION
Proof: Using simple linear algebra, we can re-write the squared norm of the gradient ∇ α L ( ω,α ) as:
[Equation]
Now using the assumption that ∇ p L ( ω,α ) is the sum of vectors orthogonal to the null-space of the
Jacobian matrix and the fact that J σ ( α ) T J σ ( α ) is a positive semi-definite matrix, we can give the following lower-bound for this term (Meyer, 2000):
[Equation]
Since we assume the gradient ∇ p L ( ω,α ) can be written as the sum of orthogonal layer gradients, its norm can be lower bounded by the smallest gradient (Meyer, 2000):
[Equation]
[Equation]
where 29 follows from the orthogonality.
So using (27) and (30), we can get
[Equation]
A. D ISCOVERED ARCHITECTURES
[Figure]
[Equation]
[Figure]
[Equation]
[Figure]
[Equation]
[Figure]
[Equation]
[Figure]
[Equation]
[Figure]
[Equation]
[Figure]
[Figure]
[Figure]
[Figure] [Figure] [Figure]
[Figure]
[Figure]
[Figure] [Figure]
[Figure] [Figure]
[Figure]
[Figure]