hottub.patents
US 12,380,328 B2#3477776 Most CitedActiveUnited States (USPTO)Utility

Lightweight model training method, image processing method, electronic device, and storage medium

0Forward Citations (#3477776 Global)
0.0/yrCitation Velocity (#3477776 Global)
0.00Citation PageRank (#3477776 Global)
18Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

Provided is a lightweight model training method, an image processing method, a device and a medium. The lightweight model training method includes: acquiring first and second augmentation probabilities and a target weight adopted in an e-th iteration; performing data augmentation on a data set based on the first and second augmentation probabilities respectively, to obtain first and second data sets; obtaining a first output value of a student model and a second output value of a teacher model based on the first data set; obtaining a third output value and a fourth output value based on the second data set; determining a distillation loss function, a truth-value loss function and a target loss function; training the student model based on the target loss function; and determining a first augmentation probability or target weight to be adopted in an (e+1)-th iteration in a case of e is less than E.

Interactive Citation Constellation Global Citation Ranking

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

Claims (8)

  1. Claim 1Independent Claim

    A lightweight model training method, comprising: acquiring a first augmentation probability, a second augmentation probability and a target weight adopted in an e-th iteration, the target weight being a weight of a distillation loss value, e being a positive integer not greater than E, and E being a maximum quantity of iterations and being a positive integer greater than 1; performing data augmentation on a data set based on the first augmentation probability and the second augmentation probability respectively, to obtain a first data set and a second data set; obtaining a first output value of a student model and a second output value of a teacher model based on the first data set; obtaining a third output value of the student model and a fourth output value of the teacher model based on the second data set, and the student model being a lightweight model; determining a distillation loss function based on the first output value and the second output value; determining a truth-value lo

  2. Claim 2Depends on #1

    The method of claim 1, further comprising: acquiring a maximum augmentation probability; and determining the second augmentation probability based on the maximum augmentation probability, the maximum quantity of iterations and the first augmentation probability.

  3. Claim 3Depends on #2

    The method of claim 2, wherein determining the first augmentation probability to be adopted in the (e+1)-th iteration, comprises: determining the first augmentation probability to be adopted in the (e+1)-th iteration based on the maximum augmentation probability, the maximum quantity of iterations and the first augmentation probability of the e-th iteration.

  4. Claim 4Depends on #1

    The method of claim 1, further comprising: acquiring a maximum target weight; wherein determining the target weight to be adopted in the (e+1)-th iteration, comprises: determining the target weight to be adopted in the (e+1)-th iteration based on the maximum target weight, the maximum quantity of iterations, and the target weight of the e-th iteration.

  5. Claim 5Depends on #1

    The method of claim 1, wherein determining the target loss function based on the distillation loss function and the truth-value loss function, comprises: determining the distillation loss function as the target loss function in a case of the target weight is not less than the maximum target weight or the distillation loss function is not less than the truth-value loss function; and determining the truth-value loss function as the target loss function in other cases.

  6. Claim 6Depends on #1

    The method of claim 1, wherein determining the distillation loss function based on the first output value and the second output value, comprises: determining the distillation loss function according to a formula as follow: l 1=( a+a dft × 2/ E) × L dist ( o 1 s,o 1 t)+(1 − a − a dft × 2/ E) × L gt ( o 1 s,gt); wherein l1 represents the distillation loss function, L dist (o1s,o1t) represents a distillation loss value determined according to the first output value and the second output value, L gt (o1s,gt) represents a truth-value loss value determined according to the first output value and a truth-value, a represents the target weight, a dft represents a maximum target weight, E represents the maximum quantity of iterations, gt represents the truth-value, o1s represents the first output value, and o1t represents the second output value.

  7. Claim 7Depends on #1

    The method of claim 1, wherein determining the truth-value loss function based on the third output value and the fourth output value, comprises: determining the truth-value loss function according to a formula as follow: l 2= a × L dist ( o 2 s,o 2 t)+(1 − a) × L gt ( o 2 s,gt); wherein l2 represents the truth-value loss function, L dist (o2s,o2t) represents a distillation loss value determined according to the third output value and the fourth output value, L gt (o2s,gt) represents a truth-value loss value determined according to the third output value and a truth-value, a represents the target weight, gt represents the truth-value, o2s represents the third output value, and o2t represents the fourth output value.

  8. Claim 8Depends on #1

    An image processing method, comprising: receiving an image to be processed in a target scene; and inputting the image to be processed into a student model, to acquire a processed result of the image to be processed output by the student model; wherein the student model is obtained by adopting the lightweight model training method of claim 1.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS The present application claims priority to Chinese Patent Application No. CN202211059602.5, filed with the China National Intellectual Property Administration on Aug. 30, 2022, the disclosure of which is hereby incorporated herein by reference in its entirety. TECHNICAL FIELD The present disclosure relates to a field of computer technology, and specifically, to technical fields of machine learning, computer vision, image processing and the like. BACKGROUND Knowledge distillation is a commonly used model compression method, which refers to a training process by using a teacher model with higher precision to guide a student model, such that the student model may also obtain a precision indicator similar to that of the teacher model. The knowledge distillation itself has an effect of regularization. A method of knowledge distillation is used to train an overfitting model, which can prevent the model from overfitting to a certain extent. However, for some lightweight models, the use of knowledge distillation strategy for training may bring about a further underfitting phenomenon, leading to poor model precision, or even non-convergence. SUMMARY The present disclosure provides a lightweight model training method, an image processing method and apparatus, and an electronic device. According to a first aspect of the present disclosure, provided is a lightweight model training method, including: acquiring a first augmentation probability, a second augmentation probability and a target weight adopted in an e-th iteration, the target weight being a weight of a distillation loss value, e being a positive integer not greater than E, and E being the maximum quantity of iterations and being a positive integer greater than 1; performing data augmentation on a data set based on the first augmentation probability and the second augmentation probability respectively, to obtain a first data set and a second data set; obtaining a first output val

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 (18)

PatentTitleYearCitations

Non-Patent Literature (10)

  • Jaeyong Kang et al. ,
  • “
  • Ensemble Learning of Lightweight Deep Learning Models Using Knowledge Distillation for Image Classification,
  • ”
  • Sep. 24, 2020, Mathematics 2020,8,1652, pp. 1-10.
  • Kui Ren et al.,
  • “
  • Adversarial Attacks and Defenses in Deep Learning,
  • ”
  • Jan. 3, 2020,Enginering 6( 2020), pp. 348-356.