Research
ML-EcoLyzer: Quantifying the Environmental Cost of Machine Learning Inference Across Frameworks and Hardware
Overview Research Area: Machine Learning Sustainability / Green AI / ML Systems Benchmarking Technical Level: Intermediate — assumes familiarity with basic ML concepts (models, inference, quantization
- arXiv
- 2511.06694
- Published
- 2025-11-10
- Authors
- Jose Marie Antonio Minoza, Rex Gregor Laylo, Christian F Villarin, Sebastian C. Ibanez
AI summary
Overview
Research Area: Machine Learning Sustainability / Green AI / ML Systems Benchmarking
Technical Level: Intermediate — assumes familiarity with basic ML concepts (models, inference, quantization) but is accessible without deep systems or hardware expertise.
Scope: This paper introduces a cross-framework measurement tool and a new sustainability metric to quantify the carbon, energy, water, and thermal costs of ML inference (not training) across diverse models, tasks, and hardware, evaluated through 1,900+ empirical configurations.
What This Paper Is About
Most research on AI's environmental footprint has focused on the expensive process of training models, but in real-world deployment, inference — running models to answer prompts, classify images, or transcribe audio — happens far more often and cumulatively consumes more energy. The authors argue that without standardized tools for measuring inference-time environmental costs, researchers and engineers have no reliable basis for choosing sustainable models, precisions, or hardware. Their goal is to build such a standard: an open-source, framework-agnostic tool (ML-EcoLyzer) plus a fair, comparable metric (ESS) for evaluating the environmental cost of inference.
Key Contributions
-
ML-EcoLyzer, an open-source, cross-framework tool that measures carbon emissions, energy consumption, water usage, and thermal behavior during inference across CPUs, consumer GPUs, and datacenter accelerators, supporting both classical and modern models.
-
Environmental Sustainability Score (ESS), a new metric defined as the number of effective parameters served per gram of CO₂ emitted — a quantization-aware, hardware-agnostic normalization that allows fair comparison across models of different sizes and precisions.
-
A large-scale empirical benchmark of over 1,900 inference configurations spanning text, vision, audio, and tabular tasks; multiple model families (GPT, LLaMA, Qwen, OPT, Whisper, ResNet, etc.); and four hardware tiers.
-
Practical measurement protocols, including adaptive power sampling and demonstration that coarse sampling (1 Hz vs. 5 Hz) can bias CO₂ estimates by nearly 6%.
Main Findings
-
Newer transformer models are often more environmentally efficient per parameter, not less. Despite larger sizes, models like Qwen 2 and Phi 3 achieve far higher ESS and lower CO₂ per inference than older models such as GPT-2 and OPT, contradicting the assumption that "smaller/older = greener."
-
Huge accelerators can be inefficient for small workloads. Datacenter GPUs (e.g., A100) deliver the highest ESS only when heavily utilized; for lightweight or bursty inference, consumer GPUs or CPUs are often more sustainable. Workload–hardware alignment matters more than raw hardware power.
-
Classical ML models perform surprisingly poorly on sustainability. scikit-learn models (Random Forest, LightGBM, Logistic Regression) exhibit extremely low ESS — often under 2 MP/g — because fixed CPU system overhead dominates their tiny compute workload.
-
Quantization is a dominant lever. Moving from FP32 to FP16 or INT8 cuts power draw by 25–55% with minor accuracy loss (98.5% and 94.2% retention, respectively) and reduces water usage meaningfully.
-
Task type matters greatly. Text generation has the highest absolute CO₂ (~0.134 kg/run) but still high ESS due to large parameter counts; image and audio tasks are far cheaper in absolute terms.
-
Measurement protocol affects results. Using a 1 Hz sampling rate can overestimate emissions by ~5.8% versus 5 Hz, especially on fast models — motivating adaptive monitoring.
Methodology in Plain English
The authors built a software tool that wraps around existing ML frameworks and watches what the hardware is doing while a model runs a single input — a prompt, an image, an audio clip, or a row of tabular data. It reads power draw from system monitors (like NVIDIA-SMI and psutil), integrates that power over time to get energy in kilowatt-hours, and then multiplies by:
- a carbon intensity factor for the local power grid,
- a Power Usage Effectiveness (PUE) overhead (1.1 for CPU-only, 1.2 for desktop GPUs, 1.4 for datacenter GPUs),
- and water intensity factors (1.2–4.8 L/kWh depending on region) plus cooling and infrastructure multipliers.
To make models of very different sizes comparable, they define effective parameters by scaling raw parameter counts by a quantization factor (FP32 = 1.0, FP16 = 0.5, INT8 = 0.25). Dividing effective parameters by grams of CO₂ gives the ESS. They then ran hundreds of models on CPUs, a GTX 1650, an RTX 4090, a Tesla T4, and an A100, recording per-inference costs and aggregating statistics by model family, hardware tier, task type, and precision.
Why This Matters
Impact on research: The paper pushes sustainability benchmarking from training into inference — the phase that dominates real deployment. It provides an open-source tool and a comparable metric, which could become a standard reference point (analogous to MLPerf but for environmental cost), and it challenges a common assumption that smaller or older models are automatically greener.
Real-world applications:
- Edge and mobile deployment: Engineers choosing models for phones, IoT devices, or on-prem hardware can use ESS to avoid "lightweight" pipelines that are actually inefficient on idle CPUs.
- Cloud and datacenter operations: Operators can decide when a large accelerator is justified versus when a smaller GPU is more sustainable for a given workload.
- Regulatory and ESG reporting: Organizations facing sustainability disclosure requirements gain a concrete protocol for reporting inference-time emissions and water use.
- Model release practices: Model publishers can be encouraged to release quantized variants and report precision alongside performance.
Industry relevance: Companies deploying LLMs, recommenders, or vision systems at scale can use the ESS framework to make procurement and deployment decisions that reduce both carbon footprint and operational energy bills — sustainability and cost efficiency align here.
Future Directions
- Extending to batched and streaming inference — the current tool focuses on per-sample measurement, but production systems serve many requests concurrently, which changes utilization dynamics dramatically.
- Real-time regional grid carbon intensity integration — dynamic emissions estimation would let deployments shift workloads to times or regions with cleaner energy.
- Broader framework and hardware coverage — native integrations for more ML frameworks and emerging accelerator types (NPUs, TPUs, edge AI chips).
- Task-aware sustainability metrics and training-workload extension — ESS is general, but more granular, task-specific metrics could better capture tradeoffs, and unifying training + inference accounting would give a full lifecycle picture.
Target Audience
This paper is most valuable to ML engineers and MLOps practitioners selecting models and hardware for production deployment, sustainability researchers and Green AI advocates studying the environmental footprint of AI systems, and datacenter or cloud infrastructure planners making capacity and procurement decisions. It is also useful for policymakers and ESG analysts seeking standardized methodology for AI environmental reporting, and for graduate students entering the field of sustainable computing. A basic familiarity with ML inference and model quantization is helpful but not required to grasp the core arguments.
Authors’ abstract
Machine learning inference occurs at a massive scale, yet its environmental impact remains poorly quantified, especially on low-resource hardware. We present ML-EcoLyzer, a cross-framework tool for measuring the carbon, energy, thermal, and water costs of inference across CPUs, consumer GPUs, and datacenter accelerators. The tool supports both classical and modern models, applying adaptive monitoring and hardware-aware evaluation. We introduce the Environmental Sustainability Score (ESS), which quantifies the number of effective parameters served per gram of CO$_2$ emitted. Our evaluation covers over 1,900 inference configurations, spanning diverse model architectures, task modalities (text, vision, audio, tabular), hardware types, and precision levels. These rigorous and reliable measurements demonstrate that quantization enhances ESS, huge accelerators can be inefficient for lightweight applications, and even small models may incur significant costs when implemented suboptimally. ML-EcoLyzer sets a standard for sustainability-conscious model selection and offers an extensive empirical evaluation of environmental costs during inference.