hottub.patents
US 12,769,998 B2#3104204 Most CitedActiveUnited States (USPTO)Utility

Method and system for training dynamic deep neural network

0Forward Citations (#3104204 Global)
0.0/yrCitation Velocity (#3104204 Global)
0.00Citation PageRank (#3104204 Global)
9Prior Art Cited
20Claims (3 Indep. · 17 Dep.)
8Drawings / Sheets

Abstract

Provided are a method and system for training a dynamic deep neural network. The method for training a dynamic deep neural network includes receiving an output of a last layer of the deep neural network and outputting a first loss, receiving an output of a routing module according to an input class of the deep neural network and outputting a second loss, calculating a third loss based on the first loss and the second loss, and updating a weight of the deep neural network by using the third loss.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 0.

Claims (20 — 3 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    A method for training a dynamic deep neural network, the method comprising: providing the dynamic deep neural network with a plurality of dynamic convolution blocks, each dynamic convolution block including a routing module configured to generate filter importance information for determining which filters to apply to a current input; receiving an output of a last layer of the deep neural network and outputting a first loss through a first classification path; receiving an output of the routing module from at least one of the dynamic convolution blocks according to an input class of the deep neural network and outputting a second loss through a second classification path separate from the first classification path; calculating a third loss based on the first loss and the second loss, wherein the third loss trains the routing module to select different filter sets for different input classes; and updating a weight of the deep neural network by using the third loss.

  2. Claim 2Depends on #1

    The method of claim 1, wherein: the outputting of the first loss includes: predicting the input class; and calculating a class determination loss for the prediction and outputting the first loss.

  3. Claim 3Depends on #2

    The method of claim 2, wherein: the outputting of the first loss includes outputting the first loss based on similarity to a ground truth class label.

  4. Claim 4Depends on #1

    The method of claim 1, wherein: the outputting of the second loss includes: generating one tensor by summing the outputs of the routing modules; predicting the input class based on the tensor; and calculating a class determination loss for the prediction and outputting the second loss.

  5. Claim 5Depends on #4

    The method of claim 4, wherein: the outputting of the second loss includes outputting the second loss based on similarity to the ground truth class label.

  6. Claim 6Depends on #1

    The method of claim 1, wherein: the calculating of the third loss includes calculating the third loss by the following equation Third ⁢ loss = first ⁢ loss + λ * second ⁢ loss [Equation ⁢ 1] Here, λ is a hyper parameter for determining a weight between the first loss and the second loss.

  7. Claim 7Depends on #1

    The method of claim 1, further comprising: initializing all weights of the deep neural network; reading a training batch; and sequentially passing the training batch for all layers of the deep neural network.

  8. Claim 8Depends on #7

    The method of claim 7, wherein: the sequentially passing of the training batch includes generating a feature batch based on filter importance information after generating the filter importance information using the routing module for each layer of the deep neural network.

  9. Claim 9Depends on #7

    The method of claim 7, further comprising: performing the method of training a dynamic deep neural network on a next training batch after updating the weight of the deep neural network.

  10. Claim 10Depends on #9

    The method of claim 9, further comprising: terminating the method for training a dynamic deep neural network when the next training batch does not exist.

  11. Claim 11Independent Claim

    A method for training a dynamic deep neural network, the method comprising: providing the dynamic deep neural network with a plurality of dynamic convolution blocks with integrated routing modules; receiving an output of a last layer of the deep neural network and outputting a first loss; receiving outputs of a first routing module within a first dynamic convolution block and a second routing module within a second dynamic convolution block according to an input class of the deep neural network, and outputting a second loss and a third loss through respective classification paths; calculating a fourth loss based on the first loss, the second loss, and the third loss; and updating a weight of the deep neural network by using the fourth loss to enable class-specific filter selection by the routing modules.

  12. Claim 12Depends on #11

    The method of claim 11, wherein: the outputting of the first loss includes: predicting the input class; and calculating a class determination loss for the prediction and outputting the first loss.

  13. Claim 13Depends on #11

    The method of claim 11, wherein: the outputting of the second loss includes: generating one first tensor by summing outputs of the first routing module of a first group; predicting the input class based on the first tensor; and calculating a class determination loss for the prediction and outputting the second loss.

  14. Claim 14Depends on #13

    The method of claim 13, wherein: the outputting of the third loss includes: generating one second tensor by summing outputs of the second routing module of a second group; predicting the input class based on the second tensor; and calculating a class determination loss for the prediction and outputting the third loss.

  15. Claim 15Depends on #11

    The method of claim 11, wherein: the outputting of the second loss includes: predicting the input class based on the output of the first routing module; and calculating a class determination loss for the prediction and outputting the second loss.

  16. Claim 16Depends on #15

    The method of claim 15, wherein: the outputting of the third loss includes: predicting the input class based on the output of the second routing module; and calculating a class determination loss for the prediction and outputting the third loss.

  17. Claim 17Independent Claim

    A system for training a dynamic deep neural network, the system comprising: one or more processors configured to execute specialized neural network training operations for the dynamic deep neural network, wherein the dynamic deep neural network includes a plurality of dynamic convolution blocks, each dynamic convolution block including a routing module that generates filter importance information for determining which filters to apply to a current input; a first loss output module implemented as a first classification path receiving an output of a last layer of the deep neural network and outputting a first loss; a second loss output module implemented as a second classification path separate from the first classification path, receiving an output of a routing module that generates filter importance information within a dynamic convolution block according to an input class of the deep neural network and outputting a second loss; a loss calculation module calculating a third loss based on the first loss and the second loss; and a weight update module updating a weight of the deep neural network by using the third loss to train the routing module for class-specific filter selection.

  18. Claim 18Depends on #17

    The system of claim 17, wherein: the first loss output module includes: a class prediction module predicting the input class; and a class determination loss module calculating a class determination loss for the prediction and outputting the first loss.

  19. Claim 19Depends on #17

    The system of claim 17, wherein: the second loss output module includes: a tenser merging module generating one tensor by summing the outputs of the routing modules; a class prediction module predicting the input class based on the tensor; and a class determination loss module calculating a class determination loss for the prediction and outputting the second loss.

  20. Claim 20Depends on #17

    The system of claim 17, wherein: the loss calculation module calculates the third loss by the following equation 1 Third ⁢ loss = first ⁢ loss + λ * second ⁢ loss [Equation ⁢ 1] Here, λ is a hyper parameter for determining a weight between the first loss and the second loss.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATION This application claims priority to and the benefit of Korean Patent Application No. 10-2021-0003878 filed in the Korean Intellectual Property Office on Jan. 12, 2021, the entire contents of which are incorporated herein by reference. BACKGROUND OF THE DISCLOSURE (a) Field of the Disclosure The present disclosure relates to a method and system for training a dynamic deep neural network. (b) Description of the Related Art A dynamic deep neural network may recognize contents of an input image by constructing a module, in which a linear filter and a nonlinear activation function are combined, in a multi-layered form in order to extract features. Many studies have been conducted not only on the problem of designing a network with high accuracy for the same data set, but also on the problem of designing a network with the highest accuracy in a limited amount of computation. A dynamic network is a type of research that increases accuracy under the limited amount of computation. Unlike the existing network in which the same filter is used regardless of input data, the dynamic network is a network in which the filter used according to the input is changed, and enables more efficient calculation suitable for the input. That is, for example, there are training data on various breeds of dogs in ImageNet, but a filter for detailed classification of breeds of dogs will hardly play a role for car input images. Therefore, when the input is a car image, if the filter related to the classification of breeding of dogs may be removed from the calculation, the amount of computation may be reduced with little effect on the accuracy. Such a dynamic network may be implemented by a channel gating or channel mixing method. The channel gating is a method in which some channels pass with a calculation and other channels pass without a calculation at an inference time. Since the channel gating performs the inference using only some channels of the network

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (9)

PatentTitleYearCitations

Non-Patent Literature (10)

  • Babak Ehteshami Bejnordi et al.,
  • “
  • Batch-Shaping for Learning Conditional Channel Gated Networks
  • ”
  • , ICLR 2020, Apr. 3, 2020, pp. 1-14.
  • Brandon Yang et al.,
  • “
  • CondConv: Conditionally Parameterized Convolutions for Effcient Inference
  • ”
  • , 33rd Conference on Neural Information Processing Systems, Sep. 4, 2020, Vancouver, Canada. arXiv:1904.04971v3.