paper-with-me

Papers

Accelerating Inference in Large Language Models with a Unified Layer Skipping Strategy

2024-04-10 · Yijin Liu, Fandong Meng, Jie zhou

Recently, dynamic computation methods have shown notable acceleration for Large Language Models (LLMs) by skipping several layers of computations through elaborate heuristics or additional predictors. However, in the decoding process of existing approaches, different samples are assigned different computational budgets, which cannot guarantee a stable and precise acceleration effect. Furthermore, existing approaches generally skip multiple contiguous layers at the bottom or top of the layers, leading to a drastic change in the model's layer-wise representations, and thus a consequent performance degeneration. Therefore, we propose a Unified Layer Skipping strategy, which selects the number of layers to skip computation based solely on the target speedup ratio, and then skips the corresponding number of intermediate layer computations in a balanced manner. Since the Unified Layer Skipping strategy is independent of input samples, it naturally supports popular acceleration techniques such as batch decoding and KV caching, thus demonstrating more practicality for real-world applications. Experimental results on two common tasks, i.e., machine translation and text summarization, indicate that given a target speedup ratio, the Unified Layer Skipping strategy significantly enhances both the inference performance and the actual model throughput over existing dynamic approaches.

📄 PDF Abstract BibTeX arXiv:2404.06954

Code (1)

adaxry/unified_layer_skipping 공식 구현 pytorch

Tasks

Machine TranslationText Summarization

Similar Papers 제목 키워드 기반

You Need Multiple Exiting: Dynamic Early Exiting for Accelerating Unified Vision Language Model

2022-11-21 · CVPR 2023 1 · Shengkun Tang, Yaqing Wang, Zhenglun Kong, Tianchi Zhang 외

Large-scale Transformer models bring significant improvements for various downstream vision language tasks with a unified architecture. The performance improvements come with increasing model size, resulting in slow infe…

DecoderLanguage ModelingLanguage Modelling

Accelerating Inference for Pretrained Language Models by Unified Multi-Perspective Early Exiting

2022-10-01 · COLING 2022 10 · Jun Kong, Jin Wang, Liang-Chih Yu, Xuejie Zhang

Conditional computation algorithms, such as the early exiting (EE) algorithm, can be applied to accelerate the inference of pretrained language models (PLMs) while maintaining competitive performance on resource-constrai…

Unified Normalization for Accelerating and Stabilizing Transformers

2022-08-02 · Qiming Yang, Kai Zhang, Chaoxiang Lan, Zhi Yang 외

Solid results from Transformers have made them prevailing architectures in various natural language and vision tasks. As a default component in Transformers, Layer Normalization (LN) normalizes activations within each to…

GPU

NASH: A Simple Unified Framework of Structured Pruning for Accelerating Encoder-Decoder Language Models

2023-10-16 · Jongwoo Ko, Seungjoon Park, Yujin Kim, Sumyeong Ahn 외

Structured pruning methods have proven effective in reducing the model size and accelerating inference speed in various network architectures such as Transformers. Despite the versatility of encoder-decoder models in num…

Decoder

HeteroLLM: Accelerating Large Language Model Inference on Mobile SoCs platform with Heterogeneous AI Accelerators

2025-01-11 · Le Chen, Dahu Feng, Erhu Feng, Rong Zhao 외

With the rapid advancement of artificial intelligence technologies such as ChatGPT, AI agents and video generation,contemporary mobile systems have begun integrating these AI capabilities on local devices to enhance priv…

Language ModelingLanguage ModellingLarge Language ModelVideo Generation