Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
AI

Researchers Quantify the Carbon Footprint of Generating AI Images (engadget.com) 47

Researchers at the AI startup Hugging Face and Carnegie Mellon University discovered (PDF) that generating an image using artificial intelligence has a carbon footprint equivalent to charging a smartphone. Meanwhile, AI-generated text takes up as much energy as charging a smartphone to about 16 percent full. Engadget reports: The study didn't just look into image and text generation by machine learning programs. The researchers examined a total of 13 tasks, ranging from summarization to text classification, and measured the amount of carbon dioxide produced per every 1000 grams. For the sake of keeping the study fair and the datasets diverse, the researchers said they ran the experiments on 88 different models using 30 datasets. For each task, the researchers ran 1,000 prompts while gathering the "carbon code" to measure both the energy consumed and the carbon emitted during an exchange.

The findings highlight that the most energy-intensive tasks are those that ask an AI model to generate new content, whether it be text generation, summarization, image captioning, or image generation. Image generation ranked highest in the amount of emissions it produced and text classification was classified as the least energy-intensive task. The researchers urge machine learning scientists and practitioners to "practice transparency regarding the nature and impacts of their models, to enable better understanding of their environmental impacts."

This discussion has been archived. No new comments can be posted.

Researchers Quantify the Carbon Footprint of Generating AI Images

Comments Filter:
  • Watt seconds (Score:4, Informative)

    by Dwedit ( 232252 ) on Friday December 01, 2023 @07:39PM (#64047769) Homepage

    Stable Diffusion uses a consumer GPU, and doesn't take all that long to generate an image. If it took 15 seconds, it would be consuming around 130W during that time. That doesn't quite sound like "charging a phone".

    • If people generate images instead of playing a video game, they reduce their CO2 emissions.

      • by Rei ( 128717 )

        Yeah, because there's generally significant downtime between images. You do a batch, and then work on them in Gimp/Photoshop, then back to img2img,back to Gimp/Photoshop,etc. Maybe like 2-5% GPU usage for a particular workflow for me.

        If one calls a typical GPU to consume 10x the power of a light bulb, then a 15s generation is the equivalent of having a single light bulb on for 2 1/2 minutes, or room in your house lit by five bulbs for 30 seconds-ish. That said, the GP's number of 15s seems abnormally lo

        • by Rei ( 128717 )

          If we assume that a cell phone battery contains 10Wh, then 16% full would be 1,6 watt hours, which is a really minute amount of energy. 300W in 15 seconds (which again I contest is too much time) would be 1,25Wh. So the paper doesn't seem to be *radically* off - they might be assuming an unusually intensive generation and/or an unusually low-energy cell phone battery.

          The problem is that I think most people grossly misunderstand how much energy it takes to charge a cell phone battery. 10Wh = said room in

        • by Rei ( 128717 )

          Just to clarify: my generation environment is a single 3090 power-limited to 300W (instead of the nominal 350W), because it saves you 17% on power but only costs 2-6% on performance.

          A 4090 however should be significantly more efficient per unit compute than even my power-limited 3090. And modern server cards more efficient still.

    • Useless report.

      Much more accurate to talk about energy consumption, not apply a generic conversion rate to go from a calculated energy usage that could be accurate to an unnecessary conversion that is based on politics.

    • They did say it was like charging a phone to 16%. That takes only a few seconds of charging, with most phones.

      • No that would take 5 - 10 minutes on newer phones.
        • Your statement does not conflict with mine.

          • It absolutely does. Hundreds of seconds are not "few"
            • Your qualifier was "on newer phones." Sure, your Samsung Galaxy latest model or Titanium iPhone might take that long. But my Moto G (2021 model) does not take "hundreds of seconds" to get to that 16% mark, and it goes for about 3 days between charges. So no, my statement is not false just because your pricey latest-model phone takes longer to charge.

              • ROFL it takes longer on older phones. My qualifier was purposeful to work in your favor. Even giving you the best possible scenario you are wrong. You are lying about your phone's performance, as if it can't be easily looked it up. It goes 3 days (if you don't use it much) because it has a 5000mah battery that takes over 2 hours to charge with the 15w fast charger. This is such a strange hill for you to choose to die on. You could have just said "my bad it takes few minutes not seconds"

                Everything yo
                • I have confidence, because I have the phone and have direct experience. Yes, it does take about two hours to charge, but that's because as it gets closer to full, the rate of charging slows down. That's how fast chargers work. You get a very fast rate of charge at the beginning, tapering off as the battery gets full. I find it annoying when people assume they know what they are talking about, basing their opinions on assumptions that they have not measured or researched.

                  Granted, if I'm using the GPS, it has

                  • Yes it is annoying that you think you know what you're talking about. Even with the front end charging faster which I already knew about it takes 5 - 10 minutes. Do you just not know how many seconds are in a minute? You've demonstrated gross incompetence and dishonesty.

                    Again, this was such a strange hill for you to choose to die on but here we are.
                    • You got a source for your data? Of course not, you're just making up your numbers from thin air. I've got actual timings.

                      Strange hill to die on? I don't see *you* backing off! So you're just as strange as me, apparently.

                    • As mentioned earlier it's pretty easy to lookup. It's not strange for me because I'm not the one that died on this hill, I slayed.
                    • You really are full of yourself! You say it's easy, but you can't produce a single source yourself. Right.

    • by gweihir ( 88907 )

      You know, I think all these stupid pseudo-"units" serve primarily to make things sound larger than they are. Bad journalism, nothing else.

    • Stable Diffusion uses a consumer GPU, and doesn't take all that long to generate an image. If it took 15 seconds, it would be consuming around 130W during that time.

      My office machine is an M1-based (gen 1) Mac Studio Ultra. Some numbers here:

      I use DiffusionBee [diffusionbee.com] (a Stable Diffusion pre-trained ML variant.) Image generation of a quality result takes about 9 seconds with a 512x512 target; 5 seconds for a 256x256 target, both using the default model and default settings. So it looks linearly dependent on output

  • This ignores the rather intense carbon footprint of creating the compute clusters and supporting machinery in the first place so it's kinda mis-labeled. It's really just the marginal carbon footprint to perform the next computation.
    • That's a good point but if AI is going to put lots of people out of work we need to consider the carbon footprint saved to host and pay a human at work, and to transport him there, but then also include the welfare payments to have him unemployed and possibly the carbon cost of the maintaining the monetary and taxation system to make it possible.

      This seems exhausting ... maybe we should get AI to do it.

    • by fyngyrz ( 762201 )

      This ignores the rather intense carbon footprint of creating the compute clusters and supporting machinery in the first place so it's kinda mis-labeled. It's really just the marginal carbon footprint to perform the next computation.

      The nature of these ML engines is you train them once, and then everything after that is near negligible in comparison; duplicating an already- trained instance requires nearly zero effort, for instance. So the training energy divides out into the number of prompt responses. It c

      • by Rei ( 128717 )

        Yeah, last I saw, OpenAI was saying that only about 10% of their power was dedicated to training, 90% to inference.

  • Just look at the same narrative as we got for BTC. Fucking Rockefeller, funding all these hack climatologist (no such thing) get these herds moving from crypto to AI.
  • by Local ID10T ( 790134 ) <ID10T.L.USER@gmail.com> on Friday December 01, 2023 @09:09PM (#64047959) Homepage

    But did they calculate to carbon footprint of their research?

    Did they include the carbon footprint of putting this clickbait on the internet and having people click on it??

    What about the carbon footprint of the Slashdot discussion of the clickbait article about the research???

    • by Gumby ( 425 ) on Friday December 01, 2023 @09:16PM (#64047967)

      I logged in for the first time this year to upvote this, but I have no karma. This is a fantastic comment - I am going to copy it into my notes so I can see in the future and laugh again and again.

    • by Bongo ( 13261 )

      Exactly. The vast majority of people on the planet, are motivated by their own ego and survival of their own family. That's not a bad thing, but it means 97% of all environmental and climate work and ideas are about self serving narratives. That means the narratives which win are the ones which bring more money and success to individuals, rather than the ideas which would actually work. That's just where we are as a species. We are ethically more evolved than what we were ten thousand years ago, but not tha

    • Your comment just killed a polar bear.
  • What is this obsession with carbon footprint. Every breath you take generates CO2. So how about comparison with a day's breathing.
  • The footprint of taking a shit?

    Clipping your toenails?

    Changing your pronouns?

    Whining about how some mundane activity is Killing The Planet?

    Raising a middle finger?

    Both?

    Middle fingers *and* middle toes?

  • Because it's always the question, "compared to what?"

    Humans eat, use power, drive cars... they use electricity on their laptop (80w) or computer (120w) that dwarfs that of a charging cellphone.

    Of course I can generate images with solar power-- but no idea of what the footprint of my panels and 1.1kw battery is. Still it runs my laptop, lights, and a fan for 8 hours a day.

    • What they're saying is that ai generation isn't as free and over use poses costs.

      • Yes.. and what I'm saying is that human artwork generation maybe *much* more expensive than AI.

        However, I agree with your point. Delivering those 6 images requires a lot of power. Each image would take *hours* to create on one PC with a single graphic card. Clearly any efficiency gains will have a large impact.

  • ...in the researchers' own words, is this, "We conclude with a discussion around the current trend of deploying multi-purpose generative ML systems, and caution that their utility should be more intentionally weighed against increased costs in terms of energy and emissions."

    They're basically saying that training each model to perform multiple types of tasks isn't particularly efficient. It sounds like what all these AI companies are showing off to the public at the moment are their all-singing, all-danci
  • Bullshit summary, and bullshit article from Engadget. After reading the PDF from the summary I finally figured out that "measured the amount of carbon dioxide produced per every 1000 grams" was actually per 1000 queries.

    Now that we have solved that mystery, what the hell does "charging a smartphone to 16%" even mean? This is Slashdot, we don't have to be scared of proper units like joules or watt-hours here. Again, looking further, the original authors of the original PDF also use these bullshit "smartphone

    • by fyngyrz ( 762201 )

      Well, where I live all our electricity is net-zero and has been since 2019. So if I was running this AI in my house, there would be zero grams of CO2.

      My office machine (which is the only one I run generative ML on) is 100% (locally, no utility company interaction) solar powered. So the carbon footprint is whatever the computer manufacture + ultracap + panel + charge controller carbon footprint was, divided by the number of ML generation instances. It's not zero. But it's also not increasing.

Life is a healthy respect for mother nature laced with greed.

Working...