The embodiment of the invention provides a classification model training method based on hierarchical knowledge migration. The method comprises the steps of obtaining a universal
baseline model with a semantic understanding capability; according to the hierarchical
classification structure of the target domain, an industry
domain model containing a plurality of sub-classification output heads is constructed, and initialization is carried out by using a general
baseline model parameter; constructing a hierarchical constraint
loss function, and constraining the parent
class prediction probability to be greater than or equal to the child
class prediction probability; obtaining domain classification training samples, and respectively inputting the domain classification training samples into the general
baseline model and the industry
domain model to obtain first and second prediction category probability distributions; calculating domain
cross entropy loss based on the second prediction distribution and the real
label, calculating knowledge
distillation loss based on the difference between the two distributions, and constructing a target
loss function in combination with hierarchical constraint loss; and taking minimization of the target
loss function as a target training industry
domain model. According to the method, the model training efficiency is effectively improved, efficient migration of
domain knowledge is realized, and the hierarchical classification accuracy is remarkably improved.