System and method for optimized neural architecture search
By performing multiple gradient-based searches on multiple subspaces and using their outputs as deletion seeds for the sampling method, the time-consuming problem in existing NAS methods is solved, and the optimal neural network architecture is quickly found and improved. The flexibility of the network structure.
Patent Information
- Application Number
- CN202410100910.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-24
- Filing Date
- 2024-01-24
- Publication Date
- 2024-09-24
AI Technical Summary
Among existing neural architecture search (NAS) methods, the sampling method is time-consuming and resource-intensive, while gradient-based search is limited by memory, making it difficult to obtain the optimal architecture in a short time.
Perform multiple gradient-based searches on multiple subspaces, use their output as the initial seed of the sampling method, and build an optimal architecture in an unlimited search space through an evolutionary search algorithm to improve the flexibility of the network structure and search speed.
It shortens the time to discover the optimal neural network architecture, reduces resource consumption, and improves the flexibility of the network structure and search efficiency.
Smart Images

Figure CN118690785A
Abstract
Description
Technical Field
[0001] Systems and methods matching exemplary embodiments of the present disclosure relate to neural networks, and more particularly, to systems and methods for performing neural architecture search (NAS). Background Art
[0002] In the related art, neural networks are generally characterized by two main parameters: (1) the architecture of the neural network, and (2) the weights applied to the inputs passed between neurons. Typically, the architecture is designed manually by the user or through manual work, but the weights are optimized by training the network using a training set and a neural network algorithm. Therefore, in order to optimize the performance of the neural network, the architectural design is an important consideration, especially at the point in time when the network is deployed for use, which is roughly static. Figure 1 An example of a neural network architecture representing related art.
[0003] Reference Figure 1 , an exemplary neural network architecture of the related art is defined by its connections, layer types (or actions), number of layers, and number of channels of each layer. Layer types include, for example, convolutional layers (in the case of convolutional neural networks (CNNs)), activation layers (such as rectified linear units (ReLUs)), pooling layers, fully connected layers, batch normalization layers, dropout layers, etc. The architectural 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 a neural network. Prior art methods for performing NAS include sampling methods and gradient-based search methods.
[0005] Figure 2 is a functional block diagram of a sampling method in the prior art. Figure 2 The sampling method is an iterative process in which the controller generates sample architecture candidates (e.g., from a search space of a set of layers). The sample architecture is optimized through training and evaluated to obtain metrics (accuracy, latency, model size, etc.). Next, the controller generates the next sample architecture candidate based on the evaluation results of the previous sample using methods such as reinforcement learning, Bayesian optimization, or evolutionary algorithms. This process is repeated until the target performance is achieved (e.g., until the target accuracy, latency, model size, etc. is achieved).
[0006] Figure 3 Represents a gradient-based search method of related art. Figure 4 An exemplary superblock representing a gradient-based search method, Figure 5 An exemplary process flow of a gradient-based search method is shown.
[0007] Unlike sampling methods, in gradient-based search, architectures are not sampled, but a super-network of networks that are all candidate network architectures is used. Figure 3 In gradient-based search, neural network architectures are searched through a single training process of multiple connected superblocks, each superblock corresponding to 1 layer (and / or 1 group of layers), including many choices of candidate layers (and / or groups of layers). For example, choice 1 is 3×3CNN, choice 2 is 5×5CNN, choice 3 is max pooling or residual block, etc. In gradient-based search, the best layer is searched and selected within each superblock. Figure 4 and Figure 5 As shown, each candidate has a θ value (or architecture parameter), and the θ value is updated through the training process. That is, when it is determined that the candidate contributes more to the reduction of loss, its θ value (indicating the importance of the candidate layer) increases through back propagation, and there is also a reverse situation. After the architecture parameter θ is updated by repeating the gradient search, the weight parameter is updated using the training image (for example, an image of a car). This process is repeated until the stability of the network reaches a certain level (that is, the delay or loss reaches a certain level) or the predetermined number of iterations is completed. At the time point when the training is completed, in order to generate the final (optimal) network architecture, the optimal layer (that is, the layer with the highest θ value) is selected for each super block.
[0008] Figure 2 The sampling method shown is flexible with respect to the network structure (i.e., with respect to layer type, number of channels, number of layers, macro-architecture, etc.), providing trained models with known performance (i.e., no reconstruction is required), but the process is extremely time-consuming due to its iterative nature and is affected by the initial state (i.e., the initial sample architecture). That is, in the case where the initial seed or sample architecture is quasi-optimal or insufficient, more iterations (mutations) and time are required to finally obtain the optimal architecture.
[0009] On the other hand, gradient search can provide a moderately good model in one pass, and thus, the time required is much shorter than that of sampling methods. However, in gradient search, there are some constraints on the network structure. That is, unlike the sampling method, which is very flexible in terms of the architecture block (layer type, number of layers, number of channels, etc.), gradient search is limited by a predefined super network. Furthermore, gradient search consumes a large amount of memory depending on the number of candidate blocks propagated among multiple super blocks, thus limiting the size of the search space (i.e., super network). That is, the larger the search space, the greater the number of candidate blocks, and the greater the amount of memory used to perform the gradient search. Therefore, the search space of the gradient search is limited according to the availability of hardware (memory) resources.
[0010] Therefore, there is a need for a further optimization method of NAS that can obtain the optimal architecture in a relatively short period of time and reduce the overall resource consumption. Summary of the invention
[0011] According to an embodiment, a method, system, and apparatus are provided for performing an optimized neural network architecture search (NAS) by using both a gradient-based search and a sampling method in a search space. In particular, multiple gradient-based searches are performed on multiple subspaces, thereby enabling the expansion of a supernetwork and dispersing the hardware requirements for the gradient-based search. Furthermore, by utilizing a gradient-based search in the first stage, the initial seed of the sampling method is optimized, thereby speeding up the search and shortening the time required to find the optimal neural network architecture. In addition, by following a gradient-based search utilizing a sampling method, an unrestricted (or partitioned) search space can be used to construct an optimal architecture, thereby increasing the flexibility of the neural network structure.
[0012] According to one embodiment, a method for performing neural architecture search (NAS) is provided. The method comprises the following steps: 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 the first search space includes: obtaining multiple subspaces including the first search space, the multiple subspaces respectively including a set of candidate layers, and the step of performing gradient-based search includes: performing multiple gradient-based searches in the multiple subspaces respectively to obtain multiple first architectures.
[0014] The step of performing a sampling method search includes: performing a sampling method search using a plurality of first frameworks as initial seeds.
[0015] Sampling method searches include evolutionary search algorithms.
[0016] Evolutionary search algorithms utilize a search space that is a union of multiple subspaces.
[0017] The evolutionary search algorithm is repeated in multiple iterations.
[0018] The number of iterations is based on a predetermined threshold.
[0019] According to an embodiment, a device for performing neural architecture search (NAS) is provided. The device includes: at least one memory storing computer executable instructions; and at least one processor, wherein the at least one processor is configured to: execute the computer executable instructions, 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 using the first architecture as an initial sample, and obtain a second architecture as an output of the sampling method search.
[0020] At least one processor is also configured to execute computer-executable instructions, and the first search space is obtained by obtaining multiple subspaces including the first search space, and the multiple subspaces respectively include a set of candidate layers. At least one processor is also configured to execute computer-executable instructions, and multiple first architectures are obtained by respectively performing multiple gradient-based searches in the multiple subspaces, thereby performing a gradient-based search.
[0021] The at least one processor is further configured to execute computer executable instructions to perform a sampling method search by performing the sampling method search using the plurality of first architectures as initial seeds.
[0022] Regarding the additional aspects, some are described in the following description, and some are clear from the description or can be realized by practicing the embodiments suggested by the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 An exemplary neural network architecture representing the related art.
[0024] Figure 2 A functional block diagram showing a related art sampling method.
[0025] Figure 3 A functional block diagram showing a related art gradient-based search method.
[0026] Figure 4 An illustrative superblock representing a related art gradient-based search method.
[0027] Figure 5 A flow chart showing a related art gradient-based search method.
[0028] Figure 6 A functional block diagram representing a neural architecture search (NAS) process in accordance with one or more embodiments.
[0029] Figure 7 A flow chart illustrating an exemplary method for performing an optimized NAS process in accordance with one or more embodiments. DETAILED DESCRIPTION
[0030] Hereinafter, the features, advantages and significance of the exemplary embodiments of the present disclosure will be described with reference to the attached drawings. In the drawings, like reference numerals represent like elements.
[0031] The following detailed description of the exemplary embodiments refers to the attached drawings. The foregoing disclosure provides illustrations and descriptions, but is not intended to be comprehensive or to limit the implementation examples to the exact manner disclosed. Modifications and changes can be made with reference to the above disclosure, or modifications and changes can be drawn from the practice of the implementation examples. Furthermore, one or more features or components of one embodiment can be incorporated into other embodiments (or one or more features of other embodiments), or they can be combined. Furthermore, it should be understood that in the flowcharts and descriptions of the actions provided below, one or more actions can be omitted, one or more actions can be added, one or more actions can be implemented simultaneously (at least partially), and the order of one or more actions can be switched.
[0032] Obviously, the systems and / or methods described in this specification can be implemented by different forms of hardware, firmware, or a combination of hardware and software. The actual special control hardware or software code used to implement such systems and / or methods does not limit the implementation examples. Therefore, the actions and behaviors of the systems and / or methods are described in this specification without reference to specific software codes. It should be understood that the software and hardware can be designed in a manner that implements the systems and / or methods based on the description of this specification.
[0033] Even if a specific combination of features is recorded in the claims and / or disclosed in the specification, such combination is not intended to limit the disclosure of possible implementation examples. In fact, most of these features can also be combined using methods not specifically recorded in the claims and / or methods not disclosed in the specification. The dependent claims listed below sometimes directly depend on only one claim, but in the disclosure of possible implementation examples, each dependent claim in combination with all other claims in the claim group is included.
[0034] Unless otherwise expressly stated, no element, action, or instruction used in this specification should be construed as essential or necessary. In addition, when used in this specification, the articles "a" and "an" are intended to include one or more items and can be used interchangeably with "one or more". Figure 1When referring to items, the term "1" or similar terms is used. In addition, when used in this specification, the terms "have", "have", "include", "include" and the like are intended to be open-ended terms. Furthermore, unless otherwise expressly stated, a phrase such as "based on" is intended to mean "based at least in part on". Furthermore, expressions such as "at least one of [A] and [B]" or "at least one of [A] or [B]" should be understood to include only A, only B, or both A and B.
[0035] References throughout this specification to "one embodiment," "an embodiment," "a non-limiting exemplary embodiment," or similar terms mean that the specific features, structures, or characteristics described in connection with the illustrated embodiment are included in at least one embodiment of the present solution. Therefore, phrases such as "in one embodiment," "in an embodiment," "in a non-limiting exemplary embodiment," and similar expressions throughout this specification do not necessarily refer to the same embodiment, but may sometimes refer to the same embodiment.
[0036] Furthermore, the features, advantages, and characteristics described in the present disclosure may also be combined in any appropriate manner in one or more embodiments. As long as a person skilled in the art considers the description of this specification, it will be recognized that the present disclosure can be implemented even without the specific features or advantages of one or more specific embodiments. In other examples, additional features and advantages that may not exist in any embodiment of the present disclosure are sometimes recognized in a specific embodiment.
[0037] In an exemplary embodiment of the present disclosure, a method and system for performing an optimized neural network architecture search (NAS) using both a gradient-based search and a sampling method on a search space is provided. According to the exemplary embodiment, multiple gradient-based searches are performed on multiple subspaces, thereby enabling the expansion of the supernetwork and dispersing the hardware requirements for the gradient-based search. Furthermore, by utilizing a gradient-based search in the first stage, the initial seed for the sampling method is optimized, thereby speeding up the search and shortening the time required to find the optimal neural network architecture. In addition, by following a gradient-based search using a sampling method, an unrestricted (or partitioned) search space can be used to construct the optimal architecture, thereby increasing the flexibility of the network structure.
[0038] Figure 6 Functional block diagram showing the Neural Architecture Search (NAS) process. Figure 6 , the optimized NAS based on the exemplary embodiment first independently performs multiple gradient-based searches on multiple subspaces (i.e., subspaces of the supernetwork). Figure 6As shown, 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. Here, N is an arbitrary number of subspaces. Multiple subspaces (subspace 1, subspace 2, ... subspace N) contain different sets of candidate blocks. It should be understood that different sets for subspaces may or may not include overlaps between them.
[0039] Multiple gradient-based searches output multiple optimal architectures. That is, each gradient-based search outputs one optimal architecture. Figure 6 When a gradient-based search 600-1 is performed in subspace 1, an optimized architecture 610-1 for subspace 1 is obtained; similarly, when a gradient-based search 600-2 is performed in subspace 2, an optimized architecture 610-2 for subspace 2 is obtained; when a gradient-based search 600-N is performed in subspace N, an optimized architecture 610-N for subspace N is obtained.
[0040] According to various embodiments, multiple gradient-based searches (e.g., using different hardware infrastructures or resources (nodes, clusters, servers, data centers, etc.)) are performed in parallel, sequentially, or with some time of repetition in between. Hypernetworks and subspaces are initialized or constructed manually, or according to a predetermined algorithm or strategy or using a predefined search space (hypernetwork) that is randomly partitioned into subspaces.
[0041] Multiple optimized architectures (610-1, 610-2, ... 610-N) are used as an initial set of candidate architectures for the sampling method 620 throughout the entire space. According to one embodiment, multiple optimized architectures are used as initial seeds for evolutionary search. However, it should be noted that the search space used in the evolutionary search may be the union of all search subspaces used in the gradient search, or it may be a larger space including the outer subspaces of the gradient search.
[0042] The evolutionary search is performed iteratively, including using performance metrics or compatibility / validation scores to obtain the optimal architecture 630 in the entire space. According to one embodiment, in each iteration of the evolutionary search, the candidate architecture is mutated (e.g., changing a 5×5 convolutional layer to a 3×3 convolutional layer), trained (e.g., for a number of epochs), and evaluated using the entire search space (e.g., any possible layers, layer types, number of channels, number of layers). Next, the lowest scoring architecture in the candidate pool is replaced with a new (mutated) architecture that is determined to have improved performance. This is repeated for multiple iterations until a predetermined number of iterations are performed, or until some predetermined threshold (e.g., a predetermined optimal performance) is reached and the optimal architecture 630 is output in the entire space. It should be understood that, however, some possible benchmarks can also be used as thresholds for selecting the optimal architecture 630. In the simplest method, the highest scoring architecture is selected, but in an exemplary process, all architectures of the Pareto front set are output when multiple metrics (e.g., accuracy and latency (runtime speed)) are considered. In another possible approach, crossover is used during the evolutionary search process. Specifically, a low-scoring architecture can be replaced by a crossover of two high-scoring architectures.
[0043] The present embodiment described above utilizes evolutionary search, but it should be understood that one or more other embodiments are not limited to evolutionary search. In other embodiments, other sampling methods or algorithms (such as reinforcement learning) may also be used. Furthermore, a single search space may be selected from multiple optimization architectures output by gradient search as the initial seed for the sampling method. For example, the search space with the highest evaluation of the verification score (or the highest specific metric such as delay or model size) is selected, or the search space is randomly selected from multiple optimization architectures output by gradient search.
[0044] Furthermore, the above-described present embodiment performs multiple gradient searches in multiple subspaces, but it should be understood that one or more other embodiments are not limited to this. For example, according to other embodiments, a single gradient-based search may also be performed on a subspace or hypernetwork, and its output may be used as an initial seed for implementing the sampling method.
[0045] Figure 7 A flow chart showing an exemplary method 700 for performing an optimized NAS process. Figure 7 In action 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., referring to Figure 6 The above-mentioned subspaces 1, 2, ... N) are described, each of which includes a set of candidate layers.
[0046] In action S720, in order to output the first architecture, a gradient-based search is performed in the first search space obtained in action S710. It should be understood that in some embodiments, multiple gradient-based searches are performed in order to output multiple architectures. This is similar to referring to the first search space in order to output multiple architectures 610-1, 610-2, ... 610-N. Figure 6 The gradient-based searches 600-1, 600-2, ... 600-N described above are the same.
[0047] In action S730, the sampling method is executed using the first frame output in action S720 as an initial sample. According to one embodiment, the sampling method is similar to the reference Figure 6 The sampling method 620 described above is the same. According to one embodiment, the sampling method is an evolutionary search algorithm. The evolutionary search algorithm can utilize a search space that is a union of multiple subspaces. The evolutionary search algorithm is repeated in multiple iterations, the multiple iterations being based on a predetermined threshold.
[0048] In action S740, a second architecture is output as a result of the sampling method executed in action S730. Figure 6 The above described architecture 630 is the same. In this embodiment, the second architecture is described as being output, but it should be understood that in some embodiments, multiple architectures may be output.
[0049] In view of the above, an exemplary embodiment of the present disclosure provides a method and system for performing an optimized neural network architecture search (NAS) by using both a gradient-based search and a sampling method in a search space. According to the exemplary embodiment, multiple gradient-based searches are performed on multiple subspaces, thereby enabling the expansion of the supernetwork and dispersing the hardware requirements for the gradient-based search. Furthermore, by utilizing a gradient-based search in the first stage, the initial seed of the sampling method is optimized, thereby speeding up the search and shortening the time required to find the optimal neural network architecture. In addition, by following a gradient-based search utilizing a sampling method, an unrestricted (or partitioned) search space can be used to construct the optimal architecture, thereby increasing the flexibility of the network structure.
[0050] It should be understood that the specific order or hierarchy of blocks in the process / flowchart disclosed in this specification represents an exemplary method. It should be understood that the specific order or hierarchy of blocks in the process / flowchart can be reconfigured based on design preferences. In addition, some blocks can be combined or omitted. The attached method claims are presented in a sample order, and are not meant to be limited to the specific order or hierarchy presented.
[0051] Some embodiments are associated with systems, methods, and / or computer-readable media at all possible levels of technical detail. Furthermore, one or more of the above components may also be implemented as instructions stored in a computer-readable medium and executable by at least one processor (and / or may also include at least one processor). The computer-readable medium includes (one or more) non-transitory computer-readable storage media having computer-readable program instructions for causing a processor to perform actions.
[0052] A computer-readable storage medium can be a tangible device capable of holding and storing instructions used by an instruction execution device. A computer-readable storage medium may also be, for example, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any appropriate combination thereof, but is not limited thereto. A non-exhaustive list of more specific examples of computer-readable storage media includes a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a punch card with instructions stored thereon or a mechanically encoded device such as a raised structure in a groove, and any appropriate combination thereof. When used in this specification, a computer-readable storage medium should not be interpreted as an electromagnetic wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating in a waveguide or other transmission medium (e.g., a light pulse through an optical fiber cable), or a volatile signal itself such as an electrical signal sent via a wire.
[0053] The computer-readable program instructions described in this specification can be downloaded from a computer-readable storage medium to 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 fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and transmits the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0054] The computer readable program code / instructions for performing the actions are any of assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or source code or object code described 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 are fully executed on the user's computer, partially executed on the user's computer as a stand-alone software package, partially executed on the user's computer, partially executed on a remote computer, or fully executed on a remote computer or server. When executed on a remote computer or server, the remote computer is connected to the user's computer via any type of network including a local area network (LAN) or a wide area network (WAN), or (for example, via the Internet using an Internet service provider) is connected to an external computer. In some embodiments, for example, an electronic circuit including a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) can execute computer-readable program instructions by personalizing the electronic circuit using state information of the computer-readable program instructions in order to perform an aspect or action.
[0055] These computer-readable program instructions may also be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to manufacture machinery, so that instructions executed by the processor of the computer or other programmable data processing device generate units for implementing the functions / behaviors specified in the blocks or multiple blocks of the flowchart and / or block diagram. These computer-readable program instructions may also be stored in a computer-readable storage medium, which can instruct a computer, a programmable data processing device, and / or other devices to function in a specific manner, so that the computer-readable storage medium with the stored instructions includes a manufactured product containing instructions for implementing the functions / behaviors specified in the blocks or multiple blocks of the flowchart and / or block diagram.
[0056] Computer-readable program instructions may also be loaded into a computer, other programmable data processing device, or other device, to execute a series of action steps for generating a computer-implemented process on the computer, other programmable device, or other device in such a manner that the instructions executed on the computer, other programmable device, or other device implement the functions / behaviors specified in a block or multiple blocks of the flowchart and / or block diagram.
[0057] The flowcharts and block diagrams in the figure represent the architecture, functionality and actions of possible implementation examples of the systems, methods and computer-readable media of various embodiments. With regard to these, each block in the flowchart or block diagram represents a module, segment or part of an instruction including one or more executable instructions for implementing a specified logical function. The method, computer system and computer-readable medium may also include additional blocks, fewer blocks, different blocks or blocks of different configurations in addition to those shown in the drawings. In some alternative implementation examples, the functions shown in the blocks may also be implemented in an order different from the order shown in the drawings. For example, the two blocks shown in succession can actually be implemented simultaneously or approximately simultaneously, and can also be implemented in the opposite order according to the functions involved. In addition, it should be noted that the combination of blocks in the block diagram and / or flowchart and blocks in the block diagram and / or flowchart can be implemented by a dedicated hardware-based system that performs a specified function or action, or the combination of each block and each block can implement a combination of dedicated hardware and computer instructions.
[0058] Obviously, the systems and / or methods described in this specification can be implemented by various forms of hardware, firmware, or a combination of hardware and software. The actual specific control hardware or software code used to implement such systems and / or methods does not limit the implementation examples. Therefore, in this specification, the actions and behaviors of the systems and / or methods are described without reference to specific software code, but it should be understood that the software and hardware can be designed in a manner to implement the systems and / or methods based on the description of this specification.
Claims
1. A method for performing a neural architecture search (NAS), wherein: The method comprises the following steps: 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 A second architecture is obtained as an output of the sampling method search.
2. The method according to claim 1, wherein: The step of obtaining the first search space includes obtaining a plurality of subspaces including the first search space, wherein the plurality of subspaces respectively include a set of candidate layers, and the step of performing the gradient-based search includes performing a plurality of gradient-based searches in the plurality of subspaces respectively to obtain a plurality of first architectures.
3. The method according to claim 2, wherein: The step of performing the sampling method search includes performing the sampling method search using the plurality of first frameworks as initial seeds.
4. The method according to claim 3, wherein: The sampling method search includes an evolutionary search algorithm.
5. The method according to claim 4, wherein: The evolutionary search algorithm utilizes a search space that is a union of the plurality of subspaces.
6. The method according to claim 4 or 5, wherein: The evolutionary search algorithm is repeated in multiple iterations.
7. The method according to claim 6, wherein: The number of iterations is based on a predetermined threshold.
8. An apparatus for performing a neural architecture search (NAS), wherein: The device has: at least one memory storing computer executable instructions; and at least one processor, The at least one processor is configured to: execute the computer executable instructions, 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, A second architecture is obtained as an output of the sampling method search.
9. The device according to claim 8, wherein: 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 including the first search space, wherein the plurality of subspaces respectively include a set of candidate layers; 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 to obtain a plurality of first configurations.
10. The device according to claim 9, wherein: The at least one processor is further configured to execute the computer executable instructions to perform the sampling method search by using the plurality of first architectures as initial seeds.
11. The device according to claim 10, wherein: The sampling method search includes an evolutionary search algorithm.
12. The device according to claim 11, wherein The evolutionary search algorithm utilizes a search space that is a union of the plurality of subspaces.
13. The device according to claim 11 or 12, wherein: The evolutionary search algorithm is repeated in multiple iterations.
14. The device according to claim 13, wherein: The number of iterations is based on a predetermined threshold.
15. A non-transitory computer-readable recording medium having recorded thereon instructions executable by at least one processor, wherein: The instructions cause the at least one processor to perform a method comprising the steps of: 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 A second architecture is obtained as an output of the sampling method search.
16. The non-transitory computer-readable recording medium according to claim 15, wherein: The step of obtaining the first search space includes obtaining a plurality of subspaces including the first search space, wherein the plurality of subspaces respectively include a set of candidate layers, and the step of performing the gradient-based search includes performing a plurality of gradient-based searches in the plurality of subspaces respectively to obtain a plurality of first architectures.
17. The non-transitory computer-readable recording medium according to claim 16, wherein: The step of performing the sampling method search includes performing the sampling method search using the plurality of first frameworks as initial seeds.
18. The non-transitory computer-readable recording medium according to claim 17, wherein: The sampling method search includes an evolutionary search algorithm.
19. The non-transitory computer-readable recording medium according to claim 18, wherein: The evolutionary search algorithm utilizes a search space that is a union of the plurality of subspaces.
20. The non-transitory computer-readable recording medium according to claim 18 or 19, wherein: The evolutionary search algorithm is repeated in multiple iterations.
