top of page

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

Writer: Obontika Rashid Prethula
Obontika Rashid Prethula
Aug 24
3 min read

AI IS REPLACING JOBS, INCREASING SYNTHETIC MEDIA.These topics are the only highlights in every public discussion related to AI. Every single day, people around the world are typing thousands of prompts into a generative AI tool, which takes seconds, but did anyone wondered behind this seamless abstraction lies a physical reality: massive data centers generating intense heat, cooled by millions of gallons of freshwater.


AI’s water footprint remains critically understated. At the heart of this environmental drain is a software engineering problem: bloated code.

Data centers are among the most water-intensive industrial facilities on Earth. High-density AI chips (such as GPU clusters running trillion-parameter models) generate unprecedented thermal loads.


A typical hyperscale data center (100MW) can consume up to 2.5 billion liters of water annually—equivalent to the annual domestic water needs of roughly 80,000 people. On a global scale, estimates project AI water demand could match the basic water needs of 1.3 billion people by 2030.


What is bloated coding?

Let's give a simple example. Suppose you packed your whole luggage of 50 kg for a summer trip with heavy coats and winter boots. In the same way, bloated coding refers to Software that has way more code, features, or steps than it actually needs to do its job. In AI, it’s when a program is messy, redundant, or poorly written. The computer spends extra time and energy reading through useless instructions before it can actually give you an answer.


The two primary mechanisms facilities rely on to keep servers safe from overheating are:

1)Direct evaporative cooling:

Water is evaporated in cooling towers to lower air temperatures before circulating through server racks. Up to 80% of this water is lost to the atmosphere as vapor.

2)Indirect Water Footprint:

 Generating the immense electricity required to power AI servers consumes vast volumes of water through thermoelectric power plant cooling (coal, nuclear, and natural gas).


How is the algorithmic waste actually happening:

  1. Over-Parameterized Models for Simple Tasks:

We are using 70B+ LLM to perform basic analysis where every parameter evaluation burns joules and evaporates water.


  1. Redundant Inference & Uncached Context :

Unoptimized APIs that re-process massive system prompts repeatedly without semantic caching unnecessarily inflate compute overhead.


  1. Lazy Code Generation: 

Unoptimized, AI-generated code that runs in production inefficiently loops, bloats runtime memory, and increases cloud compute time across millions of server executions.


Architectural Solutions: Coding for Water Efficiency

Reframing AI’s impact requires treating water efficiency as a core software metric, alongside latency and memory footprint.

  • Model Distillation & Quantization: Deploying smaller, distilled models (e.g., 1B–8B parameters) or quantized 4-bit/8-bit models dramatically reduces the required Floating Point Operations (FLOPs) per response.

  • Semantic Caching & RAG Optimization: Implementing intelligent caching mechanisms prevents duplicate model queries for common requests, cutting compute requirements by up to 30–40%.

  • Water Usage Effectiveness (WUE) Awareness: Routing non-urgent batch AI workloads to data centers located in regions with water-abundant grids or lower ambient temperatures, rather than water-stressed arid regions.

  • Direct-to-Chip & Immersion Cooling: Transitioning data center architecture from open evaporative cooling to closed-loop liquid or immersion cooling systems to minimize evaporative losses.


The Path Ahead

The digital economy cannot treat natural resources as invisible subsidies. Just as software engineering adapted to mobile constraints by optimizing for battery life and memory, modern AI architecture must adapt to physical constraints by optimizing for compute and water efficiency.

Until software developers and tech leaders measure the physical water footprint of their architecture, we will continue paying for software convenience with irreplaceable natural resources.                                    The Writer's Profile


Obontika Rashid Prethula

CSE

BRAC University



Author Bio:

Obontika Rashid Prethula - Obontika Rashid Prethula is a 21-year-old Bangladeshi writer and Computer Science and Engineering (CSE) student at BRAC University. She is passionate about technology, innovation, and the social impact of digital transformation.



 
 
 

Comments


bottom of page