EP3629248A1 - Operating method and training method of neural network and neural network thereof - Google Patents
Operating method and training method of neural network and neural network thereof Download PDFInfo
- Publication number
- EP3629248A1 EP3629248A1 EP19195403.1A EP19195403A EP3629248A1 EP 3629248 A1 EP3629248 A1 EP 3629248A1 EP 19195403 A EP19195403 A EP 19195403A EP 3629248 A1 EP3629248 A1 EP 3629248A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- network
- state information
- input
- information
- neural network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000013528 artificial neural network Methods 0.000 title claims abstract description 111
- 238000000034 method Methods 0.000 title claims abstract description 69
- 238000012549 training Methods 0.000 title description 62
- 238000011017 operating method Methods 0.000 title 1
- 230000004044 response Effects 0.000 claims abstract description 33
- 238000011156 evaluation Methods 0.000 claims description 62
- 230000015654 memory Effects 0.000 claims description 31
- 238000012545 processing Methods 0.000 claims description 22
- 230000000306 recurrent effect Effects 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 3
- 238000013519 translation Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 229920006395 saturated elastomer Polymers 0.000 description 2
- 241001025261 Neoraja caerulea Species 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011176 pooling Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/044—Recurrent networks, e.g. Hopfield networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/048—Activation functions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/084—Backpropagation, e.g. using gradient descent
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/09—Supervised learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/50—Context or environment of the image
- G06V20/56—Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
- G06V20/58—Recognition of moving objects or obstacles, e.g. vehicles or pedestrians; Recognition of traffic objects, e.g. traffic signs, traffic lights or roads
- G06V20/584—Recognition of moving objects or obstacles, e.g. vehicles or pedestrians; Recognition of traffic objects, e.g. traffic signs, traffic lights or roads of vehicle lights or traffic lights
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/08—Speech classification or search
- G10L15/16—Speech classification or search using artificial neural networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/082—Learning methods modifying the architecture, e.g. adding, deleting or silencing nodes or connections
Definitions
- the first network may be configured to iteratively process the input information to provide an application service
- the second network may be configured to evaluate the state information corresponding to a result of the iterative processing of the first network.
- the method may include decoding the state information using a third network, to provide an application service.
- the input information may include any one or any combination of single data and sequential data.
- the outputting may include decoding the state information to the sequential data and outputting the decoded state information.
- the first network may include a neural network for voice recognition or a neural network for image recognition.
- a method of training a neural network including a first network and a third network, the method including generating state information for each iteration by applying input information corresponding to training data to the first network for a number of iterations, predicting a result corresponding to the state information for the each iteration using the third network, and training the first network based on a first loss between the result predicted for the each iteration and ground truth corresponding to the input information.
- the processor may be configured to encode the input information to a dimension of the state information, and to apply the encoded input information to the first network.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- Computational Linguistics (AREA)
- Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Molecular Biology (AREA)
- Mathematical Physics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Data Mining & Analysis (AREA)
- General Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Acoustics & Sound (AREA)
- Human Computer Interaction (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Image Analysis (AREA)
Abstract
Description
- The following description relates to a neural network and an operation method and a training method of the neural network.
- A neural network is a framework or a structure of a number of layers or operations that provide for many different machine learning algorithms to work together, process complex data inputs, and recognize patterns. A neural network in a form of a deep neural network (DNN) may secure high translation ability or high performance with respect to a feature vector. However, the DNN includes a number of layers having various weights and uses a large storage space for storing all of the layers. A recurrent network, for example, a recurrent neural network (RNN) that processes sequential data performs operations for a desired number of iterations, for example, a length of sequential data. Accordingly, it is not easy to apply to a general feature vector other than the sequential data. Also, if the length of sequential data is too long, a processing time increases.
- This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
- In one general aspect, there is provided an operation method of a neural network including a first network and a second network, the method including acquiring state information output from the first network based on input information, determining whether the state information satisfies a condition using the second network, iteratively applying the state information to the first network in response to determining that the state information does not satisfy the condition, and outputting the state information in response to determining that the state information satisfy the condition.
- The determining may include comparing a threshold and an evaluation result corresponding to the state information, output from the second network.
- The determining may include comparing a number of iterations to a number of times the state information is iteratively applied to the first network.
- The input information may correspond to an input vector, and the state information may correspond to an output vector.
- The first network may be configured to iteratively process the input information to provide an application service, and the second network may be configured to evaluate the state information corresponding to a result of the iterative processing of the first network.
- The method may include decoding the state information using a third network, to provide an application service.
- The method may include encoding the input information to a dimension of the state information, and applying the encoded input information to the first network.
- The iteratively applying may include encoding the state information to a dimension of the input information, and applying the encoded state information to the first network.
- The input information may include any one or any combination of single data and sequential data.
- The method may include encoding sequential data to an embedding vector of an input dimension of the first network in response to the input information being the sequential data, and applying the embedding vector to the first network.
- The outputting may include decoding the state information to the sequential data and outputting the decoded state information.
- The first network may include a neural network for voice recognition or a neural network for image recognition.
- The first network may include at least one of a fully-connected layer, a simple recurrent neural network, a long-short term memory (LSTM), or gated recurrent units (GRUs).
- In another general aspect, there is provided a method of training a neural network including a first network and a third network, the method including generating state information for each iteration by applying input information corresponding to training data to the first network for a number of iterations, predicting a result corresponding to the state information for the each iteration using the third network, and training the first network based on a first loss between the result predicted for the each iteration and ground truth corresponding to the input information.
- The method may include training a second network configured to evaluate the state information based on an evaluation score of the result predicted for the each iteration.
- The training of the second network may include determining the evaluation score by evaluating the result predicted for the each iteration and a result predicted for the each iteration based on the ground truth.
- The training of the second network may include applying noise to a portion of the state information for the each iteration.
- The training of the first network may include training the third network based on the first loss.
- The method may include encoding the input information to a dimension of the state information, and applying the encoded input information to the first network.
- The generating may include encoding the state information to a dimension of the input information, and applying the encoded state information to the first network.
- The number of iterations may be based on a level of recognition corresponding to an application service provided by the neural network.
- The number of iterations may be increased in response to higher level of recognition, and the number of iterations is decreased in response to a lower level of recognition.
- In another general aspect, there is provided a neural network including a first network configured to generate state information based on input information, a second network configured to determine whether the state information satisfies a condition, and a processor configured to iteratively apply the state information to the first network in response to the state information not satisfying the condition, and to output the state information in response to the state information satisfying the condition.
- The second network may be configured to compare a threshold and an evaluation result corresponding to the state information, output from the second network.
- The second network may be configured to compare a number of iterations to a number of times the state information is iteratively applied to the first network.
- The first network may be configured to iteratively process the input information to provide an application service, and the second network may be configured to evaluate the state information corresponding to a result the iterative processing of the first network.
- The neural network may include a third network configured to decode the state information to provide an application service.
- The processor may be configured to encode the input information to a dimension of the state information, and to apply the encoded input information to the first network.
- The processor may be configured to encode the state information to a dimension of the input information, and to apply the encoded state information to the first network.
- The input information may include any one or any combination of single data and sequential data.
- The neural network may include an encoder configured to encode sequential data to an embedding vector of an input dimension of the first network, in response to the input information being the sequential data, wherein the processor may be configured to apply the embedding vector to the first network.
- The neural network may include a decoder configured to decode the state information to the sequential data, in response to the input information being the sequential data, wherein the processor may be configured to output the decoded state information.
- In another general aspect, there is provided an electronic device, including a sensor configured to receive an input information, a memory configured to store the input information, a first network, a second network, a third network, and instructions, and a processor configured to execute the instructions to implement the first network configured to generate state information based on the input information, implement the second network configured to determine whether the state information satisfies a condition, implement the third network configured to decode the state information to provide an application service, iteratively apply the state information to the first network, in response to the state information not satisfying the condition, and output the decoded state information, in response to the state information satisfying the condition.
- The processor may be configured to compare a threshold to a result of evaluation of the state information by the second network.
- The processor may be configured to compare a number of iterations to a number of times the state information is iteratively applied to the first network.
- Other features and aspects will be apparent from the following detailed description, the drawings, and the claims.
-
-
FIG. 1 is a diagram illustrating an example of an operation method of a neural network. -
FIGS. 2 and3 are diagrams illustrating examples of a method of operation of a neural network. -
FIGS. 4A and 4B illustrate examples of a neural network. -
FIG. 5 illustrates an example of a configuration of a neural network. -
FIG. 6 is a diagram illustrating an example of a training method of a neural network. -
FIGS. 7 to 9 illustrate examples of training methods of a neural network. -
FIG. 10 illustrates an example of a configuration of a neural network. - Throughout the drawings and the detailed description, unless otherwise described or provided, the same drawing reference numerals will be understood to refer to the same elements, features, and structures. The drawings may not be to scale, and the relative size, proportions, and depiction of elements in the drawings may be exaggerated for clarity, illustration, and convenience.
- The following detailed description is provided to assist the reader in gaining a comprehensive understanding of the methods, apparatuses, and/or systems described herein. However, various changes, modifications, and equivalents of the methods, apparatuses, and/or systems described herein will be apparent after an understanding of the disclosure of this application. For example, the sequences of operations described herein are merely examples, and are not limited to those set forth herein, but may be changed as will be apparent after an understanding of the disclosure of this application, with the exception of operations necessarily occurring in a certain order. Also, descriptions of features that are known in the art may be omitted for increased clarity and conciseness.
- The features described herein may be embodied in different forms and are not to be construed as being limited to the examples described herein. Rather, the examples described herein have been provided merely to illustrate some of the many possible ways of implementing the methods, apparatuses, and/or systems described herein that will be apparent after an understanding of the disclosure of this application.
- When a part is connected to another part, it includes not only a case where the part is directly connected but also a case where the part is connected with another part in between. Also, when a part includes a constituent element, other elements may also be included in the part, instead of the other elements being excluded, unless specifically stated otherwise. Although terms such as "first," "second," "third" "A," "B," (a), and (b) may be used herein to describe various members, components, regions, layers, or sections, these members, components, regions, layers, or sections are not to be limited by these terms. Rather, these terms are only used to distinguish one member, component, region, layer, or section from another member, component, region, layer, or section. Thus, a first member, component, region, layer, or section referred to in examples described herein may also be referred to as a second member, component, region, layer, or section without departing from the teachings of the examples.
- If the specification states that one component is "connected," "coupled," or "joined" to a second component, the first component may be directly "connected," "coupled," or "joined" to the second component, or a third component may be "connected," "coupled," or "joined" between the first component and the second component. However, if the specification states that a first component is "directly connected" or "directly joined" to a second component, a third component may not be "connected" or "joined" between the first component and the second component. Similar expressions, for example, "between" and "immediately between" and "adjacent to" and "immediately adjacent to," are also to be construed in this manner.
- The terminology used herein is for the purpose of describing particular examples only, and is not intended to limit the disclosure or claims. The singular forms "a," "an," and "the" include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises," "comprising," "includes," and "including" specify the presence of stated features, numbers, operations, elements, components, or combinations thereof, but do not preclude the presence or addition of one or more other features, numbers, operations, elements, components, or combinations thereof.
- The use of the term 'may' herein with respect to an example or embodiment, e.g., as to what an example or embodiment may include or implement, means that at least one example or embodiment exists where such a feature is included or implemented while all examples and embodiments are not limited thereto.
-
FIG. 1 is a diagram illustrating an example of an operation method of a neural network. The operations inFIG. 1 may be performed in the sequence and manner as shown, although the order of some operations may be changed or some of the operations omitted without departing from the scope of the illustrative examples described. Many of the operations shown inFIG. 1 may be performed in parallel or concurrently. One or more blocks ofFIG. 1 , and combinations of the blocks, can be implemented by special purpose hardware-based computer that perform the specified functions, or combinations of special purpose hardware and computer instructions. - Referring to
FIG. 1 , inoperation 110, a neural network acquires state information output based on input information using a first network. In an example, the neural network may be configured as a single network and may also be configured as a recurrent network. For example, the neural network includes a fully-connected layer, a simple recurrent neural network (RNN), a long-short term memory (LSTM) network, and grated recurrent units (GRUs). In an example, the input information includes at least one of single data and sequential data. In an example, the input information may be, for example, an image or voice. The input information may be information of the same dimension as that of the state information and may be information of a dimension different from that of the state information. The state information corresponds to a result of processing, by the neural network, the input information and/or an iterative processing result of the neural network. In an example, the state information corresponds to one or both of the output of the neural network from a previous time and an internal state of the neural network from the previous time step. In an example, the neural network uses the state information as a starting point for the current time step. In an example, the state information may be a multi-dimensional intermediate calculation vector or output vector according to a task for providing the application service. In other examples, the state information may be various types of information that may be output from the neural network in response to the input information. In an example, the RNN may include a sub-sampling layer, a pooling layer, a fully connected layer, etc., in addition to a convolution layer. - The neural network may be implemented as an architecture having a plurality of layers including an input image, feature maps, and an output. In the neural network, a convolution operation between the input image, and a filter referred to as a kernel, is performed, and as a result of the convolution operation, the feature maps are output. Here, the feature maps that are output are input feature maps, and a convolution operation between the output feature maps and the kernel is performed again, and as a result, new feature maps are output. Based on such repeatedly performed convolution operations, results of recognition of characteristics of the input image via the neural network may be output.
- In another example, the neural network may include an input source sentence (e.g., voice entry) instead of an input image. In such an example, a convolution operation is performed on the input source sentence with a kernel, and as a result, the feature maps are output. The convolution operation is performed again on the output feature maps as input feature maps, with a kernel, and new feature maps are output. When the convolution operation is repeatedly performed as such, a recognition result with respect to features of the input source sentence may be finally output through the neural network.
- The first network iteratively processes the input information to provide an application service. The first network may include, for example, a neural network for voice recognition or a neural network for image recognition.
- In
operation 120, the neural network determines whether the state information satisfies a condition using the second network. The second network evaluates the state information output from the first network. In an example, any type of network may be applied to the second network. For example, the second network may be included in an evaluation logic configured to evaluate the state information. The condition may be used to determine whether the state information is saturated to a level sufficient to perform a task for providing the application service. In an example, the condition includes an evaluation result corresponding to the state information that is greater than a threshold and/or a number of times the state information is iteratively applied to the first network corresponding to a number of iterations. Inoperation 120, in an example, the neural network evaluates the state information by comparing the threshold to the evaluation result corresponding to the state information or by comparing the number of iterations to the number of times the state information is iteratively applied to the first network. - In
operation 130, the neural network iteratively applies the state information to the first network when it is determined that the state information does not satisfy the condition inoperation 120. In one example, by iteratively applying state information output from the first network to the first network, a high translation ability may be secured without using a large storage space for a DNN including multiple layers. - In
operation 140, the neural network outputs the state information when it is determined that the state information satisfies the condition. For example, the state information output inoperation 140 may be output as a final result through a softmax layer. -
FIG. 2 is a diagram illustrating an example of a method of operating a neural network. The operations inFIG. 2 may be performed in the sequence and manner as shown, although the order of some operations may be changed or some of the operations omitted without departing from the scope of the illustrative examples described. Many of the operations shown inFIG. 2 may be performed in parallel or concurrently. One or more blocks ofFIG. 2 , and combinations of the blocks, can be implemented by special purpose hardware-based computer that perform the specified functions, or combinations of special purpose hardware and computer instructions. In addition to the description ofFIG. 2 below, the descriptions ofFIG. 1 are also applicable toFIG. 2 , and are incorporated herein by reference. Thus, the above description may not be repeated here. - The neural network includes a first network, which is represented with f, and a second network, which is represented with d. In an example, the first network refers to a network configured to process an input vector x corresponding to input information and to generate an output vector o corresponding to state information. In an example, the second network refers to an evaluation network configured to evaluate the output vector o and to determine whether to iteratively apply the output vector o to the first network.
- Referring to
FIG. 2 , inoperation 210, the input information (Input x) is input to the neural network. Inoperation 220, the neural network applies the input information to the first network (f(x)). Inoperation 230, the first network (f(x)) outputs the state information (o). - In
operation 240, the neural network evaluates the state information using the second network. For example, inoperation 240, the neural network determines whether an evaluation result (d(o)) satisfies a threshold. Here, the neural network determines whether the evaluation result (d(o)) satisfies the threshold set as a hyper parameter. In an example, the hyper parameter is a parameter whose value may be set before the method of operating a neural network ofFIG. 2 begins. In another example, when the evaluation result (d(o)) does not satisfy the threshold, the neural network determines whether the number of times the state information is iteratively applied to the first network reaches a number of iterations, for example, a maximum number of iterations. - When it is determined that the evaluation result (d(o)) satisfies the threshold or that the number of times the state information is iteratively applied to the first network reaches the maximum number of iterations, in
operation 260, the neural network outputs the state information (Output o). For example, if threshold = 0.7 and evaluation result (d(o)) = 0.8, the neural network may suspend recurrence of the first network (f) and output the state information (o). - When it is determined that the evaluation result (d(o)) does not satisfy the threshold or that the number of times the state information is iteratively applied to the first network does not reach the maximum of iterations, in
operation 250, the neural network encodes the state information to a dimension of the input information for iterative processing of the state information (x <- o). Inoperation 220, the neural network applies the encoded state information to the first network. - In one example, since it may be difficult to acquire a ground truth evaluation result from the second network before training, the second network needs to be trained using a different method. A training method of the second network is described with reference to
FIGS. 8 and9 . - In one example, the neural network may evaluate how much state information output from the first network helps a task for providing an application service using the second network. That is, the neural network may evaluate, i.e., determine whether the state information is sufficient to perform the task. When the evaluation result of the second network is unsatisfactory, the neural network may further perform iterative processing using the first network. When the evaluation result of the second network is satisfactory, the neural network may output the state information.
- In one example, the neural network is also referred to as a self-decidable recurrent neural network (RNN) in that the neural network itself determines whether to perform iterative processing.
-
FIG. 3 is a diagram illustrating another example of an operation method of a neural network. The operations inFIG. 3 may be performed in the sequence and manner as shown, although the order of some operations may be changed or some of the operations omitted without departing from the scope of the illustrative examples described. Many of the operations shown inFIG. 3 may be performed in parallel or concurrently. One or more blocks ofFIG. 3 , and combinations of the blocks, can be implemented by special purpose hardware-based computer that perform the specified functions, or combinations of special purpose hardware and computer instructions. In addition to the description ofFIG. 3 below, the descriptions ofFIGS. 1-2 are also applicable toFIG. 3 , and are incorporated herein by reference. Thus, the above description may not be repeated here. - Referring to
FIG. 3 , inoperation 310, the input information (Input x) is input to the neural network. Inoperation 320, the neural network encodes the input information to a dimension of state information (x -> o) prior to applying the input information to the first network. Inoperation 330, the neural network applies the encoded input information to the first network (f(o)). Inoperation 340, the neural network outputs the state information from the first network (o). - In
operation 350, the neural network evaluates the state information using the second network. For example, inoperation 350, the neural network determines whether an evaluation result (d(o)) satisfies a threshold or whether a number of times the state information is iteratively applied to the first network reaches a number of iterations, for example, a maximum number of iterations. - In
operation 350, when it is determined that the evaluation result (d(o)) satisfies the threshold or the number of times the state information is iteratively applied to the first network reaches the maximum number of times, inoperation 360, the neural network outputs the state information (Output o). - In
operation 350, when it is determined that the evaluation result (d(o)) does not satisfy the threshold or that the number of times the state information is iteratively applied to the first network does not reach the maximum number of times inoperation 330, the neural network iteratively applies the state information to the first network (f(o)). -
FIGS. 4A and 4B illustrate examples of neural networks that are implemented as perceptron systems.FIG. 4A illustrates a perceptron system including three layers. Referring toFIG. 4A , an input vector that is input to the perceptron system goes through a first layer (Layer 1), a second layer (Layer 2), and a third layer (Layer 3). In an example, a probability distribution of each label is generated through a softmax layer. Here, the three layers (Layer 1,Layer 2, and Layer 3) separately operate and a separate weight is stored for each layer. -
FIG. 4B illustrates aneural network 400 in which the perceptron system is configured by a self-decidable RNN 430. In an example, when the perceptron system is configured as the self-decidable RNN, a maximum number of iterations for the self-decidable RNN may be 3 or more. - Here, a translation ability for an input vector or
input information 410 may be equal between the three layers (Layer 1,Layer 2, and Layer 3) ofFIG. 4A and the self-decidable RNN 430 ofFIG. 4B . However, the self-decidable RNN 430 uses a relatively small memory compared to the three layers (Layer 1,Layer 2, and Layer 3). The self-decidable RNN 430 may be relatively useful for user devices having a limited memory capacity. Also, the self-decidable RNN 430 may provide a faster response rate by deriving a result through iterations less than three times based on theinput information 410. In another example, the self-decidable RNN 430 may provide a more accurate result by deriving a result through four or more iterations based on theinput information 410. - Referring to
FIG. 4B , in response to receiving theinput information 410, the self-decidable RNN 430 generates state information oi through afirst network 431. The state information oi is transmitted to adeterminer 435 including asecond network 433. Thedeterminer 435 evaluates the state information oi using thesecond network 433. For example, thedeterminer 435 determines whether the state information oi satisfies a threshold. When it is determined that the state information oi does not satisfy the condition, thedeterminer 435 iteratively applies the state information oi to thefirst network 431. When it is determined that the state information oi satisfies the threshold, thedeterminer 435 outputs the state information oi. The state information oi output from the self-decidable RNN 430 is decoded by athird network 450 and output as afinal prediction result 470. Here, thethird network 450 may be a decoder of, for example, a softmax layer, as a network that is connected at a rear end of thefirst network 431 and thesecond network 433 in the entire system for the application system. -
FIG. 5 illustrates an example of a configuration of a neural network. Hereinafter, a structure of aneural network 500 configured to process sequential data using a self-decidable RNN 530 is described with reference toFIG. 5 . - For example, when
input information 510 is sequential data, such as an utterance speech of a user, a text sentence, and a moving picture, theneural network 500 encodes the sequential data to an embedding vector of an input dimension of a first network using anencoder 520. Theinput information 510 may be embedded by theencoder 520 and represented as a single embedding vector. The embedding vector may be iteratively applied, for example, translated until a satisfactory result is acquired by the self-decidable RNN 530. - State information output from the self-
decidable RNN 530 is decoded to the sequential data by adecoder 540 and output as afinal prediction result 550. - In one example, by selectively applying the
encoder 520 and thedecoder 540, the self-decidable RNN 530 may be applied to various scenarios, such as, for example, {non-sequential data input, non-sequential data output}, {non-sequential data input, sequential data output}, {sequential data input, sequential data output}, and {sequential data input, non-sequential data output}. -
FIG. 6 is a diagram illustrating an example of a training method of a neural network. The operations inFIG. 6 may be performed in the sequence and manner as shown, although the order of some operations may be changed or some of the operations omitted without departing from the scope of the illustrative examples described. Many of the operations shown inFIG. 6 may be performed in parallel or concurrently. One or more blocks ofFIG. 6 , and combinations of the blocks, can be implemented by special purpose hardware-based computer that perform the specified functions, or combinations of special purpose hardware and computer instructions. In addition to the description ofFIG. 6 below, the descriptions ofFIGS. 1-5 are also applicable toFIG. 6 , and are incorporated herein by reference. Thus, the above description may not be repeated here. - Referring to
FIG. 6 , inoperation 610, an apparatus (hereinafter, a training apparatus) for training a neural network generates state information per iteration by iteratively applying input information corresponding to training data to a first network based on a number of iterations. In an example, the number of iterations is different for each application service. For example, when the application service requires a relatively high level of recognition result such as a biometric recognition, a voice recognition, and a user authentication for financial transactions, the number of iterations is set to be a relatively high value, such as, for example, 15, 20, 50 iterations, etc. In another example, when the application requires a relatively low level of recognition result such as a simple unlock, the number of iterations is set to be a relatively low value, for example, 2, 3, 5 iterations, etc. Input information corresponding to training data may be, for example, an input vector. For example, state information per iteration generated in the first network may be o1, o2, o3, o4, and o5 ofFIG. 7 . - In
operation 610, in an example, the training apparatus encodes the input information to a dimension of the state information and inputs the encoded input information to the first network. In this case, the training apparatus encodes the input information to the dimension of the state information and applies the encoded input information to the first network. In another example, the training apparatus converts the iteratively applied state information to a dimension of the input information and applies the converted state information to the first network. In this case, the training apparatus encodes the state information to the dimension of the input information and applies the encoded state information to the first network. - In
operation 620, the training apparatus predicts a result corresponding to the state information for every iteration using a third network. For example, the third network may include prediction layers corresponding to a plurality of softmax layers. Here, the third network may be trained based on first losses. Results predicted in the third network in correspondence to the state information for the respective iterations may be, for example, p(o1), p(o2), p(o3), p(o4), and p(o5) ofFIG. 7 . - In
operation 630, the training apparatus trains the first network based on the first losses between the predicted results and ground truth (GT) corresponding to the input information. A method of training, by the training apparatus, the first network and the third network is further described with reference toFIG. 7 . -
FIG. 7 illustrates an example of a training method of a neural network. Hereinafter, a method of training a first network (f) 710 and a third network (p) 730 is described with reference toFIG. 7 . - For example, an unrolling training method may be used to train first network (f) 710. The unrolling training method refers to a method of learning losses, for example, the
first losses 750, by deriving results p(o1), p(o2), p(o3), p(o4), and p(o5) about state information that are results acquired by iteratively applying to the first network (f) 710 a number of iterations, for example, a maximum number of iterations and performing back-propagation. - For example, when the maximum number of iterations is 5, the first network (f) 710 is performed a total of five iterations, such as a (1-1)th network (f(x)), a (1-2)th network (f(o1)), a (1-3)th network (f(o2)), a (1-4)th network (f(o3)), and a (1-5)th network (f(o4)), and generates and outputs state information (o1, o2, o3, o4, o5) per each iteration in response to input information (x) 701 corresponding to training data being input to the first network (f) 710.
- When the state information o1, o2, o3, o4, and o5 is input to the third network (p) 730, the third network (p) 730 outputs the results p(o1), p(o2), p(o3), p(o4), and p(o5) that are predicted in response to the state information o1, o2, o3, o4, and o5. Here, similar to the first network (f) 710, the third network (p) 730 is performed for a number of iterations as a prediction network configured to predict a result corresponding to state information and outputs the results, for example, p(o1), p(o2), p(o3), p(o4), and p(o5), which are predicted in response to the state information.
- The training apparatus trains the first network (f) 710 based on the losses, for example, the
first losses 750, between the predicted results p(o1), p(o2), p(o3), p(o4), and p(o5) and ground truth (GT) 705 corresponding to the input information (x) 701. Here, the ground truth (GT) 705 corresponding to the input information (x) 701 may have the same value for all of thefirst losses 750. - The
first losses 750 are back-propagated to the third network (p) 730 and the first network (f) 710 and used to train the third network (p) 730 and the first network (f) 710. - For example, the training apparatus may train the first network (f) 710 to minimize the
first losses 750 between the predicted results p(o1), p(o2), p(o3), p(o4), and p(o5) and the ground truth (GT) 705 corresponding to the input information (x) 701. Also, the training apparatus may train the third network (p) 730 to minimize thefirst losses 750 between the predicted results p(o1), p(o2), p(o3), p(o4), and p(o5) and the ground truth (GT) 705 corresponding to the input information (x) 701. In one example, the first network (f) 710 and the third network (p) 730 may be trained together. -
FIG. 8 illustrates an example of a training method of a neural network. Hereinafter, a method of training a second network (d) is described with reference toFIG. 8 . - Referring to
FIG. 8 , a first network (f) 810 is trained using the same unrolling training method as that used to train the first network (f) 710 and a third network (p) 830 is also trained in the same manner as the third network (p) 730. In an example, differences between results (p(o)) predicted for the iterations in the third network (p) 830 and ground truth (GT) 805 corresponding to input information (x) 801 correspond to first losses (Loss 1) 860. The training apparatus trains the first network (f) 810 to minimize the first losses (Loss 1) 860. Likewise, the training apparatus trains the third network (p) 830 to minimize the first losses (Loss 1) 860. - A second network (d) 850 evaluates state information (o1, o2, o3, o4, o5) corresponding to an iterative processing result of the first network (f) 810. For example, the second network (d) 850 may be trained to predict an evaluation value or an evaluation score (d(o)) to evaluate the quality of a corresponding network. In an example, the predicted evaluation value may be determined as various values using various schemes for measuring an evaluation value. For example, the evaluation value may be determined as a continuous value between 0 and 1 or may be determined as a discontinuous value of 0 or 1.
- A difference between an evaluation value determined based on a final prediction result of the third network (p) 830 and the ground truth (GT) 805 and an evaluation value predicted in the second network (d) 850 may correspond to a second loss (Loss 2) 870. Here, the evaluation value determined based on the final prediction result of the third network (p) 830 and the ground truth (GT) 805 may be referred to as an evaluation score. The training apparatus trains the second network (d) 850 to minimize the second losses (Loss 2) 870.
- Similar to the first network (f) 810, the second network (d) 850 may be trained using the unrolling training method. The second network (d) 850 measures an evaluation value or an evaluation score based on results that are predicted from output of each iteration point, i.e., state information (o1, o2, o3, o4, o5) per iteration by network unrolling. The second network (d) 850 is trained to predict the evaluation score (d(o)) of the result that is derived from the state information (o1, o2, o3, o4, o5). For example, when a prediction accuracy is used for the evaluation value, an accuracy value predicted between 0 and 1 may be output in response to specific state information (o) passing through the second network (d) 850.
- In one example, the training apparatus trains the second network (d) 850 based on evaluation values or evaluation scores of results (p(o)) predicted for the respective iterations in the third network (p) 830. The training apparatus determines the evaluation values or the evaluation scores by evaluating the results predicted in the third network (p) 830 based on the results (p(o)) predicted per iteration in the third network (p) 830 and the ground truth (GT) 805.
- The training apparatus trains the second network (d) 850 to minimize the second losses (Loss 2) 870 between output of the second network (d) 850, i.e., the predicted evaluation value of the second network (d) 850, and the results (p(o)) predicted for the respective iterations in the third network (p) 830. The evaluation results or the evaluation values corresponding to the results (p(o)) predicted in the third network (p) 830 may be determined based on the results (p(o)) predicted for the respective iterations in the third network (p) 830 and the ground truth (GT) 805.
- The training apparatus may train the first network (f) 810 and the second network (d) 850 together. Alternatively, the training apparatus may train the first network (f) 810, the second network (d) 850, and the third network (p) 830 together. In this case, the first network (f) 810 is trained based on the first losses (Loss 1) 860 and the second losses (Loss 2) 870.
- In one example, when it is assumed that the second network (d) 850 is sufficiently saturated or trained in latter training of the second network (d) 850, a biased evaluation score may be output. For example, a good evaluation score may be output at all times. If a biased result value is derived from the second network (d) 850 regardless of the state information (o) input to the second network (d) 850, it may hinder training of the second network (d) 850. In an example, the training apparatus may apply noise to at least a portion of the state information (o) per iteration by applying input information corresponding to actual training data through the first network (f) 810 and enables the second network (d) 850 to balance an ability of assigning a high score and an ability of assigning a low score. Same or different noise may be assigned to each piece of the state information per iteration.
-
FIG. 9 illustrates an example of a training method of a neural network. Hereinafter, a process of training a neural network configured to classify an object included in an input image when the neural network is configured as a self-decidable RNN will be described with reference toFIG. 9 . - For example, when a neural network configured to classify a pedestrian included in an input image is trained, ground truth in the input image may be a pedestrian. Here, a number of iterations is two and a threshold is 0.65.
- When input information (x) corresponding to the input image is input to a first network (f), state information (o1) is output from the first network (f) (f(x)), the state information (o1) is applied to a second network (d) (d(o1)) and a third network (p) (p(o1)). In this example, the third network (p(o1)) to which the state information (o1) is applied may predict a result corresponding to the state information (o1), for example, each class such as a vehicle, a pedestrian, and a lane. When the state information (o1) is predicted in the third network (p(o1)) as a prediction value, for example, vehicle: 0.4, pedestrian: 0.3, and lane: 0.3, each prediction value may represent a probability capable of predicting the state information (o1) as the corresponding class or an accuracy that the corresponding state information (o1) belongs to a corresponding class. In an example, the first network (f) may be trained to minimize a difference (Loss 1) between 0.3 that is the prediction value of the class pedestrian and 1 that is a value corresponding to ground truth (GT) pedestrian.
- Also, as the prediction value, 0.4, of the vehicle is largest among the prediction values of the respective classes, a prediction result of the third network (p(o1)) is "vehicle". The training apparatus determines an evaluation score by evaluating the prediction result of the third network (p(o1)) based on the prediction result "vehicle" of the third network (p(o1)) and the ground truth (GT) "pedestrian". Since the prediction result "vehicle" of the third network (p(o1)) and the ground truth (GT) "pedestrian" differ from each other, the training apparatus determines the evaluation score for the prediction result of the third network (p(o1)) as 0.
- The training apparatus trains the second network (d(o1)) configured to evaluate the state information (o1) based on the evaluation score (zero point) for the prediction result of the third network (p(o1)). For example, when an evaluation value, that is, an evaluation score, predicted in the second network (d(o1)) is 0.5, the training apparatus trains the second network (d(o1)) to minimize a difference (Loss 2) between the evaluation score, zero point, for the prediction result of the third network (p(o1)) and the evaluation value, 0.5, predicted in the second network (d(o1)). Here, since the number of iterations is set as two, the training apparatus may iteratively apply the state information (o1) to the first network (f).
- When the state information (o1) is iteratively applied to the first network (f), the first network (f(o1)) outputs state information (o2) and the state information (o2) is applied to the second network (d(o2)) and the third network (p(o2)). Here, the third network (p(o2)) to which the state information (o2) is applied may predict a result corresponding to the state information (o2) as a prediction value, such as vehicle: 0.3, pedestrian: 0.4, and lane: 0.3. Here, the first network (f(o1)) may be trained to minimize a difference (Loss 1) between 0.4 that is the prediction value of the class pedestrian and 1 that is a value corresponding to ground truth (GT) pedestrian.
- Here, as the prediction value, 0.4, of the pedestrian is largest among prediction values of the respective classes output from the third network (p(o2)), a prediction result of the third network (p(o2)) is "pedestrian". The training apparatus determines an evaluation score by evaluating the prediction result of the third network (p(o2)) based on the prediction result "pedestrian" of the third network (p(o2)) and the ground truth (GT) "pedestrian". Here, since the prediction result "pedestrian" of the third network (p(o2)) and the ground truth (GT) "pedestrian" are identical to each other, the training apparatus determines the evaluation score for the prediction result of the third network (p(o2)) as 1.
- The training apparatus trains the second network (d(o2)) configured to evaluate the state information (o2) based on the evaluation score (1 point) for the prediction result of the third network (p(o2)). For example, when an evaluation value, that is, an evaluation score, predicted in the second network (d(o2)) is 0.7, the training apparatus trains the second network (d(o2)) to minimize a difference (Loss 2) between the evaluation score, 1 point, for the prediction result of the third network (p(o2)) and the evaluation value, 0.7, predicted in the second network (d(o2)).
- Depending on examples, the neural network may output a sentence in response to voice recognition. In this example, a third network may compare an entire prediction sentence and a ground truth sentence and may determine a prediction value as "1" if all the words included in a single sentence match and may determine the prediction value as "0" if none of the words match. In this case, the third network may predict a result corresponding to state information in a form of a discrete value, for example, a prediction value.
- In an example, the third network may predict a result corresponding to state information in a form of a continuous value between 0 and 1 by assigning a partial point for each of the words included in a single sentence. In this case, an evaluation value may have a continuous value between 0 and 1, and a second network may be trained to predict a continuous value between 0 and 1.
- In one example, the neural network may be applied to various fields, such as voice recognition, biometric information recognition, text recognition, image capturing, sentimental analysis, analysis of stock price, analysis of oil price, and the like, in addition to the aforementioned fields.
-
FIG. 10 illustrates an example of a configuration of a neural network. Referring toFIG. 10 , aneural network 1000 includes afirst network 1010, asecond network 1020, and aprocessor 1030. Theneural network 1000 further includes athird network 1040, amemory 1050, anencoder 1060, adecoder 1070, asensor 1080, a UI or adisplay 1090, and acommunication interface 1007. Thefirst network 1010, thesecond network 1020, theprocessor 1030, thethird network 1040, thememory 1050, theencoder 1060, thedecoder 1070, thesensor 1080, the UI or thedisplay 1090, and thecommunication interface 1007 communicate with each other through acommunication bus 1005. - The
first network 1010 generates and outputs state information based on input information. Thefirst network 1010 iteratively processes the input information to provide an application service. The input information may include at least one of, for example, single data and sequential data. The input information may be, for example, an image and a sound. - The
second network 1020 determines whether the state information satisfies a condition. Thesecond network 1020 evaluates state information corresponding to an iterative processing result of thefirst network 1010. For example, thesecond network 1020 may compare a threshold and an evaluation result corresponding to the state information, output from thesecond network 1020. Also, thesecond network 1020 may compare a number of iterations to a number of times the state information is iteratively applied to thefirst network 1010. - In an example, the
processor 1030 iteratively applies the state information to thefirst network 1010 in response to the state information being determined to not satisfy the condition in thesecond network 1020. In an example, theprocessor 1030 outputs the state information in response to the state information being determined to satisfy the condition in thesecond network 1020. - In an example, the
processor 1030 encodes the input information to a dimension of the state information and applies the encoded input information to thefirst network 1010. In an example, theprocessor 1030 encodes the state information to a dimension of the input information and applies the encoded state information to thefirst network 1010. - Also, the
processor 1030 performs at least one method described above with reference toFIGS. 1 to 9 or an algorithm corresponding thereto. - The
processor 1030 refers to a data processing device configured as hardware with a circuitry in a physical structure to execute desired operations. For example, the desired operations may include codes or instructions included in a program. For example, the data processing device configured as hardware may include a microprocessor, a central processing unit (CPU), a processor core, a multicore processor, a multiprocessor, an application-specific integrated circuit (ASIC), and a field programmable gate array (FPGA). Theprocessor 1030 executes the program and controls theneural network 1000. In an example, theprocessor 1030 may be a graphics processor unit (GPU), reconfigurable processor, or have any other type of multi- or single-processor configuration. The program code executed by theprocessor 1030 is stored in thememory 1050. Further details regarding theprocessor 1030 is provided below. - The
third network 1040 decodes the state information to provide an application service. - The
memory 1050 stores the input information and the state information corresponding to the iterative processing result of thefirst network 1010. Thememory 1050 stores a result of evaluating, by thesecond network 1020, of the state information. Thememory 1050 stores an embedding vector encoded by theencoder 1060 and/or sequential data acquired by decoding, by thedecoder 1070, of the state information. Thememory 1050 stores a variety of information generated during the processing at theprocessor 1030. In addition, a variety of data and programs may be stored in thememory 1050. Thememory 1050 may include, for example, a volatile memory or a non-volatile memory. Thememory 1050 may include a mass storage medium, such as a hard disk, to store a variety of data. Further details regarding thememory 1050 is provided below. - For example, when the input information is sequential data, the
encoder 1060 encodes the sequential data to an embedding vector of an input dimension of thefirst network 1010. Here, theprocessor 1030 applies the embedding vector to thefirst network 1010. - For example, when the input information is sequential data, the
decoder 1070 decodes the state information to the sequential data. Here, theprocessor 1030 outputs the decoded sequential data. - The
sensor 1080 includes, for example, a microphone and/or an image sensor. In an example, thesensor 1080 is camera to sense video data, for example. In another example, the camera is configured to recognize audio input, for example. In another example, thesensor 1080 senses both the image data and the voice data. In an example, thesensor 1080 senses a voice using a well-known scheme, for example, a scheme of converting an voice input to an electronic signal. An output of thesensor 1080 is transferred to theprocessor 1030 or thememory 1050, and output of thesensor 1080 may also be transferred directly to, or operate as, an input layer of thefirst network 1010 discussed herein. - The decoded state information may be output through the display or the
UI 1090. The display or theUI 1090 is a physical structure that includes one or more hardware components that provide the ability to render a user interface and/or receive user input. However, the display or theUI 1090 is not limited to the example described above, and any other displays, such as, for example, smart phone and eye glass display (EGD) that are operatively connected to theneural network 1000 may be used without departing from the scope of the illustrative examples described. In an example, user adjustments or selective operations of the neural network processing operations discussed herein may be provided by display or theUI 1090, which may include a touch screen or other input/output device/system, such as a microphone or a speaker. - The
communication interface 1007 receives the input information from outside of theneural network 1000. Also, thecommunication interface 1007 transmits output of theneural network 1000 to the outside of theneural network 1000. - The self-
decidable RNN 430,first network 431,determiner 435,second network 433,third network 450,encoder 520,decoder 540, self-decidable RNN 530, and apparatuses, units, modules, devices, other components described herein are implemented by hardware components. Examples of hardware components that may be used to perform the operations described in this application where appropriate include controllers, sensors, generators, drivers, memories, comparators, arithmetic logic units, adders, subtractors, multipliers, dividers, integrators, and any other electronic components configured to perform the operations described in this application. In other examples, one or more of the hardware components that perform the operations described in this application are implemented by computing hardware, for example, by one or more processors or computers. A processor or computer may be implemented by one or more processing elements, such as an array of logic gates, a controller and an arithmetic logic unit, a digital signal processor, a microcomputer, a programmable logic controller, a field-programmable gate array, a programmable logic array, a microprocessor, or any other device or combination of devices that is configured to respond to and execute instructions in a defined manner to achieve a desired result. In one example, a processor or computer includes, or is connected to, one or more memories storing instructions or software that are executed by the processor or computer. Hardware components implemented by a processor or computer may execute instructions or software, such as an operating system (OS) and one or more software applications that run on the OS, to perform the operations described in this application. The hardware components may also access, manipulate, process, create, and store data in response to execution of the instructions or software. For simplicity, the singular term "processor" or "computer" may be used in the description of the examples described in this application, but in other examples multiple processors or computers may be used, or a processor or computer may include multiple processing elements, or multiple types of processing elements, or both. For example, a single hardware component or two or more hardware components may be implemented by a single processor, or two or more processors, or a processor and a controller. One or more hardware components may be implemented by one or more processors, or a processor and a controller, and one or more other hardware components may be implemented by one or more other processors, or another processor and another controller. One or more processors, or a processor and a controller, may implement a single hardware component, or two or more hardware components. A hardware component may have any one or more of different processing configurations, examples of which include a single processor, independent processors, parallel processors, single-instruction single-data (SISD) multiprocessing, single-instruction multiple-data (SIMD) multiprocessing, multiple-instruction single-data (MISD) multiprocessing, and multiple-instruction multiple-data (MIMD) multiprocessing. - The methods that perform the operations described in this application are performed by computing hardware, for example, by one or more processors or computers, implemented as described above executing instructions or software to perform the operations described in this application that are performed by the methods. For example, a single operation or two or more operations may be performed by a single processor, or two or more processors, or a processor and a controller. One or more operations may be performed by one or more processors, or a processor and a controller, and one or more other operations may be performed by one or more other processors, or another processor and another controller. One or more processors, or a processor and a controller, may perform a single operation, or two or more operations.
- Instructions or software to control a processor or computer to implement the hardware components and perform the methods as described above are written as computer programs, code segments, instructions or any combination thereof, for individually or collectively instructing or configuring the processor or computer to operate as a machine or special-purpose computer to perform the operations performed by the hardware components and the methods as described above. In an example, the instructions or software includes at least one of an applet, a dynamic link library (DLL), middleware, firmware, a device driver, an application program storing the method of outputting the state information. In one example, the instructions or software include machine code that is directly executed by the processor or computer, such as machine code produced by a compiler. In another example, the instructions or software include higher-level code that is executed by the processor or computer using an interpreter. Programmers of ordinary skill in the art can readily write the instructions or software based on the block diagrams and the flow charts illustrated in the drawings and the corresponding descriptions in the specification, which disclose algorithms for performing the operations performed by the hardware components and the methods as described above.
- The instructions or software to control computing hardware, for example, one or more processors or computers, to implement the hardware components and perform the methods as described above, and any associated data, data files, and data structures, may be recorded, stored, or fixed in or on one or more non-transitory computer-readable storage media. Examples of a non-transitory computer-readable storage medium include read-only memory (ROM), random-access programmable read only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random-access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROMs, CD-Rs, CD+Rs, CD-RWs, CD+RWs, DVD-ROMs, DVD-Rs, DVD+Rs, DVD-RWs, DVD+RWs, DVD-RAMs, BD-ROMs, BD-Rs, BD-R LTHs, BD-REs, blue-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), flash memory, card type memory such as multimedia card, secure digital (SD) card, or extreme digital (XD) card, magnetic tapes, floppy disks, magneto-optical data storage devices, optical data storage devices, hard disks, solid-state disks, and any other device that is configured to store the instructions or software and any associated data, data files, and data structures in a non-transitory manner and providing the instructions or software and any associated data, data files, and data structures to a processor or computer so that the processor or computer can execute the instructions. In one example, the instructions or software and any associated data, data files, and data structures are distributed over network-coupled computer systems so that the instructions and software and any associated data, data files, and data structures are stored, accessed, and executed in a distributed fashion by the one or more processors or computers.
- While this disclosure includes specific examples, it will be apparent after an understanding of the disclosure of this application that various changes in form and details may be made in these examples without departing from the scope of the claims and their equivalents. The examples described herein are to be considered in a descriptive sense only, and not for purposes of limitation. Descriptions of features or aspects in each example are to be considered as being applicable to similar features or aspects in other examples. Suitable results may be achieved if the described techniques are performed in a different order, and/or if components in a described system, architecture, device, or circuit are combined in a different manner, and/or replaced or supplemented by other components or their equivalents. Therefore, the scope of the disclosure is defined not by the detailed description, but by the claims and their equivalents, and all variations within the scope of the claims and their equivalents are to be construed as being included in the disclosure.
Claims (15)
- An operation method of a neural network comprising a first network and a second network, the method comprising:acquiring state information output from the first network based on input information;determining whether the state information satisfies a condition using the second network;iteratively applying the state information to the first network in response to determining that the state information does not satisfy the condition; andoutputting the state information in response to determining that the state information satisfy the condition.
- The method of claim 1, wherein the determining comprises comparing a threshold and an evaluation result corresponding to the state information, output from the second network;
wherein preferably the determining further comprises comparing a number of iterations to a number of times the state information is iteratively applied to the first network. - The method of claim 1 or 2, wherein the input information corresponds to an input vector, and the state information corresponds to an output vector; and/or
wherein the first network is configured to iteratively process the input information to provide an application service, and
the second network is configured to evaluate the state information corresponding to a result of the iterative processing of the first network. - The method of any one of the previous claims, further comprising:
decoding the state information using a third network, to provide an application service. - The method of any one of the previous claims, further comprising:encoding the input information to a dimension of the state information; andapplying the encoded input information to the first network; and/orwherein the iteratively applying comprises:encoding the state information to a dimension of the input information; andapplying the encoded state information to the first network.
- The method of any one of the previous claims, wherein the input information comprises any one or any combination of single data and sequential data; and/or
further comprising:encoding sequential data to an embedding vector of an input dimension of the first network in response to the input information being the sequential data; andapplying the embedding vector to the first network;wherein preferably the outputting comprises decoding the state information to the sequential data and outputting the decoded state information. - The method of any one of the previous claims, wherein the first network comprises a neural network for voice recognition or a neural network for image recognition; and/or
wherein the first network comprises at least one of a fully-connected layer, a simple recurrent neural network, a long-short term memory (LSTM), or gated recurrent units (GRUs). - A non-transitory computer-readable recording medium storing instructions that, when executed by a processor, cause the processor to implement the method of any one of the previous claims.
- A neural network comprising:a first network configured to generate state information based on input information;a second network configured to determine whether the state information satisfies a condition; anda processor configured to iteratively apply the state information to the first network in response to the state information not satisfying the condition, and to output the state information in response to the state information satisfying the condition.
- The neural network of claim 9, wherein the second network is further configured to compare a threshold and an evaluation result corresponding to the state information, output from the second network;
wherein preferably the second network is further configured to compare a number of iterations to a number of times the state information is iteratively applied to the first network. - The neural network of claim 9 or 10, wherein the first network is further configured to iteratively process the input information to provide an application service, and
the second network is further configured to evaluate the state information corresponding to a result the iterative processing of the first network. - The neural network of any one of claims 9-11, further comprising:
a third network configured to decode the state information to provide an application service. - The neural network of any one of claims 9-12, wherein the processor is further configured to encode the input information to a dimension of the state information, and to apply the encoded input information to the first network; and/or
wherein the processor is further configured to encode the state information to a dimension of the input information, and to apply the encoded state information to the first network. - The neural network of any one of claims 9-13, wherein the input information comprises any one or any combination of single data and sequential data; and/or
further comprising:an encoder configured to encode sequential data to an embedding vector of an input dimension of the first network, in response to the input information being the sequential data,wherein the processor is further configured to apply the embedding vector to the first network;preferably further comprising:a decoder configured to decode the state information to the sequential data, in response to the input information being the sequential data,wherein the processor is further configured to output the decoded state information. - An electronic device, comprising:a sensor configured to receive an input information;a memory configured to store the input information, a first network according to any one of claims 9-14, a second network according to any one of claims 9-14, a third network according to any one of claims 12-14, and instructions; anda processor configured to execute the instructions toimplement the first network configured to generate state information based on the input information,implement the second network configured to determine whether the state information satisfies a condition,implement the third network configured to decode the state information to provide an application service,iteratively apply the state information to the first network, in response to the state information not satisfying the condition, andoutput the decoded state information, in response to the state information satisfying the condition;wherein preferably the processor is further configured to compare a threshold to a result of evaluation of the state information by the second network; and/orwherein preferably the processor is further configured to compare a number of iterations to a number of times the state information is iteratively applied to the first network.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020180115882A KR20200036352A (en) | 2018-09-28 | 2018-09-28 | Operating method and learning method of neural network and neural network thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
EP3629248A1 true EP3629248A1 (en) | 2020-04-01 |
Family
ID=67851051
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP19195403.1A Pending EP3629248A1 (en) | 2018-09-28 | 2019-09-04 | Operating method and training method of neural network and neural network thereof |
Country Status (5)
Country | Link |
---|---|
US (1) | US12020136B2 (en) |
EP (1) | EP3629248A1 (en) |
JP (1) | JP7563842B2 (en) |
KR (1) | KR20200036352A (en) |
CN (1) | CN110969239A (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111711821B (en) * | 2020-06-15 | 2022-06-10 | 南京工程学院 | Information hiding method based on deep learning |
US11514326B2 (en) * | 2020-06-18 | 2022-11-29 | International Business Machines Corporation | Drift regularization to counteract variation in drift coefficients for analog accelerators |
KR102520316B1 (en) * | 2021-02-09 | 2023-04-11 | 한양대학교 에리카산학협력단 | Device for training attention model and method thereof |
Family Cites Families (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3151857B2 (en) | 1991-06-06 | 2001-04-03 | オムロン株式会社 | Inference device with learning function |
US20100179935A1 (en) * | 2009-01-13 | 2010-07-15 | Gm Global Technology Operations, Inc. | Spiking dynamical neural network for parallel prediction of multiple temporal events |
US9129221B2 (en) * | 2012-05-07 | 2015-09-08 | Brain Corporation | Spiking neural network feedback apparatus and methods |
CN104239694B (en) | 2014-08-28 | 2016-11-23 | 北京交通大学 | The failure predication of a kind of municipal rail train bogie and condition maintenarnce method |
US10339439B2 (en) | 2014-10-01 | 2019-07-02 | Thalchemy Corporation | Efficient and scalable systems for calculating neural network connectivity in an event-driven way |
US9959517B2 (en) | 2014-12-22 | 2018-05-01 | International Business Machines Corporation | Self-organizing neural network approach to the automatic layout of business process diagrams |
CN104517301B (en) * | 2014-12-30 | 2017-07-07 | 华中科技大学 | The method of the iterative extraction angiographic image kinematic parameter that multi-parameters model is instructed |
US9818409B2 (en) | 2015-06-19 | 2017-11-14 | Google Inc. | Context-dependent modeling of phonemes |
JP2017012646A (en) | 2015-07-06 | 2017-01-19 | サミー株式会社 | Pinball game machine |
WO2017004803A1 (en) | 2015-07-08 | 2017-01-12 | Xiaoou Tang | An apparatus and a method for semantic image labeling |
US10063575B2 (en) * | 2015-10-08 | 2018-08-28 | Cisco Technology, Inc. | Anomaly detection in a network coupling state information with machine learning outputs |
KR102313028B1 (en) | 2015-10-29 | 2021-10-13 | 삼성에스디에스 주식회사 | System and method for voice recognition |
CN105678755A (en) * | 2015-12-31 | 2016-06-15 | 青岛歌尔声学科技有限公司 | Product state detection method and system based on Adaboost algorithm |
US11263514B2 (en) | 2016-01-13 | 2022-03-01 | Google Llc | Processing and generating sets using recurrent neural networks |
JP6706326B2 (en) | 2016-02-03 | 2020-06-03 | グーグル エルエルシー | Recurrent neural network model compression |
KR20180003123A (en) | 2016-06-30 | 2018-01-09 | 삼성전자주식회사 | Memory cell unit and recurrent neural network(rnn) including multiple memory cell units |
US10650305B2 (en) | 2016-07-08 | 2020-05-12 | Baidu Usa Llc | Systems and methods for relation inference |
CN107786867A (en) * | 2016-08-26 | 2018-03-09 | 原相科技股份有限公司 | Image identification method and system based on deep learning architecture |
JP6713903B2 (en) | 2016-10-17 | 2020-06-24 | 日本電信電話株式会社 | Learning device, learning method, and learning program |
US11494654B2 (en) | 2016-11-03 | 2022-11-08 | Avanseus Holdings Pte. Ltd. | Method for machine failure prediction using memory depth values |
US10963782B2 (en) * | 2016-11-04 | 2021-03-30 | Salesforce.Com, Inc. | Dynamic coattention network for question answering |
US10963819B1 (en) * | 2017-09-27 | 2021-03-30 | Amazon Technologies, Inc. | Goal-oriented dialog systems and methods |
CN108090443B (en) * | 2017-12-15 | 2020-09-22 | 华南理工大学 | Scene text detection method and system based on deep reinforcement learning |
US11205137B2 (en) * | 2018-06-15 | 2021-12-21 | International Business Machines Corporation | Distributed training in a parameter dataset |
US10685282B2 (en) * | 2018-07-25 | 2020-06-16 | WaveOne Inc. | Machine-learning based video compression |
-
2018
- 2018-09-28 KR KR1020180115882A patent/KR20200036352A/en not_active Application Discontinuation
-
2019
- 2019-03-05 US US16/292,545 patent/US12020136B2/en active Active
- 2019-03-22 CN CN201910222514.4A patent/CN110969239A/en active Pending
- 2019-06-20 JP JP2019114796A patent/JP7563842B2/en active Active
- 2019-09-04 EP EP19195403.1A patent/EP3629248A1/en active Pending
Non-Patent Citations (1)
Title |
---|
EMMANUEL MAGGIORI ET AL: "Learning Iterative Processes with Recurrent Neural Networks to Correct Satellite Image Classification Maps Learning Iterative Pro- cesses with Recurrent Neural Networks to Correct Satellite Image Classification Maps Learning Iterative Processes with Recurrent Neural Networks to Correct Satellite Ima", 1 January 2016 (2016-01-01), pages 1388551, XP055666101, Retrieved from the Internet <URL:https://hal.inria.fr/hal-01388551/document> * |
Also Published As
Publication number | Publication date |
---|---|
CN110969239A (en) | 2020-04-07 |
JP7563842B2 (en) | 2024-10-08 |
US12020136B2 (en) | 2024-06-25 |
KR20200036352A (en) | 2020-04-07 |
JP2020057357A (en) | 2020-04-09 |
US20200104675A1 (en) | 2020-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11935516B2 (en) | Speech recognition method and appratus using weighted scores | |
US20200125927A1 (en) | Model training method and apparatus, and data recognition method | |
US10127905B2 (en) | Apparatus and method for generating acoustic model for speech, and apparatus and method for speech recognition using acoustic model | |
US11468324B2 (en) | Method and apparatus with model training and/or sequence recognition | |
US11151335B2 (en) | Machine translation using attention model and hypernetwork | |
US20190057081A1 (en) | Method and apparatus for generating natural language | |
US10528666B2 (en) | Method and apparatus for determining domain of sentence | |
US11361757B2 (en) | Method and apparatus with speech recognition | |
US12100392B2 (en) | Decoding method and apparatus in artificial neural network for speech recognition | |
US11574190B2 (en) | Method and apparatus for determining output token | |
US12039277B2 (en) | Method and device with natural language processing | |
EP3629248A1 (en) | Operating method and training method of neural network and neural network thereof | |
US11790232B2 (en) | Method and apparatus with neural network data input and output control | |
US20210110273A1 (en) | Apparatus and method with model training | |
US20230154173A1 (en) | Method and device with neural network training and image processing | |
US11443118B2 (en) | Word embedding method and apparatus, and word search method | |
US20210110817A1 (en) | Method and apparatus for generating speech |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION HAS BEEN PUBLISHED |
|
AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
AX | Request for extension of the european patent |
Extension state: BA ME |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE |
|
17P | Request for examination filed |
Effective date: 20200929 |
|
RBV | Designated contracting states (corrected) |
Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: EXAMINATION IS IN PROGRESS |
|
17Q | First examination report despatched |
Effective date: 20220304 |
|
P01 | Opt-out of the competence of the unified patent court (upc) registered |
Effective date: 20230530 |