SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.12355 · IJCAI · 2025

GATES: Cost-aware Dynamic Workflow Scheduling via Graph Attention Networks and Evolution Strategy

Gang Chen, Mengjie Zhang, Hui Ma, Ya Shen

arXiv · PDF · Open in the Atlas

Code that ran

4 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2505.12355.json · badge: /api/ran/2505.12355.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
YaShen998/GATES canonical (classifier label)
classifier basis not recorded on the link
4 ran · 2 no recorded run
FunctionStatusWhere it lives
build_policy Ran
ran on a synthesized input
YaShen998/GATES/builder.py
code served (permissive licence) · get_code("01645a5981d2cf75")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned WFPolicy. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Mock WFPolicy class that will be imported
class WFPolicy(nn.Module):
    def __init__(self, config):
        super().__init__()
        self.config = config
        self.model_name = config.get('name')
        # Small linear layer as placeholder
        self.layer = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.layer(x)

# Patch the import path
import sys
from types import ModuleType

policy_wf_model_02 = ModuleType('policy.wf_model_02')
policy_wf_model_02.WFPolicy = WFPolicy
sys.modules['policy.wf_model_02'] = policy_wf_model_02

policy = ModuleType('policy')
policy.wf_model_02 = policy_wf_model_02
sys.modules['policy'] = policy

# Define config dict with required 'name' key
config = {
    'name': 'model_workflow',
    'hidden_dim': 64,
    'learning_rate': 0.001
}

ARGS = {
    'config': config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
policy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type WFPolicy — a WFPolicy output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a WFPolicy output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_sparse_matrix Ran
ran on a synthesized input
YaShen998/GATES/policy/wf_model_02.py
code served (permissive licence) · get_code("a363946a24811db8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Analyze the function:
# - ranges: iterable of integers representing range lengths
# - length: integer representing the column size of the sparse matrix
# The function creates a sparse matrix based on ranges and a total length

ARGS = {
    "ranges": [2, 3, 1],  # List of range lengths
    "length": 10  # Total column dimension
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, shape (6, 10) — shape (6, 10) as a later run recorded it
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
discount_rewards Ran
ran on a synthesized input
YaShen998/GATES/assembly/assemble_rl.py
code served (permissive licence) · get_code("21395f0ade1ff348")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (5,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function expects a rewards parameter that should be array-like
# Looking at the function body:
# - len(rewards) is called
# - rewards[i] is accessed with integer indexing
# - So rewards should be a sequence/array of numbers

# Create a simple array of rewards
rewards = np.array([1.0, 2.0, 3.0, 1.0, 0.5])

ARGS = {
    "rewards": rewards
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (5,) — shape (5,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
worker_func Ran
ran on a synthesized input
YaShen998/GATES/assembly/assemble_rl.py
code served (permissive licence) · get_code("c3403aec18370095")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch
import torch.nn as nn

# Define a minimal model class that matches how indi is used
class MinimalAgent(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 2)
        self.policy_id = 0
    
    def reset(self):
        pass
    
    def forward(self, s, dag, node_id, VM_configuration, removeVM=None):
        # s is expected to be (batch, 4)
        # Return a single action
        return self.linear(torch.tensor(s, dtype=torch.float32)).detach().numpy()[0]

# Define a minimal environment class
class MinimalEnv:
    def __init__(self):
        self.name = 'WorkflowScheduling-v0'
        self.episode_info = {
            'VM_execHour': 10.0,
            'VM_totHour': 20.0,
            'VM_cost': 5.0,
            'SLA_penalty': 1.0,
            'missDeadlineNum': 0
        }
    
    def reset(self, g, ep_num, train_or_test):
        # Return initial state dict with required keys
        state_vec = np.random.randn(4)
        return {
            '0': {
                'state': state_vec,
                'DAG': {'nodes': []},
                'Node_id': 0,
                'VM_configuration': {'cpu': 2}
            }
        }
    
    def step(self, actions):
        # Return (states, reward, done, info)
        state_vec = np.random.randn(4)
        states = {
            '0': {
                'state': state_vec,
                'DAG': {'nodes': []},
                'Node_id': 1,
                'VM_configuration': {'cpu': 2}
            }
        }
        reward = 1.5
        done = True
        info = {}
        return states, reward, done, info

# Define a minimal optimizer class
class MinimalOptimizer:
    def __init__(self):
        self.name = 'es_openai'

# Define a minimal graph object
class MinimalGraph:
    def __init__(self):
        self.nodes = []

# Build the arguments
indi = {'0': MinimalAgent()}
env = MinimalEnv()
optim = MinimalOptimizer()
eval_ep_num = 2
ob_rms_mean = np.array([0.1, 0.2, 0.3, 0.4])
ob_rms_std = np.array([1.0, 1.0, 1.0, 1.0])
processor_num = 1
g = MinimalGraph()
config = {'learning_rate': 0.01, 'batch_size': 32}
train_or_test = 'test'

ARGS = {
    'arguments': (indi, env, optim, eval_ep_num, ob_rms_mean, ob_rms_std, processor_num, g, config, train_or_test)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_env Not yet run
unverified (harvested, no recorded run)
YaShen998/GATES/builder.py
code served (permissive licence) · get_code("66ee29bfd8ac0982")
How it ran

no invocation recorded.

build_optim Not yet run
unverified (harvested, no recorded run)
YaShen998/GATES/builder.py
code served (permissive licence) · get_code("2d12fbe243063331")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Cost-aware Dynamic Workflow Scheduling (CADWS) is a key challenge in cloud computing, focusing on devising an effective scheduling policy to efficiently schedule dynamically arriving workflow tasks, represented as Directed Acyclic Graphs (DAG), to suitable virtual machines (VMs). Deep reinforcement learning (DRL) has been widely employed for automated scheduling policy design. However, the performance of DRL is heavily influenced by the design of the problem-tailored policy network and is highly sensitive to hyperparameters and the design of reward feedback. Considering the above-mentioned issues, this study proposes a novel DRL method combining Graph Attention Networks-based policy network and Evolution Strategy, referred to as GATES. The contributions of GATES are summarized as follows: (1) GATES can capture the impact of current task scheduling on subsequent tasks by learning the topological relationships between tasks in a DAG. (2) GATES can assess the importance of each VM to the ready task, enabling it to adapt to dynamically changing VM resources. (3) Utilizing Evolution Strategy's robustness, exploratory nature, and tolerance for delayed rewards, GATES achieves stable policy learning in CADWS. Extensive experimental results demonstrate the superiority of the proposed GATES in CADWS, outperforming several stateof-the-art algorithms. The source code is available at: https://github.com/YaShen998/GATES.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2505.12355")
get_code_for_paper("2505.12355")
have("2505.12355")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2505.12355.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2505.12355.svg)](https://syntology.ai/paper/2505.12355)

Connect an agent — have() is free.