Pooja Rani
©Pooja Rani
Appointment Accelerator
Uni­ver­si­ty of Mann­heimCom­pu­ter Science

Pooja Rani

How to make soft­ware sustainab­le

Well-pro­gram­med soft­ware not only runs smooth­ly but is cheaper to main­tain and energy-ef­fi­ci­ent. Com­pu­ter sci­en­tist Pooja Rani tests soft­ware code and de­ve­lops re­spon­si­ble pro­gramming methods.

When Pooja Rani dis­co­ve­r­ed that the large lan­guage models (LLMs) she was stu­dy­ing were not very good at ge­ne­ra­ting ef­fi­ci­ent soft­ware code, it was a sobe­r­ing rea­li­za­ti­on. “Today, ever­yo­ne can use LLMs to program soft­ware, and even pro­fes­sio­nal soft­ware de­ve­lo­pers rou­ti­ne­ly use AI to write code faster,” says Rani. “The problem is that this code is often bloated.” A single routine in a program that is used on a global scale can consume huge amounts of energy if it is simply adopted without being checked first.

We in­st­ruc­ted the models to program the soft­ware to be lean and energy-ef­fi­ci­ent but that very rarely re­sul­ted in lower energy re­qui­re­ments.

Pooja Rani

Pooja Rani, who has been Pro­fes­sor of Com­pu­ter Science at the Uni­ver­si­ty of Mann­heim since April 2026, con­duc­ted a study to eva­lua­te the code ge­ne­ra­ted by LLMs. “We in­st­ruc­ted the models to program the soft­ware to be lean and energy-ef­fi­ci­ent but that very rarely re­sul­ted in lower energy re­qui­re­ments,” says Rani. “This is a major problem because often no one checks whether the result ac­tual­ly com­plies with the in­st­ruc­tions.” Even if the prompts specify that the code should be faster, more ef­fi­ci­ent, or more re­li­able, there is no gua­ran­tee that it will be. Rani and her co-authors the­re­fo­re called for em­pi­ri­cal­ly groun­ded green coding gui­de­li­nes and awa­reness trai­ning for soft­ware de­ve­lo­pers because “many of them aren’t even aware of the problem.”

We also need to ensure that soft­ware doesn’t glorify vio­lence, stoke pre­ju­di­ce, or harm de­mo­cra­cy.

Pooja Rani

Born in India, Rani could be de­scri­bed as a cri­ti­cal ob­ser­ver of soft­ware de­ve­lop­ment. In ca­re­ful­ly de­si­gned ex­pe­ri­ments, she in­ves­ti­ga­tes the core facets of sustainab­le soft­ware pro­duc­ts. Energy con­sump­ti­on and carbon foot­prints are just one aspect, albeit an im­portant one. As well as being ef­fi­ci­ent and en­vi­ron­ment­al­ly sustainab­le, good soft­ware also needs to be re­li­able, capable of being main­tai­ned at a rea­son­ab­le cost, and so­ci­al­ly ac­cep­ta­ble. “We also need to ensure that it doesn’t glorify vio­lence, stoke pre­ju­di­ce, or harm de­mo­cra­cy,” says Rani.

From an Indian village to the world of high tech­no­lo­gy

Rani herself has a re­mar­kab­ly steep career tra­jec­to­ry behind her. At 14, she still had no access to com­pu­ters in the Indian village where she grew up. “We didn’t even have a land­li­ne at home,” she recalls. However, because she was one of the best in her class, the Indian school system enabled her to sign up for a three-year com­pu­ter science course at a vo­ca­tio­nal school at the age of 15. “It was like a whole new world sud­den­ly opened up for me. I was crazy about mi­cropro­ces­sors,” says Rani. After com­ple­ting her trai­ning, she im­me­dia­te­ly found a job. Among other things, she worked for Samsung in soft­ware quality as­suran­ce while stu­dy­ing com­pu­ter science in Kolkata. Then she went to Ra­jasthan to do a master’s degree in soft­ware systems.

Thanks to her years of ex­pe­ri­ence in in­dus­try and re­se­arch, she suc­cee­ded in finding a doc­to­ral po­si­ti­on at the Uni­ver­si­ty of Bern, where she re­se­ar­ched how soft­ware can be pro­gram­med in such a way that it can then be un­ders­tood and main­tai­ned by a company’s soft­ware de­ve­lo­pers – without in­cur­ring un­ne­cessa­ry costs. In 2022 she moved to the Uni­ver­si­ty of Zurich for a postdoc po­si­ti­on. This is where she first started fo­cu­sing on the en­vi­ron­men­tal impacts of soft­ware design. “During my PhD, I had read several fa­sci­na­ting papers on this topic, and I sud­den­ly rea­li­zed how much we pro­gramm­ers are living in a tech­ni­cal bubble,” says Rani. “I thought there is so much code, and no one is bo­the­red about making it sustainab­le. I wanted to change that.”

Pooja Rani
©Pooja Rani

A mission with an evi­dence base

Since then, Rani has been mea­su­ring the sustai­na­bi­li­ty of soft­ware in all its di­men­si­ons. At the Uni­ver­si­ty of Mann­heim, she hopes to do even more to help ensure that code pro­du­ced by LLMs and AI can become more re­spon­si­ble. “I would like to create a re­li­able evi­dence base that de­ve­lo­pers can refer to in order to develop more sustainab­le soft­ware,” she says.

It’s very im­portant to make pro­gramm­ers aware of sustai­na­bi­li­ty.

Pooja Rani

Using em­pi­ri­cal fin­dings from her ex­pe­ri­ments, Rani is de­ve­lo­ping methods for im­pro­ving the quality of code in en­vi­ron­men­tal, tech­ni­cal, eco­no­mic, and social terms. Even if AI is in­crea­singly taking over the pro­gramming, humans are always at the center of the process. Because it is people who in­st­ruct the LLMs and, ideally, check the output. “So it’s very im­portant to make pro­gramm­ers aware of sustai­na­bi­li­ty,” says Rani, who sees dis­se­mi­na­ting her methods as part of her mission. From the summer se­mes­ter of 2026, she will be of­fe­ring courses in sustainab­le soft­ware de­ve­lop­ment at the Uni­ver­si­ty of Mann­heim.

The fact that Rani is con­ti­nuing her re­se­arch at the Uni­ver­si­ty of Mann­heim is due in large part to the ex­cel­lent con­di­ti­ons they were able to offer her, in­clu­ding the re­sour­ces to set up her own lab. This is vital for making re­li­able, re­pli­ca­ble mea­su­rements. For in­stan­ce, if she wants to measure the energy con­sump­ti­on of a par­ti­cu­lar soft­ware routine, she needs stric­t­ly con­trol­led hard­ware and soft­ware en­vi­ron­ments. Until now, Rani has made use of the fa­ci­li­ties at Delft Uni­ver­si­ty of Tech­no­lo­gy. But with the re­sour­ces at­ta­ched to the new pro­fes­sor­ship, which is co-fi­nan­ced by Wübben Stif­tung Wis­sen­schaft, she will be able to set up Germany’s only lab for testing soft­ware sustai­na­bi­li­ty.

The new lab at the Uni­ver­si­ty of Mann­heim will produce the evi­dence Rani needs for her mission. For in­stan­ce, it is still largely unclear how much energy a chatbot like ChatGPT ac­tual­ly uses to answer a user query. In a con­trol­led ex­pe­ri­ment with a com­pa­ra­ble chatbot, Rani re­vea­led the esti­ma­ted energy con­sump­ti­on. “Users were able to see for them­sel­ves how much energy their queries were con­suming,” says Rani. In one study, 85 percent of users then decided to switch to an energy-saving mode. “That shows how im­portant it is to make the en­vi­ron­men­tal impacts of soft­ware visible – and it’s high time we did.”

Pooja Rani
©Pooja Rani

Pooja Rani trans­fer­red in April 2026 from the Uni­ver­si­ty of Zurich to the Uni­ver­si­ty of Mann­heim, where she took up a tenured pro­fes­sor­ship in com­pu­ter science. In Zurich, she worked as a senior re­se­ar­cher in the lab of Prof. Harald Gall and as a postdoc re­se­ar­cher in Prof. Alberto Bac­chel­li's lab. Prior to that, she com­ple­ted a doc­to­ra­te in com­pu­ter soft­ware de­ve­lop­ment at the Uni­ver­si­ty of Bern and worked for various soft­ware com­pa­nies.