Large Language Models (LLMs) have achieved remarkable performance across a wide variety of natural language tasks; however, their large size makes their inference slow and computationally expensive. Focusing on this problem, we propose to instruction tune LLMs with additional explicit losses from the intermediate layers (LITE) and show that it enables these layers to acquire 'good' generation ability without affecting the generation ability of the final layer. We perform 'dynamic confidence-based early exiting' at token level from the intermediate layers which improves the efficiency of text generation without compromising the quality of the generation. We conduct comprehensive experiments by instruction tuning LLaMA-2 models on the Alpaca dataset and holistically evaluate on four different human-instruction test sets. We show that dynamic early exiting achieves consistent and considerable inference computation cost improvements (37.86% for 7B and 46.35% for 13B model) while maintaining the generation quality of the responses. We further conduct a thorough analysis of the results over several important aspects, such as comparing the semantic similarity of the outputs and dissecting the efficiency improvements by comparing the number of tokens generated in the output. In summary, our work contributes to improving the efficiency of LLM inference while maintaining the generation quality, a crucial step en route to enabling their widespread adoption.
Cancer Vaccine Adjuvant Name Recognition from Biomedical Literature using Large Language Models
University of North Dakota School of Medicine and Health Sciences(北达科他大学医学与健康科学学院);University of North Dakota(北达科他大学);University of Michigan(密歇根大学);Bogazici University(博阿齐奇大学)
Accelerating Clinical Evidence Synthesis with Large Language Models
University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);National Center for Biotechnology Information(国家生物技术信息中心);National Library of Medicine(国家医学图书馆);Carle Illinois College of Medicine(卡尔伊利诺伊医学院)
GPAS: Accelerating Convergence of LLM Pretraining via Gradient-Preserving Activation Scaling
The Hong Kong University of Science and Technology(香港科技大学);International Digital Economy Academy(国际数字经济学院);Dalian University of Technology(大连理工大学);Emory University(埃默里大学);University of Texas at Austin(德克萨斯大学奥斯汀分校);NVIDIA(英伟达);University of Oxford(牛津大学);University of Surrey(萨里大学)
A Multi-Agent Framework for Medical AI: Leveraging Fine-Tuned GPT, LLaMA, and DeepSeek R1 for Evidence-Based and Bias-Aware Clinical Query Processing
Department of Computing;Games, Teesside University, Middlesbrough, United Kingdom Centre for Digital Innovation, Teesside University, Middlesbrough, United Kingdom Faculty of Business \& Technology, University of Sunderland, Sunderland, United Kingdom
Less Data, More Security: Advancing Cybersecurity LLMs Specialization via Resource-Efficient Domain-Adaptive Continuous Pre-training with Minimal Tokens
SSH Communications Security(SSH通讯安全公司);KTH Royal Institute of Technology(皇家理工学院);Aalto University(阿尔托大学)
Integrating Chain-of-Thought and Retrieval Augmented Generation Enhances Rare Disease Diagnosis from Clinical Notes
Raymond G. Perelman Center for Cellular and Molecular Therapeutics, Children's Hospital of Philadelphia(费城儿童医院雷蒙德·G·佩雷尔曼细胞与分子治疗中心);University of Pennsylvania(宾夕法尼亚大学);Perelman School of Medicine, University of Pennsylvania(宾夕法尼亚大学佩雷尔曼医学院)
Text Classification of the Precursory Accelerating Seismicity Corpus: Inference on some Theoretical Trends in Earthquake Predictability Research from 1988 to 2018