Large language models have become a vital component in modern NLP, achieving state of the art performance in a variety of tasks. However, they are often inefficient for real-world deployment due to their expensive inference costs. Knowledge distillation is a promising technique to improve their efficiency while retaining most of their effectiveness. In this paper, we reproduce, compare and analyze several representative methods for task-agnostic (general-purpose) distillation of Transformer language models. Our target of study includes Output Distribution (OD) transfer, Hidden State (HS) transfer with various layer mapping strategies, and Multi-Head Attention (MHA) transfer based on MiniLMv2. Through our extensive experiments, we study the effectiveness of each method for various student architectures in both monolingual (English) and multilingual settings. Overall, we show that MHA transfer based on MiniLMv2 is generally the best option for distillation and explain the potential reasons behind its success. Moreover, we show that HS transfer remains as a competitive baseline, especially under a sophisticated layer mapping strategy, while OD transfer consistently lags behind other approaches. Findings from this study helped us deploy efficient yet effective student models for latency-critical applications.
Dynamic Compressing Prompts for Efficient Inference of Large Language Models
School of Software Engineering, South China University of Technology(华南理工大学软件学院);Pazhou Lab(琶洲实验室);School of Future Technology, South China University of Technology(华南理工大学未来技术学院);Peng Cheng Laboratory(鹏城实验室);Hong Kong Polytechnic University(香港理工大学);Department of Computer Science and Technology, Chongqing University of Posts and Telecommunications(重庆邮电大学计算机科学与技术学院)
PreQuant: A Task-agnostic Quantization Approach for Pre-trained Language Models
Wangxuan Institute of Computer Technology, Peking University(北京大学王选计算机研究所);Meituan(美团);Meta AI;National Key Laboratory of General Artificial Intelligence(通用人工智能全国重点实验室);Beijing Institute for General Artificial Intelligence(北京通用人工智能研究院);Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院)
Prompt-SAW: Leveraging Relation-Aware Graphs for Textual Prompt Compression
Provable Responsible AI and Data Analytics (PRADA) Lab(可证明的负责任人工智能与数据分析(PRADA)实验室);King Abdullah University of Science and Technology(阿卜杜拉国王科技大学);South China University of Technology(华南理工大学);University of Macau(澳门大学);Nankai University(南开大学);University of Copenhagen(哥本哈根大学);Stony Brook University(纽约州立大学石溪分校);SDAIA-KAUST AI(沙特数据与人工智能总局-阿卜杜拉国王科技大学人工智能机构);Ant Group(蚂蚁集团)
The System Hallucination Scale (SHS): A Human-Centered Instrument for Assessing Perceived Reliability of Large Language Models
Machine Learning and Information Science Group, Medical University of Graz(格拉茨医科大学机器学习与信息科学组);Human Machine Mind Cooperation, Graz, Austria(格拉茨人类机智合作中心);MIDATA Cooperative, Zurich, Switzerland(苏黎世MIDATA合作组织);Human-Centered AI Lab, BOKU University Vienna(维也纳BOKU大学人本AI实验室)
MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformers
Microsoft Research(微软研究院)
我们在MiniLM中推广了深度自我注意力蒸馏(Wang et al.,2020)通过仅使用自注意关系蒸馏来对预训练的Transformers进行任务不可知压缩。特别是,我们定义了多头自我注意力的关系,每个自我注意力模块内的查询,键和值向量对之间的缩放点积。然后运用上述相关知识对学生模型进行训练。除了简单和统一的原则,更有利的是,它没有限制的数量方面的学生的注意头,而大多数以前的工作必须保证相同的头数之间的教师和学生。此外,细粒度的自注意关系倾向于充分利用Transformer学习的交互知识。此外,我们彻底研究了教师模型的层选择策略,而不是像MiniLM中那样只依赖最后一层。我们对压缩单语和多语言预训练模型进行了广泛的实验。实验结果表明,我们的模型提取的基础大小和大尺寸的教师(BERT,RoBERTa和XLM-R)优于国家的最先进的。
The Fragility and Dynamics of LLM Pruning-Recovery Steps
Institute of Information Science, Academia Sinica(中央研究院资讯科学研究所);National Taiwan University of Science and Technology(台湾科技大学);AI Research Center, Hon Hai Research Institute(鸿海研究院人工智能研究中心)
You Had One Job: Per-Task Quantization Using LLMs' Hidden Representations
Technion—Israel Institute of Technology(技术ion—以色列理工学院);Zenity(Zenity公司);DeepKeep(DeepKeep公司);Ben-Gurion University of the Negev(巴伊兰大学);New York University(纽约大学)
CogGym: Towards Large-Scale Comparative Evaluation of Human and Machine Cognition
Massachusetts Institute of Technology(麻省理工学院);Harvard University(哈佛大学);Cornell University(康奈尔大学);Johns Hopkins University(约翰斯·霍普金斯大学);Helmholtz Munich(亥姆霍兹慕尼黑中心);Massachusetts General Hospital(马萨诸塞总医院);University of Cambridge(剑桥大学);Princeton University(普林斯顿大学);Santa Fe Institute(圣塔菲研究所);Dartmouth College(达特茅斯学院);EPFL(洛桑联邦理工学院);University of Chicago(芝加哥大学);University of Tübingen(蒂宾根大学);CHI-FRO;Stanford University(斯坦福大学);University of California, Los Angeles(加利福尼亚大学洛杉矶分校);University of British Columbia(不列颠哥伦比亚大学);Vector Institute(向量研究所);Canada CIFAR AI Chair(加拿大CIFAR人工智能讲席);Yale University(耶鲁大学);University of California, Berkeley(加利福尼亚大学伯克利分校);University of Washington(华盛顿大学);New York University(纽约大学);McGill University(麦吉尔大学);Mila–Quebec AI Institute(米拉-魁北克人工智能研究所);The University of Texas at Austin(德克萨斯大学奥斯汀分校);Prior Computers;Purdue University(普渡大学);National University of Singapore(新加坡国立大学);A*STAR Institute of Advanced Intelligence and Computing(新加坡科技研究局先进智能与计算研究所);The University of Hong Kong(香港大学)
Large Language Models for Large-Scale, Rigorous Qualitative Analysis in Applied Health Services Research
Department of Computer Science(计算机科学系);Stanford University(斯坦福大学);Department of Biomedical Data Science(生物医学数据科学系);Stanford School of Medicine(斯坦福医学院);Harvard T.H. Chan School of Public Health(哈佛T.H. Chan公共卫生学院);Impactivo LLC