Performance-Guided Knowledge Distillation (PGKD) shrinks LLMs into tiny models while keeping their classification superpowers
https://arxiv.org/abs/2411.05045
π― Original Problem:
LLMs excel at text classification but face deployment challenges due to high inference costs and latency. Production environments need faster, cheaper solutions while maintaining LLM-level performance.
-----
π οΈ Solution in this Paper:
β Performance-Guided Knowledge Distillation (PGKD) transfers LLM knowledge into smaller task-specific models through active learning
β Student model performance metrics guide teacher LLM to generate optimized training data
β Hard negative mining identifies misclassified samples where student was confident
β Early stopping prevents performance drift and overfitting
-----
π‘ Key Insights from this Paper:
β PGKD effectiveness increases with dataset complexity and number of classes
β Validation metrics feedback helps LLM generate better training samples
β Hard negative samples improve model decision boundaries
β Performance gains diminish as training data size increases
-----
π Results:
β Up to 130X faster inference compared to LLMs
β 25X lower operational costs
β Accuracy improvement from 0.320 to 0.443 on complex datasets (335 classes)
β Consistently outperforms base BERT model across all dataset sizes










