TL;DR
When optimizing complex systems, telling an AI agent how well it did with a single number—like a throughput score—is like grading a chef's dish without telling them it was too salty. AKEA (Active Knowledge-Extraction Agent) teaches an LLM agent to write its own Python diagnostic scripts to read messy system logs, figure out why a job scheduler is bottlenecking, and use those insights to evolve better schedulers. The result? Scheduling policies that generalize far better to massive, unseen distributed computing clusters.
What Problem Does This Paper Address?
Large language model (LLM) agents are increasingly used as iterative optimizers: they propose a solution (like a piece of code), test it, see the score, and try to improve it. The catch is that most of these agents rely solely on scalar feedback—a single number summarizing performance. That tells the agent whether a change helped, but gives zero insight into why.
In real-world scientific computing, the "why" is buried in rich execution traces. Consider High Energy Physics (HEP) infrastructures like the Worldwide Large Hadron Collider (LHC) Computing Grid. Thousands of interdependent jobs are dispatched across geographically distributed, heterogeneous sites. A job might need to transfer data from another site, wait in a queue for a free CPU core, stage data locally, and finally execute.
If a scheduling policy performs poorly, the execution logs hold the answer: maybe it's overloading a specific site's network link, ignoring data locality, or leaving CPUs idle. However, you can't just paste logs of 20,000 jobs into an LLM's context window—they are far too long and noisy. And because different policies fail for different reasons, a static, one-size-fits-all log summary won't catch every bottleneck.
Methods
The authors formulate distributed job scheduling as program synthesis: an LLM agent writes a scheduling policy as executable Python code, runs it in a simulator, and iteratively refines it to maximize system throughput (measured in GFLOPs per second, or GF/s).
To move beyond scalar rewards, they introduce AKEA, which jointly evolves two things:
- Scheduling Policies: Using an evolutionary search strategy (similar to FunSearch), AKEA maintains a population of candidate schedulers, selecting parents from the top $k=8$ performers using an Upper Confidence Bound (UCB) strategy to balance exploiting good policies with exploring new ones.
- A Knowledge-Extraction Skill Library: Instead of reading raw logs, AKEA prompts the LLM to write Python analysis programs that extract compact, textual diagnostics from execution traces (e.g., identifying network hotspots or queueing delays).
Each successful analysis script is saved as a reusable "skill." In future iterations, AKEA selects up to $k_{\text{skill}}=8$ existing skills using a separate UCB score. If a skill helps generate a scheduler that beats its baseline, its utility score goes up (+1); otherwise, it goes down (-1). In this way, AKEA learns what to look for in the logs at the same time it learns how to schedule.
Datasets
Because no standard benchmark existed for this specific agentic setup, the authors built a discrete-event simulator inspired by the ATLAS distributed computing infrastructure. They evaluate all methods across three environment scales:
- Small: 20 sites, 60 files, 1,200 tasks (~4.5K jobs)
- Middle: 45 sites, 135 files, 2,700 tasks (~10.1K jobs)
- Large: 100 sites, 300 files, 6,000 tasks (~22.5K jobs)
Crucially, all learned and agentic schedulers (using Qwen3-Coder-480B-A35B with a budget of 50 generations) are developed exclusively on the Small environment, then tested on Middle and Large to measure cross-scale generalization.
Key Insights and Ideas
- Asking why beats just knowing how much: On the small training environment, scalar-only agents like FunSearch slightly edge out AKEA. But when scaled up to Middle and Large environments, AKEA pulls ahead, showing that understanding system bottlenecks leads to policies that generalize.
- Adaptive diagnostics beat fixed summaries: An ablation study shows that giving the agent a predefined, static summary of log statistics (Fixed Summary) performs much worse on larger scales than letting AKEA write its own custom analysis scripts.
- Skill reuse adds a modest boost: Retaining and scoring analysis scripts across iterations provides a consistent, albeit smaller, performance bump over regenerating analyses from scratch every time.
Key Results
AKEA outperforms classical heuristics (Least Load, Minimum Completion Time, PanDA-inspired data-locality, and DIANA), a reinforcement learning scheduler (DECIMA), and scalar-feedback LLM agents (AIDE and FunSearch) on both the Middle and Large environments.
In the ablation study (measured in GF/s across Small / Middle / Large):
- AKEA: 11.38 / 9.82 / 9.58
- w/o Skill Reuse: 11.24 / 9.68 / 9.48
- Fixed Summary: 11.30 / 8.02 / 8.03
- w/o Knowledge Extraction: 11.24 / 8.01 / 8.82
Qualitatively, the authors trace a representative optimization run where AKEA's policies evolve from a simple data-locality heuristic (11.236 GF/s) to a sophisticated scheduler (11.376 GF/s) that tracks live per-link transfer rates, simulates job queues, and penalizes congested sites—each step directly preceded by a newly minted analysis skill diagnosing that exact bottleneck.
Limitations and Future Work
The authors note that their evaluation relies on a simulated distributed computing environment rather than a live production grid, and that all LLM experiments were run with a single model (Qwen3-Coder-480B-A35B) and a 50-generation budget. Looking ahead, they suggest that the core principle—jointly learning a decision policy and how to actively extract knowledge from rich environmental feedback—could extend well beyond HEP job scheduling to other complex scientific computing and optimization domains.
Summary updated