Extreme compression of sentence-transformer ranker models: faster inference, longer battery life, and less storage on edge devices

Autor: Chaulwar, Amit, Malik, Lukas, Krajewski, Maciej, Reichel, Felix, Lundbæk, Leif-Nissen, Huth, Michael, Matejczyk, Bartlomiej
Rok vydání: 2022
Předmět:
Druh dokumentu: Working Paper
Popis: Modern search systems use several large ranker models with transformer architectures. These models require large computational resources and are not suitable for usage on devices with limited computational resources. Knowledge distillation is a popular compression technique that can reduce the resource needs of such models, where a large teacher model transfers knowledge to a small student model. To drastically reduce memory requirements and energy consumption, we propose two extensions for a popular sentence-transformer distillation procedure: generation of an optimal size vocabulary and dimensionality reduction of the embedding dimension of teachers prior to distillation. We evaluate these extensions on two different types of ranker models. This results in extremely compressed student models whose analysis on a test dataset shows the significance and utility of our proposed extensions.
Databáze: arXiv