Neural Architecture Search
By using a controller neural network to search for optimal subgraphs and share parameters in a large neural network, the problem of time-consuming and resource-consuming high-performance neural network architecture design in the existing technology is solved, and fast and efficient neural network architecture search is achieved.
Patent Information
- Application Number
- CN201880075801.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-10-29
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2038-10-29
AI Technical Summary
Existing automatic model design methods consume a lot of computing resources and time when determining high-performance neural network architectures, and require multiple iterations to find a quality architecture.
Use a controller neural network to search for optimal subgraphs in the path of a large neural network, and reduce the number of iterations and computing resource consumption of the search process through parameter sharing to quickly determine a high-performance architecture.
It significantly reduces the computing resources and time cost of model design, and can find neural network architectures with excellent performance in a shorter time, and even consumes less computing resources than traditional methods in some cases.
Smart Images

Figure CN111406264B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. patent application serial number 62 / 578,361 filed on October 27, 2017, the entire contents of which are incorporated herein by reference. Background Art
[0003] This specification relates to modifying neural network architectures.
[0004] Neural networks are machine learning models that use one or more layers of nonlinear units to predict outputs from received inputs. Some neural networks include one or more hidden layers in addition to the output layer. The output of each hidden layer is used as the input to the next layer in the network, the next hidden layer or output layer. Each layer of the network generates an output from the received inputs based on the current values of the corresponding set of parameters.
[0005] Some neural networks are recursive neural networks. A recursive neural network is a neural network that receives an input sequence and generates an output sequence from the input sequence. In particular, a recursive neural network can use some or all of the network's internal state from previous time steps when computing the output at the current time step. An example of a recursive neural network is a long short-term (LSTM) neural network, which includes one or more LSTM memory blocks. Each LSTM memory block may include one or more cells, each cell including an input gate, a forget gate, and an output gate, allowing the cell to store the previous state of the cell, for example, for generating current activity or other components to be provided to the LSTM neural network. Summary of the invention
[0006] This specification describes how a system implemented as a computer program on one or more computers at one or more locations uses a controller neural network to determine the architecture of a neural network configured to perform a specific neural network task.
[0007] Particular embodiments of the subject matter described in this specification can be implemented to achieve one or more of the following advantages. The system can efficiently and automatically, i.e., without user intervention, select a neural network architecture that will provide a high-performance neural network for a particular task. The system can efficiently determine a new neural network architecture suitable for a particular task, so that the resulting neural network has higher performance on the task.
[0008] Compared to existing methods, the architecture search techniques described in this specification consume less computing resources and time, while still identifying high-performance model architectures. In particular, by restricting the search space to paths within a large model, and thus sharing parameter values between candidate architectures during a given search round, the system effectively restricts the search space and limits the computing resources required for training, while still being able to identify effective architectures that produce high-performance neural networks.
[0009] In more detail, other techniques that use neural networks to control the search in a large space of possible neural network architectures (i.e., other "automatic model design" methods) are extremely costly in terms of the time required to determine a quality architecture and the computational resources consumed by the search process, such as processing power and memory. This is because other techniques require the neural network to define a completely new architecture at each iteration, and train the neural network from scratch to evaluate each new architecture. As a result, these prior arts (i) consume a large amount of time and computational resources at each iteration of the search process due to training the neural network, and (ii) require a large number of iterations to determine a quality architecture.
[0010] On the other hand, the described technique uses a controller neural network to search for a path through a large neural network, i.e., to search for an optimal subgraph within a large computational graph. This reduces the number of iterations required to find a quality architecture. Additionally, the described technique employs parameter sharing in iterations of training the subnetworks found across iterations. This reduces the time and computational resources consumed by each iteration of the search process.
[0011] Thus, the described techniques are much faster and less computationally expensive than existing automated model design methods. In some cases, the described techniques can both consume less wall clock time than existing automated model design methods and discover architectures that perform comparable or even better while using 1000x fewer computational resources.
[0012] The details of one or more embodiments of the subject matter described in this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 An example neural architecture search system is shown.
[0014] Figure 2A is a graph of example recursive units that can be generated by the system.
[0015] Figure 2B is a diagram of an example of an example convolutional neural network that can be generated by the system.
[0016] Figure 3is a flow chart of an example process for training a controller neural network.
[0017] Like reference numbers and designations throughout the various drawings indicate like elements. DETAILED DESCRIPTION
[0018] This specification describes a system implemented as a computer program on one or more computers at one or more locations that uses a controller neural network to determine an architecture for a neural network that is configured to perform a specific neural network task.
[0019] Neural networks can be configured to receive any type of numeric data input and generate any type of scoring, classification, or regression output based on the input.
[0020] For example, if the input to a neural network is an image or features that have been extracted from an image, the output generated by the neural network for a given image may be a score for each object category in a set of object categories, each score representing an estimated likelihood that the image contains an object belonging to that category.
[0021] As another example, if the input to the neural network is an Internet resource (e.g., a web page), a document or a portion of a document, or features extracted from an Internet resource, a document or a portion of a document, the output generated by the neural network for a given Internet resource, document or portion of a document may be a score for each topic in a set of topics, each score representing an estimated likelihood that the Internet resource, document or portion of a document is related to that topic.
[0022] As another example, if the input to a neural network is features of the context in which a particular ad was shown, the output generated by the neural network may be a score representing the estimated likelihood that the particular ad will be clicked.
[0023] As another example, if the input to the neural network is features of personalized recommendations for a user, e.g., features characterizing the context of the recommendations, e.g., features characterizing previous actions taken by the user, the output generated by the neural network can be a score for each content item in a set of content items, each score representing an estimated likelihood that the user will respond favorably to the recommended content item.
[0024] As another example, if the input to a neural network is a sequence of text in one language, the output generated by the neural network may be a score for each text segment in a set of text segments in another language, each score representing an estimated likelihood that the text segment in the other language is a correct translation of the input text into the other language.
[0025] As another example, if the input to a neural network is a sequence representing a spoken utterance, the output generated by the neural network may be a score for each text segment in a set of text segments, each score representing an estimated likelihood that the text segment is a correct transcription of the utterance.
[0026] Figure 1 An exemplary neural architecture search system 100 is shown. Neural architecture search system 100 is an example of a system implemented as a computer program on one or more computers in one or more locations in which the systems, components, and techniques described below can be implemented.
[0027] The neural architecture search system 100 is a system that obtains training data 102 for training a neural network to perform a specific task and a validation set 104 for evaluating the performance of the neural network on the specific task, and determines the architecture of the neural network configured to perform the specific task using the training data 102 and the validation set 104. The architecture defines the number of layers in the neural network, the operations performed by each layer, and the connectivity between the layers in the neural network, that is, which layers receive inputs from which other layers in the neural network.
[0028] Typically, both training data 102 and validation set 104 include a set of neural network inputs and, for each network input, a corresponding target output that should be generated by the neural network to perform a specific task. For example, a larger training data set may have been randomly split to generate training data 102 and validation set 104.
[0029] The system 100 may receive the training data 102 and the validation set 104 in any of a variety of ways. For example, the system 100 may receive the training data as an upload from a remote user of the system over a data communication network, for example using an application programming interface (API) provided by the system 100, and randomly divide the uploaded data into the training data 102 and the validation set 104. As another example, the system 100 may receive input from a user specifying which data already maintained by the system 100 should be used to train the neural network, and then divide the specified data into the training data 102 and the validation set 104.
[0030] In general, the system 100 determines the architecture of a neural network by determining a subset of multiple components of a large neural network that should be active during input processing of the large neural network. The final architecture is the architecture of the large neural network in which only the components in the final subset are active (and optionally, any inactive components are removed).
[0031] A large neural network is a neural network that contains many different neural network components, such as many different neural network layers, many different activation functions that can be applied by each layer, and many different possible connections between the components that can cause the large neural network to generate a network output for a network input. This results in a large neural network with a large number of parameters (referred to in this specification as "large network parameters"). By selecting a subset of the components of the large neural network that should be active during processing, the system 100 identifies high-quality architectures that are computationally feasible and can be trained to generate high-quality network outputs.
[0032] In particular, the system 100 maintains large neural network data 140 that defines a large neural network as a directed acyclic graph (DAG), i.e., the neural network data 140 represents a DAG that defines the architecture of the large neural network and, therefore, defines the search space of the architecture search process. The DAG contains nodes and edges, where each node represents a computation performed by a neural network component and each edge represents the flow of information, i.e., component inputs and outputs from one component to another. The local computation at each node has its own parameters that are only used when a particular computation is designated active during processing. In other words, each edge from one node to another is associated with its own parameters, such as a parameter matrix or kernel, which is active only when the corresponding edge is active in the current architecture, i.e., when the output node of the edge is selected to receive input from the input node of the edge.
[0033] In some cases, the DAG specifies the entire architecture of a large neural network. In other cases, the DAG specifies a portion of the entire architecture that defines the entire architecture. In particular, in some embodiments, certain portions of the large neural network architecture are fixed and are not adjusted by the search process. For example, a large neural network may always be required to have a specific type of output layer, a specific type of input layer, or both. As another example, a specific type of neural network layer can be automatically inserted into a fixed position within the final architecture, such as a batch normalization layer before or after some or all layers in the neural network, a certain type of activation function applied before or after some or all layers in the neural network, etc. As yet another example, when the neural network is a convolutional neural network, the neural network may always have a global pooling layer and a softmax output layer following it as the last two layers of the architecture. The global pooling layer can average all activations for each channel of the input received by the global pooling layer.
[0034] In addition, in some embodiments, the DAG specifies a space of possible architectures for one or more types of units, such as one or more types of convolutional units or one or more types of recursive units composed of multiple components. The units specified by the DAG can then be arranged in a predetermined pattern within a large neural network to form a complete architecture of the neural network.
[0035] For example, a predetermined number of recursive units having the same architecture as the system-generated architecture, i.e., the architecture defined as a subset of the DAG, can be stacked between the embedding layer and the output layer to generate the entire large recursive neural network architecture.
[0036] As another example, while in some embodiments the DAG directly specifies the entire architecture of the convolutional neural network (except for the predefined output layer), in some other embodiments, by selecting a subset of the DAG, the system can define resolution-preserving convolutional units that preserve the spatial resolution of their inputs and reduction units that reduce the spatial resolution of their inputs. Many instances of these two types of units can be stacked in a predetermined pattern before the output layer to generate the final architecture of the convolutional neural network.
[0037] In some embodiments, the operations and connections specified by the DAG can be automatically enhanced by additional operations in the final architecture. For example, at some or all nodes in the DAG, for recursive nodes, the operations specified by the DAG (and selected by the system 100) can be automatically enhanced by highway connections.
[0038] In particular, the system 100 determines the architecture, ie, the final subset, by training the controller neural network 110 to generate a sequence of outputs that defines the final subset.
[0039] The controller neural network 110 is a neural network having parameters referred to in this specification as "controller parameters" and configured to generate output sequences according to the controller parameters. Each output sequence generated by the controller neural network 110 defines a corresponding subset of multiple components of the larger neural network that should be active during the processing of the input by the larger neural network. In particular, each output sequence defines connections between nodes in the DAG and local computations that should be performed at each node.
[0040] In particular, each output sequence includes corresponding outputs at each of a plurality of time steps. Each node in the DAG, i.e., each component represented by the DAG, is associated with a subset of time steps. The outputs at the time steps corresponding to a given node define the inputs to that node and the operations performed by that node (for at least the input nodes of the DAG, the inputs may be predetermined). Collectively, the outputs in a given output sequence define a subset of components of the activities within a larger neural network. Output sequences are described below with reference to Figure 2A -2C is discussed in more detail.
[0041] Thus, the components designated as active by a given output sequence are (i) any components that are fixed and not part of the search process, and (ii) active components within the DAG, i.e., the parameter matrices corresponding to the connections defined by the output sequence and the components that perform the operations specified by the output sequence. In embodiments of the architecture where the output sequence directly identifies a particular type of unit, each instance of that type of unit within the larger neural network has the same active components as the instance specified by the output sequence.
[0042] The system 100 trains the controller neural network 110 by repeatedly performing each of two training phases: a controller training phase and a large neural network training phase. For example, the system 100 can repeatedly alternate between the controller training phase and the large neural network training phase. During the controller training phase, the system 100 updates the controller network parameters while keeping the large network parameters fixed, and during the large neural network training phase, the system 100 updates the large network parameters while keeping the controller parameters fixed.
[0043] In more detail, during the controller training phase, the system 110 uses the controller neural network 110 and generates a batch 112 of output sequences based on the current values of the controller parameters, each output sequence in the batch specifying a corresponding subset of multiple components of the large neural network that should be active during the large neural network processing the input.
[0044] For each output sequence in the batch, the training engine 120 determines a performance metric 122 of the large neural network on a particular neural network task (i) based on the current values of the large network parameters and (ii) when only a subset of the components specified by the output sequence are active. The architecture of the large neural network in which only a subset of the components specified by a given output sequence are active will be referred to in this specification as the architecture defined by the given output sequence. The large network parameters are not updated during the controller training phase. That is, for each output sequence in the batch, the training engine 120 evaluates the performance of the architecture defined by the output sequence on the validation set 104 without training the large neural network, i.e., without adjusting any active (or inactive) components, and instead uses the large network parameter values determined during the previous iteration of the large network training phase. The controller parameter update engine 130 then uses the evaluation results of the output sequences in the batch 112 to update the current values of the controller parameters to improve the expected performance of the architecture defined by the output sequences generated by the controller neural network 110 on the task. Refer to the following Figure 3 Describes in more detail evaluating the performance of trained instances and updating the current values of controller parameters.
[0045] Controller parameter update engine 130 then uses performance metrics 122 to determine updated controller parameter values 132 .
[0046] During the large neural network training phase, the training engine 120 keeps the controller parameter values fixed and uses the controller neural network 110 to sample the output sequence.
[0047] The training engine 120 then trains the large neural network whose architecture is active as defined by the sampled output sequence to determine updated large neural network parameter values 142 for those components that were active during training. For example, the training engine 120 may train the large neural network for the entire through training data 102 or for a specified number of training iterations. The training engine 120 may train the neural network using a training technique appropriate to the type of large neural network being trained. When the large neural network is a recurrent neural network, the training engine 120 may train the large neural network using back propagation over time. When the large neural network is a convolutional neural network, the training engine 120 may train the large neural network using gradient descent with back propagation.
[0048] Thus, the system 100 iteratively adjusts controller parameter values while keeping the large network parameters fixed during the controller training phase, and iteratively adjusts the large network parameters while keeping the controller parameters fixed during the large neural network training phase. By repeatedly performing these two phases, the system 100 trains the controller neural network 110 to generate output sequences that define a high-quality architecture without consuming excessive time and computing resources during the search process.
[0049] Once the controller neural network 110 is trained, the system 100 can select a final architecture for the neural network, i.e., select a final subset of components to be active. To select the final architecture, the system 100 can generate a new output sequence based on the trained values of the controller parameters and use the architecture defined by the new output sequence as the final architecture of the neural network, or can generate multiple new outputs based on the trained values and then select one of the architectures defined by the multiple new output sequences. In embodiments where multiple new output sequences are generated, the system 100 can evaluate the performance of the architecture defined by each new output sequence on the validation set 104 and then select the highest performing architecture as the final architecture. Alternatively, the system 100 can further train each selected architecture and then evaluate the performance of each architecture after further training.
[0050] The neural network search system 100 may then output architecture data 150 that specifies the final structure of the neural network, i.e., data that specifies the layers that are part of the neural network, the connections between the layers, and the operations performed by the layers. For example, the neural network search system 100 may output architecture data 150 to the user who submitted the training data.
[0051] In some embodiments, instead of or in addition to outputting architecture data 150, system 100 trains an instance of a neural network having a determined architecture, for example, from scratch or by fine-tuning parameter values generated as a result of training a large neural network, and then uses the trained neural network to process requests received by a user, for example, through an API provided by the system. That is, system 100 can receive input to be processed, process the input using a trained neural network, and provide output generated by the trained neural network or data derived from the generated output in response to the received input.
[0052] In some embodiments, the system 100 trains the controller neural network in a distributed manner. That is, the system 100 includes multiple replicas of the controller neural network. In some of these embodiments in which training is distributed, each replica has: a dedicated training engine that generates performance metrics for batches of output sequences output by the replica and trains a replica of the large neural network; and a dedicated controller parameter update engine that uses the performance metrics to determine updates to controller parameters. Once the controller parameter update engine determines the update, the controller parameter update engine can send the update to a central parameter update server that all controller parameter update engines can access. Similarly, once the training engine has determined the update to the large neural network parameters, the training engine can send the update to the parameter server. The central parameter update server can update the values of the controller parameters and the large neural network parameters maintained by the server and send the updated values to the controller parameter update engine. In some cases, each of the multiple replicas and their corresponding training engines and parameter update engines can run asynchronously with each other set of training engines and parameter update engines.
[0053] Figure 2A is a diagram 200 of an example recursive unit that may be generated by an architecture search system.
[0054] Figure 2AA DAG 210 is shown, which represents the possible connections of four nodes 212, 214, 216, and 218 of the recursive unit. The system determines the final connection of the DAG 210 by determining for each node 212-218 which input the node should receive. Each possible edge within the DAG is associated with a different set of parameters, so by determining the connectivity, the system can also determine which parameter sets are active and which parameter sets are not active. The system also determines which operations the node should perform for inputs received from a predetermined set of inputs.
[0055] Figure 2A Also shown is an architecture 220 of a recurrent unit generated by the system using a controller neural network and a diagram 250 showing the output of the controller neural network that resulted in the architecture 220 .
[0056] In particular, diagram 250 depicts the processing performed by controller neural network 110 during generation of an output sequence for seven exemplary time steps 252-264. As can be seen from diagram 250, time step 252 corresponds to node 202, time steps 254 and 256 correspond to node 204, time steps 258 and 260 correspond to node 206, and time steps 262 and 264 correspond to node 208.
[0057] The controller neural network 110 is a recurrent neural network that includes one or more recurrent neural network layers, such as layer 280, which are configured to receive as input, for each time step, an embedding of the output generated at the previous time step in a given output sequence, and process the input to update the current hidden state of the recurrent neural network. For example, the recurrent layer in the controller neural network 110 can be a long short-term memory (LSTM) layer or a gated recurrent unit (GRU) layer. Figure 2A In the example of , at time step 254, the controller receives as input the output of the previous time step 252 and updates the hidden state of the recurrent layer.
[0058] The controller neural network 110 also includes a corresponding output layer for each time step in the output sequence. Each of the output layers is configured to receive an output layer input including an updated hidden state at a time step, and generate an output for the time step that defines a score distribution of possible values of the output at the time step. For example, each output layer may first project the output layer input into an appropriate dimension for the number of possible output values at the corresponding time step, and then apply softmax to the projected output layer input to generate a corresponding score for each of the multiple possible output values.
[0059] Thus, to generate an output for a given time step in the output sequence, the system 100 provides an embedding of the output of the previous time step in the output sequence as an input to the controller neural network, and the controller neural network generates an output for the time step that defines a score distribution of possible output values for the time step. For the first time step in the output sequence, since there are no previous time steps, the system 100 may instead provide a predetermined placeholder input. The system 100 then samples from the possible values according to the score distribution to determine the output value for the time step in the output sequence. The possible values that a given output can take are fixed prior to training, and the number of possible values may be different for different time steps.
[0060] As can be seen from the architecture 220, at each time step during the processing of the recurrent unit, the node 212 receives as input the unit input x_t at the time step and the unit output at the previous time step h_t-1. This may be predetermined, i.e., may not be generated using the controller neural network. Thus, at the first time step 252, the controller neural network generates a probability distribution of possible activation functions to be applied by the node 202. Figure 2B In the example of , the system has selected tanh as the activation function for node 202 from a sampling of a probability distribution, for example from a set of possible activations including ReLU, tanh, sigmoid, and identity operations.
[0061] For the remaining nodes in the graph, the system selects both the inputs to the node and the activation function to be applied by the node. Thus, for node 204, the system has selected from the corresponding probability distribution generated by the controller that this node should receive input from node 1 and apply a ReLu activation function. Typically, the probability distribution is spread over all nodes connected to the current node through incoming edges in DAG 210, i.e., edges from another node to the current node.
[0062] Similarly, for node 206, the system has selected that the node should receive input from node 204 and apply a ReLu activation function, while node 208 should receive input from node 202 and apply a tanh activation function.
[0063] To generate the output of the unit at time step h_t, the system combines, e.g., averages (“avg”) the outputs of nodes that were not selected to provide input to any other node. Figure 2B In the example of , the output h_t is the average of the outputs of node 206 and node 208. Therefore, the overall computation of the unit of the given architecture 220 can be expressed as:
[0064]
[0065]
[0066]
[0067]
[0068]
[0069] Where Ws is the parameter matrix. As can be seen from the above equation, some components that may be in DAG 210 are not included in architecture 220. In particular, the parameter matrices corresponding to the unselected edges are not used in architecture 220. The parameter matrix applied to the input at node 4 to the input from node 3 is Inactive in architecture 220. Furthermore, each node has only one activation function applied from the set of possible activation functions.
[0070] Figure 2B is a diagram 300 of an exemplary convolutional neural network architecture that may be generated by the architecture search system.
[0071] Similar to Figure 2A In the diagram 200, Figure 2B Also shown are a four-node DAG 310, an architecture 320, and a diagram 350 of processing the controller neural network to generate the architecture 320. Here, instead of representing components of a single recursive unit, the nodes in the DAG 310 represent layers in a convolutional neural network.
[0072] Additionally, similar to the example of diagram 200, for the first node in DAG 310, the system predetermines the inputs to the node and selects only the computations performed by the node, while for each other node, the system selects both the inputs to the node (from the node before the current node in the output sequence) and the computations performed by the node. However, instead of selecting an activation function, the system selects from a different set of possible computations to be performed by the node. In particular, the system can select a specific type of convolution to be performed by the node or a maximum pooling operation (and optionally, an average pooling operation) to be performed. The type of convolution can include, for example, a set of convolution types that include convolutions with filter sizes of 3×3 and 5×5 and depthwise separable convolutions with filter sizes of 3×3 and 5×5.
[0073] In addition, unlike the example of diagram 200, for some or all nodes in the DAG, the system can select more than one incoming edge to the node to become active to form skip connections. In particular, for each specific node other than the first node, the controller neural network generates a corresponding independent probability for each node connected to the specific node by an incoming edge. The system then independently samples from each probability to determine which nodes should provide output to the specific node in the final architecture. When a node receives input from more than one other node, the system can deeply concatenate, average, or otherwise combine the individual inputs of the node.
[0074] As described above, although not depicted, the system can actually generate one or more types of units and repeat these units in a predetermined pattern to generate a convolutional neural network architecture, i.e., rather than generating an entire convolutional neural network as described above.
[0075] Figure 3 is a flow chart of an example process 300 for training a controller neural network. For convenience, process 300 is described as being performed by a system of one or more computers located in one or more locations. For example, a neural architecture search system, such as a suitably programmed Figure 1 The neural architecture search system 100 can perform process 300.
[0076] The system generates a batch of output sequences using the controller neural network and based on the current values of the controller parameters at the iteration (step 302). In particular, because the system samples from the score distribution when generating each output value in the output sequence, the sequences in the batch will typically be different even if each sequence is generated based on the same controller parameter values. The batch typically includes a predetermined number of output sequences, for example, eight, sixteen, thirty-two, or sixty-four sequences.
[0077] For each output sequence in the batch, the system evaluates the performance of the architecture defined by the sequence to determine a performance metric of the trained instance on a particular neural network task (step 304). For example, the performance metric can be the accuracy of an instance of a large neural network with the architecture on a validation set or a subset of the validation set as measured by an appropriate accuracy measure. For example, the accuracy can be based on a perplexity measure when the output is a sequence, or based on a classification error rate when the task is a classification task.
[0078] To perform evaluation, the system uses the values of the large neural network parameters from the previous iteration of the large neural network training phase. In other words, the system does not adjust the current values of the large neural network parameters when evaluating the output sequences in the batch.
[0079] The system uses the performance metrics for the architecture to adjust current values of controller parameters (step 306 ).
[0080] In particular, the system adjusts the current value by training the controller neural network using reinforcement learning techniques to generate an output sequence that causes the neural network architecture to have an increased performance metric. More specifically, the system trains the controller neural network to generate an output sequence that maximizes a received reward determined based on the performance metric of the generated architecture. In particular, the reward for a given output sequence is a function of the performance metric of the corresponding architecture. For example, the reward can be one of the following: the performance metric, the square of the performance metric, the cube of the performance metric, the square root of the performance metric, and so on.
[0081] In some cases, the system trains the controller neural network using a policy gradient technique to maximize the expected reward. For example, the policy gradient technique can be a REINFORCE technique or a proximal policy optimization (PPO) technique. For example, the system can estimate the gradient of the expected reward with respect to the controller parameters using a gradient estimator that satisfies the following conditions:
[0082]
[0083] Where m is the number of sequences in the batch, T is the number of time steps for each sequence in the batch, and a t is the output at time step t in a given output sequence, R k is the reward for output sequence k, θ c are controller parameters, and b is a baseline function, e.g., an exponential moving average of the accuracy of previous architectures.
[0084] The system may repeatedly perform steps 302 - 306 (“controller training phase”) to train the controller neural network, ie, determine training values of the controller parameters from initial values of the controller parameters.
[0085] The system samples the output sequence using the controller neural network (step 308).
[0086] The system trains the architecture defined by the sampled output sequence to update the large neural network parameters of the components specified as active by the sampled output sequence (step 310). As described above, the system can train the architecture for a specified number of iterations or once through the training data.
[0087] The system can repeatedly perform steps 308 and 310 ("large neural network training phase") to update the values of the large neural network parameters during training. For example, the system can repeatedly alternate between performing steps 302-306 and performing steps 308-310 to search for a high-performance neural network architecture.
[0088] In some embodiments, the system trains the controller neural network in a distributed manner. That is, the system maintains multiple replicas of the controller neural network and the large neural network and asynchronously updates the parameter values of the replicas during training. That is, the system can asynchronously perform steps 302-310 for each replica and can update the controller parameters and the large neural network parameters using the gradients determined for each replica.
[0089] This specification uses the term "configured" in relation to system and computer program components. For a system of one or more computers to be configured to perform a particular operation or action, it means that the system has installed thereon software, firmware, hardware, or a combination thereof, which, in operation, causes the system to perform those operations or actions. For one or more computer programs to be configured to perform a particular operation or action, it means that the one or more programs include instructions that, when executed by a data processing device, cause the device to perform those operations or actions.
[0090] Embodiments of the subject matter and functional operations described in this specification may be implemented in digital electronic circuits, in tangibly embodied computer software or firmware, in computer hardware including the structures disclosed in this specification and their equivalents, or in a combination of one or more of them. Embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible, non-transitory storage medium, to be executed by a data processing device or to control the operation of the data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access storage device, or a combination of one or more of them. Alternatively or additionally, program instructions may be encoded on an artificially generated propagation signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, which is generated to encode information for transmission to a suitable receiver device for execution by a data processing device.
[0091] The term "data processing apparatus" refers to data processing hardware and includes all types of apparatus, devices and machines for processing data, including, for example, a programmable processor, a computer or multiple processors or computers. The apparatus may also be or further include special-purpose logic circuits, such as an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). In addition to hardware, the apparatus may optionally include code that creates an execution environment for a computer program, such as code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
[0092] A computer program may be written in any form of programming language, including compiled or interpreted languages, declarative or procedural languages, and may also be referred to or described as a program, software, software application, application, module, software module, script, or code; it may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for a computing environment. A program may, but need not, correspond to a file in a file system. A program may be stored as part of a file that holds other programs or data, such as one or more scripts stored in a markup language document, in a single file dedicated to the program in question, or in multiple coordinated files, such as files that store one or more modules, subroutines, or portions of code. A computer program may be deployed to execute on one computer or on multiple computers located at one site or distributed across multiple sites and interconnected by a data communications network.
[0093] In this specification, the term "database" is used broadly to refer to any collection of data: the data need not be structured or fully structured in any particular way, and the data may be stored in storage devices in one or more locations. Thus, for example, an index database may include multiple collections of data, each of which may be organized and accessed differently.
[0094] Similarly, in this specification, the term "engine" is widely used to refer to a software-based system, subsystem or process that is programmed to perform one or more specific functions. Typically, an engine will be implemented as one or more software modules or components installed on one or more computers in one or more locations. In some cases, one or more computers will be dedicated to a specific engine. In other cases, multiple engines can be installed and run on the same one or more computers.
[0095] The processes and logic flows described in this specification can be performed by one or more programmable computers that execute one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by a dedicated logic circuit such as an FPGA or ASIC, or by a combination of a dedicated logic circuit and one or more programmed computers.
[0096] A computer suitable for executing a computer program may be based on a general or special purpose microprocessor or both, or on any other type of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a central processing unit for executing instructions and one or more memory devices for storing instructions and data. The central processing unit and the memory may be supplemented by or incorporated into a dedicated logic circuit. Typically, the computer will also include one or more mass storage devices for storing data, such as magnetic, magneto-optical disks or optical disks, or the computer may be operably coupled to receive data from the above-mentioned mass storage devices or to transfer data to the above-mentioned mass storage devices or both. However, the computer need not have such devices. In addition, the computer may be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device, such as a universal serial bus (USB) flash drive, to name a few.
[0097] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and storage devices, including, for example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CD ROM and DVD-ROM optical disks.
[0098] To provide interaction with a user, embodiments of the subject matter described in this specification may be implemented on a computer having a display device, such as a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other kinds of devices may also be used to provide interaction with a user; for example, the feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any form, including sound, voice, or tactile input. In addition, a computer may interact with a user by sending documents to and receiving documents from a device used by the user; for example, by sending a web page to a web browser on a user's device in response to a request received from the web browser. Moreover, a computer may interact with a user by sending a text message or other form of message to a personal device, such as a smartphone running a messaging application, and in turn receiving a response message from the user.
[0099] The data processing apparatus for implementing a machine learning model may also include, for example, a dedicated hardware accelerator unit for processing the common and computationally intensive parts of the machine learning training or process, i.e., the inference, workload.
[0100] You can use machine learning frameworks such as TensorFlow, Microsoft Cognitive Toolkit, Apache Singa, or Apache MXNet to implement and deploy machine learning models.
[0101] Embodiments of the subject matter described in this specification may be implemented in a computing system that includes a back-end component (e.g., as a data server) or includes a middleware component (e.g., an application server) or includes a front-end component (e.g., a client computer with a graphical user interface, a web browser, or an application through which a user can interact with an implementation of the subject matter described in this specification), or includes any combination of one or more such back-end, middleware, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication, such as a communication network. Examples of communication networks include local area networks (LANs) and wide area networks (WANs), such as the Internet.
[0102] The computing system may include a client and a server. The client and the server are usually remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on each computer and having a client-server relationship with each other. In some embodiments, the server sends data to the user device, such as an HTML page, for example, for displaying data to a user interacting with the device acting as a client and receiving user input from the user. Data generated at the user device, such as the result of the user interaction, can be received from the device at the server.
[0103] Although this specification contains many specific implementation details, these should not be interpreted as limitations on the scope of any invention or the scope of the claimed protection, but should be interpreted as descriptions of features specific to a particular embodiment of a particular invention. In the context of separate embodiments, certain features described in this specification may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually in multiple embodiments or in any suitable sub-combination. In addition, although the features may be described above as functioning in certain combinations and even initially claimed as such, in some cases, one or more features from the claimed combination may be deleted from the combination, and the claimed combination may refer to a sub-combination or a variant of a sub-combination.
[0104] Similarly, although operations are depicted in the drawings and recited in the claims in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in serial order, or that all of the illustrated operations be performed, in order to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. Furthermore, the separation of various system modules and components in the above-described embodiments should not be construed as requiring such separation in all embodiments, and it should be understood that the described program components and systems may generally be integrated together in a single software product, or packaged into multiple software products.
[0105] Specific embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. For example, the actions recited in the claims can be performed in a different order and still achieve the desired results. As an example, the processes depicted in the accompanying drawings do not necessarily require the particular order shown or serial order to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous.
Claims
1. A method for determining the architecture of a large neural network for performing a specific neural network task, wherein: The input of the large neural network is an image or features that have been extracted from the image, and the output of the large neural network is a score for each object category in a set of object categories for the image, each score representing an estimated likelihood that the image contains an object belonging to that object category, or The input of the large neural network is an Internet resource, a document or a part of a document or a feature extracted from the Internet resource, the document or a part of the document, and the output of the large neural network is a score for each topic in a topic set, each score representing an estimated likelihood that the Internet resource, the document or a part of the document is related to the topic, wherein the Internet resource comprises a web page, or The inputs to the large neural network are features of the context in which a particular ad was flashed, and the output of the large neural network is a score representing an estimated likelihood that the particular ad will be clicked, or The input of the large neural network is a feature of a personalized recommendation for a user, and the output of the large neural network is a score for each content item in a set of content items, each score representing an estimated likelihood that the user will respond favorably to the recommended content item, wherein the feature of the personalized recommendation for the user comprises at least one of: a feature characterizing a context of the recommendation and a feature characterizing a previous action taken by the user, or The input to the large neural network is text in one language, and the output of the large neural network is a score for each text segment in a set of text segments in another language, each score representing an estimated likelihood that the text segment in the other language is a correct translation of the input text into the other language, or The input of the large neural network is a sequence of spoken utterances, and the output of the large neural network is a score for each text segment in a set of text segments, each score representing an estimated likelihood that the text segment is a correct transcription of the sequence of spoken utterances, The method comprises: performing a plurality of iterations, wherein each iteration includes a controller training phase and a large neural network training phase; Wherein, the controller training phase includes: generating a batch of output sequences using a controller neural network having a plurality of controller parameters and based on current values of the controller parameters, each output sequence in the batch specifying a respective subset of a plurality of components of the large neural network that should be active during processing of an input by the large neural network, wherein the large neural network has a plurality of large network parameters; For each output sequence in the batch: (i) determining a performance measure of the large neural network on the particular neural network task based on current values of parameters of the large network and (ii) when only a subset of components specified by the output sequence are active; and adjusting the current values of the controller parameters of the controller neural network using the performance metric of the output sequences in the batch; The large neural network training phase includes: generating a new output sequence using the controller neural network and based on the adjusted values of the controller parameters; and training the large neural network on training data in which only a subset of components specified by the new output sequence are active to determine adjusted values for parameters of the large network; The adjusted values of the large network parameters are used in the controller training phase of the next iteration.
2. The method according to claim 1, wherein: Using the performance metric of the output sequences in the batch to adjust the current value of the controller parameter of the controller neural network includes: The controller neural network is trained using reinforcement learning techniques to generate output sequences with increased performance metrics.
3. The method according to claim 2, wherein: The reinforcement learning technique is a policy gradient technique.
4. The method according to claim 3, wherein: The reinforcement learning technique is REINFORCE technique.
5. The method according to claim 1, wherein: The large neural network includes multiple layers.
6. The method according to claim 1, wherein: When determining the performance of the large neural network, current values of the large network parameters are fixed.
7. The method according to claim 1, wherein: The controller neural network is a recurrent neural network configured to, for a given output sequence and at each time step in a plurality of time steps: Receiving as input an embedding of an output generated at a previous time step in the given output sequence, and processing the input to update a current hidden state of the recurrent neural network and generate a score distribution over possible outputs for the time step.
8. The method according to claim 1, wherein: Each output sequence comprises a respective output for each time step in a plurality of time steps, wherein each time step corresponds to a respective node in a directed acyclic graph (DAG) representing the large neural network, wherein the DAG comprises a plurality of edges connecting nodes in the DAG, and wherein the output sequence defines, for each node, inputs received by the node and computations performed by the node.
9. The method according to claim 8, wherein: For each particular node among a plurality of nodes in the DAG, the controller neural network generates, at a first time step corresponding to the node, a probability distribution of nodes connected to the particular node by incoming edges in the DAG.
10. The method according to claim 8, wherein: For each particular node among a plurality of nodes in the DAG, the controller neural network generates, at a first time step corresponding to the node, for each node connected to the particular node by an incoming edge in the DAG, a respective independent probability defining a likelihood that the edge will be designated as active.
11. The method of claim 8, wherein, for each particular node among a plurality of nodes in the DAG, the controller neural network generates a probability distribution of possible computations performed by the particular node at a second time step corresponding to the node.
12. The method according to any one of claims 1 to 11, wherein: The large neural network is a recurrent neural network.
13. The method according to any one of claims 1 to 11, wherein: The large neural network is a convolutional neural network.
14. The method according to any one of claims 1 to 11, further comprising: A final output sequence is generated according to the adjusted values of the controller parameters, the final output sequence defining a final subset of components.
15. The method according to claim 13, further comprising: A specific neural network task is performed for a received network input by processing the received network input only when a final subset of components are active.
16. A system for determining the architecture of a large neural network for performing a specific neural network task, the system comprising one or more computers and one or more storage devices, the storage devices storing instructions that, when executed by the one or more computers, cause the one or more computers to perform operations according to the corresponding method described in any one of claims 1-15.
17. One or more computer storage media storing instructions that, when executed by one or more computers, cause the one or more computers to perform the operations of the respective method of any one of claims 1 to 15.
Citation Information
Patent Citations
Neural architecture search
US62578361P0
Multi-feature-fusion-convolutional-neural-network-based plankton image classification method
CN106372648A
Recurrent neural networks for data item generation
US20160232440A1
