The Carbon Footprint of Generative AI Tasks

Category Artificial Intelligence

tldr #

Researchers at the AI startup Hugging Face and Carnegie Mellon University have found that generating images with an AI model takes as much energy as fully charging your smartphone, while generating text 1,000 times only uses as much energy as 16% of a full smartphone charge. The least carbon-intensive text generation model was found to generate as much CO2 as driving 0.0006 miles in a similar vehicle. The study provides useful insights into AI’s carbon footprint by offering concrete numbers and technology companies are now using generative-AI models billions of times every single day.


content #

Each time you use AI to generate an image, write an email, or ask a chatbot a question, it comes at a cost to the planet. In fact, generating an image using a powerful AI model takes as much energy as fully charging your smartphone, according to a new study by researchers at the AI startup Hugging Face and Carnegie Mellon University. However, they found that using an AI model to generate text is significantly less energy-intensive. Creating text 1,000 times only uses as much energy as 16% of a full smartphone charge.

AI models are responsible for 30x more energy consumption than models tailored specifically for a task

Their work, which is yet to be peer reviewed, shows that while training massive AI models is incredibly energy intensive, it’s only one part of the puzzle. Most of their carbon footprint comes from their actual use.

The study is the first time researchers have calculated the carbon emissions caused by using an AI model for different tasks, says Sasha Luccioni, an AI researcher at Hugging Face who led the work. She hopes understanding these emissions could help us make informed decisions about how to use AI in a more planet-friendly way.

Stable Diffusion XL, a powerful AI model for image generation, is responsible for as much carbon dioxide as driving 4.1 miles in an average gasoline-powered car

Luccioni and her team looked at the emissions associated with 10 popular AI tasks on the Hugging Face platform, such as question answering, text generation, image classification, captioning, and image generation. They ran the experiments on 88 different models. For each of the tasks, such as text generation, Luccioni ran 1,000 prompts, and measured the energy used with a tool she developed called Code Carbon. Code Carbon makes these calculations by looking at the energy the computer consumes while running the model. The team also calculated the emissions generated by doing these tasks using eight generative models, which were trained to do different tasks.

Less Carbon-intensive text generation model is responsible for as much CO2 as driving 0.0006 miles in a similar vehicle

Generating images was by far the most energy- and carbon-intensive AI-based task. Generating 1,000 images with a powerful AI model, such as Stable Diffusion XL, is responsible for roughly as much carbon dioxide as driving the equivalent of 4.1 miles in an average gasoline-powered car. In contrast, the least carbon-intensive text generation model they examined was responsible for as much CO2 as driving 0.0006 miles in a similar vehicle. Stability AI, the company behind Stable Diffusion XL, did not respond to a request for comment.

Energy used by AI models is determined by looking at the energy the computer consumes while running the model

The study provides useful insights into AI’s carbon footprint by offering concrete numbers and reveals some worrying upward trends, says Lynn Kaack, an assistant professor of computer science and public policy at the Hertie School in Germany, where she leads work on AI and climate change. She was not involved in the research.

These emissions add up quickly. The generative-AI boom has led big tech companies tointegrate powerful AI models into many different products, from email to word processing. These generative AI models are now used millions if not billions of times every single day.

The generative-AI boom has lead to integrating powerful AI models into many products such as email, word processing, etc

The team found that using large generative models to create outputs was far more energy intensive than using smaller AI models tailored for specific tasks. For example, using a generative model to classify movie reviews according to whether they are positive or negative consumes around 30 times mote energy than using a model with the same task, it’s just been tailored for that use.


hashtags #
worddensity #

Share