LLM on a Budget: Active Knowledge Distillation for Efficient Classification of Large Text Corpora
Federal Reserve paper2025-12-15 · FRB · Finance and Economics Discussion Series · fedgfe:102367
Large Language Models (LLMs) are highly accurate in classification tasks, however, substantial computational and financial costs hinder their large-scale deployment in dynamic environments. Knowledge Distillation (KD) where a LLM ""teacher"" trains a smaller and more efficient ""student"" model, offers a promising solution to this problem. However, the distillation process itself often remains costly for large datasets, since it requires the teacher to label a vast number of samples while incurring significant token consumption. To alleviate this challenge, in this work we explore the active learning (AL) as a way to create efficient student models at a fraction of the cost while preserving the LLM's performance. In particular, we introduce M-RARU (Multi-class Randomized Accept/Reject Uncertainty Sampling), a novel AL algorithm that significantly reduces training costs. M-RARU employs an innovative strategy combining uncertainty with a randomized accept-reject mechanism to select only the most informative data points for the LLM teacher. This focused approach significantly minimizes required API calls and data processing time. We evaluate M-RARU against random sampling across five diverse student models (SVM, LDA, RF, GBDT, and DistilBERT) on multiple benchmark datasets. Experiments demonstrate that our proposed method achieves up to 80\% reduction in sample requirements as compared to random sampling, substantially improving classification accuracy while reducing financial costs and overall training time.
Original sourcePDF at source
References: 46 extracted, 20 linked to papers
Page 1Download these results: CSV · JSON
[1] T. Loughran and B. McDonald, When is a liability not a liability? textual analysis, dictionaries, and 10-ks, The Journal of Finance, vol. 66, no. 1, pp. 35-65, 2011.
[2] A. H. Shapiro, M. Sudhof, and D. J. Wilson, Measuring news sentiment, Federal Reserve Bank of San Francisco, Working Paper 2020-01, 2020.
[3] A. Vaswani et al., Attention is all you need, in Advances in Neural Information Processing Systems, vol. 30, 2017.
conference paperNot linked to a paper · References
[4] T. Wu, Y. Wang, and N. Quach, Advancements in natural language processing: Exploring transformer-based architectures for text understanding, 2025, https://arxiv.org/abs/2503.20227
[5] C. Cortes and V. Vapnik, Support-vector networks, Machine Learning, vol. 20, no. 3, 1995.
[6] J. H. Friedman, Greedy function approximation: a gradient boosting machine, Annals of statistics, pp. 1189-1232, 2001.
[7] L. Breiman, Random forests, Machine Learning, vol. 45, no. 1, pp. 5-32, 2001.
[8] G. Hinton, O. Vinyals, and J. Dean, Distilling the knowledge in a neural network, 2015, https://arxiv.org/abs/1503.02531
[9] A. Ghorbani et al., A survey of knowledge distillation in natural language processing, 2020.
working paperNot linked to a paper · References
[10] R. Tang et al., Distilling task-specific knowledge from bert into simple neural networks, in Proceedings of the 3rd Workshop on Neural Generation and Translation, 2019, pp. 153-159.
conference paperNot linked to a paper · References
[11] P. shuai Ren et al., A survey of deep active learning, 2021.
working paperNot linked to a paper · References
[12] S. Tong and D. Koller, Support vector machine active learning with applications to text classification, in Proceedings of the Seventeenth International Conference on Machine Learning, ICML 00, 2000, pp. 999-1006.
conference paperNot linked to a paper · References
[13] L. Ein-Dor et al., Active-learning for bert: An empirical study, 2020.
[14] V. Sanh, L. Debut, J. Chaumond, and T. Wolf, Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter, 2019, https://arxiv.org/abs/1910.01108
[15] K. Dasgupta, S. Roy, and S. Paul, Distilling reasoning capabilities from large language models, in Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing: Findings, 2022, pp. 4225-4235.
conference paperNot linked to a paper · References
[16] C. Fan, Q. Wu, Y. Zhao, and L. Mo, Integrating active learning and semi-supervised learning for improved data-driven hvac fault diagnosis performance, Applied Energy, vol. 356, p. 122356, 2024.
[17] B. Settles, Active learning literature survey, University of Wisconsin-Madison, Tech. Rep., 2009.
research reportNot linked to a paper · References
[18] D. D. Lewis and W. A. Gale, A sequential algorithm for training text classifiers, in ACM SIGIR, 1994.
[19] M. Barandas et al., Uncertainty-based rejection in machine learning: Implications for model development and interpretability, Electronics, vol. 11, no. 3, 2022.
[20] S. M. Lundberg and S.-I. Lee, A unified approach to interpreting model predictions, in Advances in neural information processing systems, 2017, pp. 4765-4774.
conference paperNot linked to a paper · References
[21] M. T. Ribeiro, S. Singh, and C. Guestrin, Why should i trust you?: Explaining the predictions of any classifier, in Proceedings of the 22nd ACM SIGKDD, 2016, pp. 1135-1144.
[22] T. Mikolov et al., Distributed representations of words and phrases and their compositionality, in NIPS, 2013.
conference paperNot linked to a paper · References
[23] J. Pennington, R. Socher, and C. D. Manning, Glove: Global vectors for word representation, in ACL EMNLP, 2014.
[24] Y. Yang et al., Multilingual universal sentence encoder for semantic retrieval, in ACL, 2020.
[25] R. J. Brachman, W. W. Cohen, and T. Dietterich, Synthesis Lectures on Artificial Intelligence and Machine Learning, 2012.
bookNot linked to a paper · References
[26] X. Ge, Y. Xue, Z. Luo, M. A. Sharaf, and P. K. Chrysanthis, Request: A scalable framework for interactive construction of exploratory queries, in IEEE BigData, 2016.
[27] Y. Xue and M. Hauskrecht, Robust learning of classification models from noisy soft-label information, in ECCV, 2016.
conference paperNot linked to a paper · References
[28] X. Ge, X. Zhang, and P. K. Chrysanthis, Exnav: An interactive big data exploration framework for big unstructured data, in 2020 IEEE International Conference on Big Data, 2020, pp. 503-512.
[29] S. Desai and G. Durrett, Calibration of pre-trained transformers, in Proceedings of EMNLP, 2020.
[30] J. Bergstra and Y. Bengio, Random search for hyper-parameter optimization, Journal of Machine Learning Research, vol. 13, 2012, pp. 281-305.
journal articleNot linked to a paper · References
[31] J. Snoek, H. Larochelle, and R. P. Adams, Practical bayesian optimization of machine learning algorithms, in Advances in neural information processing systems, vol. 25, 2012.
conference paperNot linked to a paper · References
[32] X. Jiao et al., Tinybert: Distilling bert for natural language understanding, 2019, https://arxiv.org/abs/1909.10351
[33] S. Zhang, L. Jiang, and J. Tan, Cross-domain knowledge distillation for text classification, Neurocomputing, vol. 509, pp. 11-20, 2022.
[34] F. D. Palo, P. Singhi, and B. Fadlallah, Performance-guided llm knowledge distillation for efficient text classification at scale, 2024.
[35] J. Ni et al., Adaptive knowledge distillation between text and speech pre-trained models, 2023, https://arxiv.org/abs/2303.03600
[36] Z. Yuan, W. Zhou, and H. Li, Revisiting knowledge distillation: An inheritance and exploration framework, 2021, https://arxiv.org/abs/2106.05942
[37] H. S. Seung, M. Opper, and H. Sompolinsky, Query by committee, in ACM Workshop on Computational Learning Theory, 1992.
[38] A. Freytag, E. Rodner, and J. Denzler, Selecting influential examples: Active learning with expected model output changes, in ECAI, 2016.
[39] A. Katharopoulos and F. Fleuret, Not all samples are created equal: Deep learning with importance sampling, 2019, https://arxiv.org/abs/1803.00942
[40] D. Grangier, S. Fan, S. Seto, and P. Ablin, Task-adaptive pretrained language models via clustered-importance sampling, 2025, https://arxiv.org/abs/2410.03735
[41] Z. Wang et al., Active learning for optimal intervention design in causal models, 2023, https://arxiv.org/abs/2306.01222
[42] Q. Zhang, Z.-D. Chen, X.-C. Li, and D.-C. Zhan, Active knowledge distillation, 2023, https://arxiv.org/abs/2305.15535
[43] D. Kothadiya, N. Vyas, A. Dani, and A. Rajwade, Task-agnostic active learning for final-layer fine-tuning, 2022, https://arxiv.org/abs/2210.08323
[44] A. Kuznetsov et al., Active knowledge distillation, 2021, https://arxiv.org/abs/2112.00122
[45] P. yeh Chiang, Y.-T. Lee, C.-H. Kuo, H. yi Lee, Active-knowledge-distillation, GitHub repository, 2020.
[46] A. Albalak et al., A survey on data selection for language models, 2024, https://arxiv.org/abs/2402.16827