The invention relates to the technical field of computers, and discloses a document image key
information extraction method and device based on knowledge
distillation, and the method comprises the steps: carrying out the detection recognition and
sequence labeling of a sample document image through employing an initial teacher model, and obtaining the position information of a sample text, the content of the sample text, and the
sequence labeling information of the sample; performing
feature extraction based on the three pieces of information to obtain a sample text feature, a sample visual feature and a sample
layout feature; obtaining a sample text sequence
label based on the three features; generating sample training loss based on the sample text position information, the sample text content and the sample text sequence tag, and training the initial teacher model to obtain a teacher model; and performing knowledge
distillation on the teacher model to obtain a student model so as to perform key
information extraction on the target document image. According to the method, the complexity and
resource consumption of the model are remarkably reduced while the key
information extraction precision is ensured, and the model landing requirement can be met.