Enregistré dans:
Détails bibliographiques
Auteurs principaux: Fan, Siqi, Fang, Xuezhi, Xing, Xingrun, Han, Peng, Shang, Shuo, Wang, Yequan
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:https://arxiv.org/abs/2503.08524
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866912729181192192
author Fan, Siqi
Fang, Xuezhi
Xing, Xingrun
Han, Peng
Shang, Shuo
Wang, Yequan
author_facet Fan, Siqi
Fang, Xuezhi
Xing, Xingrun
Han, Peng
Shang, Shuo
Wang, Yequan
contents Due to the large number of parameters, the inference phase of Large Language Models (LLMs) is resource-intensive. Unlike traditional model compression, which needs retraining, recent dynamic computation methods show that not all components are required for inference, enabling a training-free pipeline. In this paper, we focus on the dynamic depth of LLM generation. A token-position aware layer skipping framework is proposed to save 1.5x times operations efficiently while maintaining performance. We first observed that tokens predicted later have lower perplexity and thus require less computation. Then, we propose a training-free algorithm called Position-Aware Depth Decay Decoding ($D^3$), which leverages a power-law decay function, $\left\lfloor L \times (α^i) \right\rfloor$, to determine the number of layers to retain when generating token $T_i$. Remarkably, without any retraining, the $D^3$ achieves success across a wide range of generation tasks for the first time. Experiments on large language models (\ie the Llama) with $7 \sim 70$ billion parameters show that $D^3$ can achieve an average 1.5x speedup compared with the full-inference pipeline while maintaining comparable performance with nearly no performance drop ($<1\%$) on the GSM8K and BBH benchmarks.
format Preprint
id arxiv_https___arxiv_org_abs_2503_08524
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Position-Aware Depth Decay Decoding ($D^3$): Boosting Large Language Model Inference Efficiency
Fan, Siqi
Fang, Xuezhi
Xing, Xingrun
Han, Peng
Shang, Shuo
Wang, Yequan
Computation and Language
Due to the large number of parameters, the inference phase of Large Language Models (LLMs) is resource-intensive. Unlike traditional model compression, which needs retraining, recent dynamic computation methods show that not all components are required for inference, enabling a training-free pipeline. In this paper, we focus on the dynamic depth of LLM generation. A token-position aware layer skipping framework is proposed to save 1.5x times operations efficiently while maintaining performance. We first observed that tokens predicted later have lower perplexity and thus require less computation. Then, we propose a training-free algorithm called Position-Aware Depth Decay Decoding ($D^3$), which leverages a power-law decay function, $\left\lfloor L \times (α^i) \right\rfloor$, to determine the number of layers to retain when generating token $T_i$. Remarkably, without any retraining, the $D^3$ achieves success across a wide range of generation tasks for the first time. Experiments on large language models (\ie the Llama) with $7 \sim 70$ billion parameters show that $D^3$ can achieve an average 1.5x speedup compared with the full-inference pipeline while maintaining comparable performance with nearly no performance drop ($<1\%$) on the GSM8K and BBH benchmarks.
title Position-Aware Depth Decay Decoding ($D^3$): Boosting Large Language Model Inference Efficiency
topic Computation and Language
url https://arxiv.org/abs/2503.08524