IRLAS: Inverse Reinforcement Learning for Architecture Search

12/13/2018 ∙ by Minghao Guo, et al. ∙ SenseTime Corporation The Chinese University of Hong Kong 2

In this paper, we propose an inverse reinforcement learning method for architecture search (IRLAS), which trains an agent to learn to search network structures that are topologically inspired by human-designed network. Most existing architecture search approaches totally neglect the topological characteristics of architectures, which results in complicated architecture with a high inference latency. Motivated by the fact that human-designed networks are elegant in topology with a fast inference speed, we propose a mirror stimuli function inspired by biological cognition theory to extract the abstract topological knowledge of an expert human-design network (ResNeXt). To avoid raising a too strong prior over the search space, we introduce inverse reinforcement learning to train the mirror stimuli function and exploit it as a heuristic guidance for architecture search, easily generalized to different architecture search algorithms. On CIFAR-10, the best architecture searched by our proposed IRLAS achieves 2.60 model achieves a state-of-the-art top-1 accuracy 75.28 faster than most auto-generated architectures. A fast version of this model achieves 10

READ FULL TEXT VIEW PDF
POST COMMENT

Comments

There are no comments yet.

Authors

page 8

This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

The past several years have witnessed the remarkable success of convolutional neural networks in computer vision applications. Thanks to the advances in network architectures,

e.g. ResNet [11], Inception [29] and DenseNet [15], the performances on a number of key tasks, such as image classification, object detection, and semantic segmentation, have been taken to an amazing level. However, every step along the way of network design improvement requires extensive efforts from experienced experts and takes a long period of time. This already constitutes a significant obstacle to further progress.

Naturally, automatically finding suitable network architectures for a given task becomes an alternative option and is gaining ground in recent years. Along this direction, a number of network search methods have been developed, including evolution [27, 32], surrogate model based search [19, 22], and reinforcement learning [37, 38, 35, 4]. Whereas these methods have shown promising results and found new architectures that surpass those crafted by experts, they are still subject to a serious limitation – auto-generated networks usually have a rather high inference latency, making them difficult to be deployed on practical system with limited computational capabilities. An important cause to this issue is that auto-generated structures are often excessively complicated, which, as observed in [21], tends to adversely influence the run-time efficiency. While there have been attempts [30] to incorporate latency information to guide the search, the problem has not been effectively solved – the search algorithms themselves still follow a pre-defined way for network motif construction, e.g. recursively expanding a tree structure as in NASNet [38], without enforcing any explicit guidance to the network topology.

Figure 1: Topologies of different architectures. Human-designed architectures have a more simple and elegant topology than existing auto-generated architectures. Our IRLAS aims to search topologically elegant architectures guided by human-designed networks. (a) ResNeXt [33]; (b) NASNet [38]; (c) Best performed architecture found by our IRLAS.
Figure 2: The pipeline of our IRLAS. We propose a mirror stimuli function to extract the abstract representation for topological characteristic of the expert. Topology structures of networks are converted to state feature code as the input of mirror stimuli function. During the agent’s searching process, the mirror stimuli function is utilized as a heuristic guidance to generate desirable human-designed-like networks. Inverse reinforcement learning is utilized to train the mirror stimuli function, which helps the agent to efficiently explore the large search space without being overly restricted.

In this work, we aim to explore a new approach that explicitly takes the topological structure into account. Our efforts are motivated by the observation that human-designed networks are usually topologically simple, as shown in Figure 1

, especially when compared to auto-generated ones, and often stride a better balance between accuracy and efficiency. These designs are often grounded on the rich experiences obtained through many years of joint efforts by the community, which are valuable resources and deserve to be leveraged during the searching process.

Specifically, we propose an inverse reinforcement learning method for architecture search (IRLAS). At the heart of this method is a mirror stimuli function learned by inverse reinforcement learning. This function is expected to reward those architectures that are topologically similar to the networks designed by experts. During the searching process, an agent resorts to this function to provide structural guidance, so as to generate networks with desirable architectures, similar to those crafted by experts. This method has two benefits: (1) While the search receives guidance from the mirror stimuli function, it is not restricted. The agent is allowed to explore instead of just copying the experts. (2) The mirror stimuli function is generic and is orthogonal to the design of search space and strategy. Hence, it can be readily generalized to different search settings. On both CIFAR-10 [17] and ImageNet [8], IRLAS is able to find new architectures that yield high accuracies while maintaining low inference latency.

Our contributions are summarized as follows: 1) We propose a mirror stimuli function that can provide topological guidance to architecture search, based on the knowledge learned from the expert-designed networks. This function can be easily generalized to different architecture search algorithms. 2) We introduce inverse reinforcement learning algorithm to train the mirror stimuli function, which helps the agent to efficiently explore the large search space without being overly restricted. 3) The network searched by our IRLAS is topologically similar to the given expert network and shows competitive accuracy and high inference speed, compared to both state-of-the-art human-designed and auto-searched networks. On CIFAR-10, the best architecture searched by our proposed IRLAS achieves 2.60% error rate. For ImageNet mobile setting, our model achieves a state-of-the-art top-1 accuracy 75.28%, while being 24 faster than most auto-generated architectures. A fast version of this model achieves 10% faster than MobileNetV2, while maintaining a higher accuracy.

2 Related Work

2.1 Neural Architecture Search

Neural architecture search focuses on automatically searching effective neural topologies in a given architecture space. Existing architecture search methods can be mainly classified into three categories: evolutionary, surrogate model based search and reinforcement learning. Evolutionary methods

[10, 32, 25]

aim to simultaneously evolve the topology of a neural network along with its weights and hyperparameters to evolve a population of networks. Early evolutionary approaches utilized genetic algorithms to optimize both the architecture and its weights, while recent studies used gradient-based methods and evolutionary algorithms to optimize the weights and architecture respectively.

Surrogate model based search methods [19, 5, 22] utilize sequential model-based optimization as a technique for parameter optimization. Typical methods like PNAS [19] performed a progressive scan of the neural architecture search space, which was constrained according to the state-of-the-art of previous iterations. EPNAS in [22] further increased the search efficiency by sharing weights among sampled architectures. However, these methods generate architectures greedily by picking the top K at each iteration, which may result in a sub-optimum over the search space.

Reinforcement learning (RL) methods [4, 37, 35, 38, 25] formulate the generation of a neural architecture as an agent’s action, whose space is identical to the architecture search space. The agent’s reward is the performance of the trained architecture on unseen data. Differences between different RL-based approaches lie in the representation of agent’s policy and how to optimize it. For example, [37]

used a recurrent neural network (RNN) to sample a sequence of string which encoded the neural architecture. Policy gradient algorithms including REINFORCE and Proximal Policy Optimization (PPO) were used to train the agent.

[4] and [35] used Q-learning to train a policy that sequentially chose a layer’s type and its corresponding hyperparameters. There are some other RL-based methods that transform existing architectures incrementally to avoid generating entire networks from scratch, such as [6]. However, these approaches could not visit the same architecture twice so that strong generalization over the architecture space was required from the policy. Instead of directly using an existing architecture as an initialization, our IRLAS aims to learn a mirror stimuli function, and utilizes it in the searching process as a heuristic guidance without any restraints for the search space.

There also exists recent efforts [20] introducing a real-valued architecture parameter, which was jointly trained with weight parameters. Different from other methods, this kind of algorithm does not involve architecture sampling during searching process. Our mirror stimuli function can also be generalized to this brunch of methods.

2.2 Imitation Learning

As our proposed IRLAS attempts to generate architectures that are topologically similar to human-designed networks, the learning for the agent involves imitation learning problem. Imitation Learning (IL) enables an agent to learn from demonstrations of an expert, independent of any specific knowledge in the proposed task. There exists two different areas for IL: policy imitation and inverse reinforcement learning. Policy imitation, which is also known as behavioral cloning, targets directly learning the policy mapping from perceived environment or preprocessed features to the agent’s actions. For the settings of this paper, since the number of human-designed networks is limited, it is hard to obtain sufficient number of expert’s state-action tuples for supervised learning. As a result, the direct policy imitation cannot be used for our purpose.

Inverse reinforcement learning (IRL) refers to the problem of deriving a reward function from observed behavior. As it is a common presupposition that reward function is a succinct, robust and transferable definition of a task, IRL provides a more effective form of IL than policy imitation. Early studies in IRL [3, 36, 24] assumed that the expert was trying to optimize an unknown reward function that could be expressed as a linear combination of pre-determined features. [7] extended this approach to a limited set of non-linear rewards and learned to build composites of logical conjunctions for atomic features. Other flexible non-linear function approximators such as Gaussian Processes further extended the modeling capacity of IRL models [18]. In this paper, we assume the reward function of the expert network as a linear parametrization of state features. Experiments show that this simple assumption is effective enough to extract the topological knowledge of the human-designed architectures.

3 Approach

In this section, we first present the problem formulation of architecture search. Then we propose the mirror stimuli function inspired by biological cognition and its training procedure via inverse reinforcement learning. Finally we detail the search space and the searching algorithm. The pipeline of our IRLAS is shown in Figure 2.

3.1 Problem Formulation

Like modern CNNs, our automatic neural network process designs the topological structure of block instead of the entire network. This block-wise design is more flexible for different datasets and tasks with powerful generalization ability. The task of the agent is to sequentially sample layers from the pool of layer candidates to form the block. Then the block structure is stacked sequentially to form the complete network. For different datasets, we manually choose different number of down-sampling operations due to different input image size and choose different repeat times of the block to meet the demand for limitation of parameters or FLOPs.

In this paper, we consider the design process of network topology as a variable-length decision sequence for the choice of operation. And this sequential process can be formulated as a Markov decision process (MDP). The

policy , where is the state space and is the action space, determines the agent’s behavioral preference of generating architectures. The state is the status of current layer. The action is the decision for the subsequent layer. Thus, an architecture sampled by the agent can be determined by a state-action trajectory according to the policy , i.e. .

The training of the agent is to maximize the expected reward over all possible architectures,

(1)

where is the reward function. A common definition of is the validation accuracy of the corresponding network. This formulation of the reward function is based on an assumption that the evaluation for an architecture is only determined by its validation performance, while totally neglect the topology information.

3.2 Topological Knowledge

As the human-designed architectures are demonstrated to be effective in practice, we attempt to utilize such existing abundant topological knowledge as efficacious guidance for architecture search. However, it is a challenging problem to find an effective method to formalize the abstract topological knowledge and design an appropriate way to further exploit it in the search process. For example, shortcut connection of the block in ResNet is a quotable structure for architecture generating. Human can easily understand the topological structure simply by visualization, while the agent cannot. It remains harder for the agent to learn to search ResNet-like architectures if it even cannot understand the topology. This naturally raises two basic problems: 1) How to encode network architecture to extract the abstract topological knowledge as an available input for the agent? 2) How to utilize this knowledge to guide the agent to design desirable architectures?

For the first problem, we need to define a feature embedding for network architectures. To encode the architecture, we carefully choose a state feature function , which consists of: , , and the of two predecessor of the current layer (for layer with only one predecessor, one of the indexes is set to zero). Despite the simplicity, this state feature function provides a complete characterization of the network architecture, including the information about the computation carried out by individual layers as well as how the layers are connected.

We further exploit feature count to unify the information of each state feature to get the feature embedding for the whole architecture. Given an architecture’s sequential trajectory , the feature count is defined as:

(2)

where denotes a discounted scalar. Thus, the sequential order is also included by the discounted over layer index. The feature count is utilized as an appropriate encoding for the topological knowledge of a given network.

As for the other question of how the agent uses the topological knowledge as a guidance, this encompasses the classical exploration-exploitation trade-off. We attempt the agent to search architectures that are topologically similar to the expert network, while efficiently explore the architecture search space. This requires the searching algorithm exhibiting no preferences on a specific architecture as we do not aim the agent to reproduce human-designed networks. Direct policy imitating between the feature counts of sampled architecture and expert network will raise a strong prior on the search space and force the agent to ‘mimic’ the expert [3, 2], which does not meet our expectation.

3.3 Mirror Stimuli Function

To address this problem, we design a mirror stimuli function, denoting as , which aims to guide the agent while preventing a hard and strong constrain on the search space. The design of the mirror stimuli function is inspired by the mirror neuron system

in primate’s premotor cortex. This system is responsible for the linkage of self-generated and observed demonstrations. The mirror neuron fires both when an animal acts and when the animal observes the same action performed by another, which is an important scheme for learning new skills by imitation. In our problem, the mirror stimuli function has a similar functionality as the mirror neuron. Given the architecture sampled by the agent as the self-generated demonstration, the expert network as the observed demonstration, our mirror stimuli function will output a signal to judge the topological similarity between these two networks. The higher output represents higher similarity, where the highest for the exact expert network.

The mirror stimuli function is defined as a linear function of feature count:

(3)

where . Such a linear parametric form is easy to optimize, while effective enough to use as the evaluation of topology, as further shown in our experiment.

By substituting Equation 2 to Equation 3, we can get

(4)

Thus, the problem of solving the parameter could be regarded as the problem of finding a time-step reward function , whose corresponding policy has a maximum value at the sequence of expert network (i.e., the value of , denotes the expert network). This refers to the standard inverse reinforcement learning problem.

To find such an reward function, we use the feature match algorithm proposed in [3]. For the expert network, the architecture is generated following an expert policy , which has a maximum value for the following expression:

(5)

As we have one expert network,

is estimated as

.

To get the weight parameter of the unknown reward function , we need to find a policy whose performance is close to that of the expert’s:

(6)

This process could be regarded as ‘imitating’ the observed behavior in the mirror neuron system, which makes the self-generated demonstration (regarded as ) similar to the observed demonstration (regarded as ). So the problem is reduced to finding a policy that induces the expectation of feature count close to . This feature matching problem could be solved by max-margin optimization, derived as,

(7)

Thus the weight parameter is optimized following:

(8)

The detailed algorithm is illustrated in Algorithm 1.

  set , randomly pick policy , compute ;
  repeat
     Compute in optimization problem of Equation 8 with , get , ;
     Using standard RL algorithm, find the optimal policy as with reward function ;
     Compute ;
     ;
  until 
  return ;
Algorithm 1 Max-Margin Optimization for Inverse Reinforcement Learning

During the agent’s training stage, we add the output of mirror stimuli function as an additional reward term. The complete reward function in Section 3.1 is calculated as:

(9)

where denotes model ’s accuracy percentage on target task, denotes a balance scalar.

By optimizing this multi-objective search problem, the agent is guided by both the topological similarity and the accuracy. Thus, the agent can efficiently explore the search space to generate high-speed, topologically elegant architectures along with high accuracy.

3.4 Search Space and Training Strategy

In this section we introduce the search space and training strategy of our IRLAS. We will further discuss the generalization of our mirror stimuli function to other typical architecture search approaches in Section 3.5. In our IRLAS, the search space consists of operations based on their prevalence in the CNN literature. The considered operations are: Depthwise convolution with kernel size 11, 33, 55; Max pooling with kernel size 33, 55; Average pooling with kernel size 33, 55; Identity; Elemental add with two input layers; and Concat

with two input layers. Note that the depthwise convolution operation refers to pre-activation convolution containing ReLU, convolution and batch normalization. All the layers without successor in the searched block are concatenated together as the final output.

For the searching stage, we utilize Q-learning method to train the agent to take actions that maximize the cumulative reward, which is formulated as Equation 9. Q-learning iteratively updates the action-selection policy following the Bellman Equation:

(10)

where denotes the intermediate reward observed for the current state . Since could not be explicitly measured, reward shaping method is used, derived as , where denotes the state length referring to the number of layers. The Bellman Equation is achieved following Temporal-Difference control algorithm:

(11)

where denotes the learning rate.

The whole learning procedure is summarized as follows: The agent first samples a network architecture, which is taken as input of the mirror stimuli function. Then the generated network is trained on a certain task to get the validation accuracy. The reward, which is the combination of the accuracy and the output value of the mirror stimuli function, is used to update the Q-value. The above process circulates for iterations and the agent learns to sample block structure with higher accuracy and more elegant topology iteratively.

3.5 Generalization of Mirror Stimuli Function

It is worthy to point out that our mirror stimuli function can be easily generalized to different architecture search algorithms. For algorithms that involve architecture sampling and performance evaluation for the sampled architecture, including reinforcement learning based methods and evolutionary methods, we can simply utilize the output of Equation 9 as an alternative of evaluation, while the other searching steps remain the same to the original algorithm. The only difference lies in the expression of state feature function , which need to be modified due to different candidate operations in the search space of different algorithms. Thus, the topological information is considered during the searching process.

For differentiable architecture search algorithm, typically DARTS [20], the architecture is encoded by a set of continuous variables ( denotes a pair of nodes, i.e. a path in the architecture). Thus, the weight parameters and architecture parameters could be trained jointly via standard gradient descent. To introduce topological information to the training procedure in differentiable architecture search algorithms, we add an additional loss term calculated by mirror stimuli function to the original cross entropy loss. To convert the continuous to discreted architectures, we consider the output of as a probabilistic distribution of all possible architectures, denoted as , and sample according to the distribution to get state feature . Since the conversion from architecture parameters to state feature

is non-differentiable, the output of mirror stimuli function cannot be backpropagated. Here, we consider the solution based on REINFORCE algorithm

[31], so the loss term is calculated and updated as:

(12)

where is the number of sampled architectures.

4 Experiments and Results

4.1 Implementation Details

In this section, we introduce the implementation details of our IRLAS. We use a distributed asynchronous framework as proposed in [35], which enables efficient network generation on multiple machines with multiple GPUs. With this framework, our IRLAS can sample and train networks in parallel to speed up the whole training process. For the inverse reinforcement learning procedure, ResNet, whose convolution operation is modified to depthwise convolution, is chosen as the expert network to calculate the weight in the mirror stimuli function. The training procedure is about 3 hours on CPU.

For our IRLAS, we choose Q-value table as the agent. We use Q-learning with epsilon-greedy and experience replay buffer. At each training iteration, the agent samples 64 structures with their corresponding rewards from the memory to update Q-values following Equation 11. For the hyperparameters of Q-learning process, the learning rate is set to 0.01, the discount factor is 0.9 and the balance scalar

is 30. The mini-batch size is set to 64 and the maximum layer index for a block is set to 24. The agent is trained for 180 iterations, which totally samples 11,500 blocks. Each sampled architecture is trained with fixed 12 epochs with Adam optimizer to get evaluation of

.

We also generalize our mirror stimuli function to the different architecture search algorithm. We choose DARTS [20] as the basic algorithm. The additional loss term is scaled by 0.5 and added to the original cross-entropy loss. The number of the sampled architectures is set to 5. All the other training details and hyperparameters follow the original paper. For both of the conditions, the architecture searching processes are proposed on dataset CIFAR-10 [16].

4.2 Results

Results on CIFAR-10

Method Param Error(%)
Resnet [11] 1.7M 6.61
Resnet (pre-activation) [12] 10.2M 4.62
Wide ResNet [34] 36.5M 4.17
DenseNet (k=12) [15] 1.0M 5.24
DenseNet (k=12) [15] 7.0M 4.10
DenseNet (k=24) [15] 27.2M 3.74
DenseNet-BC (k=40) [15] 25.6M 3.46
MetaQNN (top model) [4] 11.2M 6.92
NAS v1 [37] 4.2M 5.50
EAS [6] 23.4M 4.23
Block-QNN-A, N=4 [35] - 3.60
Block-QNN-S, N=2 [35] 6.1M 3.30
NASNet-A (6 @ 768) [38] 3.3M 2.65
NASNet-B (4 @ 1152) [38] 2.6M 3.73
NASNet-C (4 @ 640) [38] 3.1M 3.59
PNASNet-5 [19] 3.2M 3.41
ENAS [23] 4.6M 2.89
AmoebaNet-A [25] 3.2M 3.34
DARTS [20] 3.4M 2.83
IRLAS 3.91M 2.60
IRLAS-differential 3.43M 2.71
Table 1: IRLAS’s results compared with state-of-the-art methods on CIFAR-10 dataset. “Error” is the top-1 misclassification rate on the CIFAR-10 test set, “Param” is the number of model parameters.

After the searching process, we select the searched optimal block structure and train the network on CIFAR-10 until convergence. In this phase, the training data is augmented with randomly cropping size of , horizontal flipping and Cutout [9]. The cosine learning rate scheme is utilized with the initial learning rate of 0.2. The momentum rate is set to 0.9 and weight decay is set to 0.0005. All the networks are trained for 600 epochs with 256 batch size.

For the task of image classification on CIFAR-10, we set the total number of stacked blocks as 10. The results are reported in Table 1 along with other models. We see that our proposed IRLAS achieves a 2.60% test error, which shows a state-of-the-art performance over both human-designed networks and auto-generated networks. For the differential setting, the result is reported in Table 1 as IRLAS-differential. Compared to the result reported in original paper (2.83% error rate), the searched architecture facilitated by our mirror stimuli function achieves a higher accuracy.

Results on ImageNet

For the ImageNet task, we transfer the model searched on CIFAR-10 by increasing the total number of stacked blocks and the filter channel size. We consider the mobile setting to compare inference speed. The training is conducted with a mini-batch size of 256 with input image size . Randomly cropping and flipping are used to augment data. We choose SGD strategy for optimization with cosine learning rate scheme. The accuracy on test images is evaluated with center crop. We use the true inference latency for fair comparison, which is validated for 16 batch size on TensorRT [1] framework with one Titan Xp.

The results are illustrated in Table 2. Our IRLAS-mobile achieves a state-of-the-art accuracy over both the human-designed and auto-generated architectures. As for the inference latency, our IRLAS-mobile can achieve 24 fewer inference latency compared with most auto-generated architectures benefiting from the elegant topology facilitated by our mirror stimuli function. We also further squeeze the number of stacked blocks of IRLAS-mobile and increase conduct a IRLAS-mobile-fast model with a inference speed of 9ms, making our model even faster than human-designed network MobileNetV2. Note that MnasNet [30] was searched directly on ImageNet dataset and need to validate time latency during searching, which is a very resource-exhausted process due to the high training cost on such a large scale dataset. As the shuffle operation, channel split operation and inverted block backbone used in ShuffleNetV2 and MobileNet-224 are not adopted in our search space, we believe our inference speed can be further boosted by introducing them to our searching process.

Method Latency Param Acc (%)
Inception V1 [28] - 6.6M 69.8
MobileNet-224 [14] 6ms 4.2M 70.6
ShuffleNet [13] 10ms 5M 70.9
MobileNetV2 1.4 [26] 10ms 6.9M 74.7
ShuffleNetV2 2 [21] 6ms - 74.9
NASNet-A(4 @ 1056) [38] 23ms 5.3M 74.0
AmoebaNet-A [25] 33ms 5.1M 74.5
PNASNet [19] 25ms 5.1M 74.2
DARTS [20] 55ms 4.9M 73.1
MnasNet [30] 11ms 4.4M 74.79
IRLAS-mobile 12ms 4.53M 75.28
IRLAS-mobile-fast 9ms 4.93M 75.15
Table 2: ImageNet classification results in the mobile setting. The input image size is 224224. The inference latency is validated with 16 batch size on TensorRT framework.

4.3 Analysis of Inverse Reinforcement Learning

In this section, we conduct an analysis of inverse reinforcement learning algorithm. As we introduce inverse reinforcement learning to avoid the agent to exhibt preference on the expert network, we compare the output value changes of our mirror stimuli function with those of the feature count by modifying a specific architecture. Here we choose the expert architecture ResNet, and modify it in three ways: , adding a operation before the residual function; , adding a operation after the residual function; , removing the short-cut connection. The results are illustrated in Figure 6 (a). Since and have a minor change in topology than , our mirror stimuli function is able to output relative value change, where the feature count is very sensitive to tiny changes. As a result, comparing to direct feature count, our mirror stimuli function is a more reasonable guidance to avoid the agent to just mimic the expert network, which helps the agent to explore the search space without being overly restricted.

Figure 3: Topologies of top-4 block architectures searched without mirror stimuli function.
Figure 4: Topologies of top-4 block architectures searched with mirror stimuli function.

4.4 Search Effiency

Figure 5: Convergence curves for the searching processes comparing with searching without mirror stimuli function. For both of the conditions, our methods converge faster benefiting from the guidance provided by the expert network’s topology.

In this section, we perform an analysis on search effiency. Note that the overall searching cost is largely depends on the design of search strategy, which is orthogonal to the design of our mirror stimuli function. To illustrate the efficiency improvement introduced by our mirror stimuli function, we conducted two experiments based on two search algorithms of different kinds: one is BlockQNN [35], the other is DARTS [20]. For each experiment, the baseline followed the searching process proposed in original paper, compared with the searching facilitated by our mirror stimuli function. We evaluate the effiency of by mirror stimuli function by comparing the relative improvement of convergence speed, instead of the absolute search time. Convergence curves are reported in Figure 5. For both of the conditions, our methods converge faster, benefiting from the guidance provided by the expert network’s topology. The results further demonstrate that our mirror stimuli function is able to be generalized to different search algorithms and improve the search effiency.

4.5 Ablation Study

In this section, we perform analysis to illustrate how mirror stimuli function affects the topology of final searched architecture. We first illustrate topologies of top-4 block architectures searched without and with mirror stimuli function in Figure 4 and Figure 4 (b). It is obvious that architectures searched without mirror stimuli function are complicated, including numerous operations and connections, while our searched models are much more simple and elegant. Furthermore, our searched models are more topologically similar to ResNet, each containing a shortcut following add operation to form the residual function.

We further conduct IRLAS with three different : 0, 30, 60. All three searching experiments followed the same procedure described in Section 3.4. For each experiment, top-4 models were chosen and transfered to meet the ImageNet mobile setting, with about 5M parameters. These models were then trained from scratch on ImageNet, following settings in Section 4.2. The final inference latency and accuracy of these models are illustrated in Figure 6. It can be noticed that the inference speed of searched architectures can be drastically improved by utilizing mirror stimuli function, about 1 faster. For , the prior topological knowledge of expert network is too strong for searching, which results in accuracy drop. is regarded as a choice to balance the trade-off between accuracy and speed.

Figure 6: (a) Comparison the output value changes of mirror stimuli function and feature count for three modified models. (b) Results of inference latency and accuracy on ImageNet of 4 top models from each experiment with different . is used in our IRLAS to balance the trade-off between accuracy and speed.

5 Conclusion

In this paper, we have proposed an inverse reinforcement learning method for architecture search. Based on the knowledge learned from the expert-designed networks, our mirror stimuli function can provide topological guidance to architecture search, which can be easily generalized to different architecture search algorithms. Inverse reinforcement learning method has been introduced to train this function, helping the agent to efficiently explore the large search space without being overly restricted. Experiment results have shown that our proposed IRLAS achieves to search high-speed architectures with high accuracy. How to extract representation of multiple networks to further improve the performance seems to be an interesting future work.

References