The invention discloses a
distillation enhanced clustering acceleration method for encrypted
traffic classification, and relates to the technical field of
computer network encrypted
traffic classification, and the method comprises a clustering
perception knowledge
distillation stage and a
hybrid reasoning acceleration stage, the clustering
perception knowledge
distillation stage is responsible for optimizing the feature space of a model, and firstly, the clustering
perception knowledge distillation stage is responsible for optimizing the feature space of the model; a novel cluster-friendly
encoder loss is introduced in the
fine tuning process, so that the model is forced to learn feature representation which is beneficial to classification and high-purity clustering; and then, taking the fine-tuned PTM as a teacher model, distilling knowledge of the PTM into a lightweight five-layer feed-forward neural network so as to obtain a student model capable of rapidly extracting semantic features, and the
hybrid reasoning acceleration stage is responsible for realizing efficient classification and new product discovery. According to the method, on the basis that the original structure of a pre-training model is not changed at all, an efficient and accurate classification
system with a novel flow recognition capability is realized through knowledge distillation of clustering perception and a
hybrid reasoning acceleration mechanism.