← Latest papers
🤖 AI

GAR: Carbon-Aware Routing for LLM Inference via Constrained Optimization

This paper introduces Green-Aware Routing (GAR), a constrained multi-objective optimization framework that minimizes CO2 emissions for LLM inference by dynamically routing requests to heterogeneous models while strictly adhering to accuracy and latency service-level objectives.

Original authors: Disha Sheshanarayana, Rajat Subhra Pal, Manjira Sinha, Tirthankar Dasgupta

Published 2026-05-13
📖 5 min read🧠 Deep dive

Original authors: Disha Sheshanarayana, Rajat Subhra Pal, Manjira Sinha, Tirthankar Dasgupta

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you run a busy delivery service for a company that uses a fleet of different-sized trucks to deliver packages (answers to questions). Some trucks are tiny and fuel-efficient but slow or bad at carrying heavy loads. Others are massive, powerful super-trucks that can handle anything instantly but guzzle fuel like there's no tomorrow.

In the world of Artificial Intelligence, these "trucks" are Large Language Models (LLMs). Currently, when a user asks a question, the system usually picks a truck based only on speed or cost. It doesn't care much about how much "carbon pollution" that truck creates, even though the "fuel" (electricity) gets dirtier at certain times of day or in certain places.

The paper you shared introduces a new system called GAR (Green-Aware Routing). Think of GAR as a super-smart traffic controller who doesn't just look at speed and price, but also at the environmental impact of every single delivery.

Here is how GAR works, broken down into simple concepts:

1. The Problem: The "Dirtiest" Truck is Often the Default

Right now, if you ask a question, the system might send it to the biggest, most powerful truck just to be safe, or the fastest one to save time.

  • The Issue: Sometimes, a smaller truck could do the job just as well, but the system doesn't know that until after it's already sent the big, polluting truck.
  • The Grid Factor: Imagine the electricity grid is like a river. Sometimes the water is clean (renewable energy like wind/solar), and sometimes it's muddy (fossil fuels). The "muddy" times change depending on the time of day and where you are. GAR knows this. It tries to send the "dirty" trucks only when the water is clean, or better yet, sends the "clean" trucks when the water is muddy.

2. The Solution: The "Green-Aware" Traffic Controller

GAR is a decision-maker that looks at three things before picking a truck:

  1. Will it get the job done right? (Accuracy)
  2. Will it be fast enough? (Latency)
  3. How much pollution will it create? (Carbon Emissions)

It uses a special set of rules (mathematical constraints) to ensure it never picks a truck that is too slow or too inaccurate. But among the trucks that are fast and accurate enough, it picks the one that creates the least amount of pollution.

3. How It Makes Decisions (The "Lightweight Predictors")

GAR doesn't want to waste time actually driving the truck to see if it works. That would be too slow. Instead, it uses crystal balls (lightweight estimators) trained on past data to guess:

  • "If we send this question to the 7B model, will it get the answer right?"
  • "How long will it take?"
  • "How much carbon will that specific trip create right now?"

These guesses happen in less than a millisecond. Based on these guesses, GAR picks the "greenest" option that still meets the quality standards.

4. The "Rolling Budget" (The Carbon Wallet)

Imagine you have a monthly budget for pollution. You can't just save up all your pollution for the end of the month; you have to stay within limits every day.

  • GAR-PD (The Smart Manager): This is the most advanced version of GAR. It keeps a "sliding window" of the last 100 deliveries. If the team has been using too much carbon recently, the system automatically becomes stricter, forcing the selection of cleaner trucks. If the team has been very green, it allows a little more flexibility. It balances the books in real-time.

5. The Results: Doing More with Less Smoke

The authors tested this system using six different types of difficult tasks (like math problems, science quizzes, and reading comprehension) and a fleet of five different AI models (ranging from small to huge).

  • The Big Winner: The standard "Biggest Truck" approach (Largest LLM) was very accurate but created a huge amount of pollution (2.75 grams of CO2 per request).
  • The "Smallest Truck" approach: This saved a lot of pollution but got the answers wrong way too often.
  • GAR-PD: This was the sweet spot. It got the answers right almost as well as the biggest truck (97% as good) but cut the pollution by 74%. It managed to be fast, accurate, and green all at once.

Summary Analogy

Think of it like ordering food delivery.

  • Old Way: You always order from the most famous, expensive restaurant because you want the best food, even if they are far away and use a gas-guzzling motorcycle.
  • GAR Way: You ask a smart app: "I want a burger that tastes good and arrives in 20 minutes." The app checks the weather (is the grid clean?), checks the restaurants (which one can do it?), and picks the one that uses an electric bike and is nearby. You get the same tasty burger, but the planet is happier.

In short: GAR is a new way to route AI requests that treats "saving the planet" as a primary goal, not an afterthought, ensuring we get smart answers without burning the world down to get them.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →