atlas

Research map / Large language models / Agents, code and math

LLMCarbon: Modeling the End-to-End Carbon Footprint of Large Language Models

ICLR 2024 · Large language models › Agents, code and math · approach: Agent instruction-following benchmarks · 32 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 LLMCarbon, an end-to-end model that predicts operational and embodied carbon footprints of dense and MoE LLMs before training, validated against published numbers for T5, GPT-3, GShard, Switch, XLM and Meta/Noor data.

Problem

Existing tools (mlco2) can predict ML carbon footprint only for CNNs and GPUs, ignore architectural parameters and MoE models, and cannot model embodied carbon, so LLM carbon cannot be estimated before training.

Approach

An analytical projection model combining a parameter model, Chinchilla neural scaling law for test loss, FLOP model, parallelism-dependent hardware efficiency model, PUE and carbon intensity for operational carbon, and chip area times CPA amortized over hardware lifetime for embodied carbon, extended to MoE LLMs.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use LLMCarbon instead of mlco2 for operational carbon projectionLLM training · T5, GPT-3, GShard, Switch, and XLM trainingabsolute disparity from actual operational carbon: mlco2: +91.3%, +73%, +95.3%, +132%, +69%; LLMCarbon: -2.22%, +0.32%, +3.8%, +8.2%, -3.54%Helped
Use optimal parallelism settingsLLMCarbon · training operational carbon footprintoperational carbon footprint: 16%∼39%Helped
Use H100 GPUs instead of V100 GPUsLLM processing · training, inference, and experimentationoperational carbon footprint: 71%Helped
Use TPUv4 instead of V100 GPUsLLM processing · training, inference, and experimentationoperational carbon footprint: 41%Helped
Use a sparse MoE architecture rather than a dense architectureLLM designs · training carbon footprint and test losstest loss at the same training carbon footprintHelped

Surprising findings

Limitations

Experimental setup

Datasets: published LLM training carbon footprints (T5, GPT-3, GShard, Switch, XLM) published Meta XLM embodied carbon data Noor storage data published data center PUE and carbon intensity

Benchmarks: published operational carbon footprints of T5, GPT-3, GShard, Switch, XLM GPT-3 inference latency and energy Noor storage energy Meta XLM embodied carbon

Metrics: percent difference between predicted and actual tCO2eq latency error energy error

Baselines: mlco2

Builds on: mlco2 Chinchilla scaling law Megatron-LM parallelism

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