MacroCarbon: A CVaR-Constrained Grid Resource Broker for Agentic LLM DAG Workflows on Geo-Distributed Heterogeneous Computing Grids
摘要
Scientific and enterprise computing grids increasingly host Agentic Large Language Model (LLM) workflows—multi-step, tool-invoking pipelines modelled as Directed Acyclic Graphs (DAGs) of dependent inference tasks. Unlike conventional grid workloads, agentic DAGs exhibit stochastic node weights and unbounded retry sub-graphs, creating severe carbon tail-risk under volatile electricity markets. Existing grid schedulers optimise expected makespan and energy but provide no guarantee over worst-case carbon expenditure. We present MacroCarbon, a three-layer Grid Resource Broker combining: (i) a reverse Mixed Data Sampling Quantile Regression (MIDAS-QR) carbon-intensity forecaster driven by low-frequency macroeconomic covariates (EU natural gas futures, carbon allowance prices, and per-country industrial production indices); (ii) a spatial site-selection layer routing each DAG to the geo-distributed site with the minimum forecasted Carbon Conditional Value-at-Risk (C-CVaR); and (iii) an intra-site elastic provisioner enforcing C-CVaR constraints by gating maximum retry depth