Carbon-Aware Routing for Function Calling in Edge-Cloud LLM Systems
Organizations: School of Electrical, Computer and Biomedical Engineering Southern Illinois University Carbondale
Abstract
Large Language Models (LLMs) with function-calling capabilities are becoming critical for modern agentic AI systems. Nevertheless, current deployments typically route inferences to powerful cloud-based models, incurring significant energy use and carbon emissions. We address this sustainability challenge with a carbon-aware routing framework that distributes function-calling queries across a three-tier edge-cloud architecture, combining edge and cloud LLMs on heterogeneous hardware. At its core, a lightweight k-NN predictor operating in a unified semantic-lexical embedding space estimates query-specific accuracy, delay, and power consumption on each edge tier. These predictions are then combined with real-time grid carbon intensity to route every query to the lowest-emission tier capable of executing it successfully. Evaluated on state-of-the-art function-calling benchmarks and LLM families, our framework matches cloud-level accuracy while reducing operational carbon emissions by on average.
Figures & tables
| Model | Success Rate | General Energy/Query | Carbon Emissions [ 6 ] |
|---|---|---|---|
| Llama3.1-70B (Cloud) | 97.8% | 4.35 Wh [ 6 ] | 1.30 |
| Llama3.1-8B (Edge) | 56.5% | 0.17 Wh [ 7 ] | 0.05 |
| Llama3.2-1B (Edge) | 13.6% | 0.04 Wh [ 7 ] | 0.01 |
LLM Routing
Large language model routing selects models, tools, experts, or inference strategies to balance answer quality, cost, latency, and deployment constraints.
See all 346 papers