The Cost of Bloated Code: How Inefficient AI Architecture Accentuates the Global Water Crisis

Amongst various breakthroughs, artificial intelligence (AI) ranks as one of the most revolutionary technologies of the 21st century. This technology powers the virtual assistants we use every day, enhances healthcare diagnostics, speeds up scientific discoveries, and helps investigate climate change. Despite the growing efficiency and success of AI systems, however, the development of these technologies comes at a high price that remains invisible to many people. All AI models require computing power, which in its turn requires electricity and water. As AI systems keep evolving, their ever-growing complexity becomes a significant factor in exacerbating the water crisis on Earth.
In the last ten years, the development of AI models has been mostly driven by the idea that "the bigger, the better." Scientists, researchers, and companies strive to create neural networks that have hundreds of billions or even trillions of parameters. Training such networks can take months using thousands of GPUs simultaneously. While scalability allowed making great advances in AI and made AI systems more efficient, it also became a reason for the emergence of numerous computational inefficiencies. Very often, the growth in size of a network does not improve performance but increases energy consumption and environmental impact.
The secret link between AI and water lies within data centers. Each computation made by AI devices produces heat, and excessive heat lowers reliability and performance. To avoid overheating, most modern data centers rely on complex cooling systems, many of which consume vast amounts of freshwater. Cooling towers move water for dissipating heat produced by servers functioning 24/7. As the workload of AI systems increases, their processors consume more energy, produce more heat and thus need even larger amounts of water for cooling.
It has been recently found that the water footprint of AI is not negligible at all. According to Li et al. (2023), training and deployment of large-scale AI models can consume millions of liters of freshwater both directly through cooling systems and indirectly due to electricity production. The environmental impact of AI technologies is usually underestimated by users who perceive AI as something purely digital rather than something physical, hidden in huge data centers.
Water consumption is not limited only to cooling. Water use may be inherent even to electricity generation. Power plants using various types of fuels—coal, natural gas, biomass, or nuclear power—are withdrawing massive amounts of water for cooling and generating steam. Even renewable energy sources require a certain amount of water for production and maintenance. Therefore, any superfluous computation performed by inefficient AI will cause water resources to be used up via increased electricity consumption. With the billions of unnecessary calculations done by the inefficient AI models each second on thousands of servers all around the world, the impact on the environment becomes huge.
The excessive use of water and electricity by AI can also be attributed to the bloating of the architecture of such systems. The term 'software bloat' means that the system includes unneeded complexity, unneeded computations, inefficient algorithms or unneeded parameters that have no effect on the efficiency of operation. Usually, software bloating results in slow performance, higher memory use and higher maintenance cost in case of regular software systems. However, in the case of AI, bloating results in a significant increase in water, electricity and carbon dioxide emissions.
A number of engineering practices commonly employed lead to additional waste. Larger neural networks could be applied just due to industry tendencies. Lack of good optimization of hyperparameters, poor management of memory, repetitive transfer of data between processors, and excessive retraining of models all add up to computational waste. The inference process of producing predictions after training is also resource-intensive because AI services are running constantly in order to serve millions of users worldwide. Each inefficiently handled request leads to an incremental need for cooling and energy consumption.
Fortunately, AI does not have to consume more and more resources. Many approaches exist that increase efficiency of computations without harming performance. Model Pruning technique involves cutting down parameters that do not significantly impact predictions thus saving on memory and computational costs. Knowledge Distillation includes transferring knowledge from the big "teacher" model to small "student" model which can make accurate predictions using significantly less parameters. Quantization technique involves reduction of numerical precision thus speeding up computations and reducing energy costs. Sparse Neural Networks involve activation of only relevant parameters during inference instead of full network. Low Rank Adaptation (LoRA) technique allows for efficient adaptation without changing each parameter.
Software engineering techniques also contribute significantly to the problem of sustainability alongside the AI algorithms. For instance, hardware-oriented programming allows developers to design the algorithm according to the processor architecture by avoiding unnecessary computations and memory accesses. In turn, efficient data pipeline designs prevent data movement from duplication; and parallelization of the processing increases hardware utilization. This will not only lower operational costs but will also minimize electricity and water use in the AI life cycle.
The emergence of edge AI shows that it is possible to achieve sustainability and efficiency simultaneously. In contrast to the transfer of all computations to the central cloud servers, the optimized AI models are increasingly performed locally on smartphones, IoT and embedded devices. Such a trend will help not only decrease network traffic and latency, increase the level of privacy but also minimize the dependence on large data centers.
The other necessary feature of sustainable AI is transparency. Although most firms tend to share information on the amount of carbon dioxide generated when developing AI systems, there is not much information available about how much water is consumed in the process. Environmental reporting must take into account such factors as freshwater used, efficiency of cooling, energy efficiency, hardware efficiency, and overall lifecycle impact of the environment. This will make companies work towards optimizing their systems and allow stakeholders to analyze different AI solutions by combining sustainability, accuracy, and performance.
This is a common task for governments, industry representatives, and academia as well. Green AI research funding will stimulate the development of energy-efficient algorithms and sustainable computing architecture. Data centers must rely more on renewable energy sources, use innovative cooling and water recapture solutions to reduce the use of freshwater. There should be a set of regulatory standards that would define sustainability criteria for large scale adoption of AI. Sustainable software engineering principles should become an integral part of computer science and artificial intelligence studies.
It is important to realize that the issue is not artificial intelligence itself but our approach to designing it. AI holds enormous promise in terms of solving some of humanity's most difficult challenges, from climate simulation to natural disaster prediction and forecasting, medicine, precise agriculture, and energy optimization. However, one thing is clear – whatever the benefits may be, they should never come at the expense of Earth's dwindling supply of freshwater. Each redundant parameter, computation, and architectural choice carries an environmental price that goes beyond the boundaries of digital reality.
The future of artificial intelligence is not limited to the development of bigger models and improvements of benchmark scores. The key to true innovation is the development of efficient, responsible, and sustainable AI that does not harm the environment in any way. With cleaner coding practices, more efficient architectures, and proper engineering, the amount of energy used by intelligent agents and the number of water supplies protected can be significantly increased. As the next generation of intelligent systems is created, its computational efficiency will have to be considered as a matter of environmental responsibility rather than engineering.
References
Li, P., Yang, J., Islam, M. A., & Ren, S. (2023). Making AI Less "Thirsty": Uncovering and Addressing the Secret Water Footprint of AI Models. arXiv:2304.03271.
Patterson, D., Gonzalez, J., Le, Q., Liang, C., Munguia, L., Rothchild, D., So, D., Texier, M., & Dean, J. (2021). Carbon Emissions and Large Neural Network Training. arXiv:2104.10350.
Strubell, E., Ganesh, A., & McCallum, A. (2019). Energy and Policy Considerations for Deep Learning in NLP. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (ACL). The Writer's Profile

Tahmid Ahnaf
CSE
Patuakhali Science & Technology University,
Bangladesh
Author Bio:
Tahmid Ahnaf, Bangladesh — Tahmid Ahnaf is a Bangladeshi AI researcher and incoming Master's student in Artificial Intelligence. His research focuses on deep learning, sustainable AI, and intelligent energy forecasting, with published work on electricity demand prediction using advanced neural network architectures.



Comments