[Paper Review] LLMCarbon: Modeling the end-to-end Carbon Footprint of Large Language Models
LLMCarbon provides end-to-end projections of both operational and embodied carbon footprints for dense and MoE LLMs, improving accuracy over mlco2 and covering training, inference, experimentation, and storage.
The carbon footprint associated with large language models (LLMs) is a significant concern, encompassing emissions from their training, inference, experimentation, and storage processes, including operational and embodied carbon emissions. An essential aspect is accurately estimating the carbon impact of emerging LLMs even before their training, which heavily relies on GPU usage. Existing studies have reported the carbon footprint of LLM training, but only one tool, mlco2, can predict the carbon footprint of new neural networks prior to physical training. However, mlco2 has several serious limitations. It cannot extend its estimation to dense or mixture-of-experts (MoE) LLMs, disregards critical architectural parameters, focuses solely on GPUs, and cannot model embodied carbon footprints. Addressing these gaps, we introduce extit{\carb}, an end-to-end carbon footprint projection model designed for both dense and MoE LLMs. Compared to mlco2, \carb~significantly enhances the accuracy of carbon footprint estimations for various LLMs. The source code is released at \url{https://github.com/SotaroKaneda/MLCarbon}.
Motivation & Objective
- Motivate reducing the environmental impact of growing LLMs by enabling end-to-end carbon footprint projection.
- Propose a model that accounts for architectural, hardware, and data center factors for both dense and MoE LLMs.
- Provide end-to-end estimates including operational and embodied carbon across training, inference, experimentation, and storage.
- Enable design-space exploration that trades off test loss against carbon footprint during LLM design.
Proposed method
- Introduce an input-driven projection model that can derive LLM parameter count from architecture or accept it directly.
- Use neural scaling (Chinchilla) to estimate test loss with LLM parameters and training tokens via L(L,P,D)=A/P^α + B/D^β + E.
- Compute FLOPs with a FLOP model to estimate training and inference work (TC and IC).
- Model hardware efficiency as actual throughput over peak throughput across optimized data/tensor/pipeline/expert parallelism to derive operational cost.
- Calculate operational carbon from energy use and data-center carbon intensity, and embodied carbon from chip area and CPA (carbon per unit area).
- Sum operational and embodied carbon to obtain total CO2eq for the LLM.
Experimental results
Research questions
- RQ1How accurately can an end-to-end model predict the operational and embodied carbon footprints of both dense and MoE LLMs?
- RQ2How do architectural choices (parameter count, MoE vs dense) and hardware configurations affect the predicted carbon footprint and test loss trade-offs?
- RQ3Can LLMCarbon predict carbon footprints across training, inference, storage, and experimentation phases, and how does it compare to existing tools like mlco2?
- RQ4What are the potential savings in carbon when applying optimal parallelism settings and newer accelerators?
Key findings
- LLMCarbon predictions for training operational carbon footprints differ by ≤ 8.2% from published data across five LLMs.
- ML Carbon outperforms mlco2 in capturing MoE and dense architectures and embodied carbon forecasting.
- Inference footprint predictions align closely with reported figures, e.g., GPT-3 inference case shows ≤3.3% difference in operational carbon.
- Embodied carbon validation against Meta XLM shows a −3.05% disparity with 512 GPUs case study.
- Case studies indicate embodied carbon can represent a substantial portion of life-cycle emissions, and optimal parallelism can cut operational carbon by 16%–39%.
- New accelerators (e.g., H100, TPUv4) substantially reduce operational footprints while embodied footprints remain similar.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.