生成式人工智能工具的大规模部署,往往依赖于对大型语言模型(LLM)的高成本 API 调用,以满足用户查询。为降低这些调用的频率,可以采用一个较小的语言模型——即学生模型——它持续基于 LLM 的响应进行训练。该学生模型逐渐获得独立处理越来越多用户请求的能力,我们将这一过程称为神经缓存。神经缓存的关键要素是一个策略,该策略决定哪些请求应仅由学生模型处理,哪些应被重定向至 LLM,并随后辅助学生模型的学习。在本研究中,我们聚焦于分类任务,并考虑一系列经典的基于主动学习的选择标准作为该策略。我们的实验表明,边际采样和查询委员会在不同任务和预算下均能带来一致的收益。
英文摘要:
Large-scale deployment of generative AI tools often depends on costly API calls to a Large Language Model (LLM) to fulfil user queries. To curtail the frequency of these calls, one can employ a smaller language model -- a student -- which is continuously trained on the responses of the LLM. This student gradually gains proficiency in independently handling an increasing number of user requests, a process we term neural caching. The crucial element in neural caching is a policy that decides which requests should be processed by the student alone and which should be redirected to the LLM, subsequently aiding the student's learning. In this study, we focus on classification tasks, and we consider a range of classic active learning-based selection criteria as the policy. Our experiments suggest that Margin Sampling and Query by Committee bring consistent benefits across tasks and budgets.
KDFlow: A User-Friendly and Efficient Knowledge Distillation Framework for Large Language Models
Key Laboratory of Big Data & Artificial Intelligence in Transportation, (Beijing Jiaotong University), Ministry of Education(大数据与人工智能交通运输联合实验室,(北京交通大学)教育部);School of Computer Science and Technology, Beijing Jiaotong University, Beijing, China(计算机科学与技术学院,北京交通大学,北京,中国);Tencent Inc, China(腾讯公司,中国)
Estimating the Black-box LLM Uncertainty with Distribution-Aligned Adversarial Distillation
School of Computer Science and Technology, Tianjin University, China(天津大学计算机科学与技术学院);School of Future Technology, Tianjin University, China(天津大学未来技术学院);Georgia Tech Shenzhen Institute, Tianjin University, China(Georgia Tech深圳研究院);School of Artificial Intelligence, Tianjin University, China(天津大学人工智能学院)
TextBox 2.0: A Text Generation Library with Pre-trained Language Models
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);Engineering Research Center of Next-Generation Intelligent Search and Recommendation, MOE(教育部下一代智能搜索与推荐工程研究中心);DIRO, Université de Montréal(蒙特利尔大学计算机科学与运筹学系);School of Information, Renmin University of China(中国人民大学信息学院);Xidian University(西安电子科技大学)
PlaSma: Making Small Language Models Better Procedural Knowledge Models for (Counterfactual) Planning
Allen Institute for Artificial Intelligence(艾伦人工智能研究所);University of Washington(华盛顿大学);University of Southern California(南加州大学);Tohoku University(东北大学)
Multi-MLLM Knowledge Distillation for Out-of-Context News Detection
Queen Mary University of London(伦敦玛丽女王大学);Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);The Hong Kong University of Science and Technology (GZ)(香港科学与技术大学)
Teacher-Guided Tool Learning for Small Language Models via Bidirectional KL Constraints
Nanjing University of Aeronautics and Astronautics(南京航空航天大学);Security Capability Center(360安全能力中心);Nanjing University(南京大学);Tongji University(同济大学);Shanghai Jiao Tong University(上海交通大学)