黄色直播

 

» Go to news main

This Dal researcher wants to ensure AI doesn鈥檛 ruin the environment

Posted by Emily MacKinnon on September 25, 2024 in Faculty
Dr. Tushar Sharma seeks to ensure artificial intelligence tools run as clean and efficiently as possible, thereby reducing emissions. (Danny Abriel photos)
Dr. Tushar Sharma seeks to ensure artificial intelligence tools run as clean and efficiently as possible, thereby reducing emissions. (Danny Abriel photos)


Artificial intelligence (AI) has changed the world as we know it. It鈥檚 been used for everything from health-care monitoring to writing speeches.

But the technology鈥檚 impact on the environment is becoming a serious concern.

The environmental impact


, one of the most familiar AI models, is a form of generative AI that uses natural language processing to respond to user queries in a chatbot-style web interface. When OpenAI, the company that created ChatGPT, was training the third generation of their model (that is, teaching it what content to generate against users鈥 questions), it used enough electricity to power 120 Canadian homes for an entire year.聽

And training is just one aspect of an AI model's emissions. The largest contributor over time is model inference, or the process of running the model live. Large language models like ChatGPT run constantly, waiting for a user to ask a question. The data centres required to power these models currently account for three per cent of global energy consumption, they rarely use renewable energy sources, and,聽, are emitting as much CO2 as the entire country of Brazil.聽

How to make AI sustainable


Enter Dr. Tushar Sharma, an assistant professor in 黄色直播鈥檚 Faculty of Computer Science,

Dr. Sharma's research focuses on sustainable AI and software engineering. In other words: he ensures the source code that builds and runs these models is as clean and efficient as possible. When they are not, he identifies and fixes them.聽

Dr. Sharma鈥檚聽聽recently published聽聽detailing how to measure an AI model鈥檚 energy consumption on a granular level by identifying which parts of the code are the most power hungry. (Think of your home鈥檚 power bill: it shows the home鈥檚 energy consumption writ large, but it doesn鈥檛 typically break down which appliances are drawing the most electricity.)聽

In another study, his lab sifted through dozens of layers of code within AI models to 鈥減rune鈥 tokens that were no longer relevant, useful, or effective.聽

鈥淲e move strategically through each layer of these big models and reduce the required computation inside,鈥 he explains.聽

The idea is to train the models more efficiently, so the electrical draw and subsequent emissions are reduced. 鈥淲e are trying to not have to use as much power or time, which leads to an energy reduction or a reduction in carbon emissions,鈥 he says. 鈥淭he ideal scenario is that we are reducing the energy required to train or operate these systems without sacrificing the benefits.鈥

So, is AI worth it?


Dr. Christian Blouin, acting dean of Dal鈥檚 Faculty of Computer Science, says AI has the potential to transform the world as we know it, and it鈥檚 going to happen whether we make the technology greener or not.聽

鈥淲e have a responsibility to find a better way to tackle important problems that require less resources,鈥 he says. 鈥淎s people discover new ways to leverage AI, it is critical that we develop the computer science to make it more sustainable.鈥

This balance is especially important for people who work within the climate sector. Dr. Anya Waite is the CEO and scientific director of the聽聽(OFI), a research institute at Dal. OFI researches the ocean鈥檚 changing role in our climate system and delivers solutions for climate change mitigation.聽

Dr. Waite says that while AI is a critical tool to manage data and improve efficiency and accuracy, it becomes unsustainable if we end up spending more energy than we save from its use.聽

鈥淒r. Sharma鈥檚 work is critical because it supports AI efficiency and lowers its cost and carbon footprint,鈥 she says. 鈥淯ltimately, without work such as Dr. Sharma鈥檚, we risk losing the ability to launch new innovations, and we could miss out on the major benefits they provide.鈥

A tricky balance


Dr. Michael Freund is the director of Dal鈥檚聽Clean Technologies Research Institute聽(CTRI), and he says users are not always aware of the infrastructure and operations required to support the technology they use. 鈥淩esponsible growth of AI must consider environmental factors,鈥 Dr. Freund says. 鈥淚t must require efficient operation, including more efficient code, responsible use and coupling data centres to green energy sources.鈥澛 聽聽

It鈥檚 a tricky balance, he acknowledges, because, like OFI, CTRI often uses AI to increase efficiency of operations.聽

鈥淲ork by researchers such as Dr. Sharma will shed light on the true value of AI and inform decisions on how it is developed and used,鈥 he says.

A green AI future


Converting the data centres to using renewable energy sources is another big hurdle, and Dr. Sharma says research like his coupled with solar, wind and hydro power, will make AI greener.聽

鈥淎ll of these techniques are ultimately helping to achieve this goal of green AI and figuring out how we can keep using these machine learning models, but at a lower energy cost.鈥