Method for providing a neural network model and electronic device implementing said method

The electronic device optimizes neural network models for specific hardware by user-defined compression settings, addressing the challenge of model deployment on target devices and improving user satisfaction.

JP7565480B2Active Publication Date: 2024-10-11NOTA INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023541305
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2023-02-01
Filing Date
2023-02-09
Publication Date
2024-10-11
Estimated Expiration
2043-02-09

AI Technical Summary

Technical Problem

Users face difficulties in finding and deploying artificial intelligence models that meet their performance requirements on target devices, as existing models are not easily adaptable and may not function optimally on specific hardware configurations.

Method used

An electronic device that provides a neural network model optimized for a target device by deriving a trained model based on user-input data and device information, compressing it according to user-defined settings, and deploying it with download data for seamless integration.

Benefits of technology

Enables users to obtain and deploy neural network models tailored to their devices, enhancing convenience and satisfaction by ensuring optimal performance and compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007565480000001
    Figure 0007565480000001
  • Figure 0007565480000002
    Figure 0007565480000002
  • Figure 0007565480000003
    Figure 0007565480000003
Patent Text Reader

Abstract

A method for controlling an electronic device is disclosed, the method including: receiving a trained model based on a dataset and information of a target device, compressing the trained model based on compression setting information for compressing the trained model, and providing download data corresponding to the compressed trained model such that the compressed trained model can be deployed on the target device.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a method for providing a neural network model and an electronic device for implementing the method. [Background technology]

[0002] With the popularity of artificial intelligence technology, the needs of users who need artificial intelligence models to operate artificial intelligence in target devices are increasing. Summary of the Invention [Problem to be solved by the invention]

[0003] Although various artificial intelligence models are published worldwide, it is not easy for users to directly find an artificial intelligence model with the performance they desire. Furthermore, even if a user finds a model with excellent performance, such as a state-of-the-art (SOTA) model, the model may not necessarily be operable on the target device. For this reason, users have a hard time confirming whether the model can be operated on the target device.

[0004] Therefore, there is a need for a technique that allows a user to easily obtain a neural network model that is optimized for a target device. [Means for solving the problem]

[0005] The present disclosure provides electronic devices that provide neural network models that are optimized for a target device.

[0006] The present disclosure further provides an electronic device that provides a trained neural network model based on a data set input by a user.

[0007] The present disclosure further provides an electronic device that provides a compression neural network model that is trained based on compression settings entered by a user.

[0008] The present disclosure further provides an electronic device for providing download data corresponding to a compressed neural network model.

[0009] The object of the present disclosure is not limited to the above object. That is, from the following description, a person skilled in the art to which the present disclosure pertains may clearly understand other objects not described.

[0010] The present disclosure may provide a method for providing a neural network model, the method including: deriving a trained model based on a target device and a dataset identified in a device farm using information of the target device input by a user; compressing the trained model based on compression setting information and delay time information for compressing the trained model received from the device farm; and providing download data corresponding to the compressed trained model so that the compressed trained model is deployed on the target device.

[0011] The present disclosure may provide an electronic device for providing a neural network model, the electronic device comprising: a communication interface having at least one communication circuit; a memory configured to store at least one instruction; and a processor, wherein the processor executes at least one instruction to obtain a trained model trained based on a target device and a dataset identified in a device farm using information of a target device input by a user; compress the trained model based on compression setting information and delay time information for compressing the trained model received from the device farm; and provide download data corresponding to the compressed trained model so that the compressed trained model can be deployed on the target device.

[0012] The technical means for solving the problems of the present disclosure are not limited to the above-mentioned solutions, and from this specification and the accompanying drawings, a person skilled in the art to which the present disclosure pertains will be able to clearly understand unmentioned solutions. Effect of the Invention

[0013] As described above, various embodiments of the present disclosure may provide a neural network model that is optimized for a target device.

[0014] According to various embodiments of the present disclosure as described above, a neural network model may be provided that is trained based on a data set input by a user.

[0015] According to various embodiments of the present disclosure as described above, a compression neural network model can be provided based on settings for compression entered by a user.

[0016] According to various embodiments of the present disclosure as described above, download data corresponding to a compressed neural network model may be provided.

[0017] This improves user convenience and satisfaction. [Brief description of the drawings]

[0018] Aspects, features, and advantages of certain embodiments of the present disclosure will become more apparent from the following description taken in conjunction with the accompanying drawings.

[0019] [Figure 1] FIG. 11 is a diagram illustrating an operation of the electronic device according to the embodiment of the present disclosure.

[0020] [Diagram 2] 1 is a block diagram showing a configuration of an electronic device according to an embodiment of the present disclosure.

[0021] [Diagram 3]FIG. 1 illustrates a method for implementing a first project according to an embodiment of the present disclosure.

[0022] [Figure 4] FIG. 1 illustrates a method for implementing a second project according to an embodiment of the present disclosure.

[0023] [Diagram 5] FIG. 13 illustrates a method for implementing a third project according to an embodiment of the present disclosure.

[0024] [Figure 6] FIG. 13 is a diagram illustrating a data set input screen according to an embodiment of the present disclosure.

[0025] [Figure 7] FIG. 13 is a diagram illustrating a data set confirmation screen according to an embodiment of the present disclosure.

[0026] [Figure 8] FIG. 13 is a diagram illustrating a data set list screen according to an embodiment of the present disclosure.

[0027] [Figure 9] FIG. 13 illustrates a target device input screen according to an embodiment of the present disclosure.

[0028] [Figure 10] FIG. 13 illustrates a project information screen according to an embodiment of the present disclosure.

[0029] [Figure 11] FIG. 13 is a diagram illustrating a control method for an electronic device according to an embodiment of the present disclosure.

[0030] [Figure 12] FIG. 1 is a sequence diagram showing a method for implementing a first project according to an embodiment of the present disclosure.

[0031] [Figure 13]FIG. 11 is a sequence diagram showing a method for implementing a second project according to an embodiment of the present disclosure.

[0032] [Figure 14] FIG. 11 is a sequence diagram showing a method for implementing a third project according to an embodiment of the present disclosure.

[0033] [Figure 15] FIG. 1 is a block diagram showing a configuration of a system for providing a neural network model according to an embodiment of the present disclosure.

[0034] [Figure 16] FIG. 13 is a diagram illustrating a learning setting screen according to an embodiment of the present disclosure.

[0035] [Figure 17] FIG. 13 is a diagram illustrating a base model recommendation screen according to an embodiment of the present disclosure.

[0036] [Figure 18] FIG. 1 illustrates a method for displaying information on a neural network model via a user interface screen according to an embodiment of the present disclosure.

[0037] [Figure 19] FIG. 1 illustrates a method for displaying information of a neural network model according to an embodiment of the present disclosure.

[0038] [Figure 20] FIG. 1 illustrates a method for deriving performance data for a neural network model according to an embodiment of the present disclosure.

[0039] [Figure 21] FIG. 13 is a diagram illustrating a control method for an electronic device according to an embodiment of the present disclosure.

[0040] [Figure 22] FIG. 11 is a diagram illustrating an operation of the electronic device according to the embodiment of the present disclosure.

[0041] [Figure 23] FIG. 2 illustrates a first compression mode according to an embodiment of the present disclosure.

[0042] [Figure 24] FIG. 13 is a diagram showing a compression setting screen for a first compression mode according to an embodiment of the present disclosure.

[0043] [Diagram 25] FIG. 13 illustrates a second compression mode according to an embodiment of the present disclosure.

[0044] [Figure 26] FIG. 13 is a diagram showing a compression setting screen for a second compression mode according to an embodiment of the present disclosure.

[0045] [Figure 27] FIG. 13 illustrates a screen for block compression settings according to an embodiment of the present disclosure.

[0046] [Figure 28] FIG. 1 illustrates a compression strategy according to an embodiment of the present disclosure.

[0047] [Figure 29] 1 is a flowchart illustrating a method for compressing a neural network model according to an embodiment of the present disclosure.

[0048] [Diagram 30] FIG. 13 illustrates a screen for setting a block compression setting value according to an embodiment of the present disclosure.

[0049] [Diagram 31] FIG. 13 illustrates a screen for setting a block compression setting value according to an embodiment of the present disclosure.

[0050] [Diagram 32] FIG. 13 illustrates a screen for setting a block compression setting value according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0051] A brief explanation of the terms used herein will be given before describing the present disclosure in detail.

[0052] Considering the function of the present disclosure, currently widely used general terms are selected as terms to be used in the embodiments of the present disclosure, but they may be changed according to the intention of those who have knowledge of the technical field or precedents, the emergence of new technologies, etc. Furthermore, in specific cases, terms arbitrarily selected by the applicant may be used. In such cases, the meanings of those terms will be mentioned in detail in the corresponding explanation parts of the present disclosure. Therefore, the terms used in the present disclosure must be defined based on the meanings of the terms and contents throughout the entire disclosure, not on the simple names of those terms.

[0053] Since the present disclosure may be modified in various ways and may have several embodiments, specific embodiments of the present disclosure are shown in the accompanying drawings and described in detail in the detailed description. However, it should be understood that the present disclosure is not limited to the specific embodiments as examples, and any modifications, equivalents, and replacements can be made without departing from the scope and spirit of the present disclosure. Detailed descriptions of known technologies related to the present disclosure will be omitted when it is determined that the gist of the present disclosure may become unclear.

[0054] Terms such as "first," "second," and the like may be used to describe various components, but these components should not be understood to be limited by these terms. These terms are used only to distinguish one component from another.

[0055] The singular forms are intended to include the plural, unless the context clearly dictates otherwise. More specifically, as used in this specification and the appended claims, the singular indefinite and definite articles include plural referents, unless the context clearly dictates otherwise. It should be understood that the terms "comprise" and "include" as used herein specify the presence of features, values, steps, operations, components, parts, or combinations thereof referred to herein, but do not exclude the presence or addition of one or more other features, values, steps, operations, components, parts, or combinations thereof.

[0056] Hereinafter, the embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art to which the present disclosure relates can easily carry out the present disclosure. However, the present disclosure may be modified in various different forms and is not limited to the embodiments described herein. Furthermore, in the drawings, parts that are not related to the description are omitted in order to clearly explain the present disclosure, and similar reference numerals are used to describe similar parts throughout the specification.

[0057] Details of the embodiments described herein, both in terms of structure and operation, are presented in the accompanying figures, with like reference numerals indicating like or corresponding elements in the various drawings. The elements in the figures are not necessarily shown to scale, emphasis instead being placed upon illustrating the principles of the embodiments. Moreover, all illustrations are intended to convey concepts, and relative sizes, shapes, and other detailed attributes may be shown generally, rather than precisely or precisely.

[0058] The present disclosure may provide a method for compressing a neural network model, the method including: receiving a trained model and a compression method for compressing the trained model; identifying compressible blocks and non-compressible blocks from among a plurality of blocks included in the trained model based on the compression method; displaying on a first screen a structure of the trained model representing connection relationships between a plurality of blocks so that the compressible blocks and the non-compressible blocks are visually distinguishable; sending a command to a user device to display on a second screen an input field for receiving parameter values ​​for compressing the compressible blocks; and compressing the trained model based on the parameter values ​​entered in the input field by a user.

[0059] When the compression method is pruning, the validation function, the normalization function, and the blocks whose output channels can be directly connected to the arithmetic operators are identified as non-compressible blocks.

[0060] When the compression method is filter decomposition, blocks containing convolutional layers may be identified as compressible blocks.

[0061] The structure of the trained model may represent connection relationships between multiple user interfaces (UIs), each associated with one of the multiple blocks included in the trained model, and each of the multiple UI elements may represent information of one of the multiple blocks, and the information of each of the multiple blocks may include identification information of each of the multiple blocks and multiple delay times (also referred to in this specification as delay time data) each associated with each of the multiple blocks.

[0062] The method may further include obtaining information of a target device on which the trained model is to be executed, and obtaining from the target device a plurality of delay times associated with each of the plurality of blocks.

[0063] The method may further include, when a first UI element displayed on the first screen is selected, sending a command to the user device to enable a first UI element corresponding to the compressible block and an input field corresponding to the compressible block displayed on the second screen.

[0064] The method may further include, when a second UI element corresponding to a non-compressible block displayed on the first screen is selected, sending an instruction to the user device to display detailed information of the non-compressible block on the first screen, where the detailed information of the non-compressible block may include at least one of the number and / or amount of channels, or the size of the kernel, included in the non-compressible block.

[0065] The structure of the trained model may be a tree structure.

[0066] The method may further include, when a first UI element corresponding to a compressible block displayed on the first screen is selected, sending an instruction to the user device to display detailed information of the compressible block on the first screen, where the detailed information of the compressible block may include at least one of the number and / or amount of channels, or the size of the kernel, included in the compressible block.

[0067] The first UI element may include a checkbox.

[0068] The present disclosure may also provide an electronic device for compressing a neural network model, the electronic device comprising: a communication interface including at least one communication circuit for communication via a communication network; a memory configured to store at least one instruction; and a processor, the processor executing at least one instruction to: obtain a compression method for compressing a trained model and a training model; identify compressible blocks and non-compressible blocks from among a plurality of blocks included in the trained model based on the compression method; control the communication interface to display, on a first screen, a structure of the trained model representing connection relationships between a plurality of blocks so that compressible blocks and non-compressible blocks can be visually distinguished; send an instruction to a user device to display, on a second screen, an input field for receiving parameter values ​​for compressing the compressible blocks; and compress the trained model based on the parameter values ​​entered in the input field by a user.

[0069] The present disclosure may provide a method for obtaining a neural network model, the method including: receiving a dataset for training the neural network model, information of a target device for executing the neural network model, and a training mode for the neural network model; setting a project based on the dataset, the information of the target device, and the training mode; and deriving at least one trained neural network model by implementing the set project.

[0070] When the dataset is set as a first dataset and the training mode is set as a first training mode, the project may be set as a first project, and the first trained model is derived by implementing the set first project, and implementing the set first project may include identifying a plurality of base models from a plurality of neural network models pre-stored in the memory based on information of the target device and target performance input by a user, and deriving a first trained model based on a first base model selected by the user from the plurality of identified base models and the first dataset, and the first trained model is trained based on the first dataset.

[0071] The identified base models may be neural network models corresponding to a target device, the difference between the performance and the target performance being within a preset range, and the identified base models may be identified based on a lookup table, which may include pre-stored identification information of the multiple neural network models, information of the target device, and performance information of the multiple neural network models when the multiple neural network models are executed within the target device.

[0072] When the dataset is set as a second dataset and the training mode is set as a second training mode, the project may be set as a second project, and a second trained model is derived by implementing a second project set, where implementing the set second project may include obtaining a second base model based on information of the target device and a given algorithm, and deriving a second trained model based on the second base model and the second dataset, where the second trained model is trained based on the second dataset.

[0073] The given algorithm may include at least one of a hyperparameter optimization (HPO) algorithm or a neural architecture structure (NAS) algorithm.

[0074] The method may further include storing the at least one trained neural network model in a model database.

[0075] When the dataset is set as a third dataset and the training mode is set as a third training mode, the project may be set as a third project, and the third trained model is derived by performing the set third project, and performing the set third project may include providing a user with a model list including at least one trained model obtained from the model database, and deriving the third trained model based on a trained model selected by the user from the model list and the third dataset, and the third trained model is trained based on the third dataset.

[0076] The method may further include determining whether a format of the dataset is a preset format, and when the format of the dataset is not the preset format, converting the format of the dataset to the preset format.

[0077] The pre-set formats may include a You only look once (YOLO) format.

[0078] The performance information for the multiple neural network models contained in the lookup table may be derived by running the multiple neural network models using the target device.

[0079] The present disclosure may provide an electronic device for obtaining a neural network model, the electronic device including a communication interface having at least one communication circuit, a memory configured to store at least one instruction, and a processor, wherein the processor executes at least one of the instructions: receiving a dataset for training the neural network model, information of a target device for executing the neural network model, and a training mode for the neural network model; setting a project based on the dataset, the information of the target device, and the training mode; and deriving at least one trained neural network model by executing the set project.

[0080] The present disclosure may provide a method for providing information of a neural network model, the method including receiving, from an external device, information of a target device on which a neural network model is to be executed and a target performance of the neural network model for the target device, deriving information of a plurality of candidate neural network models based on the information of the target device and the received target performance, and sending an instruction to the external device to display the information of the plurality of candidate neural network models based on the received target performance, wherein the information of the plurality of candidate neural network models includes at least one of names of the plurality of candidate neural network models, performance of the plurality of candidate neural network models, or input data sizes of the plurality of candidate neural network models.

[0081] A plurality of user interface (UI) elements each showing information of a plurality of candidate neural network models may be displayed in reverse order of a difference between the performance of the candidate neural network model associated with each of the plurality of candidate UI elements and the received target performance.

[0082] The multiple UI elements may include a first UI element associated with each of a plurality of first candidate neural network models, each of which has an input data size equal to a size of the input data set by the user, and a second UI element associated with each of a plurality of second candidate neural network models, each of which has an input data size different from a size of the input data set by the user, and the first UI element and the second UI element may be displayed simultaneously in different areas.

[0083] The multiple UI elements, each representing information of the multiple candidate neural network models, may be displayed on a two-dimensional graph defined by a first axis corresponding to the first performance parameter and a second axis corresponding to the second performance parameter.

[0084] The plurality of UI elements may include a third UI element associated with each of a plurality of third candidate neural network models each having a performance within a preset range of the received target performance, and a fourth UI element associated with each of a plurality of fourth candidate neural network models each having a performance outside the preset range of the received target performance, and the third UI element may be enabled and the fourth UI element may be disabled.

[0085] The multiple UI elements may each display information for multiple candidate neural network models when selected by a user.

[0086] The information of the plurality of candidate neural network models may include at least one of identification information, a delay time, or an input data size of each of the plurality of candidate neural network models.

[0087] The information of the multiple candidate neural network models may be obtained based on a lookup table, and the lookup table may include identification information of the multiple neural network models, information of multiple devices on which the multiple neural network models are executed, and performance information of the multiple neural network models for the multiple devices.

[0088] The plurality of candidate neural network models may be neural network models each having a ranking based on a difference in performance from a target performance that is equal to or greater than a preset ranking.

[0089] The multiple candidate neural network models may be neural network models whose performance differs from a target performance within a preset range.

[0090] The present disclosure may provide an electronic device for providing information of a neural network model, the electronic device comprising: a communication interface having at least one circuit; a memory configured to store at least one instruction; and a processor, wherein the processor executes at least one instruction to receive information of a target device on which the neural network model is executed and a target performance of the neural network model for the target device from an external device via the communication interface; derive information of a plurality of candidate neural network models based on the information of the target device and the received target performance; and control the communication interface to send a command to the external device to display the information of the plurality of candidate neural network models based on the received target performance, wherein the information of the plurality of candidate neural network models includes at least one of names of the plurality of candidate neural network models, performance of the plurality of candidate neural network models, or input data sizes of the plurality of candidate neural network models.

[0091] The present disclosure may provide a computer-readable recording medium having a program recorded thereon for causing a computer device to execute the method.

[0092] FIG. 1 is a diagram for explaining the operation of an electronic device according to an embodiment of the present disclosure.

[0093] 1 , the electronic device 100 may define a project 14 based on a data set 11, information 12 of a target device, and a training mode 13. The project 14 may refer to a business unit for obtaining an optimized neural network model 15 for a target device. The electronic device 100 may obtain the optimized neural network model 15 by implementing the project 14. The electronic device 100 may provide the optimized neural network model 15 to a user.

[0094] Data set 11 may include various types of data used to train neural network model 15. For example, data set 11 may include training data used to train neural network model 15, evaluation data used to evaluate the performance of neural network model 15 while training of neural network model 15 is in progress, and test data used to evaluate the performance of neural network model 15 after training of neural network model 15 is completed.

[0095] The target device information 12 may include various target device related information, including target device model information and target device software.

[0096] The training mode 13 may include a first training mode, a second training mode, and a third training mode. The first training mode is a mode for training a model selected by a user from a plurality of pre-stored base models. The second training mode is a mode for training a model derived based on a given algorithm. The third training mode is a mode for retraining a model trained in the first training mode or the second training mode. For example, the first training mode may be a so-called "easy mode" in which a user can obtain a trained model in the shortest time. The second training mode may be a so-called "expert mode" in which a trained model with better performance (or closer to a target performance set by a user) can be obtained, although it takes more time than the first training mode. Furthermore, in the second training mode, more models may be provided than in the first training mode. For example, in the first training mode, one model is obtained by carrying out a project once, while in the second training mode, two or more models may be derived by carrying out a project once.

[0097] The electronic device 100 may define a project 14 based on the data set 11, the target device information 12, the training mode 13, and the neural network model 15 information. The neural network model 15 information may include the neural network model 15 framework, the output data type (e.g., 32-bit floating point), and the interference batch size.

[0098] FIG. 2 is a block diagram showing the configuration of the electronic device according to the present embodiment of the present disclosure.

[0099] 2, the electronic device 100 may include a communication interface 110, a memory 120, and a processor 130. For example, the electronic device 100 may be implemented as a physical server or a cloud server.

[0100] The communication interface 110 may include at least one communication circuit and communicate with various types of external devices. For example, the communication interface 110 may receive information of a dataset and a target device from the external device. The external device may be a user device. The user device may include a personal computer and a mobile device. The communication interface 110 may transmit information of the multiple base models searched based on the information of the target device to the external device. In response, the external device may output the information of the multiple base models. The communication interface 110 may receive a user command to select at least one of the multiple base models from the external device.

[0101] The communication interface 110 may transmit the at least one selected base model and the dataset to an external server. The external server may obtain a trained neural network model (or a trained model) after training the at least one selected base model using the dataset. The communication interface 110 may receive the trained model from the external server.

[0102] The communication interface 110 may transmit the trained model to an external device. The communication interface 110 may transmit information of the trained model to an external device. The information of the trained model may include the name of the trained model, the task performed by the trained model, information of the target device corresponding to the trained model, and the performance (e.g., accuracy and latency) of the trained model. Meanwhile, in the present disclosure, acquiring / storing / sending / receiving a neural network model means acquiring / storing / sending / receiving data (e.g., architecture, weight) related to the model.

[0103] The communication interface 110 may include at least one of a Wi-fi (registered trademark) communication module, a cellular communication module, a third generation (3G) mobile communication module, a fourth generation (4G) mobile communication module, a fourth generation Long Term Evolution (LTE) communication module, a fifth generation (5G) mobile communication, or a wired Ethernet (registered trademark).

[0104] The memory 120 may store an operating system (OS) for controlling the overall operation of the components of the electronic device 100, and instructions or data related to the components of the electronic device 100. The memory 120 may be implemented as a non-volatile memory (e.g., a hard disk, a solid-state drive (SSD), and a flash memory), a volatile memory, and the like.

[0105] The memory 120 may include a database (DB). For example, the memory 120 may include a dataset DB for storing a dataset. The memory 120 may include a project DB for storing a project. The memory 120 may include a model DB for storing a trained model. Information stored in the DB may be provided to a user. For example, a dataset list, a project list, and / or a model list may be displayed on an external device.

[0106] The memory 120 may store information of the multiple neural network models. For example, the memory 120 may store identification information of the multiple neural network models, information of a target device, and a lookup table against which performance information of the multiple neural network models is matched. The performance information of the multiple neural network models may reflect the performance (e.g., delay time) of each of the multiple neural network models when the neural network model is executed on a target model device. The performance of the neural network model for the target device may be the performance of the neural network model when the neural network model is executed on the target device. The delay time of the neural network model may be obtained from a device farm. The accuracy of the neural network model may be derived using test data.

[0107] The memory 120 may store a given algorithm for searching the base model. The given algorithm may include at least one of a hyperparameter optimization (HPO) algorithm or a neural architecture search (NAS) algorithm. The hyperparameter optimization algorithm may include a tree-structured Parzen estimator (TPE) algorithm. The TPE algorithm may be based on Bayesian optimization. The neural network architecture search algorithm may be based on an evolutionary algorithm.

[0108] The processor 130 may be electrically connected to the memory 120 and may control the overall operation and functionality of the electronic device 100. The processor 130 may control the electronic device 100 by executing instructions stored in the memory 120.

[0109] The processor 130 may obtain the dataset, the information of the target device, and the training mode. The processor 130 may receive the dataset, the information of the target device, and the training mode from an external device through the communication interface 110. The dataset, the information of the target device, and the training mode may be input into the external device by a user.

[0110] The processor 130 may determine whether the format of the dataset is a preset format. When the format of the dataset is not a preset format, the processor 130 may convert the format of the dataset to the preset format. The processor 130 may store the converted format dataset in the memory 120. The preset format may include a You only look once (YOLO) format.

[0111] The processor 130 may set a project based on the dataset, the information of the target device, and the training mode. The project may refer to a task unit for deriving a trained neural network model optimized for the target device. For example, the processor 130 may set a first project based on the first dataset, the information of the first target device, and the first training mode. The processor 130 may set a second project based on the second dataset, the information of the second target device, and the second training mode. The processor 130 may set a third project based on the third dataset, the information of the third target device, and the third training mode.

[0112] The processor 130 may obtain the neural network model by executing a project. For example, the processor 130 may execute a first project. In this case, the processor 130 may identify the multiple base models based on the information of the target device and the target performance set by the user. For example, the processor 130 may identify the multiple base models based on a lookup table stored in the memory 120. In the lookup table, the identification information of the multiple neural network models, the information of the target device, and the performance information of the multiple neural network models may be matched. The performance information of the multiple neural network models may reflect the performance (e.g., delay time) of each of the multiple neural network models when the neural network model is executed on the target device. The processor 130 may obtain the performance of each of the multiple neural network models from the device farm. Alternatively, the processor 130 may obtain the performance of a part of the multiple neural network models using the device farm, and may obtain the performance of a part of the remaining neural network models using the trained neural network model to predict the delay time.

[0113] When implementing the first project, the processor 130 may identify, as a base model, a neural network model that corresponds to the target device and has a performance difference from the target performance within a preset range based on the lookup table. For example, the processor 130 may identify a plurality of base models whose delay time difference from the target delay time is within 0.1 seconds.

[0114] The processor 130 may control the communication interface 110 to transmit information of the multiple base models to the external device. The external device may provide the information of the multiple base models to a user. For example, the information of the multiple base models may include identification information (e.g., model name), delay time, and input data size of each of the multiple base models. The external device may obtain a user instruction to select a first base model from the multiple base models. The processor 130 may receive a user instruction from the external device through the communication interface 110. In various embodiments described herein, providing the data to the user may be via display on a user interface of the computing device and / or in a computer-readable data structure.

[0115] The processor 130 may control the communication interface 110 to send the first base model and the first dataset to the external server. Furthermore, the processor 130 may control the communication interface 110 to send learning setting information of the first base model to the external server. The learning setting information may include a size of the input data (e.g., a resolution of the input data), a training epoch, and data augmentation of the trained model. The external server may obtain a first trained model by training the first base model using the first dataset based on the learning setting information. The processor 130 may receive the first trained model from the external server.

[0116] The processor 130 may carry out a second project. In this case, the processor 130 may obtain a plurality of base models based on a given algorithm. The processor 130 may control the communication interface 110 to transmit information of the plurality of base models to an external device. The external device may provide information of the plurality of base models to a user. The external device may obtain a user instruction to select a second base model from the plurality of base models. Alternatively, the processor 130 may select a plurality of second base models from the plurality of base models based on a target performance set by a user. For example, the processor 130 may select a plurality of second base models having performance within a target accuracy range and a target delay time range set by a user.

[0117] The processor 130 may control the communication interface 110 to send the plurality of second base models, the second dataset, and the learning setting information to the external server. The external server may obtain the plurality of second trained models by training each of the plurality of second base models using the second dataset based on the learning setting information. The processor 130 may receive the plurality of second trained models from the external server.

[0118] The processor 130 may implement a third project. The processor 130 may implement the third project after implementing the first project or the second project. For example, the processor 130 may implement the third project after implementing the first project. The processor 130 may control the communication interface 110 to send the third dataset and retraining setting information for retraining the first trained model to an external server. The external server may obtain a third trained model by training the first base model using the third dataset based on the retraining setting information. The processor 130 may receive the third trained model from the external server.

[0119] Meanwhile, functions related to artificial intelligence (AI) according to the present disclosure are operated through the processor 130 and the memory 120. The processor 130 may include one or more processors. In this case, the one or more processors may be general-purpose processors such as a central processing unit (CPU), an application processor (AP), and a dedicated processor for artificial intelligence such as a digital signal processor (DSP), a dedicated processor for graphics such as a graphics processing unit (GPU), a vision processing unit (VPU), or a dedicated processor for artificial intelligence such as a neural processing unit (NPU). The one or more processors control to process input data according to a given operation or AI model stored in the memory 120. Alternatively, the one or more processors may be dedicated processors for artificial intelligence, which may be designed to have a hardware structure specialized for processing a particular AI model.

[0120] The given behavioral rules or AI model are characterized by being created through training. Here, the AI ​​is created through the given behavioral rules or training means that the given behavioral rules or AI model implements a desired characteristic (or purpose) by having a basic AI model use and learn a training data piece with a learning algorithm. Such training may be done on the device itself where the AI ​​of the present disclosure is implemented, or may be done through another server and / or system. Examples of learning algorithms include, but are not limited to, supervised learning, unsupervised learning, semi-supervised learning, or remedial learning.

[0121] The AI ​​model may be generated through training. The AI ​​model may include multiple neural network layers. Each of the multiple neural network layers has multiple weight values ​​and performs neural network operations through operations between the calculation results of the previous layer and the multiple weight values. The multiple weight values ​​of the multiple neural network layers may be optimized according to the training results of the AI ​​model. For example, the multiple weight values ​​may be updated during the learning process to reduce or minimize a loss value or cost value obtained in the AI ​​model.

[0122] The AI ​​network may include a deep neural network (DNN), examples of artificial neural networks include, but are not limited to, a convolutional neural network (CNN), a DNN, a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep brief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, etc.

[0123] FIG. 3 is a diagram for explaining a method for implementing a first project according to an embodiment of the present disclosure.

[0124] 3, the electronic device 100 may obtain a data set 31, target device information 32, and a target delay time 33 set by a user. For example, the target device information 32 may indicate a first device T1. The target delay time 33 may be 500 ms.

[0125] The electronic device 100 may compare the target device information 32 and the target delay time 33 with a lookup table 34. The lookup table 34 may include a model name, a target device name, a resolution of an image input to the model, and a delay time when the model is executed on the target device. The electronic device 100 refers to the lookup table 34 to identify a model that corresponds to the target device information 32 and has a difference from the target delay time 33 within a preset range (e.g., 100 ms). For example, the electronic device 100 may identify a first mode M1 and a second mode M2 ​​corresponding to a first device T1.

[0126] The electronic device 100 may provide a user with a base model list 35 including information on the first model M1 and the second model M2. For example, the base model list 35 may be displayed on a user device. The user may select a first base model 36 from a plurality of base models included in the base model list 35. The electronic device 100 may obtain a first trained model 37 based on the dataset 31 and the first base model 36.

[0127] 3 shows that the delay time for each combination of three pieces of information (i.e., model name, target device name, and resolution of the image input to the model) is recorded in the lookup table 34. However, this is merely an example, and the delay time for a combination of additional information may be recorded in the lookup table 34. For example, the delay time may be recorded for each combination of the batch size, framework, and data type of the model in addition to these three pieces of information.

[0128] 3 illustrates a method for obtaining the base model list 35 based on the target delay time 33. However, the present disclosure is not limited in this respect, and the electronic device 100 may obtain the base model list 35 based on various types of performance indicators. For example, the electronic device 100 may obtain the base model list 35 based on accuracy, power consumption, and / or memory usage.

[0129] FIG. 4 is a diagram for explaining a method for implementing a second project according to an embodiment of the present disclosure.

[0130] 4, the electronic device 100 may obtain a dataset 41, information 42 of a target device, and a given algorithm 43. The electronic device 100 may obtain a base model list 44 including information of a plurality of base models based on the information 42 of the target device and the given algorithm 43. The given algorithm 43 may include a hyperparameter optimization algorithm and a neural network architecture search algorithm.

[0131] The electronic device 100 may provide the user with a list of base models 44. For example, the list of base models 44 may be displayed on a user device. The user may select a plurality of second base models 45 from the list of base models 44. The electronic device 100 may obtain a plurality of second trained models 46 based on the dataset 41 and the plurality of second base models 45.

[0132] On the other hand, the electronic device 100 may acquire the second trained models 46 without user input for selecting the second base models 45. For example, the electronic device 100 may acquire a predetermined number of base models and acquire a trained model corresponding to the acquired base models. Alternatively, the electronic device 100 may identify the second base models 45 whose performance is within a predetermined performance range from the list of the base models 44. For example, the electronic device 100 may identify the second base models 45 whose performance is within a predetermined accuracy range and a predetermined delay time range from the list of the base models 44. Here, the predetermined number and the predetermined performance range may be set by the user. For example, the user may input the predetermined performance range into the user device as the target performance.

[0133] FIG. 5 is a diagram for explaining a method for implementing the third project according to an embodiment of the present disclosure.

[0134] 5, the electronic device 100 may acquire a dataset 51. The dataset 51 may be the dataset 31 used in the first project or the dataset 41 used in the second project. Alternatively, the dataset 51 may be a new dataset not used in the first project or the second project. The dataset 51 may be stored in a dataset DB. The dataset DB may be included in the memory 120 of the electronic device 100.

[0135] The electronic device 100 may acquire a base model list 52. The base model list 52 may include neural network models acquired in a previous project. That is, the base model in the third project may be one of the trained models acquired in the previous project. For example, the base model list 52 may include a first trained model 37 acquired in the first project and a plurality of second trained models 46 acquired in the second project. The electronic device 100 may acquire a base model list 52. A user may select a third base model 53 from the base model list 52. The electronic device 100 may acquire a third trained model 54 based on the dataset 51 and the third base model 53.

[0136] On the other hand, the electronic device 100 may acquire the dataset 51 from the dataset DB without a user selection. In this case, the electronic device 100 may transmit a command to the external device to recommend the acquired dataset 51 to the user. In response to this, the external device may recommend the dataset 51 acquired by the electronic device 100 to the user. Alternatively, the electronic device 100 may acquire a third trained model 54 based on the dataset 51.

[0137] The electronic device 100 may obtain a third trained model 54 based on the compressed model. Here, the compressed model may refer to a lightweight model generated by having the compression unit 2220 compress the trained model obtained through the first project, the second project, or the third project. The operation of the compression unit 2220 will be described later in FIG. 22 with reference S.

[0138] The electronic device 100 may acquire the dataset 51 from the dataset DB based on whether the third base model 53 is a compressed model. When the third base model 53 is a compressed model, the electronic device 100 may acquire the dataset used in training the third base model 53 as the dataset 51. For example, when the third base model 53 is the first trained model 37, the electronic device 100 may acquire the dataset 31. When the third base model 53 is a compressed model, the accuracy of the model may decrease during the progress of compression. The electronic device 100 may acquire the third trained model 54, which has improved accuracy compared to the third base model 53, by carrying out the third project.

[0139] When the third base model 53 is not a compressed model, the electronic device 100 may obtain, as the dataset 51, a dataset that has not been used to train the third base model 53. For example, when the third base model 53 is the first trained model 37, the electronic device 100 may obtain a dataset other than the dataset 31. Thus, the third trained model 54 may accurately predict not only the dataset 31 but also the new dataset.

[0140] 6 to 9 show various screens provided to a user. Each screen may be displayed on a user device.

[0141] FIG. 6 is a data set input screen according to one embodiment of the present disclosure.

[0142] Referring to FIG. 6, the dataset input screen 60 is a screen for receiving a dataset input from a user. The dataset input screen 60 may include a first area 61 for receiving a name of the dataset and user notes. The dataset input screen 60 may include a second area 62 for receiving a task to be performed by the trained model through the dataset. The tasks may include image classification, object detection, and semantic segmentation. The second area 62 may receive a format of the dataset. The dataset formats may include You only look once (YOLO), visual object classes (VOC), and common objects in context (COCO) formats. User interface (UI) elements for letting the user input the task or the format of the dataset may be displayed in the second area 62.

[0143] The dataset input screen 60 may include a third area 63 for receiving an upload path for the dataset and a file for the dataset. The upload path for the dataset may include local storage and cloud storage. A UI element 64 for allowing a user to select an upload path for the dataset may be displayed in the third area 63. A UI element 65 for allowing a user to select a file for the dataset may be displayed in the third area 63. When local storage is selected in the UI element 64, the UI element 65 may receive a file. When cloud storage is selected in the UI element 64, the UI element 65 may receive a link.

[0144] FIG. 7 is a diagram showing a data set confirmation screen according to an embodiment of the present disclosure.

[0145] 7, the dataset confirmation screen 70 is a screen that displays detailed information of a dataset input by a user. The information input by the user on the dataset input screen 60 may be displayed on the dataset confirmation screen 70. For example, the name of the dataset 71, a user note 72, a task 73 to be performed by a model trained through the dataset, a format 74 of the dataset, a total number of datasets 75, and the number of datasets of each type 76 may be displayed on the dataset confirmation screen 70.

[0146] A button 77 for modifying the dataset, a table 78 representing the dataset, and a button 79 for generating a project using the dataset may be displayed on the dataset confirmation screen 70. When the user presses button 79, the user device may send a project generation command to the electronic device 100. When the project generation command is received, the electronic device 100 may set up a project based on the dataset.

[0147] Although not shown, information on projects related to the dataset may be displayed on the dataset confirmation screen 70. For example, projects related to the dataset may include projects acquired using the dataset. The project information may include a task of a trained model acquired through the project, information on a dataset used in the project, information on a target device corresponding to the project, and a purpose of the project.

[0148] Once the input of the data set by the user is complete, the dataset may be uploaded to the electronic device 100. The user device may transmit the input dataset and information related to the dataset (e.g., the name of the dataset, etc.) to the electronic device 100. The electronic device 100 may store the dataset and information related to the dataset in a dataset DB included in the memory 120.

[0149] FIG. 8 is a data set list screen according to an embodiment of the present disclosure.

[0150] 8, a dataset list screen 80 is a screen for displaying a list of datasets. A user may check the uploaded datasets on the dataset list screen 80, generate a project based on the dataset, and delete the dataset. The dataset list may be stored in a dataset DB included in the memory 120.

[0151] A plurality of datasets stored in the dataset DB and information related to each of the plurality of datasets may be displayed on a dataset list screen 80. For example, information 81 related to a first dataset may be displayed on the dataset list screen 80. A task 82 of a model trained using the first dataset and an upload status 83 of the first dataset included in the information related to the first dataset 81 may be displayed. An upload completion status, an uploading status, and an error occurrence status included in the upload status 83 may be displayed.

[0152] A name 84 of the first dataset and the number of datasets 85 may be displayed on the dataset list screen 80. A button 86 for displaying detailed information about the first dataset may be displayed on the dataset list screen 80. For example, when the button 86 is pressed, a dataset confirmation screen 70 corresponding to the first dataset may be displayed on the dataset list screen 80. A button 87 for setting up a project using the dataset may be displayed on the dataset list screen 80. A button 88 for deleting an uploaded dataset may be displayed on the dataset list screen 80.

[0153] FIG. 9 is a target device input screen according to one embodiment of the present disclosure.

[0154] 9, the target device input screen 90 is a screen for receiving information related to a target device from a user. The target device input screen 90 may include a first area 91 for receiving a name and version of the target device. UI elements for allowing the user to select the name and version of the target device may be displayed in the first area 91.

[0155] The target device input screen 90 may include a second area 92 for receiving an output format for obtaining a neural network model corresponding to the target device. The output format may include a framework and a software version. UI elements may be displayed in the second area 92 that allow a user to select each of the framework and software version.

[0156] The target device input screen 90 may include a third area 93 for receiving a type of output data for obtaining a neural network model corresponding to the target device. UI elements for allowing a user to select a type of output data may be displayed in the third area 93. Some of the UI elements displayed in the second area 92 and / or the third area 93 may be disabled depending on the item selected in the first area 91. The target device input screen 90 may include a fourth area 94 for receiving a size of an interference batch for obtaining a neural network model corresponding to the target device.

[0157] Although not shown, a training mode selection screen for receiving the training mode 13 may be displayed on the user device. The training mode selection screen may include UI elements (e.g., buttons) each associated with each of the multiple training modes. When the user selects a training mode, the user device may send a command related to the selected training mode to the electronic device 100. The electronic device 100 may set up a project based on the selected training mode.

[0158] Further, a learning resource selection screen for receiving a selection of a learning resource from a user may be displayed on the user device. The learning resource may generate a trained model by training a base model. For example, the learning resource may include an external server. UI elements corresponding to at least one learning resource may be displayed on the learning resource selection screen. When the user selects a UI element, the user device may transmit a related command to the learning resource corresponding to the selected UI element. The electronic device 100 may transmit the base model as a learning resource. The electronic device 100 may receive a trained model generated by the learning resource from the learning resource.

[0159] FIG. 10 is a project information screen according to one embodiment of the present disclosure.

[0160] 10, a project information screen 101 may display project information set based on information input by a user. For example, a training mode 102 selected by a user and dataset information 103 input by a user may be displayed on the project information screen 101. The dataset information 103 may include a task to be performed by a trained model obtained through a project and identification information of the dataset.

[0161] Although not shown, the project information screen 101 may include a learning settings area for receiving learning setting information. The learning setting information may include a target performance of the trained model, an input data size of the trained model (e.g., input image resolution), training epochs, and data augmentation.

[0162] FIG. 11 is a diagram for explaining a control method for an electronic device according to an embodiment of the present disclosure.

[0163] 11, the electronic device 100 may receive a data set for training the neural network model, information of a target device for executing the neural network model, and a training mode for the neural network model (S1110). The electronic device 100 may receive the data set for training the neural network model, information of a target device for executing the neural network model, and a training mode for the neural network model from a user device.

[0164] The electronic device 100 may set a project based on the dataset, the information of the target device, and the training mode (S1120). The electronic device 100 may set a project based on the dataset, the information of the target device, and the training mode. The project may be classified according to the training mode. For example, a project set by a first training mode may be classified as a first project, a project set by a second training mode may be classified as a second project, and a project set by a third training mode may be classified as a third project.

[0165] The electronic device 100 may derive at least one trained neural network model by executing the project (S1130). The derived model may be a model optimized for the target device. The method of executing the project will be described in more detail below.

[0166] FIG. 12 is a sequence diagram illustrating a method for implementing a first project according to one embodiment of the present disclosure.

[0167] 12, a system 1000 for providing a neural network model may include an electronic device 100, an external device 200, and an external server 300. The external device 200 may be a user device that interacts with a user. The external server 300 may be a learning server that generates a trained model based on a dataset.

[0168] The external device 200 may receive the first data set, the information of the first target device, and the first training mode (S1210). The external device 200 may transmit the first data set, the information of the first target device, and the first training mode to the electronic device 100 (S1215). In the present disclosure, an operation of transmitting the training mode refers to an operation of transmitting information indicating the training mode.

[0169] The electronic device 100 may set a first project based on the first data set, the information of the first target device, and the first training mode (S1220). The electronic device 100 may execute the set first project (S1230). Hereinafter, the operation of executing the first project (S1230) will be described in further detail.

[0170] The electronic device 100 may derive a plurality of base models based on the information of the first target device and the target performance input by the user (S1231). For example, the electronic device 100 may store a plurality of neural network models and a lookup table including information on each of the plurality of neural network models. The electronic device 100 may use the lookup table to identify, from the plurality of neural network models, a neural network model that corresponds to the target device and has a performance difference from the target performance within a preset range as a base model.

[0171] The electronic device 100 may transmit information on a plurality of base models to the external device 200 (S1232). In this case, the electronic device 100 may transmit, to the external device 200, a command to display information on a plurality of base models.

[0172] The external device 200 may output information on the multiple base models (S1233). For example, the external device 200 may display information on each of the multiple base models. To achieve this goal, the external device 200 may include various output units including a display and a speaker.

[0173] The external device 200 may receive a user command to select a first base model from the multiple base models (S1234). The external device 200 may transmit information about the first base model to the electronic device 100 (S1235).

[0174] The electronic device 100 may transmit the first data set and the first base model to the external server 300 (S1236). The external server 300 may be selected by a user. For example, the external device 200 may display a plurality of external servers and obtain a user input for selecting one of the plurality of external servers. The operation of the user selecting the external server 300 may be performed before the operation of performing the first project (S1230) or during the operation of performing the first project (S1230).

[0175] The external server 300 may derive a first trained model by training a first base model based on the first data set (S1237). The external server 300 may transmit the first trained model to the electronic device 100 (S1238). Meanwhile, in another embodiment, the first trained model may be generated by the electronic device 100. That is, the electronic device 100 may perform the function of the external server 300. In this case, operations S1237 and S1238 may be omitted.

[0176] The electronic device 100 may transmit information of the first trained model to the external device 200 (S1239). The external device 200 may provide the information of the first trained model to a user. For example, the information of the first trained model may include performance information of the first trained model, a download file of the first trained model, and a download link.

[0177] FIG. 13 is a sequence diagram illustrating a method for implementing a second project according to an embodiment of the present disclosure.

[0178] 13, the external device 200 may receive a second data set, information of a second target device, and a second training mode (S1310), and may transmit the acquired second data set, information of the second target device, and second training data to the electronic device 100 (S1315). The electronic device 100 may set a second project based on the second data set, information of the second target device, and the second training mode (S1320). The electronic device 100 may implement the second project (S1330). Hereinafter, the operation of implementing the second project (S1330) will be described in more detail.

[0179] The electronic device 100 may generate a plurality of base models based on the information of the second target device and a predetermined algorithm (S1331). The predetermined algorithm may include at least one of a hyperparameter optimization algorithm or a neural network architecture search algorithm. The hyperparameter optimization algorithm may include hyperparameter optimization (HPO). HPO may be an algorithm for finding optimal hyperparameters in a given hyperparameter search space. For example, HPO may generate several base models by modifying several layers of a neural network model, and search for a well-performing base model while evaluating the performance of each base model. HPO may utilize algorithms such as hyperband and Bayesian optimization.

[0180] The electronic device 100 may transmit information of the multiple base models to the external device 200 (S1332). The external device 200 may output information of the multiple base models (S1333). The external device 200 may receive a user instruction to select at least one base model from the multiple base models (1334). For example, the external device 200 may obtain a user instruction to select the multiple base models. The external device 200 may transmit information of the at least one base model to the electronic device 100 (S1335). The electronic device 200 may transmit the second data set and the at least one base model to the external server 300 (S1336).

[0181] The external server 300 may derive at least one second trained model by training at least one base model based on the second data set (S1337). The external server 300 may transmit the at least one second trained model to the electronic device 100 (S1338). The electronic device 100 may transmit information of the at least one second trained model to the external device 200.

[0182] Meanwhile, in another embodiment, the electronic device 100 may obtain at least one second trained model without a user instruction to select a base model. For example, the electronic device 100 may generate a plurality of base models and obtain a plurality of second trained models in which each of the plurality of base models is trained. That is, the electronic device 100 may transmit the second dataset and the plurality of base models to the external server 300 and may receive the plurality of second trained models from the external server 300. In this case, operations S1332, S1333, S1334, and S1335 may be omitted.

[0183] FIG. 14 is a sequence diagram showing a method for implementing the third project according to an embodiment of the present disclosure.

[0184] Referring to FIG. 14, the external device 200 may receive a third data set, information of a third target device, and a third training mode (S1410), and may transmit the acquired third data set, information of a third target device, and third training mode to the electronic device 100 (S1415). The electronic device 100 may set a third project based on the third data set, information of a third target device, and the third training mode (S1420). In other embodiments, the operation of deriving information of a third target device and transmitting the acquired information to the electronic device 100 may be omitted. For example, when the third training mode is selected by a user, the electronic device 100 may acquire information of a target device corresponding to a project implemented before the third project from the project DB. For example, when the electronic device 100 implements a third project after implementing a first project, the electronic device 100 may acquire information of a first target device used in the first project.

[0185] The electronic device 100 may set a third project based on the third data set, the information of the third target device, and the third training mode (S1420). The electronic device 100 may implement the third project (S1430). The operation of implementing the third project (S1430) will be described in further detail below.

[0186] The electronic device 100 may acquire a trained model list (S1431). For example, the electronic device 100 may acquire the trained model list from a model DB. The trained model list may include information on a plurality of trained models stored in the model DB.

[0187] The electronic device 100 may transmit the list of trained models to the external device 200 (S1432). The external device 200 may output the list of trained models (S1433). In other embodiments, operations S1431 and S1432 may be omitted. For example, the list of trained models may be stored in the external device 200.

[0188] The external device 200 may receive a user command to select one trained model from the trained model list (S1434). The external device 200 may transmit information of the selected trained model to the electronic device 100 (S1435). The electronic device 100 may transmit the third data set and the selected trained model to the external server 300 (S1436). The external server 300 may derive the third trained model by training the selected trained model based on the third data set (S1437). That is, in the third project, the base model may be a trained model generated through the first project or the second project. Furthermore, the base model of the third project may include a retrained model (i.e., a model obtained through another third project) based on the trained model generated through the first project or the second project.

[0189] The external server 300 may transmit the third trained model (S1438). The electronic device 100 may transmit information about the third trained model to the external device 200 (S1439).

[0190] FIG. 15 is a block diagram showing a configuration of a system for providing a neural network model according to an embodiment of the present disclosure.

[0191] 15, a system 1000 for providing a neural network model may include an electronic device 100, an external device 200, and an external server 300. The electronic device 100 may obtain information of the neural network model based on a user input obtained through the external device 200 via a communication and / or data network. The electronic device 100 may transmit the information of the neural network model to the external device 200 via the network. The external device 200 may provide the information of the neural network model received from the electronic device 100 via the network to a user.

[0192] The memory 120 may store information of the neural network models. The information of the neural network models may include identification information of the neural network models, information of devices on which the neural network models are executed, performance information of the neural network models when the neural network models are executed on the devices, and input data sizes of the neural network models. Each piece of information may be matched with each other or stored in the form of a lookup table.

[0193] The processor 130 may obtain information of a target device on which the neural network model is executed, and a target performance of the neural network model when the neural network model is executed on the target device. The target performance may include at least one of a target accuracy, a target delay time, or a target amount of calculation. The processor 130 may receive the information of the target device and the target performance of the neural network model from an external device through the communication interface 110. The external device 200 may obtain a user command to input the information of the target device and the target performance of the neural network model through the input unit 240.

[0194] The processor 130 may derive information of the multiple candidate neural network models based on the information of the target device and the target performance. The information of the multiple candidate neural network models may include at least one of the names of the multiple candidate neural network models, the performances of the multiple candidate neural network models, and the sizes of the input data of the multiple candidate neural network models.

[0195] The processor 130 may obtain information of the plurality of candidate neural network models from the memory 120. The processor 130 may identify the plurality of candidate neural network models from the plurality of neural network models by comparing the information of the target device and the target performance with the information of the plurality of neural network models stored in the memory 120. The processor 130 may obtain information of the plurality of identified candidate neural network models from the memory 120.

[0196] The processor 130 may identify, as the multiple candidate neural network models, neural network models whose rankings based on the difference in performance from the target performance are equal to or higher than a preset ranking from among the multiple neural network models stored in the memory 120. The preset ranking may be the fifth. A neural network model whose performance difference from the target performance is small may have a higher rank. For example, the multiple neural network models may include first to tenth neural network models. Of these, the first to tenth neural network models may be ranked first to fifth, respectively. In this case, the processor 130 may identify the first to fifth neural network models as the multiple candidate neural network models.

[0197] The processor 130 may identify, as a plurality of candidate neural network models, neural network models whose difference from a target performance is within a preset range among the plurality of neural network models. For example, the target performance may be a target delay time, and the preset range may be 100 ms.

[0198] The processor 130 may send a command to the external device 200 to control the communication interface 110 to display information of the multiple candidate neural network models based on the target performance. The external device 200 may display information of the multiple candidate neural network models based on the sent command. Unless otherwise specified in the present disclosure, the processor 130 sending a command to the external device 200 means that the processor 130 controls the communication interface 110 to send a command to the external device 200. Meanwhile, unless otherwise specified, it is clear that when the electronic device 100 sends a display command to the external device 200, the external device 200 displays information corresponding to the display command.

[0199] The processor 130 may send instructions to the external device 200 to display a plurality of UI elements each representing information of a plurality of candidate neural network models in reverse order of the difference between the performance of the corresponding candidate neural network model and the target performance. Each of the plurality of UI elements may display information of one of the plurality of candidate neural network models when a cursor is positioned over each of the plurality of UI elements.

[0200] The plurality of candidate neural network models may include a plurality of first candidate neural network models of a first type and a plurality of second candidate neural network models of a second type. The first candidate neural network models may be models obtained based on project information set by a user. The project information may include various information defining the project (e.g., an input data size of the neural network model generated through the project). For example, the first candidate neural network model may be a model having an input data size identical to the input data set by the user. The second candidate neural network model may be a model obtained based on project information partially modified from the project information set by the user. For example, the second candidate neural network model may have an input data size different from the input data size set by the user, and may have performance within a preset range from the target performance set by the user.

[0201] The plurality of UI elements may include a plurality of first UI elements each associated with a respective one of the plurality of first candidate neural network models, and a plurality of second UI elements each associated with a respective one of the plurality of second candidate neural network models. The processor 130 may send a command to the external device 200 to simultaneously display the plurality of first UI elements and the plurality of second UI elements in different regions. In response, the external device 200 may simultaneously display the plurality of first UI elements and the plurality of second UI elements in different regions.

[0202] The processor 130 may send a command to the external device 200 to display a plurality of UI elements each showing information of one of the plurality of candidate neural network models on a two-dimensional graph. The two-dimensional graph may be defined by a first axis corresponding to a first performance parameter and a second axis corresponding to a second performance parameter. For example, the first performance parameter may be a delay-related parameter, and the second performance parameter may be an accuracy-related parameter.

[0203] The plurality of UI elements each include a third UI element, in which the performance of a candidate neural network model associated with a respective one of the plurality of UI elements corresponds to the target performance, and a fourth UI element, in which the performance of a corresponding candidate neural network model does not correspond to the target performance. The processor 130 may send instructions to the external device 200 to enable the third UI element and disable the fourth UI element.

[0204] The external device 200 may be implemented as a personal computer (PC). The external device 200 may include a communication interface 210, a memory 220, a processor 230, an input unit 240, and a display 250.

[0205] The processor 230 may control the communication interface 210 to transmit a user instruction acquired through the input unit 240 to the electronic device 100. For example, the processor 230 may control the communication interface 210 to transmit a user instruction to the electronic device 100 for selecting one of a plurality of candidate neural network models.

[0206] The input unit 240 is configured to receive various user commands related to the operation of the external device 200. The input unit 240 may be implemented as an input / output interface that receives various input signals from an external input means, such as a keyboard or a mouse, connected to the external device 200. Alternatively, the input unit 240 may be implemented as a touch screen on the display 250.

[0207] Display 250 may display various types of information as controlled by processor 230. For example, display 250 may display information for multiple candidate neural network models.

[0208] FIG. 16 is a diagram showing a learning setting screen according to an embodiment of the present disclosure.

[0209] 16, a learning setting screen 1600 is a screen for receiving learning setting information from a user, and may be displayed on the external device 200. The learning setting information may include input data size (e.g., input image resolution), training epochs, and data augmentation of the trained model.

[0210] The learning settings screen 1600 may include a first area 1610 for receiving a target performance (e.g., latency). The first area 1610 may receive a single value or a range of values ​​(e.g., 400-500). The learning settings screen 1600 may include a second area 1620 for receiving an input data size for the neural network model, and a third area 1630 for receiving whether data augmentation and training epochs should be performed.

[0211] When the user input for each region 1610, 1620, and 1630 is obtained, the external device 200 may transmit information related to the user input to the electronic device 100. The electronic device 100 may obtain multiple candidate neural network models based on the performance and input data size input by the user, and transmit the obtained neural network models to the external device 200.

[0212] On the other hand, the size of the dataset input by the user may be different from the size of the set input data. For example, the dataset input by the user may be an image set of a first resolution, and the size of the set input data may be a second resolution different from the first resolution. In this case, the electronic device 100 may convert the size of the dataset input by the user to the size of the set input data. For example, the electronic device 100 may obtain an image set of the second resolution from an image set of the first resolution.

[0213] FIG. 17 is a base model recommendation screen according to an embodiment of the present disclosure.

[0214] 17, a base model recommendation screen 1700 is a screen that recommends a plurality of candidate neural network models to a user, and may be displayed on the external device 200. The user may select a base model from the plurality of candidate neural network models. The system 1000 for providing a neural network model may generate a trained model based on the base model selected by the user, and provide the generated trained model to the user.

[0215] A plurality of UI elements 1711, 1712, 1713, 1714, 1715, 1721, 1722, 1723, 1724, and 1725, each representing information of one of a plurality of candidate neural network models, may be displayed on the base model recommendation screen 1700. Each UI element may represent information of a corresponding candidate neural network model. For example, the information of the candidate neural network model may include the name, size, delay time, and input data size of the candidate neural network.

[0216] The UI elements 1711, 1712, 1713, 1714, 1715, 1721, 1722, 1723, 1724, and 1725 may be displayed based on a target performance input by a user and a size of input data for the neural network model. For example, the target delay time may be 100 ms, and the size of the input data may be 480×480 px.

[0217] The UI elements 1711, 1712, 1713, 1714, 1715, 1721, 1722, 1723, 1724, and 1725 may be displayed in the reverse order of the difference between the corresponding delay time and the target delay time. For example, the delay times corresponding to the first UI elements 1711, 1712, 1713, 1714, and 1715 may be 98 ms, 102 ms, 116 ms, 120 ms, and 143 ms, respectively. The first UI elements 1711, 1712, 1713, 1714, and 1715 may be displayed consecutively in the first direction d1. Similarly, the second UI elements 1721, 1722, 1723, 1724, and 1725 may be displayed consecutively in the first direction d1.

[0218] On the other hand, the multiple UI elements 1711, 1712, 1713, 1714, 1715, 1721, 1722, 1723, 1724, and 1725 may be divided into first UI elements 1711, 1712, 1713, 1714, and 1715 whose corresponding delay times are the same as the size of input data set by the user, and second UI elements 1721, 1722, 1723, 1724, and 1725 whose corresponding delay times are different from the size of input data set by the user. The first UI elements 1711, 1712, 1713, 1714, and 1715 and the second UI elements 1721, 1722, 1723, 1724, and 1725 may be displayed in different regions. For example, first UI elements 1711, 1712, 1713, 1714, and 1715 may be displayed in a first region 1710, and second UI elements 1721, 1722, 1723, 1724, and 1725 may be displayed in a second region 1720. The first UI elements 1711, 1712, 1713, 1714, and 1715 and the second UI elements 1721, 1722, 1723, 1724, and 1725 may be displayed simultaneously. The first region 1710 and the second region 1720 may be positioned in a direction orthogonal to the first direction d1.

[0219] In Fig. 17, first UI elements 1711, 1712, 1713, 1714, and 1715 corresponding to base models obtained based on the size of the input data are displayed in a first area 1710. Second UI elements 1721, 1722, 1723, 1724, and 1725 corresponding to base models obtained based on the delay time are displayed in a second area 1720. However, this is only one embodiment, and the base models corresponding to the UI elements displayed in each area may be selected based on various characteristics related to the neural network model. Furthermore, UI elements having the same size as the input data set by the user may also be displayed in the second area 1720.

[0220] The manner in which information about the candidate neural network models is displayed may vary depending on the training mode. For example, the base model recommendation screen 1700 may show a manner in which information about the candidate neural network models is displayed in a first training mode. Figures 18 and 19 may show a manner in which information about the candidate neural network models is displayed in a second training mode.

[0221] FIG. 18 is a diagram for explaining a method for displaying information of a neural network model according to an embodiment of the present disclosure.

[0222] 18, the external device 200 may display a plurality of UI elements 1810, 1820, 1830, 1840, 1850, and 1860, each associated with a respective one of a plurality of neural network models. The external device 200 may display the plurality of UI elements 1810, 1820, 1830, 1840, 1850, and 1860 on a two-dimensional graph. The two-dimensional graph may be defined by a first axis corresponding to latency and a second axis corresponding to accuracy. The second axis may correspond to mean average precision (mAP).

[0223] When a UI element is selected by the user, the external device 200 may display information of the neural network model corresponding to the selected UI element. The user's selection may be made by placing a cursor C or the UI element, or by an action of selecting the UI element (e.g., clicking). For example, when the cursor C is placed over a first UI element 1810, the external device 200 may display information 1811 on a first neural network model corresponding to the first UI element 1810.

[0224] The plurality of neural network models may be base models. For example, the plurality of neural network models may be base models generated by having the electronic device 200 perform a second project. Alternatively, the plurality of neural network models may be base models obtained by having the electronic device 200 perform a first project.

[0225] The plurality of neural network models may be trained neural network models, for example, or may be base models obtained by having the electronic device 200 perform a third project.

[0226] FIG. 19 is a diagram for explaining a method for displaying information of a neural network model according to an embodiment of the present disclosure.

[0227] 19, the external device 200 may display UI elements 1910, 1920, 1930, 1940, 1950, and 1960 associated with each of a plurality of neural network models, each based on a region of interest (ROI). The external device 200 may define the ROI based on a target performance set by a user. The external device 200 may determine the ROI based on a target delay time and a target accuracy set by the user.

[0228] The external device 200 may determine, as the ROI, a region defined by a preset time range from a target delay time set by the user, and a preset accuracy range from the target accuracy set by the user. For example, the target delay time set by the user may be 0.2 seconds, and the preset time range may be -0.05 seconds to +0.05 seconds. Furthermore, the target accuracy set by the user may be 0.03, and the preset accuracy range may be -0.025 to 0.035. In this case, the external device 200 may define the ROI of FIG. 19.

[0229] On the other hand, the target performance set by the user may be a range value. In this case, the external device 200 may define the ROI without expanding the target performance set by the user. For example, the user may set the target delay time to 0.15 seconds to 0.25 seconds and the target accuracy to 0.025 to 0.035. In this case, the external device 200 may define the ROI in FIG. 19 by directly reflecting the target performance set by the user.

[0230] 19 shows that the ROI is defined by two axes, this is merely an example, and the ROI may be defined based on a single axis. For example, the ROI may be defined based on a target delay time. The external device 200 may define a preset time range from the target delay time as the ROI.

[0231] Among the UI elements 1910, 1920, 1930, 1940, 1950, and 1960, the external device 200 may display the UI elements 1910 and 1920 included in the ROI and the UI elements 1930, 1940, 1950, and 1960 not included in the ROI for distinction. For example, the external device 200 may display the visual characteristics (e.g., shape, color, etc.) of the UI elements 1910 and 1920 differently from the UI elements 1930, 1940, 1950, and 1960. Here, the UI elements 1910 and 1920 may correspond to candidate neural network models having performance within a preset range from the target performance of the neural network model. The UI elements 1930, 1940, 1950, and 1960 may correspond to candidate neural network models having performance outside a preset range from the target performance of the neural network model.

[0232] The external device 200 may activate UI elements 1910 and 1920 included in the ROI. In response, when at least one of the UI elements 1910 or 1920 is selected, the external device 200 may display information of a neural network model corresponding to the at least one selected UI element. For example, when a first UI element 1910 is selected, the external device 200 may display information of a first neural network model corresponding to the first UI element 1910.

[0233] The external device 200 may disable the UI elements 1930, 1940, 1950, and 1960 that are not included in the ROI. In response, the UI elements 1930, 1940, 1950, and 1960 may become unselectable.

[0234] Meanwhile, the method of displaying the information about the neural network model may vary according to the training mode. For example, when the training mode is set as the first training mode, the information about the neural network model may be displayed as shown in Figure 17. When the training mode is set as the second learning mode, the information about the neural network model may be displayed as shown in Figures 18 and 19.

[0235] FIG. 20 is a diagram for explaining a method for deriving the performance of a neural network model according to an embodiment of the present disclosure.

[0236] Referring to FIG. 20 , the electronic device 100 may obtain the performance of the neural network model 2030 using the device farm 2010. The neural network model 2030 may be a base model or a trained model. The device farm 2010 may include information related to various devices. The electronic device 100 may identify a target device 2020 in the device farm 2010 based on information of the target device input by a user. The electronic device 100 may measure the performance of the neural network model 2030 by executing the neural network model 2030 on the target device 2020. The device farm 2010 may be implemented as a DB included in the electronic device 100.

[0237] The electronic device 100 may generate the lookup table based on the performance of the neural network model 2030 obtained using the device farm 2010. As described above, the lookup table may include information of multiple neural network models, including the performance of the multiple neural network models.

[0238] The electronic device 100 may compress the neural network model 2030 based on the performance of the neural network model 2030. For example, the electronic device 100 may obtain a setting value for compressing the neural network model 2030 based on the delay time of the neural network model 2030.

[0239] FIG. 21 is a diagram for explaining a method for controlling an electronic device according to an embodiment of the present disclosure.

[0240] 21, the electronic device 100 may receive information of a target device on which the neural network model is to be executed from an external device, and may receive a target performance of the neural network model when the neural network model is executed on the target device (S2110). The target performance may include a target delay time and a target accuracy.

[0241] The electronic device 100 may derive information of a plurality of candidate neural network models based on the information of the target device and the target performance (S2120). The candidate neural network models may be base models or trained models. For example, the electronic device 100 may obtain the candidate neural network models by implementing a project.

[0242] The electronic device 100 may send a command to an external device to display information of the plurality of candidate neural network models based on the target performance (S2130). The method of displaying information of the plurality of candidate neural network models based on the command sent by the electronic device 100 can be clearly understood with reference to FIGS. 17 to 19.

[0243] FIG. 22 is a diagram for explaining the operation of the electronic device according to an embodiment of the present disclosure.

[0244] 22, the electronic device 100 may include a model acquisition unit 2210, a compression unit 2220, and a launcher unit 2230. The model acquisition unit 2210, the compression unit 2220, and the launcher unit 2230 may be implemented as software modules. The processor 130 may load instructions related to each unit into the memory 120 and execute them.

[0245] The model acquisition unit 2210 may acquire a trained model 2215 based on the target set 2201 and the target device information 2202 (or information of the target device). For example, the model acquisition unit 2210 may carry out a first project to acquire a first trained model. The model acquisition unit 2210 may receive a compressed model 2225 from the compression unit 2220. The model acquisition unit 2210 may acquire a re-trained model by carrying out a third project set based on the compressed model 2225.

[0246] The model acquisition unit 2210 may transmit the trained model 2215 to the compression unit 2220 or the launcher unit 2230. For example, the model acquisition unit 2210 may transmit the first trained model to the compression unit 2220. The model acquisition unit 2210 may transmit the retrained model to the launcher unit 2230. Other operations of the electronic device 100 related to the model acquisition unit 2210 (e.g., an operation of implementing a project) have been described above, and therefore will not be described in detail.

[0247] The compression unit 2220 may output a lightweight model by performing compression on the input model. The compression unit 2220 may compress the trained model 2215 or the neural network model 2235 to generate the compressed model 2225. The neural network model 2235 may be a predetermined model not acquired by the model acquisition unit 2210. The compression unit 2220 may transmit the compressed model 2225 to the launcher unit 2230 or the model acquisition unit 2210.

[0248] The compression unit 2220 may compress the input model based on compression setting information set by a user. The compression setting information may include at least one of a compression mode, a compression method, a compression setting value, or reference information for determining a compression target from a plurality of channels included in the input model. The compression mode may include a first compression mode for compressing the input model based on a model compression setting value set by a user for compressing the input model. The compression mode may include a second compression mode for providing a user with information of blocks included in the input model and compressing the trained model based on a block compression setting value set by the user for block compression. The compression unit 2220 may be referred to as a compressor.

[0249] The launcher unit 2230 may output download data 2245 corresponding to the input models to be deployed on the target device. The models input to the launcher unit 2230 may include the compressed model 2225, the neural network model 2235, and the retrained model.

[0250] The launcher unit 2230 may perform quantization on the input model based on the target device information 2202. The target device information 2202 may include a data type (e.g., an 8-bit integer type) supported by the target device. The launcher unit 2230 may convert the data type of the input model to the data type supported by the target device.

[0251] The launcher unit 2230 may perform a calibration on the input model. The launcher unit 2230 may perform the calibration based on a code entered by a user or a pre-stored code. For example, the launcher unit 2230 may adjust a quantization interval. The launcher unit 2230 may perform quantization based on the adjusted quantization interval. Parameter values ​​(e.g., weight values) of the input model or the quantized model may be changed accordingly.

[0252] The launcher unit 2230 may provide the user with download data 2245. The download data 2245 may refer to a download file, a download package, or similar collected data. When the user requests the download data 2245, the launcher unit 2230 may transmit the download data 2245 to the user device. In response, a neural network model optimized for the target device may be installed on the user device.

[0253] 23 is a diagram for explaining the first compression mode according to an embodiment of the present disclosure. Each operation may be performed by the processor 130.

[0254] 23, the electronic device 100 may receive a model compression setting value set by a user for compressing a base model (S2310). For example, the model compression setting value may include a value for determining a pruning ratio indicating a pruning degree and a rank number. The base model may include a trained model 2215 and a neural network model 2235 acquired by the model acquisition unit 2210.

[0255] The electronic device 100 may identify (S2320) compressible target blocks from among the blocks included in the base model. The blocks may be a layer set including at least one layer. The blocks may include layers of various types. For example, the blocks may include a convolutional layer, an activation function, a regularization function, and an arithmetic operator (e.g., an addition operator or a multiplication operator).

[0256] The electronic device 100 may identify a block other than the block predefined as a non-compressible block as the target block. The block predefined as a non-compressible block may include a block with an enable function or a non-enable function. Furthermore, the block predefined as a non-compressible block may include a block whose output channel is directly connected to an arithmetic operator. Here, the output channel being directly connected to an arithmetic operator may mean that no block having a weight value exists between the output channel and the arithmetic operator. For example, the block immediately before the arithmetic operator may be a non-compressible block.

[0257] The electronic device 100 may derive (S2330) a setting value for compressing a plurality of first blocks, each associated with a respective one of the plurality of target blocks, based on the model compression setting value and a given algorithm. The given algorithm may include so-called layer-adaptive sparsity for the magnitude-based pruning (LAMP) and variational Bayesian matrix factorization (VBMF). The block compression setting value may include a pruning ratio and a rank number indicating the degree of pruning of each block. In the present disclosure, the model compression setting value may mean a value corresponding to the entire model, and the model compression setting value may mean a value corresponding to each block included in the model.

[0258] The electronic device 100 may obtain a block compression setting value based on the delay time obtained from the device farm. For example, the electronic device 100 may obtain a compression ratio to be applied to a block such that the compression ratio increases as the delay time corresponding to the block increases. Furthermore, the electronic device 100 may adjust the block compression setting value obtained based on a given algorithm using the delay time obtained from the device farm.

[0259] The electronic device 100 may compress the target blocks based on the set values ​​for compressing the first blocks (S2340). In response, the electronic device 100 may obtain a compression model. For example, the electronic device 100 may perform pruning on the target blocks. Alternatively, the electronic device 100 may perform filter decomposition (or tell loss decomposition) on the target blocks.

[0260] The electronic device 100 may provide a setting value for compressing the plurality of first blocks to a user. For example, the electronic device 100 may transmit, to the user device, a command related to displaying the setting value for compressing the plurality of first blocks and the setting value for compressing the plurality of first blocks, so that the setting value for compressing the plurality of blocks is displayed on the user device. In response, the user device may display the setting value for compressing the plurality of first blocks.

[0261] The user may modify at least one block compression setting value from among the setting values ​​for compressing the plurality of first blocks. The electronic device 100 may receive a user instruction from a user device to modify the setting value for compressing the at least one first block. The electronic device 100 may compress the plurality of target blocks based on the user instruction.

[0262] In the first compression mode, a user may obtain a lightweight model by inputting only a setting value for compression of a single model. Accordingly, user convenience may be improved. In another embodiment, a user may input setting values ​​for compressing multiple models, each associated with a respective one of a plurality of compression methods. For example, a user may input a setting value for a first model compression corresponding to pruning and a setting value for a second model compression corresponding to filter decomposition.

[0263] FIG. 24 is a compression setting screen for the first compression mode according to an embodiment of the present disclosure.

[0264] 24, a compression settings screen 2400 may include a first area 2410 for receiving a name of the compressed model, a second area 2420 for receiving user notes for compression, a third area 2430 for receiving a base model to be compressed, and a fourth area 2440 for receiving model compression settings. The compression settings screen 2400 may be displayed on a user device.

[0265] The user device may transmit information inputted in the compression setting screen 2400 to the electronic device 100. The electronic device 100 may acquire setting values ​​for compressing a plurality of blocks corresponding to a plurality of target blocks included in the base model based on the information inputted in the compression setting screen 2400. The electronic device 100 may specify the model selected in the third area 2430 as the base model. The third area 2430 may be provided with a list of models including the trained model 2215 and the neural network model 2235 acquired by the model acquisition unit 2210. The electronic device 100 may acquire a plurality of compression ratios corresponding to a plurality of target blocks based on the compression ratios set by the user in the fourth area 2440.

[0266] The electronic device 100 may obtain a model compression setting value corresponding to a predetermined compression method based on a model compression setting value set by a user. The predetermined compression method may include pruning and / or filter decomposition. For example, the electronic device 100 may obtain a pruning ratio corresponding to the target block based on a compression ratio set by a user. Alternatively, the electronic device 100 may obtain a rank number corresponding to the target block based on a compression ratio set by a user. The predetermined compression method may be set by a user.

[0267] There may be multiple predetermined compression methods. For example, the electronic device 100 may obtain a pruning ratio and a rank number corresponding to the target block based on a compression ratio set by a user. The electronic device 100 may perform pruning and filter decomposition on the base model.

[0268] On the other hand, the user may set both the compression method and the model compression setting value. For example, the user may select pruning as the compression method and input a pruning ratio corresponding to the base model. In this case, the electronic device 100 may obtain a pruning ratio corresponding to the target block included in the base model based on the pruning ratio corresponding to the base model.

[0269] 24, the compression setting screen 2400 may include a compression method selection area for receiving a user command to select a compression method, or the compression method selection area may be provided on a separate screen.

[0270] 25 is a diagram for explaining the second compression mode according to an embodiment of the present disclosure. Each operation may be performed by the processor 130.

[0271] 25, the electronic device 100 may derive profile information of the base model by analyzing the base model (S2510). The profile information of the base model may include information of each block included in the base model. The information of each block may include identification information of the block, delay information corresponding to the block, the amount of channels included in the block, and the size of the kernel included in the block.

[0272] The electronic device 100 may provide the profile information of the base model to the user (S2520). The electronic device 100 may transmit the profile information of the base model to the user device. The user device may display the profile information of the base model.

[0273] The electronic device 100 may receive a setting value for compressing a plurality of second blocks set by a user for compressing a plurality of target blocks included in the base model (S2530). The setting values ​​for compressing the plurality of second blocks may each correspond to a plurality of target blocks.

[0274] The electronic device 100 may compress the target blocks based on the set values ​​for compressing the second blocks (S2540). For example, the electronic device 100 may perform pruning or filter decomposition on the target blocks. In response, the electronic device 100 may obtain a lite model.

[0275] FIG. 26 is a compression setting screen for the second compression mode according to an embodiment of the present disclosure.

[0276] 26, a compression settings screen 2600 may include a first area 2610 for receiving a name and notes for the compressed model, a second area 2620 for receiving the base model to be compressed, and a third area 2630 for receiving the compression method. A description 2631 of the selected compression method may be displayed in the third area 2630.

[0277] The compression method may include pruning and filter decomposition. The pruning may include a first type of pruning based on a criterion and a second type of pruning based on an index set by a user. The filter decomposition may include Tacca decomposition and Canonical / Polyadic (CP) decomposition. The compression setting screen 2600 may be displayed on a user device. The user device may transmit user input related information entered in the compression setting screen 2600 to the electronic device 100. The electronic device 100 may perform compression on the base model based on the base model and a compression method selected by the user.

[0278] FIG. 27 is a screen for setting block compression setting values ​​according to an embodiment of the present disclosure.

[0279] 27, a screen 2700 for setting block compression settings may include a first screen 2710 on which information of a base model is displayed, and a second screen 2720 for receiving block compression settings. An architecture of the base model may be displayed on the first screen 2710. Furthermore, a delay time corresponding to each block and an amount of channels included in the model may be displayed on the first screen 2710.

[0280] The user device may obtain a user input for setting a block compression setting value on the second screen 2720. For example, the user device may obtain a setting value (e.g., 0.5) for a first block compression corresponding to a first block (block 1). The user device may transmit the setting value for the first block compression to the electronic device 100. The electronic device 100 may compress the first block based on the setting value for the first block compression.

[0281] In this way, in the second compression mode, the user may set a desired block compression setting value for each block and obtain a compression model in which each block is compressed as desired, and user satisfaction may be improved accordingly.

[0282] Although not shown, a UI element for selecting a compression policy may be displayed on the compression setting screen 2600 or the screen 2700. The compression policy may mean a rule regarding how to perform compression. For example, when the compression method is pruning, the channels to be pruned may vary depending on the compression policy even if the setting value for compression is the same.

[0283] Fig. 28 is a diagram for explaining the compression strategies according to an embodiment of the present disclosure. Specifically, Fig. 28 shows pruned nodes for three compression strategies.

[0284] Referring to Figure 28, the block may include a first layer 2810 and a second layer 2820. The first layer 2810 may include a plurality of nodes N11, N12, N13, N14, and N15. The second layer 2820 may include a plurality of nodes N21, N22, N23, N24, and N25. The nodes N11 and N21 have the same index. The nodes N12 and N22 have the same index. The nodes N13 and N23 have the same index. The nodes N14 and N24 have the same index. The nodes N15 and N25 have the same index.

[0285] The numbers shown on each node (or neuron) indicate the importance of each node. For example, the importance of node N11 is 0.08, and the importance of node N12 is 0.14. The shown importances may be normalized values. Electronic device 100 may calculate the importance of each node based on the compression method selected by the user. For example, when "L2 norm pruning" is selected in third field 2630, electronic device 100 may calculate the importance of each node based on the L2 norm.

[0286] The electronic device 100 may determine the nodes to be pruned based on the compression policy and the importance of each node. Pruning methods according to various compression policies will be described below.

[0287] When the compression policy is set as the first policy (average), the electronic device 100 may identify two nodes in order of decreasing importance in each channel. For example, the electronic device 100 may identify nodes N11 and N12 in the first channel 2810. The electronic device 100 may identify nodes N22 and N24 in the second channel 2820. The electronic device 100 may calculate the average value of the identified node and a node having the same index as the identified node. For example, the electronic device 100 may calculate the average value of the importance of node N11 and the importance of node N21. Furthermore, the electronic device 100 may calculate the average value of the importance of node N12 and the importance of node N22. The electronic device 100 may prune the node included in the node set with the lowest average value. For example, the electronic device 100 may prune nodes N12 and N21. Furthermore, the electronic device 100 may prune nodes N12 and N22.

[0288] When the compression policy is set as the second policy (crossover), the electronic device 100 may identify two nodes in order of decreasing importance in each channel. For example, the electronic device 100 may identify nodes N11 and N12 in the first channel 2810. The electronic device 100 may identify nodes N22 and N24 in the second channel 2820. The electronic device 100 may prune nodes having the same index among the identified nodes. For example, the electronic device 100 may prune nodes N12 and N22.

[0289] When the compression policy is set as the third policy (combined), the electronic device 100 may identify two nodes in order of least important in each channel. For example, the electronic device 100 may identify nodes N11 and N12 in the first channel 2810. The electronic device 100 may identify nodes N22 and N24 in the second channel 2820. The electronic device 100 may prune nodes having the same index as each of the identified nodes. For example, the electronic device 100 may prune node N11 and node N21 having the same index as node N11. The electronic device 100 may prune node N12 and node N22. The electronic device 100 may prune node N24 and node N14 having the same index as node N24.

[0290] 28, the number of nodes identified in each channel is two as an example, but the present disclosure is not limited to this. For example, the electronic device 100 may identify three or more nodes in order of decreasing importance in each channel.

[0291] FIG. 29 is a flow chart illustrating a method for compressing a neural network model according to an embodiment of the present disclosure.

[0292] 29, the electronic device 100 may receive a trained model and a compression method for compressing the trained model (S2910). For example, the electronic device 100 may acquire a trained model 2215 based on the model acquisition unit 2210. Alternatively, the electronic device 100 may acquire a neural network model 2235.

[0293] The electronic device 100 may identify compressible blocks and non-compressible blocks among the blocks included in the trained model based on the compression method (S2920). In the present disclosure, the non-compressible blocks may include not only blocks that do not need to be compressed, but also blocks that may be compressed but whose performance of the compressed model is lower than a threshold when compression is performed.

[0294] The criteria for determining whether a trained model is compressible may vary depending on the compression method, which may include pruning and filter decomposition.

[0295] When the compression method is pruning, the electronic device 100 may identify the enabling function, the normalizing function, and the block whose output channel is directly connected to the arithmetic operator as the non-compressible block. Here, the output channel being directly connected to the arithmetic operator may mean that no other block having a weight value exists between the corresponding block and the arithmetic operator. For example, the third block, the fourth block, and the fifth block may be connected in series in succession. The fourth block may be the enabling function or the normalizing function, and the fifth block may be the arithmetic operator. In this case, the third block may be the "block whose output channel is directly connected to the arithmetic operator". In response, the electronic device 100 may determine that the third block is a non-compressible block.

[0296] When the compression method is filter decomposition, the electronic device 100 may identify layers, including convolutional layers, as compressible blocks.

[0297] The electronic device 100 may transmit an instruction to the user device to display a structure of the trained model representing the connection relationship between the multiple blocks on the first screen, thereby making the compressible blocks and the non-compressible blocks visually distinguishable, and to display an input field for receiving a setting value for compressing the compressible blocks on the second screen (S2930). The user device may display the structure of the trained model on the first screen based on the instruction received from the electronic device 100. Furthermore, the user device may display an input field for receiving a setting value for compressing the compressible blocks on the second screen. The user device may output the first screen and the second screen simultaneously.

[0298] The structure of the trained model may represent a connection relationship between a plurality of UI elements associated with each of a plurality of blocks included in the trained model. Each of the plurality of UI elements may represent information of one of the plurality of blocks. The information of one of the plurality of blocks may include identification information of each of the plurality of blocks and a plurality of delay times each associated with each of the plurality of blocks. For example, the structure of the trained model may be represented in the form of a graph in which the plurality of UI elements are represented as nodes.

[0299] Meanwhile, the electronic device 100 may obtain a plurality of delay times associated with each of the plurality of blocks using a device farm including a target device on which the trained model is executed. For example, when the target device is selected as the first device, the user device may transmit information of the first device to the electronic device 100. The electronic device 100 may identify the first device in the device farm based on the information of the first device. The electronic device 100 may calculate a plurality of delay times associated with each of the plurality of blocks by executing the trained model on the first device.

[0300] The electronic device 100 may compress the trained model based on a block compression setting value input by the user in the input field (S2940). For example, the electronic device 100 may perform pruning on the trained model based on a pruning ratio input by the user.

[0301] On the other hand, when a first UI element corresponding to a compressible block displayed on the first screen is selected, the electronic device 100 may send a command to the user device to enable an input field corresponding to the compressible block displayed on the second screen. In response, the user may input a setting value for compression into the enabled input field. Furthermore, when the first UI element is selected, the electronic device 100 may send a command to the user device to display detailed information of the compressible block corresponding to the selected first UI element on the first screen.

[0302] When a second UI element corresponding to a non-compressible block displayed on the first screen is selected, the electronic device 100 may send a command to the user device to display detailed information of the non-compressible block on the first screen. The detailed information of the non-compressible block may include at least one of an amount of channels included in the non-compressible block or a kernel size.

[0303] 29, it has been described that the user device displays the first screen and the second screen based on an instruction received from the electronic device 100. In one embodiment, the user device may display the first screen and the second screen based on a user input without an instruction received from the electronic device 100. For example, when a user input is obtained to select a UI element corresponding to a first compressible block displayed on the first screen, the user device may enable a first input field corresponding to the first block displayed on the second screen.

[0304] The first screen and the second screen will be described in detail below.

[0305] 30 is a screen for setting block compression setting values ​​according to an embodiment of the present disclosure. The screen 3000 may be displayed on a user device when the compression mode is set as the second compression mode. A user may input block compression setting values ​​corresponding to blocks included in a trained model to be compressed based on the screen 3000.

[0306] 30, a screen 3000 may include a first screen 3010 and a second screen 3020. The user device may display a structure of the trained model on the first screen 3010. For example, the structure of the trained model may be a hierarchical structure in which a plurality of UI elements 3011, 3012, 3013, 3014, 3015, 3016, and 3017 associated with each of a plurality of blocks (add, conv1, conv2, relu, hardsigmoid, mul, and conv3) included in the trained model are represented by nodes. The structure of the trained model may represent a connection relationship between the plurality of UI elements 3011, 3012, 3013, 3014, 3015, 3016, and 3017.

[0307] The user device may display a plurality of UI elements 3011, 3012, 3013, 3014, 3015, 3016, and 3017 on a first screen 3010. Each of the plurality of UI elements 3011, 3012, 3013, 3014, 3015, 3016, and 3017 may indicate information of a corresponding block. For example, the first UI element 3011 corresponding to a first block (add) may include an indicator LI1 indicating a delay time corresponding to the first block (add). In this way, when the delay time corresponding to the block is displayed on the screen 3000, the user may refer to the displayed delay time when determining the block compression setting value. That is, the setting value for compression of each block may be determined based on the delay time corresponding to each block. Furthermore, the user's convenience may be improved.

[0308] The user device may display compressible blocks and non-compressible blocks in a distinguishable manner. In FIG. 30, the electronic device 100 may determine the first block (add), the sixth block (mul), and the seventh block (conv3) as compressible blocks. The electronic device 100 may determine the second block (conv1), the third block (conv2), the fourth block (relu), and the fifth block (harsigmoid) as non-compressible blocks. Specifically, the second block (conv1) and the third block (conv2) may be determined as non-compressible blocks because the output channels of the second block (conv1) and the third block (conv2) are directly connected to the sixth block (mul), which is a multiplication operator. The fourth block (relu) and the fifth block (harsigmoid) may be determined as non-compressible blocks because the fourth block (relu) and the fifth block (harsigmoid) are enabling functions.

[0309] For example, UI elements 3011, 3016, and 3017 corresponding to compressible blocks (add, mul, and conv3) may include checkboxes CB1, CB6, and CB7. UI elements 3012, 3013, 3014, and 3015 corresponding to non-compressible blocks (conv1, conv2, relu, and hardsigmoid) may not include checkboxes. UI elements 3011, 3016, and 3017 may be displayed with better visibility than UI elements 3012, 3013, 3014, and 3015. For example, UI elements 3011, 3016, and 3017 may be displayed brighter than UI elements 3012, 3013, 3014, and 3015. Alternatively, UI elements 3011, 3016, and 3017 may be displayed with solid lines, and UI elements 3012, 3013, 3014, and 3015 may be displayed with dotted lines.

[0310] The user device may display information of the compressible blocks on the second screen 3020. For example, the user device may indicate the amount of output channels and the name of each of the compressible blocks (add, mul, and conv3). The user device may display an input field for receiving a setting value for compression of the compressible blocks. Here, the setting value for compression refers to the above-mentioned block compression setting value. For example, the user device may display input fields IF1, IF2, and IF3, respectively, associated with each of the compressible blocks (add, mul, and conv3). The input fields IF1, IF2, and IF3 may receive a pruning ratio. Furthermore, the user device may display check boxes CB11, CB12, and CB13 for selecting each of the compressible blocks (add, mul, and conv3).

[0311] FIG. 31 is a screen for setting block compression setting values ​​according to an embodiment of the present disclosure.

[0312] Referring to FIG. 31 , the user device may display the second screen 3020 based on a user input acquired through the first screen 3010. For example, the first UI element 3011 or the first block (add) may be selected by the user. For example, the user may click the check box CB11. The user device may display a check mark in the check box CB1 corresponding to the selected first block (add) and enable the first input field IF1. The selection of the first UI element 3011 may be released. In this case, the user device may disable the first input field IF1.

[0313] The user device may display the first screen 3010 based on a user input acquired through the second screen 3020. For example, when a check box CB11 corresponding to the first block (add) is selected, the user device may display a check mark in the check box CB1 corresponding to the first block (add). When the selection of the check box CB11 is released, the user device may remove the check mark displayed in the check box CB1.

[0314] FIG. 32 is a screen for setting block compression setting values ​​according to an embodiment of the present disclosure.

[0315] Referring to FIG. 32, the user device may provide detailed information related to a block selected by the user. The detailed information related to the block may include at least one of the number of channels, the size of the kernel, the stride, or the delay time included in the block. For example, the seventh block (conv3) may be selected. In this case, the user device may display detailed information 3030 related to the seventh block (conv3) on the first screen 3010. On the other hand, the user may select a non-compressible block. For example, the user may select the second block (conv1). In this case, the user device may display detailed information related to the second block (conv2) on the first screen 3010.

[0316] On the other hand, Figures 30 to 32 show that the input field receives a ratio greater than 0 and less than or equal to 1 as the block compression setting value. However, the present disclosure is not limited thereto, and the range of the block compression setting value may be changed variously depending on the compression method. For example, when the compression method is a second type of pruning based on an index, the input field may receive an index of the channel to be pruned. As another example, when the compression method is a tucker decomposition, the input field may receive the amount of input channels of the core tensor and the amount of output channels of the core tensor.

[0317] Meanwhile, the block compression setting value may be input by a user or may be determined by the electronic device 100. For example, the electronic device 100 may set the compression ratio of each block based on the delay time corresponding to each block. The electronic device 100 may set the compression ratio of the block to be higher as the delay time corresponding to the block is longer. Referring to FIG. 30, the compression ratio corresponding to the first block (add) may be smaller than the compression ratio corresponding to the sixth block (mul).

[0318] Various exemplary embodiments of the present disclosure described above may be implemented in a computer or computer-readable recording medium using software, hardware, or a combination of software and hardware. In some cases, the embodiments described in the present disclosure may be implemented as a processor itself. According to a software implementation, the embodiments, such as the procedures and functions described in the present disclosure, may be implemented as separate software modules. The software modules may each perform one or more functions and operations described in the present disclosure.

[0319] Computer instructions for performing the processing operations according to the various embodiments of the present disclosure described above may be stored on a non-transitory computer readable medium that, when executed by a processor, causes a particular machine to perform the processing operations according to the various embodiments described above.

[0320] A non-transitory computer-readable medium is a medium that stores data semi-permanently and is readable by a device, as opposed to a medium that stores data temporarily, such as a register, a cache, a memory, etc. Examples of non-transitory computer-readable media include compact discs (CDs), digital versatile discs (DVDs), hard disks, Blu-ray discs, universal serial buses (USBs), memory cards, read-only memories (ROMs), etc.

[0321] The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, "non-transitory storage medium" means a storage medium in which the storage medium is a tangible device and does not include a signal (e.g., electromagnetic wave), and the term does not distinguish between the case where data is semi-permanently stored on the storage medium and the case where data is temporarily stored thereon. For example, a "non-transitory storage medium" may include a buffer in which data is temporarily stored.

[0322] The method according to various embodiments disclosed herein may be provided in a computer program product. The computer program product may be exchanged as a commodity between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., a compact disc read-only memory (CD-ROM)), or distributed (e.g., downloaded or uploaded) through an application store (e.g., Play Store®), or distributed (e.g., downloaded or uploaded) directly online between two user devices (e.g., smartphones). In the case of online distribution, at least a part of the computer program product (e.g., a downloadable app) may be at least temporarily stored or temporarily generated in a machine-readable storage medium, such as a memory of a manufacturer's server, an application store's server, or an intermediary server.

[0323] According to various embodiments of the present disclosure described above, a neural network model can be provided that is optimized for a target device.

[0324] According to various embodiments of the present disclosure described above, a neural network model can be provided that is trained based on a data set input by a user.

[0325] According to various embodiments of the present disclosure described above, a compression neural network model can be provided based on settings for compression entered by a user.

[0326] According to various embodiments of the present disclosure described above, download data corresponding to a compressed neural network model may be provided.

[0327] Accordingly, user convenience and satisfaction can be improved.

[0328] In many cases, entities have been described as being linked to other entities. The terms "linked" and "connected" (or any of these variations) are used interchangeably herein and should be understood in both cases to refer inclusively to two entities being directly linked (without any significant (e.g., parasitic) intervening entities) and to two entities being indirectly linked (with one or more significant intervening entities). When entities are shown as being directly linked to one another or described as being linked together without any description of any intervening entities, it should be understood that these entities may be indirectly linked unless the context clearly indicates otherwise.

[0329] It is contemplated that the optimal features of the described variations of the invention may be described and claimed independently or in combination with one or more of the features described herein. It is further noted that the claims may be designed to exclude any element for an embodiment. As such, this description is intended to serve as a precedent for the use of exclusive terms such as "solely" and "only" used in connection with the recitation of claim elements, or the use of "negative" limitations. Unless otherwise specified herein, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which the invention belongs. The breadth of the invention is not limited by this specification, nor by the plain meaning of the claim terms employed.

[0330] Furthermore, the advantages that can be obtained or expected by the embodiments of the present disclosure have been directly or implicitly disclosed in the detailed description of the embodiments of the present disclosure. For example, various advantages expected in the embodiments of the present disclosure are disclosed in the detailed description above.

[0331] The embodiments and claims described herein are directed to patentable subject matter. These embodiments do not constitute an abstract idea for several reasons, including because each claim provides a neural network optimization capability. These apparatus and computer-implemented methods enhance the capabilities of a computer by determining attributes of a target device and obtaining and / or using a neural network model optimized for the target device, which otherwise would run a by-product optimized neural network, and may be considered to go "significantly beyond" the abstract idea.

[0332] Other aspects, advantages and salient features of the present disclosure will become apparent to those skilled in the art from the above detailed description, taken in conjunction with the accompanying drawings, which disclose various embodiments of the present disclosure.

[0333] Although the embodiments of the present disclosure have been shown and described above, the present disclosure is not limited to the above-mentioned specific embodiments, and may be modified in various ways by those skilled in the art to which the present disclosure pertains without departing from the gist of the present disclosure disclosed in the appended claims. It should also be understood that these modifications are within the scope and spirit of the present disclosure. [Other possible items] [Item 1] 1. A method for providing a neural network model implemented in a computing device, comprising: receiving, at a processor of the computing device, a target device identified in the device farm using information about the target device input by a user and a trained model trained based on a dataset; compressing the trained model based on compression setting information and delay time information received from the device farm; providing download data corresponding to the compressed trained model such that the compressed trained model is deployed on the target device. [Item 2] The compression setting information includes a first compression mode indicating that the trained model is compressed based on a model compression setting value set by the user; When the first compression mode is set, compressing the trained model includes: identifying a plurality of compressible target blocks from among a plurality of blocks included in the trained model; deriving a first compression parameter set based on both the model compression setting and a given algorithm, the first compression parameter set including a block compression setting for block compression to be applied to each of the plurality of target blocks; 2. The method of claim 1, further comprising compressing the plurality of compressible target blocks based on the first compression parameter set. [Item 3] Compressing the trained model includes: providing the first compression parameter set to the user; 3. The method of claim 2, further comprising: when the block compression setting values ​​are modified by the user, compressing the target blocks based on a second compression parameter set that includes the modified block compression setting values. [Item 4] the compression setting information includes a second compression mode indicating that information of blocks included in the trained model is provided and that the trained model is compressed based on a block compression setting value set by the user; When the second compression mode is set, compressing includes: identifying a plurality of compressible target blocks from among a plurality of blocks included in the trained model; providing information about the plurality of target blocks to the user; receiving a third compression parameter set including the block compression setting value to be applied to each of the plurality of target blocks, the block compression setting value being set by the user for compressing the plurality of target blocks; and compressing the target blocks based on the third compression parameter set. [Item 5] 5. The method according to claim 4, wherein the information of the block included in the training model includes at least one of specific information of the block, a delay time corresponding to the block, or an amount of channels included in the block. [Item 6] Compressing the trained model includes: receiving a plurality of delay time data from the target device; Each of the delay time data among the plurality of delay time data is associated with each of the plurality of blocks, 6. The method of claim 5, wherein each delay time data of the plurality of delay time data is derived by executing, by the target device, an associated block of the plurality of blocks. [Item 7] 2. The method of claim 1, wherein the compression setting information includes at least one of a compression method, a compression setting value, or reference information for determining a compression target from among a plurality of channels included in the trained model. [Item 8] receiving, at the processor, a user command to retrain the compressed trained model; generating a re-trained model based on the compressed trained model; 2. The method of claim 1, further comprising providing download data corresponding to the retrained model. [Item 9] 2. The method of claim 1, further comprising performing, in the processor, at least one of quantization or calibration on the compressed trained model based on information about the target device. [Item 10] An electronic device for providing a neural network model, comprising: a communication interface configured to transmit and receive data over a data network, the communication interface including at least one communication circuit; a memory configured to store at least one operating instruction; a processor; Executing the at least one operational instruction causes the processor to: receiving a trained model based on a target device identified in a device farm using information about the target device input by a user and a dataset; compressing the trained model based on compression setting information and delay time information received from the device farm; and providing download data corresponding to the compressed trained model such that the compressed trained model is deployed on the target device. [Item 11] the compression setting information includes a compression mode indicating that the trained model is compressed based on a model compression setting value set by the user; When the first compression mode is set, the processor: identifying a plurality of compressible target blocks from among a plurality of blocks included in the trained model; deriving a first compression parameter set based on both the model compression setting and a given algorithm, the first compression parameter set including a block compression setting for block compression to be applied to each of the plurality of target blocks; Item 11. The method of item 10, further comprising: compressing the plurality of compressible target blocks based on the first compression parameter set. [Item 12] The processor, providing the first compression parameter set to the user; 12. The electronic device of claim 11, further comprising: when at least one of the block compression setting values ​​is modified by the user, compressing the plurality of target blocks based on a second compression parameter set that includes at least one of the modified block compression setting values. [Item 13] the compression setting information includes a second compression mode indicating that information of blocks included in the trained model is provided and that the trained model is compressed based on a block compression setting value set by the user; When the second compression mode is set, the processor: identifying a plurality of compressible target blocks from among a plurality of blocks included in the trained model; providing information about the plurality of target blocks to the user; receiving a third compression parameter set including the block compression setting value to be applied to each of the plurality of target blocks, the block compression setting value being set by the user for compressing the plurality of target blocks; 11. The electronic device of claim 10, further configured to: compress the plurality of target blocks based on the third compression parameter set. [Item 14] Item 14. The electronic device of item 13, wherein the information about the block included in the training module includes at least one of specific information about the block, a delay time corresponding to the block, or an amount of channels included in the block. [Item 15] A computer-readable recording medium having a program recorded thereon that causes a computing device to execute the method described in item 1.

Claims

1. 1. An electronic device for providing a neural network model to be executed on a target device, comprising: a communication interface including at least one communication circuit; a memory configured to store at least one operating instruction; and Processor Equipped with Executing the at least one operational instruction causes the processor to: Obtaining a trained model based on the target device; compressing the trained model based on compression setting information for compressing the trained model; providing download data corresponding to the compressed trained model such that the compressed trained model is decompressed on the target device; The processor, Providing a user with information on a number of target blocks that can be compressed from among a number of blocks included in the trained model; obtaining a first set of compression parameters for compressing the plurality of target blocks as the compression setting information; compressing the plurality of target blocks based on the first compression parameter set; The first set of compression parameters includes settings set by the user to be applied to the plurality of target blocks.

2. The processor, Identifying the target device in a device farm based on information of the target device input by the user; The electronic device of claim 1 , further configured to obtain the trained model based on the target device.

3. The processor, If the trained model is an untrained model, generating the download data based on the compressed trained model; 2. The electronic device of claim 1, further configured to: if the trained model was trained from a model obtained based on the target device, obtain a re-trained model by training the compressed trained model; and generate the download data based on the re-trained model.

4. The model obtained based on the target device is obtained from a lookup table, a task, and a data set based on information of the target device; The electronic device according to claim 3 , wherein the delay time is recorded in the lookup table for each combination of model information and device information.

5. The processor, 2. The electronic device of claim 1, further configured to receive delay time information from the target device by executing the trained model, and further compress the trained model by using the delay time information.

6. The electronic device of claim 1, wherein the processor is further configured to convert a data type of the compressed trained data into a data type supported by the target device by performing quantization on the compressed trained model based on information of the target device.

7. The electronic device of claim 1, wherein the processor is further configured to adjust a quantization interval for the compressed trained model.

8. The method of claim 7, further comprising: obtaining a second set of compression parameters based on a first setting value set by the user and a given algorithm for compressing the trained model; The electronic device of claim 1 , wherein the second set of compression parameters includes a second configuration value to be applied to the plurality of target blocks.

9. The electronic device of claim 1, wherein the information of the multiple target blocks includes at least one of specific information of the multiple target blocks, delay times corresponding to the multiple target blocks, or channel amounts contained in the multiple target blocks.

10. The electronic device of claim 1, wherein the processor is further configured to obtain a plurality of delay times by executing the plurality of blocks of the target device, each delay time being associated with each of the plurality of blocks.

11. 1. A method for providing a neural network model that executes on a target device, comprising: Obtaining a trained model based on the target device; compressing the trained model based on compression setting information for compressing the trained model; providing download data corresponding to the compressed trained model such that the compressed trained model is deployed on the target device; Compressing the trained model includes: Providing a user with information on a number of target blocks that can be compressed from among a number of blocks included in the trained model; obtaining a first set of compression parameters for compressing the plurality of target blocks as the compression setting information; compressing the plurality of target blocks based on the first compression parameter set; The method of claim 1, wherein the first set of compression parameters includes settings set by the user to apply to the plurality of target blocks.

12. The target device is identified in a device farm based on information about the target device input by the user; The method of claim 11 , wherein the trained model is obtained based on the target device.

13. When the trained model is an untrained model, the download data is generated based on the compressed trained model; The method of claim 11 , wherein if the trained model was trained from a model obtained based on the target device, the download data is generated based on a re-trained model obtained by training the compressed trained model.

14. The model obtained based on the target device is obtained from a lookup table, a task, and a data set based on information of the target device; The method according to claim 11 , wherein the delay time is recorded in the lookup table for each combination of model information and device information.

15. The method of claim 1, further comprising: Obtaining a second set of compression parameters based on a first setting value set by the user and a given algorithm for compressing the trained model; providing the second set of compression parameters to the user; The method of claim 11 , comprising obtaining the first compression parameter set as modified from the second compression parameter set by the user.

Citation Information

Patent Citations

  • Neural network model apparatus and compressing method of neural network model

    CN113316795A

  • Model recommendation method and device, equipment and computer storage medium

    CN113408634A

  • Electronic device and operating method for the same

    KR1020210045845A

  • Semiconductor device for compressing a neural network based on a target performance

    KR1020210092575A