Method and apparatus for data-free network quantization and compression with adversarial knowledge distillation
Патент · US A1
Полный текст
A method and system are provided. The method includes receiving, at a generator, a random input; producing, at the generator, one or more adversarial images based on the received random input; receiving, at a teacher network, the one or more adversarial images, wherein the teacher network includes a batch normalization layer comprising a mean and a variance of batch normalization layer inputs; receiving, at a student network, the one or more adversarial images; minimizing a maximum of a distance between a feature map of the teacher network and a feature map of the student network based on the one or more adversarial images; and constraining the generator based on a loss term defined according to a combination of a batch normalization statistics parameter derived from the batch normalization layer, an instance categorical entropy parameter, and a batch categorical entropy parameter calculated based on the one or more adversarial images generated by the generator, wherein the batch normalization statistics parameter is computed based on a statistical divergence between the mean and the variance of the batch normalization layer inputs of the teacher network and a corresponding statistic of the one or more adversarial images generated by the generator.