arXiv:2610.01887cs.NEOct 2026

Manuscript Offprint

arXiv:2610.01887

TRACE: Tackling Real-World Resource Assignment Problems via Agentic Heuristic Design

Jose A. Ayala-Romero, Andres Garcia-Saavedra, Xavier Costa-Perez

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Dynamic resource assignment, the real-time allocation of task streams to heterogeneous processing nodes, is the backbone of modern computing infrastructure. While learning-based schedulers excel in research, industrial deployments still rely on hand-written rules that operators can read, audit, and execute within tight latency budgets. LLM-based Automatic Heuristic Design (AHD) promises to automate writing such rules. However, existing AHD frameworks were developed for combinatorial problems fully specified to the LLM, and they learn only from a scalar fitness score. In real systems, the behaviour that determines a good heuristic, such as processor speeds or power consumption, is unknown a priori: the score reveals which heuristic performs better, but not why. This missing information is recorded in the system logs that every evaluation produces. Exploiting it is non-trivial: logs are massive and noisy, the relevant signals depend on the objective, and their content and format vary across hardware and software stacks, so they can neither be fed to an LLM as is nor processed by a fixed parser. We propose TRACE, which couples an evolutionary AHD loop with an agentic knowledge-extraction workflow. A Reasoner agent analyzes the log schema in light of the objective and formulates hypotheses about the system dynamics; a Coder agent writes and executes schema-specific code to test them, producing insights or executable tools for the evolved heuristics. We evaluate TRACE on a synthetic cloud benchmark and a 5G vRAN scenario built from industrial testbed measurements and operational traffic traces. TRACE consistently outperforms state-of-the-art AHD methods in resource assignment problems and yields more auditable heuristics at under 2% overhead.

1 INTRODUCTION

Dynamic task scheduling is the operational backbone of modern industrial infrastructure: incoming streams of tasks must be allocated in real time to a limited set of processing nodes. In cloud computing data centers, orchestrators assign heterogeneous workloads (e.g., AI training jobs or virtual machines) across thousands of servers (Hosseini Shirvani, 2024; Khallouli & Huang, 2022). In wired and wireless networks, routers and base stations act as computing nodes that continuously process streams of data packets (Schiavo et al., 2024; Aslan et al., 2024). Inefficient scheduling leads to increased latency, energy waste, and service violations.

Despite decades of research, production schedulers remain predominantly hand-written rules. Classical formulations such as the Dynamic Job-Shop Scheduling Problem (DJSSP) (Liu & Huang, 2023; Zhang et al., 2022) assume known processing times and unbounded queues, which rarely match deployed systems. Deep reinforcement learning (DRL) relaxes these assumptions (Mao et al., 2016; Li et al., 2023), but its policies are hard for operators to inspect, certify, and modify, and can degrade under the simulation-to-deployment shift. Operators therefore favor rules they can read, audit, and execute within tight latency budgets (Ding et al., 2020). Writing good rules, however, requires expert knowledge of the specific hardware, which must be re-acquired for every new deployment.

Figure

Figure 1: Scalar-feedback AHD (left) learns what works from a single fitness value. TRACE (right) distills system logs into knowledge about why it works (e.g., per-processor speed and energy profiles) and feeds it back into heuristic generation.

LLM-based Automatic Heuristic Design (AHD) can automate the writing of such rules. Frameworks such as FunSearch (Romera-Paredes et al., 2024), EoH (Liu et al., 2024), ReEvo (Ye et al., 2024), HSEvo (Dat et al., 2025), and AlphaEvolve (Novikov et al., 2025), which has even improved a production data-center scheduling heuristic, evolve programs in a loop: an LLM proposes code, an evaluator returns a scalar fitness, and the best candidates seed the next generation. These approaches, however, share a blind spot: the only feedback is a scalar. This is largely sufficient on the combinatorial benchmarks where AHD has been developed (e.g., TSP, flow-shop, or online bin packing), because the LLM is given the full problem specification. In real resource-assignment systems, instead, the quantities that determine which heuristic is good, such as per-node processing times, energy profiles, and queue capacities, are unknown to the designer a priori. Scalar-feedback search can learn which heuristic scores better, but not why.

Consider a cluster in which one node is much faster than the rest but also far more power-hungry. An energy-efficient policy should use this accelerator for very heavy tasks or when the system is saturated, which requires knowing each processor's performance and energy profile. Scalar-feedback search can only stumble upon this behavior by trial and error, yet the needed information is recorded in the system logs during every evaluation. Our key insight is that these logs can turn heuristic search from blind trial and error into informed, data-driven design (Fig. 1).

Exploiting logs is nevertheless non-trivial. (i) Raw logs can reach gigabytes and are dominated by irrelevant entries, so they cannot simply be placed in an LLM prompt. (ii) What is relevant depends on the objective: minimizing latency or energy calls for different metrics, and which ones matter is often unclear in advance. (iii) Logs are heterogeneous in content and format: the available metrics depend on the hardware, and field names, units, and structure vary across systems, so a fixed, hand-written parser does not transfer. Moreover, reflection-based AHD methods (e.g., ReEvo) reason only over the fitness history, not over the system behavior behind it. Extracting useful knowledge thus requires reasoning jointly about the objective and the log schema, and writing code tailored to both. To this end, we propose TRACE, which augments LLM-based AHD with an agentic knowledge-extraction workflow: a Reasoner agent identifies which log information is relevant to the objective, and a Coder agent writes and executes code to extract it, producing either an insight into system behavior or a tool. This knowledge is fed back into the heuristic-generation loop to inform each new candidate.

We evaluate TRACE on (i) a synthetic cloud-computing benchmark with up to 50 heterogeneous servers that tests scalability, and (ii) an energy-efficient 5G virtualized RAN scenario driven by measurements from an industrial-grade testbed and traffic traces from an operational network. In the cloud benchmark, TRACE is the only method that achieves zero task loss with 50 servers, reducing cost by more than an order of magnitude relative to the best AHD baseline. In the 5G scenario, it matches the carrier-grade reliability of the industry-standard policy (0% loss) while consuming 65% and 25% less energy than the industry standard and SoTA AHD approaches, respectively. We evaluate the auditability of TRACE's heuristics using an LLM-as-a-judge approach, where they obtained the heuristics highest in semantic grounding and auditability, as their logic is expressed in terms of physical quantities (predicted processing times, per-processor thresholds) rather than the opaque arithmetic the baselines converge to. All these gains come at a 1.9% overhead relative to EoH at an equal generation budget.