atlas

Research map / Large language models / Reasoning and chain of thought

D-LLM: A Token Adaptive Computing Resource Allocation Strategy for Large Language Models

NeurIPS 2024 · Large language models › Reasoning and chain of thought · approach: Efficient LLM serving · 6 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes D-LLM, which adds per-layer LoRA-trained decision modules that skip transformer layers per token, plus a KV-cache eviction mask, to cut inference FLOPs by about 50% with comparable accuracy on LLaMA2-7B and LLaMA3-8B.

Problem

LLM inference is expensive and every token gets the same computation, which makes deployment on resource-constrained platforms hard; existing static pruning and dynamic methods either degrade accuracy or break KV-cache compatibility.

Approach

Attach a Gumbel-softmax decision module before each transformer layer that decides per token whether to execute or skip that layer, with a loss term that steers average acceleration toward a user-set target, and evict skipped tokens' keys and values from later attention via a sparse mask.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use D-LLM token-adaptive layer skipping instead of Shortened-LLaMA (Taylor)LLaMA2-7B · MaWPSaccuracy: 0.39 -> 0.74Helped
use D-LLM token-adaptive layer skipping instead of Shortened-LLaMA (Taylor)LLaMA2-7B · GSM8Kaccuracy: 0.18 -> 0.29Helped
use D-LLM token-adaptive layer skipping instead of Shortened-LLaMA (Taylor)LLaMA2-7B · PIQAaccuracy: 0.83 -> 0.84Helped
use D-LLM token-adaptive layer skipping instead of Shortened-LLaMA (Taylor)LLaMA2-7B · AlpacaPPL: 7.65 -> 6.01Helped
use D-LLM token-adaptive layer skipping instead of Shortened-LLaMA (Taylor)LLaMA2-7B · MMLUaccuracy: 0.53 -> 0.53No clear effect
add KV-cache eviction strategy (ablation)D-LLM on LLaMA2-7B · AlpacaPPL: 6.08 -> 6.01Helped
add KV-cache eviction strategy (ablation)D-LLM on LLaMA2-7B · SAMSumPPL: 3.63 -> 3.18Helped
add KV-cache eviction strategy (ablation)D-LLM on LLaMA2-7B · MaWPSaccuracy: 0.72 -> 0.74Helped
add KV-cache eviction strategy (ablation)D-LLM on LLaMA2-7B · OBQAaccuracy: 0.82 -> 0.80Hurt
vary reserved initial tokens from m = 0 to m = 2 (ablation)D-LLM · SAMSumPPL: 3.33 -> 3.18Helped
vary reserved initial tokens from m = 0 to m = 2 (ablation)D-LLM · SIQAaccuracy: 0.80 -> 0.82Helped
increase loss weight α from 1 to 10 (ablation)D-LLM on LLaMA2-7B · MaWPSaccuracy: 0.74 -> 0.62Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Alpaca SAMSum GSM8K MaWPS BoolQ PIQA SIQA OBQA MMLU

Benchmarks: Alpaca SAMSum GSM8K MaWPS BoolQ PIQA SIQA OBQA MMLU

Metrics: perplexity accuracy FLOPs ratio KV-cache storage

Baselines: LLaMA2-7B + LoRA Mixture-of-Depths Shortened-LLaMA (Taylor) Shortened-LLaMA (PPL) Ada-Infer

Builds on: LoRA Mixture-of-Depths Shortened-LLaMA Ada-Infer Gumbel-Softmax

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy