News: 1604476748

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

AI me to the Moon... Carbon footprint for 'training GPT-3' same as driving to our natural satellite and back

(2020/11/04)


Training OpenAI’s giant GPT-3 text-generating model is akin to driving a car to the Moon and back, computer scientists reckon.

More specifically, they estimated teaching the [1]neural super-network in a Microsoft data center using Nvidia GPUs required roughly 190,000 kWh, which using the average carbon intensity of America would have produced 85,000 kg of CO 2 equivalents, the same amount produced by a new car in Europe driving 700,000 km, or 435,000 miles, which is about twice the distance between Earth and the Moon, some 480,000 miles. Phew.

This assumes the data-center used to train GPT-3 was fully reliant on fossil fuels, which may not be true. The point, from what we can tell, is not that GPT-3 and its Azure cloud in particular have this exact scale of carbon footprint, it's to draw attention to the large amount of energy required to train state-of-the-art neural networks.

The eggheads who produced this guesstimate are based at the University of Copenhagen in Denmark, and are also behind an open-source tool called [2]Carbontracker , which aims to predict the carbon footprint of AI algorithms. Lasse Wolff Anthony, one of Carbontracker’s creators and co-author of a [3]study of the subject of AI power usage, believes this drain on resources is something the community should start thinking about now, as the energy costs of AI have risen 300,000 per cent between 2012 and 2018, it is claimed.

Neural networks, and the amount of hardware needed to train them using huge data sets, are growing in size. Take GPT-3 as an example: it has 175 billion parameters, 100 times more than its predecessor GPT-2.

Bigger may be better when it comes to performance, yet at what cost does this come to the planet? Carbontracker reckons training GPT-3 just once requires the same amount of power used by 126 homes in Denmark per year, or driving to the Moon and back.

Microsoft picks a side, aims to make the business 'carbon-negative' by 2030 [4]READ MORE

"Developments in this field are going insanely fast and deep learning models are constantly becoming larger in scale and more advanced,” [5]said Anthony. “Right now, there is exponential growth. And that means an increasing energy consumption that most people seem not to think about."

Carbontracker allows developers to predict the total amount of energy required to train a particular model and its corresponding carbon footprint. Users have to provide certain details, such as the type of hardware used in the training, and the amount of compute time.

"The CO2 estimates are calculated from the local average, or predicted, [6]carbon intensity of electricity production during the model's training combined with the power consumption of the hardware on which the model is run," Anthony told El Reg .

"We rely on several APIs to retrieve the live carbon intensity, and default to an European average when no such API is available for the region in which the model is trained, since no global data is freely available. One such [7]API is for the UK. These APIs and hardware energy consumption are then queried periodically during training to get an accurate estimate of the total carbon footprint."

“As datasets grow larger by the day, the problems that algorithms need to solve become more and more complex," Benjamin Kanding, co-author of the study, added. “Within a few years, there will probably be several models that are many times larger than GPT-3.

Jamming the brakes on technological development is not the point. Instead, it is about becoming aware of the problem and thinking: How might we improve?

"Should the trend continue, artificial intelligence could end up being a significant contributor to climate change. Jamming the brakes on technological development is not the point. These developments offer fantastic opportunities for helping our climate. Instead, it is about becoming aware of the problem and thinking: How might we improve?"

They recommend developers employ more efficient techniques when it comes to data processing or search, as well as training them on specialized hardware, such as AI accelerators, that are more efficient per watt than more general-purpose chips. Another option is to train them in cloud regions that are more likely to be powered by renewable sources of energy.

"It is possible to reduce the climate impact significantly," Anthony concluded. "For example, it is relevant if one opts to train their model in Estonia or Sweden, where the carbon footprint of a model training can be reduced by more than 60 times thanks to greener energy supplies.

"Algorithms also vary greatly in their energy efficiency. Some require less compute, and thereby less energy, to achieve similar results. If one can tune these types of parameters, things can change considerably." ®

Get our [8]Tech Resources



[1] https://www.theregister.com/2020/09/23/microsoft_will_exclusively_license_openais/

[2] https://github.com/lfwa/carbontracker

[3] https://arxiv.org/abs/2007.03051

[4] https://www.theregister.com/2020/01/17/microsoft_carbon_removal/

[5] https://www.science.ku.dk/english/press/news/2020/students-develop-tool-to-predict-the-carbon-footprint-of-algorithms/

[6] https://www.opisnet.com/glossary-term/carbon-intensity-ci/

[7] https://carbonintensity.org.uk/

[8] https://whitepapers.theregister.com/

So...

Neil Barnes

Did they use an AI to calculate the effect?

190000kWh...

Jimmy2Cows

Sounds big until 126 homes in Denmark per year is shown as equivalent. At which point it becomes clear the energy used is a piffling rounding error when compared to overall world, or even city, consumption. Well, well... something with a lot of computers running full tilt consumes a significant amount of energy. Who knew?

My question therefore is "In the grand scheme of things, so what?".

The eggheads who produced this guesstimate are based at the University of Copenhagen in Denmark using seemingly big numbers in an effort to grab headlines, and stoke outrage among the hard-of-thinking.

Re: 190000kWh...

Harry Kiri

The tragedy of the commons....

190000kWh is a staggering amount of energy that doesn't produce anything tangible. If people using gpt-3 or any other ai are 'clever' then they should be responsible enough to account for the impact of what they're doing.

I've read an estimate that data centres account for 3% of global emissions - the same as air travel. Yep there are error bars there but these things have a cost that needs some recognition.

Re: Tragedy of the commons

Jimmy2Cows

Hardly.

190000kWh is a staggering amount of energy...

It really isn't. Over a year i.e. the period by which emissions and energy consumption tend to be measured, that's 520Wh per day i.e. really not much at all. While I agree that GPT-3 may be of limited benefit, that doesn't detract from my original point.

...that doesn't produce anything tangible.

If all scientific endeavour had to produce something tangible to be worth doing, we'd still be living in caves. GPT-3 and other such projects are attempting to advance the start of the art in AI. Personally I still think there's a long, long way to go before AI fulfills the "I" part, but that's irrelevant.

I've read an estimate that data centres account for 3% of global emissions - the same as air travel

And you acuse me of tragedy of the commons. You're conflating two entirely different energy uses, taking what's a currently a non-essential ecological demon (air travel) and comparing it with an essential underpinning of our daily lives. Apples to oranges.

Yes, data centres may well account for 3% of global emissions (citation please), there are a lot of them, and most of our modern life is supported by those things. Probably you wouldn't be able to interact with el Reg were it not for data centres.

Whether / how much our lives are improved by data centres, and our data-centric existence in general, is a different philosophical debate.

The surprising thing

tfb

is that is is not that large. If it really is 198,000 kWh, then if a human takes about 66W to run (which I think is about right), this is about 330 years of a human. So in particular it's not millions of times more energy intensive than a human: it's 33 times worse if a human can learn a natural language pretty well by 10.

Of course GPT-3 tells us fuck all about actual human language processing: to train it to produce language which might be plausible enough for some purposes but clearly is not generated by anything with any level of general intelligence took something like 10^12 words of training data. If a human learnt a language by being exposed to 5 words a second, 8 hours a day, for ten years (which is much, much more than they actually require), they are exposed to about 500 million words: about 2,000 times less (and in real life, humans are competent much earlier and see much less language.

This is just the latest AI hype cycle: the next AI winter will come soon.

Filippo

I bet that there are any number of industrial factories and processing plants that consume way, way more energy than that, every day, in order to produce items that humanity could easily do without.

Even if we just limit ourselves to data processing, I'm certain that data centers consume vastly more energy on shifting cat pictures and porn, than on scientific purposes.

And yet, who are we piling on here? The folks who make (and buy) tons of plastic toys that are basically the same as last year's tons of plastic toys in landfills? The folks who absolutely have to send a 4k video of their toddler playing with said plastic toys to everyone they know? No, we pile on academic researchers.

Stick around: next up, we pile on myself, for whataboutism.

"I think Michael is like litmus paper - he's always trying to learn."
-- Elizabeth Taylor, absurd non-sequitur about Michael Jackson