Systems and methods for optimal neural architecture search
The hybrid NAS method using gradient-based and sampling techniques optimizes neural network architectures by distributing hardware requirements and scaling the search space, enhancing efficiency and flexibility.
Patent Information
- Application Number
- JP2023181838
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2023-03-24
- Filing Date
- 2023-10-23
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-10-23
AI Technical Summary
Existing neural architecture search (NAS) methods are either time-consuming due to their iterative nature or limited by memory constraints, making them inefficient in optimizing neural network architectures.
A hybrid approach combining gradient-based search and sampling methods, where multiple gradient-based searches are performed in subspaces to distribute hardware requirements and scale the search space, followed by an evolutionary search using optimized initial seeds to accelerate the discovery of optimal architectures.
This hybrid method reduces resource consumption and time required to find optimal neural network architectures while increasing flexibility in network structure by utilizing an unbounded search space.
Smart Images

Figure 0007571251000001 
Figure 0007571251000002 
Figure 0007571251000003
Abstract
Description
[Technical field]
[0001] Systems and methods consistent with exemplary embodiments of the present disclosure relate to neural networks, and more particularly, to systems and methods for performing neural architecture search (NAS). [Background technology]
[0002] In the related art, a neural network is generally characterized by two main parameters: (1) its architecture, and (2) the weights applied to the inputs transmitted between neurons. Typically, the architecture is designed manually or by hand by a user, while the weights are optimized by training the network using a training set and a neural network algorithm. Thus, to optimize the performance of a neural network, the architecture design is an important consideration, especially since the network is generally static at the time it is deployed for use. Figure 1 shows an example of a related art neural network architecture.
[0003] 1, an exemplary neural network architecture of the related art is defined by its connections, layer types (or operations), number of layers, and number of channels in each layer. Layer types include, for example, convolutional layers (in the case of a convolutional neural network (CNN)), activation layers (e.g., rectified linear units (ReLU)), pooling layers, fully connected layers, batch normalization layers, dropout layers, etc. The architecture design of the network is embodied by a combination of layers corresponding to at least some of these layer types.
[0004] In the related art, Neural Architecture Search (NAS) is a technique for automatically designing the architecture of neural networks. Prior art methods for performing NAS include sampling methods and gradient-based search methods.
[0005] Fig. 2 is a functional block diagram of a sampling method according to the prior art. Referring to Fig. 2, the sampling method is an iterative process in which a controller generates sample architecture candidates (e.g., from a search space of a set of layers). The sample architectures are optimized through training and evaluated to obtain metric values (accuracy, latency, model size, etc.). The controller then generates the next sample architecture candidate using methods such as reinforcement learning, Bayesian optimization, or evolutionary algorithms based on the evaluation results of the previous sample. This process is repeated until a target performance is reached (e.g., a target accuracy, latency, mode size, etc. is obtained).
[0006] Figure 3 shows a gradient-based search method according to the related art, Figure 4 shows an exemplary superblock of the gradient-based search method, and Figure 5 shows an exemplary flow of the gradient-based search method.
[0007] Unlike the sampling method, the gradient-based search does not sample architectures, but uses a supernet, which is a network of all candidate network architectures. Referring to FIG. 3, the gradient-based search searches neural network architectures through a single training process of multiple connected superblocks, where each superblock corresponds to one layer (and / or one set of layers) and includes many choices of candidate layers (and / or sets of layers). For example, choice 1 is 3×3 CNN, choice 2 is 5×5 CNN, choice 3 is max pooling or residual block, etc. In the gradient-based search, the best layer is searched and selected within each superblock. As shown in FIG. 4 and FIG. 5, each candidate has a θ value (or architecture parameter), and the θ value is updated through the training process. That is, if a candidate is determined to have a large contribution to reducing the loss, its θ value (representing the importance of the candidate layer) is increased by backpropagation, and vice versa. After the architecture parameter θ is updated in the gradient search iterations, the weight parameters are updated using training images (e.g., images of cars). This process is repeated until the network reaches a certain level of stability (i.e., until the latency or loss is reached) or a predetermined number of iterations are completed. Once training is complete, the best layer (i.e., the layer with the highest θ value) is selected for each superblock to generate the final (optimal) network architecture.
[0008] Although the sampling method shown in Fig. 2 is flexible in terms of network structure (i.e., in terms of layer type, number of channels, number of layers, macro-architecture, etc.) and provides a trained model with known performance (i.e., no need for reconstruction), the process is very time-consuming due to its iterative nature and sensitive to the initial conditions (i.e., initial sample architecture). That is, if the initial seed or sample architecture is suboptimal or insufficient, more iterations (mutations) and time will be required to finally obtain the optimal architecture.
[0009] On the other hand, gradient search requires much less time than sampling methods, by being able to provide a reasonably good model in a single process. However, gradient search has some constraints on the network structure. That is, unlike sampling methods, which are very flexible in terms of architectural blocks (layer type, number of layers, number of channels, etc.), gradient search is limited to predefined supernets. Furthermore, gradient search consumes a large amount of memory due to the number of candidate blocks propagated across multiple superblocks, thereby limiting the size of the search space (i.e., supernet). That is, the larger the search space, the larger the number of candidate blocks, and the larger the amount of memory to perform the gradient search. Thus, the search space of gradient search is limited by the availability of hardware (memory) resources.
[0010] Therefore, there is a need for a more optimized method of NAS that can reduce the overall resource consumption while still being able to obtain an optimal architecture in a relatively short period of time. Summary of the Invention
[0011] According to embodiments, a method, system, and apparatus are provided for performing an optimized neural architecture search (NAS) by using both gradient-based searches and sampling methods in the search space. In particular, multiple gradient-based searches are performed on multiple subspaces. Makami The gradient-based search is performed at a first iteration, thereby distributing the hardware requirements for the gradient-based search while allowing for the expansion of supernets. Furthermore, by utilizing the gradient-based search in the first stage, the initial seeds of the sampling method are optimized, thereby speeding up the search and reducing the time required to find the optimal neural network architecture. Furthermore, by following the gradient-based search with the sampling method, an unbounded (or bounded) search space can be used to build the optimal architecture, thereby increasing the flexibility of the neural network structure.
[0012] According to one embodiment, a method for performing a neural architecture search (NAS) is provided, the method includes obtaining a first search space including a plurality of candidate layers for a neural network architecture, performing a gradient-based search in the first search space to obtain a first architecture, performing a sampling method search using the first architecture as an initial sample, and obtaining a second architecture as an output of the sampling method search.
[0013] The step of obtaining a first search space includes obtaining a plurality of subspaces that include the first search space, each of the plurality of subspaces including a set of candidate layers, and the step of performing a gradient-based search includes performing a plurality of gradient-based searches in the plurality of subspaces, respectively, to obtain a plurality of first architectures.
[0014] The step of performing a sampling method search includes performing a sampling method search utilizing the plurality of first architectures as initial seeds.
[0015] The sampling method search includes an evolutionary search algorithm.
[0016] Evolutionary search algorithms utilize a search space that is the union of multiple subspaces.
[0017] The evolutionary search algorithm is repeated for a number of iterations.
[0018] The number of iterations is based on a predetermined threshold.
[0019] According to an embodiment, an apparatus for performing neural architecture search (NAS) is provided, the apparatus including at least one memory storing computer-executable instructions and at least one processor, the at least one processor being configured to execute the computer-executable instructions to obtain a first search space including a plurality of candidate layers for a neural network architecture, perform a gradient-based search in the first search space to obtain a first architecture, perform a sampling method search utilizing the first architecture as an initial sample, and obtain a second architecture as an output of the sampling method search.
[0020] The at least one processor is further configured to execute the computer-executable instructions to obtain a first search space by obtaining a plurality of subspaces comprising the first search space, each of the plurality of subspaces including a set of candidate layers, and the at least one processor is further configured to execute the computer-executable instructions to perform a gradient-based search by performing a plurality of gradient-based searches in the plurality of subspaces respectively to obtain a plurality of first architectures.
[0021] The at least one processor is further configured to execute computer-executable instructions to perform a sampling method search by utilizing the plurality of first architectures as initial seeds to perform a sampling method search.
[0022] Additional aspects will be set forth in part in the description that follows, and in part will be apparent from the description, or may be realized by practice of the embodiments presented in this disclosure. [Brief description of the drawings]
[0023] [Figure 1] FIG. 1 illustrates an exemplary neural network architecture according to the related art. [Diagram 2] FIG. 2 shows a functional block diagram of a sampling method according to the related art. [Diagram 3] FIG. 3 shows a functional block diagram of a gradient-based search method according to the related art. [Figure 4] FIG. 4 illustrates an exemplary superblock of a gradient-based search method according to the related art. [Diagram 5] FIG. 5 shows a flow diagram of a gradient-based search method according to the related art. [Figure 6] FIG. 6 illustrates a functional block diagram of a neural architecture search (NAS) process, according to one or more embodiments. [Figure 7] FIG. 7 illustrates a flow diagram of an exemplary method for performing an optimized NAS process according to one or more embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0024] The features, advantages and importance of exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which like reference numerals refer to like elements, and in which:
[0025] The following detailed description of exemplary embodiments refers to the accompanying drawings. The foregoing disclosure provides illustration and description, but is not intended to be exhaustive or to limit the implementations to the precise form disclosed. Modifications and variations are possible in light of the above disclosure or may be acquired from practice of the implementations. Moreover, one or more features or components of one embodiment may be incorporated or combined with another embodiment (or one or more features of another embodiment). Furthermore, in the flowcharts and descriptions of operations provided below, it is understood that one or more operations may be omitted, one or more operations may be added, one or more operations may be performed simultaneously (at least in part), and the order of one or more operations may be switched.
[0026] It will be apparent that the systems and / or methods described herein may be implemented in different forms of hardware, firmware, or a combination of hardware and software. The actual specialized control hardware or software code used to implement such systems and / or methods is not intended to limit the implementation. Thus, the operation and behavior of the systems and / or methods have been described herein without reference to any specific software code. It will be understood that software and hardware may be designed to implement the systems and / or methods based on the description herein.
[0027] Although particular combinations of features may be recited in the claims and / or disclosed in the specification, such combinations are not intended to limit the disclosure of possible implementations. Indeed, many of such features may be combined in ways not specifically recited in the claims and / or disclosed in the specification. Although each dependent claim listed below may depend directly on only one claim, the disclosure of possible implementations includes each dependent claim in combination with every other claim in the group.
[0028] No element, act, or instruction used herein should be construed as critical or required unless expressly stated otherwise. Additionally, as used herein, the articles "a" and "an" are intended to include one or more items and may be used interchangeably with "one or more." When only one item is intended, the term "a" or similar terms are used. Additionally, as used herein, terms such as "have," "having," "includes," "including," and the like are intended to be open-ended terms. Additionally, the phrase "based on" is intended to mean "based at least in part on," unless expressly stated otherwise. Additionally, phrases such as "at least one of [A] and [B]," or "at least one of [A] or [B]" should be understood as including only A, only B, or both A and B.
[0029] References throughout this specification to "one embodiment," "one embodiment," "non-limiting exemplary embodiment," or similar terms mean that a particular feature, structure, or characteristic described in connection with the illustrated embodiment is included in at least one embodiment of the solution. Thus, all appearances of the phrases "in one embodiment," "in one embodiment," "in one non-limiting exemplary embodiment," and similar phrases throughout this specification may, but do not necessarily, refer to the same embodiment.
[0030] Furthermore, the features, advantages, and characteristics described in the present disclosure may be combined in any suitable manner in one or more embodiments. Those skilled in the art will recognize, upon consideration of the description herein, that the present disclosure can be practiced without one or more of the specific features or advantages of a particular embodiment. In other instances, additional features and advantages may be recognized in a particular embodiment that may not be present in any embodiment of the present disclosure.
[0031] Exemplary embodiments of the present disclosure provide a method and system for performing an optimized neural architecture search (NAS) using both gradient-based search and sampling methods on a search space. According to exemplary embodiments, multiple gradient-based searches are performed on multiple subspaces, thereby distributing the hardware requirements for the gradient-based search while allowing the supernet to scale. Furthermore, by utilizing gradient-based search in the first stage, the initial seeds for the sampling method are optimized, thereby speeding up the search and reducing the time required to find an optimal neural network architecture. In addition, by following the gradient-based search with the sampling method, an unbounded (or bounded) search space can be used to build the optimal architecture, thereby improving the flexibility of the network structure.
[0032] FIG. 6 illustrates a functional block diagram of a neural architecture search (NAS) process. Referring to FIG. 6, an optimized NAS according to an exemplary embodiment first performs multiple gradient-based searches on multiple subspaces (i.e., subspaces of a supernet) independently. As shown in FIG. 6, a gradient-based search 600-1 is performed in subspace 1, a gradient-based search 600-2 is performed in subspace 2, and a gradient-based search 600-N is performed in subspace N, where N is any number of subspaces. The multiple subspaces (subspace 1, subspace 2, ... subspace N) include different sets of candidate blocks. It should be understood that the different sets used for the subspaces may or may not include overlap between them.
[0033] Multiple gradient-based searches output multiple optimization architectures, i.e., each gradient-based search outputs one optimization architecture. With reference to Figure 6, performing gradient-based search 600-1 in subspace 1 results in optimization architecture 610-1 for subspace 1, similarly performing gradient-based search 600-2 in subspace 2 results in optimization architecture 610-2 for subspace 2, and performing gradient-based search 600-N in subspace N results in optimization architecture 610-N for subspace N.
[0034] According to various embodiments, multiple gradient-based searches are performed in parallel (e.g., using different hardware infrastructures or resources (nodes, clusters, servers, data centers, etc.)), sequentially, or with some time overlap between them. Supernets and subspaces are initialized or configured manually, or using a predefined search space (supernet) that is divided into subspaces according to a predetermined algorithm or policy, or randomly.
[0035] The multiple optimization architectures (610-1, 610-2, . . . 610-N) are used as an initial set of candidate architectures for a space-wide sampling method 620. According to one embodiment, the multiple optimization architectures are used as initial seeds for the evolutionary search. do. Nevertheless, it should be noted that the search space used in the evolutionary search may be the union of all the search subspaces used in the gradient search, or it may be a larger space that includes subspaces outside the gradient search.
[0036] The evolutionary search is performed iteratively and involves using performance metrics or fitness / validation scores to obtain an optimized architecture 630 in the entire space. According to one embodiment, in each iteration of the evolutionary search, a candidate architecture is mutated (e.g., changing a 5x5 convolutional layer to a 3x3 convolutional layer) utilizing the entire search space (e.g., any possible layer, layer type, number of channels, number of layers), trained (e.g., for several epochs), and evaluated. The lowest scoring architecture in the candidate pool is then replaced with a new (mutated) architecture that is determined to perform better. This is done until a predetermined number of iterations are performed or some predetermined threshold (e.g., a predetermined optimal performance) is reached and the entire space is optimized. The best in This is repeated over several iterations until an optimized architecture 630 is output. Nevertheless, it should be understood that several possible criteria can be used as a threshold for selecting the optimized architecture 630. The simplest method would be to select the highest scoring architecture, but if multiple metrics (e.g., accuracy and latency (runtime speed)) are considered, one exemplary process would be to output all architectures in the Pareto front set. Another possible method would be to use crossover during the evolutionary search process. In particular, a low scoring architecture can be replaced by the crossover of two high scoring architectures.
[0037] Although the embodiment described above utilizes evolutionary search, it is understood that one or more other embodiments are not limited to evolutionary search. In other embodiments, other sampling methods or algorithms (e.g., reinforcement learning) may be utilized. Furthermore, a single search space may be selected from multiple optimization architectures output by gradient search as an initial seed for the sampling method. For example, the search space with the highest evaluation of validation score (or the highest specific metric such as latency, model size, etc.) is selected, or a search space is randomly selected from multiple optimization architectures output by gradient search.
[0038] Further, it will be appreciated that while the present embodiment described above performs multiple gradient searches in multiple subspaces, one or more other embodiments are not so limited. For example, according to another embodiment, a single gradient-based search may be performed on a subspace or supernet, the output of which may be used as an initial seed for implementing the sampling method.
[0039] 7 illustrates a flow diagram of an example method 700 for performing an optimization NAS process. Referring to FIG. 7, in operation S710, a first search space having candidate layers for a neural network architecture is obtained. According to one embodiment, obtaining the first search space includes obtaining a plurality of subspaces (i.e., subspaces 1, 2, ... N described above with reference to FIG. 6), each subspace including a set of candidate layers.
[0040] In operation S720, a gradient-based search is performed in the first search space obtained in operation S710 to output a first architecture. It should be appreciated that in some embodiments, multiple gradient-based searches are performed to output multiple architectures, similar to the gradient-based searches 600-1, 600-2, ... 600-N described above with reference to FIG. 6 to output multiple architectures 610-1, 610-2, ... 610-N.
[0041] In operation S730, a sampling method is performed by utilizing the first architecture output in operation S720 as an initial sample. According to one embodiment, the sampling method is similar to the above sampling method 620 described with reference to FIG. 6. According to one embodiment, the sampling method is an evolutionary search algorithm. The evolutionary search algorithm may utilize a search space that is a union of multiple subspaces. The evolutionary search algorithm is repeated for a number of iterations, where the number of iterations is based on a predefined threshold.
[0042] In operation S740, a second architecture is output as a result of the sampling method performed in operation S730. The second architecture is similar to architecture 630 described above with reference to Figure 6. It should also be appreciated that although this embodiment describes outputting a second architecture, in some embodiments multiple architectures may be output.
[0043] In view of the above, exemplary embodiments of the present disclosure provide a method and system for performing an optimized neural architecture search (NAS) by using both gradient-based search and sampling methods in the search space. According to exemplary embodiments, multiple gradient-based searches are performed on multiple subspaces, thereby distributing the hardware requirements for the gradient-based search while allowing the supernet to be expanded. Furthermore, by utilizing gradient-based search in the first stage, the initial seed of the sampling method is optimized, thereby speeding up the search and reducing the time required to find the optimal neural network architecture. In addition, by following the gradient-based search with the sampling method, an unbounded (or bounded) search space can be used to build the optimal architecture, thereby improving the flexibility of the network structure.
[0044] It is understood that the particular order or hierarchy of blocks within the processes / flowcharts disclosed herein is representative of example approaches. It is understood that the particular order or hierarchy of blocks within the processes / flowcharts may be rearranged based on design preferences. Also, some blocks may be combined or omitted. The accompanying method claims present elements of the various blocks in a sample order, and are not meant to be limited to the particular order or hierarchy presented.
[0045] Some embodiments relate to systems, methods and / or computer-readable media at any level of technical detail where integration is possible. Furthermore, one or more of the above-mentioned components may be implemented as instructions stored on a computer-readable medium and executable by at least one processor (and / or may include at least one processor). The computer-readable medium includes a non-transitory computer-readable storage medium(s) having computer-readable program instructions for causing a processor to perform operations.
[0046] A computer-readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device. A computer-readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. A non-exhaustive list of more specific examples of computer-readable storage media includes portable computer diskettes, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), static random access memories (SRAMs), portable compact disk read-only memories (CD-ROMs), digital versatile disks (DVDs), memory sticks, floppy disks, mechanically encoded devices such as punch cards or ridge-in-groove structures having instructions stored thereon, and any suitable combination thereof. A computer-readable storage medium, as used herein, should not be construed as being a transitory signal itself, such as an electric signal transmitted over a wire, such as an electric wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse passing through a fiber optic cable), or an electric signal transmitted over a wire.
[0047] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium into each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing / processing device.
[0048] The computer readable program code / instructions for performing the operations are either assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or source or object code written in any combination of one or more programming languages including object oriented programming languages such as Smalltalk, C++, and procedural programming languages such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partially on the user's computer as a stand-alone software package, partially on the user's computer, partially on a remote computer, or entirely on a remote computer or server. In the situation of execution on a remote computer or server, the remote computer may be connected to the user's computer via any type of network including a local area network (LAN) or wide area network (WAN), or connected to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may execute computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry to perform an aspect or operation.
[0049] These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, executed by the processor of the computer or other programmable data processing apparatus, generate means for performing the function / acts specified in the block or blocks of the flowcharts and / or block diagrams. These computer readable program instructions may be stored in a computer readable storage medium capable of directing a computer, programmable data processing apparatus, and / or other apparatus to function in a particular manner, such that the computer readable storage medium having stored thereon includes an article of manufacture including instructions implementing an aspect of the function / acts specified in the block or blocks of the flowcharts and / or block diagrams.
[0050] The computer readable program instructions may be loaded into a computer, other programmable data processing apparatus, or another device and cause the computer, other programmable apparatus, or other device to execute a series of operational steps to generate a computer-implemented process, such that the instructions executing on the computer, other programmable apparatus, or other device perform the function / act specified in the block or blocks of the flowcharts and / or block diagrams.
[0051] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer-readable media according to various embodiments. In this regard, each block in the flowcharts or block diagrams represents a module, segment, or part of instructions that includes one or more executable instructions for implementing the specified logical function. The methods, computer systems, and computer-readable media may include additional, fewer, different, or differently arranged blocks than those shown in the figures. In some alternative implementations, the functions shown in the blocks may be performed in an order different from that shown in the figures. For example, two blocks shown in succession may in fact be performed simultaneously, nearly simultaneously, or in the reverse order depending on the functionality involved. In addition, it should be noted that each block of the block diagrams and / or flowchart diagrams, and combinations of blocks in the block diagrams and / or flowchart diagrams, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or each block and combination of blocks may implement a combination of dedicated hardware and computer instructions.
[0052] It will be apparent that the systems and / or methods described herein may be implemented in different forms of hardware, firmware, or a combination of hardware and software. The actual specialized control hardware or software code used to implement such systems and / or methods is not intended to limit the implementation. Thus, although the operation and behavior of the systems and / or methods are described herein without reference to specific software code, it will be understood that software and hardware may be designed to implement the systems and / or methods based on the description herein.
Claims
1. A method for performing neural architecture search (NAS) by a processor, comprising: obtaining a first search space including a plurality of candidate layers for a neural network architecture; performing a gradient based search in the first search space to obtain a first architecture; performing a sampling method search using the first architecture as an initial sample; obtaining a second architecture as an output of the sampling methodology exploration; A method comprising:
2. 2. The method of claim 1 , wherein obtaining the first search space comprises obtaining a plurality of subspaces that contain the first search space, each of the plurality of subspaces comprising a set of candidate layers, and performing the gradient-based search comprises performing a plurality of gradient-based searches in the plurality of subspaces respectively to obtain a plurality of first architectures.
3. The method of claim 2 , wherein performing the sampling method search comprises performing the sampling method search using the plurality of first architectures as initial seeds.
4. The method of claim 3 , wherein the sampling method search comprises an evolutionary search algorithm.
5. The method of claim 4 , wherein the evolutionary search algorithm utilizes a search space that is a union of the subspaces.
6. The method of claim 4 or 5, wherein the evolutionary search algorithm is repeated for multiple iterations.
7. The method of claim 6 , wherein the number of iterations is based on a predetermined threshold.
8. 1. An apparatus for performing neural architecture search (NAS), comprising: at least one memory storing computer executable instructions; At least one processor Equipped with The at least one processor executes the computer-executable instructions to: Obtaining a first search space including a plurality of candidate layers for a neural network architecture; performing a gradient-based search in the first search space to obtain a first architecture; performing a sampling method search using the first architecture as an initial sample; The apparatus is configured to obtain a second architecture as an output of the sampling methodology exploration.
9. The at least one processor is further configured to execute the computer-executable instructions to obtain the first search space by obtaining a plurality of subspaces that include the first search space, each of the plurality of subspaces including a set of candidate strata; 10. The apparatus of claim 8, wherein the at least one processor is further configured to execute the computer-executable instructions to perform the gradient-based search by performing a plurality of gradient-based searches in the plurality of subspaces respectively to obtain a plurality of first architectures.
10. 10. The apparatus of claim 9, wherein the at least one processor is further configured to execute the computer-executable instructions to perform the sampling method search by utilizing the plurality of first architectures as initial seeds to perform the sampling method search.
11. The apparatus of claim 10 , wherein the sampling method search comprises an evolutionary search algorithm.
12. The apparatus of claim 11 , wherein the evolutionary search algorithm utilizes a search space that is a union of the subspaces.
13. The apparatus of claim 11 or 12, wherein the evolutionary search algorithm is repeated over multiple iterations.
14. The apparatus of claim 13 , wherein the number of iterations is based on a predetermined threshold.
15. A non-transitory computer-readable recording medium having instructions executable by at least one processor, comprising: The instructions cause the at least one processor to: obtaining a first search space including a plurality of candidate layers for a neural network architecture; performing a gradient based search in the first search space to obtain a first architecture; performing a sampling method search using the first architecture as an initial sample; and obtaining a second architecture as an output of the sampling methodology exploration.
16. 16. The non-transitory computer-readable storage medium of claim 15, wherein obtaining the first search space comprises obtaining a plurality of subspaces that contain the first search space, each of the plurality of subspaces comprising a set of candidate layers, and performing the gradient-based search comprises performing a plurality of gradient-based searches in the plurality of subspaces respectively to obtain a plurality of first architectures.
17. 20. The method of claim 16, wherein performing the sampling method search comprises performing the sampling method search using the plurality of first architectures as initial seeds.
18. The non-transitory computer-readable storage medium of claim 17 , wherein the sampling method search comprises an evolutionary search algorithm.
19. 20. The non-transitory computer-readable medium of claim 18, wherein the evolutionary search algorithm utilizes a search space that is a union of the subspaces.
20. 20. The non-transitory computer-readable storage medium of claim 18 or 19, wherein the evolutionary search algorithm is repeated over multiple iterations.
Citation Information
Patent Citations
Artificial neural network and computational accelerator structure co-exploration apparatus and method
US20230077987A1
