System and method for one-step neural architecture search based on selective training
The one-step neural architecture search method solves the problem of high time consumption in the NAS process and improves training efficiency by evaluating the metric values of candidate subnetworks, skipping unnecessary training, and selecting appropriate subnetworks for training.
Patent Information
- Application Number
- CN202410133597.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-24
- Filing Date
- 2024-01-30
- Publication Date
- 2024-09-24
AI Technical Summary
Due to the nature of repeated training during the neural architecture search (NAS) process, it takes a lot of time, especially due to the influence of the initial state. There are unnecessary repeated training and potential adverse effects, resulting in low training efficiency.
The one-shot neural architecture search (one-shot NAS) method is used to select multiple candidate sub-networks in the entire network to evaluate whether their measurement values meet predetermined conditions. If not, unnecessary training is skipped and another sub-network is selected. The network is trained thereby filtering out impossible sub-networks, avoiding redundant training and collapse of shared weights.
It effectively avoids unnecessary repeated training, reduces training time, improves training efficiency, and ensures rapid training phase.
Smart Images

Figure CN118690798A
Abstract
Description
Technical Field
[0001] The apparatus and method according to the exemplary embodiments of the present disclosure relate to neural architecture search (NAS). Background Art
[0002] In general, neural networks are characterized by two main parameters: (1) architecture and (2) weights applied to the inputs sent between neurons. Typically, while the architecture is designed manually or by manual work, 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, especially at the point in time when the network is deployed for use, it is generally static, so architecture design is an important consideration. In related art, neural architecture search (NAS) has emerged as a technology for automatically designing the architecture of a neural network. However, the process is very time-consuming and is affected by the initial state (i.e., the initial sample architecture) due to its iterative nature. Summary of the invention
[0003] According to an implementation method, the system and method implement a certain evaluated and optimized one-step neural architecture search (NAS) during the one-step training phase of the entire network in order to eliminate unnecessary repeated training or repeated training that causes adverse effects (i.e., sub-networks that have adverse effects on the overall training).
[0004] According to one embodiment of the present disclosure, there is provided a method for performing one-step NAS, comprising: a step of obtaining an entire network, the entire network including a plurality of candidate subnetworks for one-step NAS; a step of obtaining a first subnetwork among the plurality of candidate subnetworks from the entire network; a step of obtaining a first metric value of the first subnetwork; a step of determining whether the first metric value satisfies a first predetermined condition; a step of determining that the first subnetwork obtained is not to be trained for one-step NAS based on a determination that the first metric value does not satisfy the first predetermined condition, and a step of obtaining a second subnetwork among the plurality of candidate subnetworks from the entire network; and a step of training the second subnetwork for one-step NAS.
[0005] According to one embodiment of the present disclosure, a system for executing one-step NAS is provided, comprising: at least one memory storing commands; and at least one processor, wherein the at least one processor is configured to execute the commands to obtain an entire network including a plurality of candidate subnetworks for one-step NAS, obtain a first subnetwork among the plurality of candidate subnetworks from the entire network, obtain a first metric value of the first subnetwork, determine whether the first metric value satisfies a first predetermined condition, determine that the first subnetwork obtained is not to be trained for one-step NAS based on the determination that the first metric value does not satisfy the first predetermined condition, obtain a second subnetwork among the plurality of candidate subnetworks from the entire network, and train the second subnetwork for one-step NAS.
[0006] According to one embodiment of the present disclosure, a non-transitory computer-readable storage medium stores instructions, and when the instructions are executed by at least one processor, the at least one processor implements: a step of obtaining an entire network, the entire network including a plurality of candidate subnetworks for one-step NAS; a step of obtaining a first subnetwork among the plurality of candidate subnetworks from the entire network; a step of obtaining a first metric value of the first subnetwork; a step of determining whether the first metric value satisfies a first predetermined condition; a step of determining that the first subnetwork obtained is not to be trained for one-step NAS based on the determination that the first metric value does not satisfy the first predetermined condition, and a step of obtaining a second subnetwork among the plurality of candidate subnetworks from the entire network; and a step of training the second subnetwork for one-step NAS.
[0007] Regarding the additional aspects, some are described in the following description, and some will become clear from the description or can be realized by practicing the embodiments presented in the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 is a diagram of a neural network architecture involved in one embodiment.
[0009] Figure 2 is a diagram of an example of neural architecture search (NAS) performed by one embodiment.
[0010] Figure 3 is a diagram of a single path one step (SPOS) method according to one embodiment.
[0011] Figure 4 FIG. 1 is a diagram of an SPOS sub-network according to an embodiment.
[0012] Figure 5 The present invention is a flowchart of a NAS method according to an embodiment.
[0013] Figure 6 is a diagram of an exemplary environment in which the systems and / or methods described in this specification can be implemented.
[0014] Figure 7 The diagram is a diagram of exemplary components of an apparatus according to one embodiment. DETAILED DESCRIPTION
[0015] 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 symbols represent like elements.
[0016] The following detailed description of exemplary embodiments refers to the accompanying drawings. The same reference numbers in different drawings sometimes identify the same or similar elements.
[0017] The above disclosure is provided as an example of illustration and description, but is not intended to be comprehensive or to limit the embodiments to the correct manner disclosed. Modifications and changes are possible with reference to the above disclosure, or can be obtained from the practice of the embodiments. Furthermore, one or more features or components of one embodiment can also be embedded or combined into other embodiments (or one or more features of other embodiments). Furthermore, in the flowcharts and descriptions of the actions provided below, it should be understood that 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.
[0018] It is apparent that the systems and / or methods described in this specification can be implemented by hardware, firmware, or a combination of hardware and software in different ways. The actual specific control hardware or software code used to implement such systems and / or methods does not limit the embodiments. Therefore, in this specification, the actions and behaviors of the systems and / or methods are described without reference to specific software codes. It should be understood that the software and hardware are designed in a manner that can implement the systems and / or methods according to the description of this specification.
[0019] Even if a specific combination of features is described in the claims and / or disclosed in the specification, such combination is not intended to limit the disclosure of possible embodiments. In fact, most of such features can also be combined by methods not specifically described in the claims and / or not disclosed in the specification. The dependent claims listed below sometimes directly depend on only one claim, but in the disclosure of possible embodiments, each dependent claim in combination with all other claims in the claim group is included.
[0020] Elements, actions or instructions used in this specification should not be interpreted as being essential or necessary unless explicitly stated. 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 1 In the case of multiple items, the term "1" or similar terms are 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 "according to" is intended to mean "at least partially based on". Furthermore, it should be understood that expressions such as "at least one of [A] and [B]" or "at least one of [A] or [B]" include only A, only B, or both A and B.
[0021] In an exemplary embodiment of the present disclosure, a method and a system are disclosed. Here, the system obtains an overall network including a plurality of candidate subnetworks for NAS, obtains a first subnetwork among the plurality of candidate subnetworks from the overall network, obtains a first metric value of the first subnetwork, determines whether the first metric value satisfies a first predetermined condition, and determines not to train the obtained first subnetwork for one-shot NAS based on the determination that the first metric value does not satisfy the first predetermined condition, and obtains a second subnetwork among the plurality of candidate subnetworks from the overall network. The system may also train the second subnetwork for one-shot NAS. By filtering impossible or impractical subnetworks during the training phase of one-shot NAS, potentially harmful and unnecessary training can be omitted, thereby avoiding redundant training and the collapse of shared weights and speeding up the training phase.
[0022] Figure 1 is a diagram of a neural network architecture according to one embodiment. Figure 1 The neural network architecture 100 is defined by its connections, layer types (or actions), the number of layers, and the number of channels of each layer. Layer types include, for example, convolutional layers (in the case of convolutional neural networks (CNNs)), activation layers (e.g., rectified linear units (ReLUs)), pooling layers (max pooling), fully connected layers, batch normalization layers (BatchNorm), dropout layers, etc. The architectural design of the network is embodied by a combination of at least several layers corresponding to such layer types.
[0023] Figure 2 is a diagram of an example of neural architecture search (NAS) performed by one embodiment. NAS refers to a technique for automatically designing the architecture of a neural network. Figure 2 A functional block diagram 200 is shown. Figure 2 In the example, NAS is executed according to a sampling method or algorithm (such as reinforcement learning, evolutionary search, Bayesian optimization, etc.). NAS has a controller 202, a training action 204, and an evaluation action 206.
[0024] Reference Figure 2 The sampling method is an iterative process in which the controller 202 (e.g., based on a search space of a set of layers) generates sample architecture candidates 210. In order to obtain metrics such as accuracy, latency, and model size, the sample architecture 210 is optimized through a training action 204 and an evaluation action 206. Based on the evaluation result of the evaluation action 206 of the previous sample, the controller 202 generates the next sample architecture candidate using a method such as reinforcement learning, Bayesian optimization, and an evolutionary algorithm. This process is repeatedly implemented until the target performance is achieved (e.g., until the target accuracy is obtained, until the target latency is obtained, until the target model size is obtained, etc.).
[0025] Figure 2 The sampling method shown is flexible with respect to network configuration (i.e. with respect to layer type, number of channels, number of layers, macro-architecture, etc.) and can provide trained models with known performance (i.e. without reconstruction), but the process is extremely time-consuming and is affected by the initial state (i.e. initial sample architecture) due to its iterative nature. That is, in the sampling method, in order to finally obtain the optimal architecture, it is necessary to repeatedly train, evaluate, and update / change the sample architecture (especially when the initial seed is not optimal) several times.
[0026] Figure 3 is a diagram of a single path one-shot (SPOS) method according to one embodiment. In the one-shot NAS method, by separating training from evaluation and search, training is performed on an overall network of all candidate network architectures including a defined search space (e.g., referred to as a supernetwork in this specification), thereby reducing the computational overhead and time for searching. That is, the network as a whole includes multiple candidate subnetworks of NAS. In particular, in the SPOS method, a single subnetwork of the supernetwork is trained in each iteration, and the resulting weights are uniformly applied to all architectures that serve as the basis.
[0027] Reference Figure 3 The SPOS method may also include many super blocks including super blocks 302, super blocks 304 to super blocks N 306. Each super block may also include multiple selection blocks. In the SPOS method, (e.g., Figure 3 ) randomly selects a single path connecting selection blocks in multiple consecutive super blocks, each super block corresponds to one layer (and / or one group of layers), and each selection block corresponds to a candidate layer (and / or multiple groups of layers). For example, in super blocks 302 to 306, until selection X, selection 1 can be 3×3CNN, selection 2 can be 5×5CNN, selection 3 can be ReLU, etc. The process is repeated by uniformly applying the weights applied to the selection block in one iterative training to the selection block in other iterations including the selection block in the selected path (i.e., subnetwork). That is, the weights determined in the iterative training are shared by the entire architecture candidate (i.e., subnetwork). Next, a sampling method (e.g., an evolutionary algorithm) is applied to efficiently search for the architecture with the highest performance without fine-tuning. By separating training from evaluation and search, only one training is required, and different constraints can be applied after training.
[0028] In the exemplary embodiment where the search space or super network is large and an arbitrary sub-network is selected, training becomes more difficult and complicated, and takes time. In such a case, there is a possibility that it is difficult to fully train the super network.
[0029] In an exemplary embodiment, in order to eliminate unnecessary repeated training or repeated training that has adverse effects (i.e., sub-networks that have adverse effects on the overall training), a certain evaluated and optimized one-step neural architecture search (NAS) is implemented in the one-step training stage of the entire network (e.g., a hypernetwork).
[0030] In an exemplary embodiment, specific architecture metrics are evaluated without training. Therefore, these evaluations are implemented during the training phase. For example, with respect to a subnetwork, metrics such as model size, floating point operations per second (FLOPS) value, and latency are sometimes evaluated before training the subnetwork, and the metrics are not affected by training. Therefore, when there is one or more metrics that do not meet specific benchmarks (for example, a model size that is smaller than the first threshold or larger than the second threshold, a latency that is larger than the third threshold, etc.) in a subnetwork randomly selected during repeated SPOS training, the subnetwork is not trained (i.e., the subnetwork is rejected), and other subnetworks are selected (for example, they can be selected randomly or according to a predetermined order of the subnetworks). As a result, unnecessary repeated training or repeated training with the possibility of being harmful is avoided, redundant training and the collapse of shared weights are avoided, and the overall training time is reduced.
[0031] Figure 4 is a diagram of an SPOS sub-network involved in one embodiment. That is, Figure 4 Examples of subnetworks randomly selected or constructed for SPOS search are shown, such as subnetwork 402 , subnetwork 404 , and subnetwork 406 .
[0032] like Figure 4 As shown, subnetwork 402 is determined to be smaller than the first threshold, and therefore, is rejected without training. The first threshold is a threshold determined based on the number of layers or components of the subnetwork. The threshold may also be a threshold based on the total number of layers of the subnetwork, the total number of convolutional layers of the subnetwork, the total number of residual blocks of the network, the total number of transmission layers, etc. As a result, unnecessary training or training with the possibility of being harmful is avoided. Furthermore, the collapse of shared weights is avoided. That is, subnetwork 402 (i.e., a single convolutional layer architecture) is an impossible network architecture. In the case where subnetwork 402 is trained by SPOS search, the shared weights obtained as a result of the convolutional layer selection block of the first super block may not be optimal for any actual or possible network architecture including the layer. In this case, additional repeated training may be required to obtain the optimal weight of the selection block. By rejecting subnetwork 402 without training, redundant or unnecessary training is avoided, and the overall training speed is increased.
[0033] Furthermore, sub-network 404 is determined to be potentially admissible, but sub-network 406 is determined to be inadmissible due to being too large, thereby avoiding unnecessary training or potentially harmful training.
[0034] Furthermore, a method for determining the final architecture of a task neural network for performing a target machine learning task is provided. The target machine learning task is associated with a target training data set. The system generates a target meta-feature tensor for the target training data set, and the target meta-feature tensor represents the characteristics of the target training data set. The system repeatedly performs: based on a search space that defines multiple architectures, generating a candidate architecture for a task neural network, the task neural network is a task neural network for performing the target machine learning task; based on an evaluation neural network, processing inputs including the target meta-feature tensor and data specifying the candidate architecture, generating a candidate performance score for inferring the performance of the candidate architecture on the target machine learning task. The system identifies the candidate architecture with the largest candidate performance score among the candidate architectures as the final architecture.
[0035] Figure 5 is a flow chart of a method for NAS according to an embodiment. In action 502, the system obtains an entire network, the entire network including a plurality of candidate subnetworks for NAS. In action 504, the system obtains a first subnetwork from the entire network among the plurality of candidate subnetworks. In action 506, the system obtains a first metric value of the first subnetwork. In action 508, the system determines whether the first metric value satisfies a first predetermined condition. Based on the determination that the first metric value does not satisfy the first predetermined condition, in action 510, the system determines that the obtained first subnetwork is not to be trained for one-step NAS, and in action 512, the system obtains a second subnetwork from the entire network among the plurality of candidate subnetworks. In action 514, the system trains the second subnetwork for one-step NAS.
[0036] Training the second subnetwork includes: obtaining a second metric value of the second subnetwork; and determining whether the second metric value satisfies a first predetermined condition. Here, according to the determination that the second metric value satisfies the first predetermined condition, the second subnetwork for one-step NAS is trained. Determining whether the first metric value satisfies the first predetermined condition includes comparing the first metric value with a first predetermined threshold. Determining whether the first metric value satisfies the first predetermined condition includes determining whether the first metric value is greater than the first predetermined threshold and less than the second predetermined threshold. Obtaining the first metric value includes obtaining a plurality of metric values including the first metric value of the first subnetwork, and determining whether the first metric value satisfies the first predetermined condition includes determining whether the plurality of metric values respectively satisfy a plurality of corresponding predetermined conditions including the first predetermined condition for training in one-step NAS. The first metric value includes at least one of a latency value, a model size value, and a floating point operation per second value. The first predetermined condition is determined according to at least one of a total number of layers of the subnetwork, a total number of convolutional layers of the subnetwork, a total number of residual blocks of the subnetwork, and a total number of transport layers of the subnetwork.
[0037] By filtering out impossible or impractical sub-networks during the training phase of one-step NAS, potentially harmful and unnecessary training can be omitted, thereby avoiding redundant training and the collapse of shared weights and speeding up the training phase.
[0038] Figure 6 6 is a diagram of an exemplary environment 600 in which the systems and / or methods described herein may be implemented. Figure 6 As shown, environment 600 includes user device 610, platform 620, and network 630. The devices of environment 600 are connected to each other via wired connection, wireless connection, or a combination of wired connection and wireless connection. Figure 1 The functions and actions described are all Figure 6 The invention may be performed by any combination of the elements shown.
[0039] The user device 610 includes one or more devices capable of receiving, generating, storing, processing, and / or providing information associated with the platform 620. For example, the user device 610 includes a computing device (e.g., a desktop computer, a laptop computer, a tablet computer, a portable computer, a smart speaker, a server, etc.), a portable phone (e.g., a smart phone, a wireless phone, etc.), a wearable device (e.g., a pair of smart glasses or a smart watch), or a similar device. In several embodiments, the user device 610 receives information from the platform 620 and / or sends information to the platform 620.
[0040] The platform 620 includes one or more devices capable of receiving, generating, storing, processing, and / or providing information. In several embodiments, the platform 620 includes a cloud server or a cloud server cluster. In several embodiments, the platform 620 may also be designed modularly so that specific software components are swapped in or out according to specific needs. In this way, the platform 620 is easily and / or quickly reconfigured for various purposes.
[0041] In some embodiments, as shown in the figure, the platform 620 is hosted in a cloud computing environment 622. In particular, in the embodiments described in this specification, the platform 620 is described as being hosted in the cloud computing environment 622, but in some embodiments, the platform 620 may not be cloud-based (i.e., it may be implemented outside the cloud computing environment) or may be partially cloud-based.
[0042] Cloud computing environment 622 includes an environment hosting platform 620. Cloud computing environment 622 may also provide computing, software, data access, storage, and other services that do not require end-user (e.g., user device 610) knowledge of the physical location and structure of the systems and / or devices hosting platform 620. As shown, cloud computing environment 622 includes a group of computing resources 624 (collectively referred to as "computing resources 624" and individually referred to as "computing resource 624").
[0043] The computing resources 624 include one or more personal computers, a collection of computing devices, workstation computers, server devices, or other types of computing devices and / or communication devices. In several embodiments, the computing resources 624 host the platform 620. Cloud resources may also include computing instances executed within the computing resources 624, storage devices provided within the computing resources 624, data transfer devices provided by the computing resources 624, etc. In several embodiments, the computing resources 624 communicate with other computing resources 624 via wired connections, wireless connections, or a combination of wired and wireless connections.
[0044] Furthermore, Figure 6 As shown, the computing resources 624 include one or more application programs ("APP") 624-1, one or more virtual machines ("VM") 624-2, virtual storage devices ("VS") 624-2, one or more hypervisors ("HYP") 624-4, or a group of cloud resources such as equivalents of these.
[0045] Application 624-1 includes one or more software applications provided to or accessed by user device 610. Application 624-1 can be executed without the necessity of implementing the software application on user device 610. For example, application 624-1 includes software associated with platform 620 and / or any other software that can be provided via cloud computing environment 622. In some embodiments, one application 624-1 sends and receives information with one or more other applications 624-1 via virtual machine 624-2.
[0046] The virtual machine 624-2 includes a software implementation of a machine (e.g., a computer) that executes programs like a physical machine. Depending on the purpose or the degree of correspondence of the virtual machine 624-2 to any real machine, the virtual machine 624-2 is either a system virtual machine or a process virtual machine. The system virtual machine provides a complete system platform that supports the execution of a complete operating system ("OS"). The process virtual machine executes a single program and supports a single process. In some embodiments, the virtual machine 624-2 executes on behalf of a user (e.g., a user device 610) and is capable of managing the infrastructure of the cloud computing environment 622 such as data management, synchronization, or long-term data transfer.
[0047] The virtual storage device 624-3 includes one or more storage systems and / or one or more devices using virtualization technology within the storage system or device of the computing resource 624. In several embodiments, in the context of the storage system, the types of virtualization include module virtualization and file virtualization. Module virtualization refers to abstracting (or separating) logical storage devices from physical storage devices so that the storage system can be accessed independently of the physical storage devices or heterogeneous structures. Through this separation, the administrator of the storage system can gain flexibility in how to manage the storage devices of the end users. File virtualization can eliminate the dependency between data accessed at the file level and the place where the files are physically stored. As a result, the use of storage devices, the merging of servers and / or the performance of file transfers in operation can be optimized.
[0048] Hypervisor 624-4 provides hardware virtualization technology that enables multiple operating systems (e.g., "guest operating systems") to be executed simultaneously on a host computer such as computing resource 624. Hypervisor 624-4 presents a virtual operating platform to the guest operating system and manages the execution of the guest operating system. Multiple instances of various operating systems share virtualized hardware resources.
[0049] The network 630 includes one or more wired and / or wireless networks. For example, the network 630 includes a cellular network (e.g., a 5th generation (5G) network, a long-term evolution (LTE) network, a 3rd generation (3G) network, a code division multiple access (CDMA) network, etc.), a public land mobile network (PLMN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), a telephone network (e.g., a public switched telephone network (PSTN)), a private network, a temporary network, an intranet, the Internet, a fiber-based network, or their equivalents, and / or a combination of these or other types of networks.
[0050] Figure 6 The number and configuration of devices and networks shown are provided as an example. Figure 6 In addition to the devices and networks shown, there may be additional devices and / or networks, fewer devices and / or networks, different devices and / or networks, or devices and / or networks with different configurations. Figure 6 The two or more devices shown in the figure can be implemented in a single device. Figure 6 The single device shown is implemented as a plurality of distributed devices. In addition or independently therefrom, one or more functions described as being implemented by another set of devices in environment 600 may also be implemented by a set of devices in environment 600 (eg, one or more devices).
[0051] Figure 7 700 is a diagram of exemplary components of device 700. Device 700 corresponds to user device 610 and / or platform 620. Figure 7 As shown, the device 700 includes a bus 710 , a processor 720 , a memory 730 , a storage component 740 , an input component 750 , an output component 760 , and a communication interface 770 .
[0052] The bus 710 includes components that enable communication between components of the device 700. The processor 720 is implemented by hardware, firmware, or a combination of hardware and software. The processor 720 is a central processing unit (CPU), a graphics processing unit (GPU), an accelerated processing unit (APU), a microprocessor, a microcontroller, a digital signal processor (DSP), a field programmable gate array (FPGA), an integrated circuit for a specific purpose (ASIC) or other types of processing components. In several embodiments, the processor 720 includes one or more processors that can be programmed in a way to perform functions. The memory 730 includes a random access memory (RAM), a read-only memory (ROM) and / or other types of dynamic storage devices or static storage devices (e.g., flash memory, magnetic memory and / or optical memory) that store information and / or commands used by the processor 720.
[0053] The storage component 740 stores information and / or software associated with the operation and use of the device 700. For example, the storage component 740 includes a hard disk (e.g., a magnetic disk, an optical disk, an optical magnetic disk, and / or a solid state disk), a compact disk (CD), a digital versatile disk (DVD), a floppy disk, a cassette tape, a magnetic tape, and / or other types of non-transitory computer-readable media, and corresponding drives. The input component 750 includes a component that enables the device 700 to receive information via user input (e.g., a touch screen display, a keyboard, a keypad, a mouse, a button, a switch, and / or a microphone). In addition or instead, the input component 750 may also include a sensor for sensing information (e.g., a global positioning system (GPS) component, an accelerometer, a gyroscope, and / or an actuator). The output component 760 includes a component that provides output information from the device 700 (e.g., a display, a speaker, and / or one or more light emitting diodes (LEDs)).
[0054] The communication interface 770 includes a transceiver-like component (e.g., a transceiver and / or a separate receiver and transmitter) that enables the device 700 to communicate with other devices via a wired connection, a wireless connection, or a combination of a wired connection and a wireless connection. The communication interface 770 enables the device 700 to receive information from other devices and / or provide information to other devices. For example, the communication interface 770 includes an Ethernet interface, an optical interface, a coaxial interface, an infrared interface, a radio frequency (RF) interface, a universal serial bus (USB) interface, a Wi-Fi interface, a cellular network interface, or their equivalents.
[0055] The device 700 performs one or more processes described in this specification. The device 700 performs these processes in response to the processor 720 executing software commands stored by a non-transitory computer-readable medium such as the memory 730 and / or the storage component 740. The computer-readable medium is defined in this specification as a non-transitory memory device. In the memory device, it includes a memory space within a single physical storage device or a memory space across multiple physical storage devices.
[0056] The software commands may also be read into the memory 730 and / or storage component 740 from other computer-readable media or other devices via the communication interface 770. When the software commands stored in the memory 730 and / or storage component 740 are executed, the processor 720 performs one or more processes described in this specification.
[0057] Additionally or alternatively, hardwired circuitry may be used in place of or in combination with software instructions to perform one or more of the processes described herein. Therefore, the embodiments described herein are not limited to any specific combination of hardware circuitry and software.
[0058] Figure 7 The number and configuration of components shown are provided as an example. Figure 7 In addition to the components shown, additional components, fewer components, different components or components of different configurations may also be included. In addition or instead, a set of components of the device 700 (e.g., one or more components) may perform one or more functions described as being performed by other sets of components of the device 700.
[0059] In an embodiment, by Figure 6 as well as Figure 7 Implementation or use of any one of the elements shown Figure 6 as well as Figure 7 Any one of the elements shown is implemented Figure 1 to Figure 5 Any one of the actions or processes.
[0060] The above disclosure provides illustrations and descriptions, but is not intended to be exhaustive, nor is it intended to limit the embodiments to the precise forms disclosed. Modifications and changes may be made with reference to the above disclosure or from practice of the embodiments.
[0061] Several embodiments relate to systems, methods and / or computer-readable media at all levels of detail that may be incorporated. Furthermore, one or more of the above components may also be implemented as commands 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 commands for causing a processor to perform actions.
[0062] The computer-readable storage medium can be set as a tangible device capable of holding and storing commands used by the command execution device. The 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 suitable combination of these, but is not limited to these. In a non-inclusive list of more specific examples of computer-readable storage media, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), static random access memories (SRAM), portable compact disk read-only memories (CD-ROM), digital versatile disks (DVD), memory sticks, floppy disks, mechanically programmed devices such as punched cards with commands stored thereon or raised structures in grooves, and any suitable combination of these. When used in this specification, computer-readable storage media should not be interpreted as temporary signals such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating in waveguides or other transmission media (such as light pulses through optical fiber cables), or electrical signals sent via wires.
[0063] The computer-readable program commands recorded 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 transmission, 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 commands from the network and forwards the computer-readable program commands for storage in the computer-readable storage medium in each computing / processing device.
[0064] The computer readable program code / commands for performing actions are any one of the source code or object code described in an assembly language command, an instruction set architecture (ISA) command, a machine command, a dependent machine command, a microcode, a firmware command, a state setting data, a configuration data for an integrated circuit, or a combination of one or more programming languages including a target-oriented programming language such as Smalltalk, C++, and a procedural programming language such as the "C" programming language or a similar programming language. The computer readable program commands are executed completely 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 completely on a remote computer or server. In the case of execution 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 is connected to an external computer (e.g., via the Internet using an Internet service provider). In several embodiments, for example, an electronic circuit including a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) personalizes the electronic circuit using state information of computer-readable program commands in order to execute an aspect or action, thereby enabling the electronic circuit to execute the computer-readable program commands.
[0065] In order to generate a means for implementing the functions / behaviors specified in a module or multiple modules of a flowchart and / or block diagram by commands executed by a processor of a computer or other programmable data processing device, these computer-readable program commands can also be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to manufacture a machine. These computer-readable program commands can also be stored in a computer-readable storage medium that can instruct a computer, a programmable data processing device, and / or other device to function in a specific manner, so that the computer-readable storage medium with the stored commands includes a manufactured product containing commands for implementing the functions / behaviors specified in a module or multiple modules of a flowchart and / or block diagram.
[0066] Computer-readable program commands may also be loaded into a computer, other programmable data processing device, or other device, so that the commands executed on the computer, other programmable device, or other device implement the functions / behaviors specified in the module or multiple modules of the flowchart and / or block diagram, and a series of action steps for generating a computer-implemented process are executed on the computer, other programmable device, or other device.
[0067] The flowcharts and block diagrams in the figure illustrate the architecture, functionality and actions of possible embodiments of the systems, methods and computer-readable media involved in various embodiments. In this regard, each module of the flowchart or block diagram represents a module, segment or part of a command including one or more executable commands for implementing a specified logical function. In addition to the modules shown in the drawings, the method, computer system and computer-readable medium may also include additional modules, fewer modules, different modules or modules of different configurations. In several alternative embodiments, the functions shown in the modules may also be implemented in an order different from the order shown in the drawings. For example, the two modules shown in succession can actually be implemented simultaneously, approximately simultaneously, or in reverse order according to the functions involved. In addition, it is hoped that attention can be paid to the combination of each module of the block diagram and / or flowchart and the modules of the block diagram and / or flowchart that can be implemented by a dedicated hardware-based system that performs a specified function or action, or, each module and the combination of modules implement a combination of dedicated hardware and computer commands.
[0068] It is apparent that the systems and / or methods described in this specification can be implemented by hardware, firmware, or a combination of hardware and software in various ways. The actual specific control hardware or software code used to implement such systems and / or methods does not limit the embodiments. Therefore, the actions and behaviors of the systems and / or methods are described in this specification 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 according to the description of this specification.
Claims
1. A method for performing one-step neural architecture search (NAS), the method comprising: a step of obtaining an entire network, wherein the entire network includes a plurality of candidate sub-networks for the one-step NAS; A step of acquiring a first sub-network among the plurality of candidate sub-networks from the entire network; The step of obtaining a first metric value of the first sub-network; A step of determining whether the first metric value satisfies a first predetermined condition; According to the determination that the first metric value does not satisfy the first predetermined condition, determining that the first sub-network obtained is not to be trained for the one-step NAS, A step of acquiring a second sub-network among the plurality of candidate sub-networks from the entire network; and The step of training the second sub-network for the one-step NAS.
2. The method according to claim 1, wherein: The steps of training the second sub-network include: Obtaining a second metric value of the second subnetwork; and determining whether the second metric value satisfies the first predetermined condition, The second sub-network for the one-step NAS is trained based on a determination that the second metric value satisfies the first predetermined condition.
3. The method according to claim 1 or 2, wherein: The step of determining whether the first metric value satisfies the first predetermined condition includes comparing the first metric value with a first predetermined threshold.
4. The method according to any one of claims 1 to 3, wherein: The step of determining whether the first metric value satisfies the first predetermined condition includes determining whether the first metric value is greater than a first predetermined threshold and less than a second predetermined threshold.
5. The method according to any one of claims 1 to 4, wherein: The step of obtaining the first metric value includes: obtaining a plurality of metric values including the first metric value of the first sub-network, The step of determining whether the first metric value satisfies the first predetermined condition includes determining whether the multiple metric values respectively satisfy multiple corresponding predetermined conditions including the first predetermined condition for training in the one-step NAS.
6. The method according to any one of claims 1 to 5, wherein: The first metric value includes at least one of a latency value, a model size value, and a floating point operations per second (FLOPS) value.
7. The method according to any one of claims 1 to 6, wherein: The first predetermined condition is determined based on at least one of the total number of layers of the sub-network, the total number of convolutional layers of the sub-network, the total number of residual blocks of the sub-network, and the total number of transmission layers of the sub-network.
8. A system for performing one-step neural architecture search (NAS), comprising: at least one memory for storing commands; and At least 1 processor, The at least one processor is configured to execute the command. obtaining a network as a whole including a plurality of candidate sub-networks for the one-step NAS, obtaining a first sub-network among the plurality of candidate sub-networks from the entire network, Obtaining a first metric value of the first subnetwork, determining whether the first metric value satisfies a first predetermined condition, According to the determination that the first metric value does not satisfy the first predetermined condition, determining that the first sub-network obtained is not to be trained for the one-step NAS, A second sub-network among the plurality of candidate sub-networks is obtained from the entire network, and the second sub-network is trained for the one-step NAS.
9. The system according to claim 8, wherein: The at least one processor is configured to execute the command to train the second sub-network by obtaining a second metric value of the second sub-network and determining whether the second metric value satisfies the first predetermined condition. The second sub-network for the one-step NAS is trained based on a determination that the second metric value satisfies the first predetermined condition.
10. The system according to claim 8 or 9, wherein: The at least one processor is configured to execute the instruction to determine whether the first metric value satisfies the first predetermined condition by comparing the first metric value with a first predetermined threshold value.
11. The system according to any one of claims 8 to 10, wherein: The at least one processor is configured to execute the instruction to determine whether the first metric value satisfies the first predetermined condition by determining whether the first metric value is greater than a first predetermined threshold and less than a second predetermined threshold.
12. The system according to any one of claims 8 to 11, wherein: The at least one processor is configured to execute the command to obtain the first metric value by obtaining a plurality of metric values including the first metric value of the first sub-network, The at least one processor is configured to execute the command to determine whether the first metric value satisfies the first predetermined condition by determining whether the multiple metric values respectively satisfy the corresponding multiple predetermined conditions including the first predetermined condition used for training in the one-step NAS.
13. A system according to any one of claims 8 to 12, wherein: The first metric value includes at least one of a latency value, a model size value, and a floating point operations per second (FLOPS) value.
14. A system according to any one of claims 8 to 13, wherein: The first predetermined condition is determined based on at least one of the total number of layers of the sub-network, the total number of convolutional layers of the sub-network, the total number of residual blocks of the sub-network, and the total number of transmission layers of the sub-network.
15. A non-transitory computer-readable storage medium storing instructions, When the command is executed by at least one processor, the at least one processor implements: The step of obtaining a network as a whole, wherein the network as a whole includes a plurality of candidate sub-networks for one-step NAS; A step of acquiring a first sub-network among the plurality of candidate sub-networks from the entire network; The step of obtaining a first metric value of the first sub-network; A step of determining whether the first metric value satisfies a first predetermined condition; According to the determination that the first metric value does not satisfy the first predetermined condition, determining that the first sub-network obtained is not to be trained for the one-step NAS, A step of acquiring a second sub-network among the plurality of candidate sub-networks from the entire network; and The step of training the second sub-network for the one-step NAS.
16. The storage medium according to claim 15, wherein: When the command is executed, the at least one processor implements the steps of training the second sub-network by obtaining a second metric value of the second sub-network and determining whether the second metric value satisfies the first predetermined condition. The second sub-network for the one-step NAS is trained based on a determination that the second metric value satisfies the first predetermined condition.
17. The storage medium according to claim 15 or 16, wherein: When the command is executed, the at least one processor is caused to implement: A step of comparing the first metric value with a first predetermined threshold value to thereby determine whether the first metric value satisfies the first predetermined condition.
18. The storage medium according to any one of claims 15 to 17, wherein: When the command is executed, the at least one processor is caused to implement: A step of determining whether the first metric value satisfies the first predetermined condition by determining whether the first metric value is greater than a first predetermined threshold and less than a second predetermined threshold.
19. The storage medium according to any one of claims 15 to 18, wherein: When the command is executed, the at least one processor is caused to implement the step of obtaining the first metric value by obtaining a plurality of metric values including the first metric value of the first sub-network, When the command is executed, the at least one processor implements the step of determining whether the first metric value satisfies the first predetermined condition by determining whether the multiple metric values respectively satisfy the corresponding multiple predetermined conditions including the first predetermined condition used for training in the one-step NAS.
20. The storage medium according to any one of claims 15 to 19, wherein: The first metric value includes at least one of a latency value, a model size value, and a floating point operations per second (FLOPS) value.
