atlas

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

EE-LLM: Large-Scale Training and Inference of Early-Exit Large Language Models with 3D Parallelism

ICML 2024 · Large language models › Reasoning and chain of thought · approach: Efficient LLM serving · 4 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.

Presents EE-LLM, a Megatron-LM-based framework for training and inference of early-exit LLMs with 3D parallelism, including an auxiliary-loss method for backpropagating multi-exit losses across pipeline stages and two KV-cache-compatible early-exit inference methods.

Problem

Early-exit LLMs have only been trained at small scale, and standard pipeline parallelism cannot backpropagate losses located at multiple exits on different stages; early exiting also conflicts with KV caching during autoregressive generation.

Approach

Rewrites the multi-exit objective as a sum of per-stage losses and defines per-stage auxiliary losses with a linear term <g_i, x_i> carrying downstream gradients, so standard 1F1B P2P communication suffices; adds a pipeline-based early-exit inference that continues the KV computation of exited tokens in parallel on later stages, plus KV recomputation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add early exits at 1/4 and 1/2 depth with optimizations 1 and 2GPT 1.3B training · Training iterationtime per iteration (s): 5.23 -> 5.24Hurt
Add early exits at 1/4 and 1/2 depth with optimizations 1 and 2GPT 1.3B training · Training iterationpeak memory (GB): 19.85 -> 19.85No clear effect
Add early exits at 1/4 and 1/2 depth with optimizations 1 and 2GPT 7B training · Training iterationtime per iteration (s): 17.75 -> 17.79Hurt
Add early exits at 1/4 and 1/2 depth with optimizations 1 and 2GPT 7B training · Training iterationpeak memory (GB): 62.27 -> 62.27No clear effect
Defer early-exit forward computation to backward steps (ablation)Early-exit GPT training · Training iteration, 1.3B GPTpeak memory (GB): 24.05 -> 22.56Helped
Defer early-exit forward computation to backward steps (ablation)Early-exit GPT training · Training iteration, 7B GPTpeak memory (GB): 67.42 -> 65.79Helped
Move each exit from the end of a pipeline stage to the beginning of the next stage (ablation)Early-exit GPT training · Training iteration, 1.3B GPTtime per iteration (s): 5.31 -> 5.28Helped
Move each exit from the end of a pipeline stage to the beginning of the next stage (ablation)Early-exit GPT training · Training iteration, 7B GPTpeak memory (GB): 67.42 -> 62.27Helped
Apply both training optimizations to the early exits (ablation)Early-exit GPT training · Training iteration, 1.3B GPTpeak memory (GB): 24.05 -> 19.85Helped
Apply both training optimizations to the early exits (ablation)Early-exit GPT training · Training iteration, 7B GPTpeak memory (GB): 67.42 -> 62.27Helped
Use pipeline-based early-exit inference instead of full-model inferenceEE-LLM 1.3B and 7B · HELM tasks: BoolQ, TruthfulQA, NaturalQuestions, XSUM, CNN/DailyMailrelative speedupHelped

Surprising findings

Limitations

Experimental setup

Datasets: Data-Juicer pre-training data subset BoolQ TruthfulQA NaturalQuestions XSUM CNN/DailyMail

Benchmarks: HELM BoolQ HELM TruthfulQA HELM NaturalQuestions open-book HELM NaturalQuestions closed-book HELM XSUM HELM CNN/DailyMail

Metrics: exact match F1 ROUGE-L training time per iteration peak GPU memory inference speedup

Baselines: standard GPT LLM of same architecture KV recomputation

Builds on: Megatron-LM PipeDream-Flush (1F1B) HELM

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