SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.13225 · NeurIPS · 2022

DevFormer: A Symmetric Transformer for Context-Aware Device Placement

Minsu Kim, Jinkyoo Park, Joungho Kim, Federico Berto, Haeyeon Kim

arXiv · PDF · Open in the Atlas

Code that ran

16 of 23 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 9 have no contract verdict; 7 failures of our instrument; 7 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/2205.13225.json · badge: /api/ran/2205.13225.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
kaist-silab/devformer canonical (classifier label)
classifier basis not recorded on the link
8 ran · 5 no recorded run
kaist-silab/dppbench marked official in Papers with Code
Papers with Code archive
4 ran · 2 no recorded run
ai4co/reevo community
Papers with Code archive
4 ran · 0 no recorded run
FunctionStatusWhere it lives
CVRP_Encoder Ran
ran on a synthesized input
ai4co/reevo/problems/cvrp_lehd/VRPModel.py
code served (permissive licence) · get_code("e0e374040216e134")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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
import torch.nn.functional as F

INIT_ARGS = {
    'embedding_dim': 4,
    'head_num': 2,
    'qkv_dim': 3,
    'ff_hidden_dim': 6,
}

ARGS = {
    'data_': torch.randn(2, 5, 3),
    'capacity': torch.tensor(10.0),
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
DevFormerFixed Ran
ran on a synthesized input · constructed an object; no result was computed
kaist-silab/dppbench/src/models/devformer.py
code served (permissive licence) · get_code("44766ff2bb80cded")
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 an instance of its own class, DevFormerFixed: the run constructed the object and did not call it, so no result was computed. 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)

# Define small tensors for the DevFormerFixed constructor
# batch_size=2, various embedding/hidden dimensions

# node_embeddings: [batch_size, num_nodes, embedding_dim]
node_embeddings = torch.randn(2, 5, 4)

# context_node_projected: [batch_size, context_dim]
context_node_projected = torch.randn(2, 4)

# glimpse_key: [num_heads, batch_size, key_dim]
glimpse_key = torch.randn(3, 2, 4)

# glimpse_val: [num_heads, batch_size, val_dim]
glimpse_val = torch.randn(3, 2, 4)

# logit_key: [batch_size, logit_dim]
logit_key = torch.randn(2, 4)

ARGS = {
    'node_embeddings': node_embeddings,
    'context_node_projected': context_node_projected,
    'glimpse_key': glimpse_key,
    'glimpse_val': glimpse_val,
    'logit_key': logit_key,
}
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 DevFormerFixed — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DevFormerFixed 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
EncoderLayer Ran
ran on a synthesized input
ai4co/reevo/problems/cvrp_lehd/VRPModel.py
code served (permissive licence) · get_code("3bbb9454b0aed4ee")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

INIT_ARGS = {
    'embedding_dim': 4,
    'ff_hidden_dim': 8,
    'head_num': 2,
    'qkv_dim': 3
}

# Create input tensor for EncoderLayer.forward
batch_size = 2
sequence_length = 5
input_tensor = torch.randn(batch_size, sequence_length, INIT_ARGS['embedding_dim'])

ARGS = {
    'input1': input_tensor
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Feed_Forward_Module Ran
ran on a synthesized input
ai4co/reevo/problems/cvrp_lehd/VRPModel.py
code served (permissive licence) · get_code("e4ba52635327e4e6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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
import torch.nn.functional as F

class Feed_Forward_Module(nn.Module):

    def __init__(self, **model_params):
        super().__init__()
        embedding_dim = model_params['embedding_dim']
        ff_hidden_dim = model_params['ff_hidden_dim']
        self.W1 = nn.Linear(embedding_dim, ff_hidden_dim)
        self.W2 = nn.Linear(ff_hidden_dim, embedding_dim)

    def forward(self, input1):
        return self.W2(F.relu(self.W1(input1)))


INIT_ARGS = {
    'embedding_dim': 4,
    'ff_hidden_dim': 8,
}

ARGS = {
    'input1': torch.randn(2, 4),
}

if __name__ == '__main__':
    model = Feed_Forward_Module(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
GraphAttentionEncoder Ran
ran on a synthesized input · constructed an object; no result was computed
kaist-silab/dppbench/src/models/devformer.py
code served (permissive licence) · get_code("ee17ee53e70396c2")
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 an instance of its own class, GraphAttentionEncoder: the run constructed the object and did not call it, so no result was computed. 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
import math
import numpy as np

torch.manual_seed(0)

ARGS = {
    'n_heads': 2,
    'embed_dim': 8,
    'n_layers': 2,
    'node_dim': 4,
    'normalization': 'batch',
    'feed_forward_hidden': 16
}
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 GraphAttentionEncoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GraphAttentionEncoder 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
MultiHeadAttention Ran
ran on a synthesized input · constructed an object; no result was computed
kaist-silab/dppbench/src/models/devformer.py
code served (permissive licence) · get_code("b1e65318aee81d61")
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 an instance of its own class, MultiHeadAttention: the run constructed the object and did not call it, so no result was computed. 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
from torch import nn
import math
import numpy as np

torch.manual_seed(0)

# Setup tensors for the forward pass
batch_size = 2
graph_size = 5
n_query = 3
input_dim = 4
n_heads = 2
embed_dim = 8
val_dim = 4
key_dim = 4

# Create q tensor: (batch_size, n_query, input_dim)
q = torch.randn(batch_size, n_query, input_dim)

# Create h tensor: (batch_size, graph_size, input_dim)
h = torch.randn(batch_size, graph_size, input_dim)

# Create mask tensor: (batch_size, n_query, graph_size)
# mask should contain 1 if attention is not possible
mask = torch.zeros(batch_size, n_query, graph_size, dtype=torch.bool)
mask[0, 0, 0] = True  # mask one position as example

ARGS = {
    'n_heads': n_heads,
    'input_dim': input_dim,
    'embed_dim': embed_dim,
    'val_dim': val_dim,
    'key_dim': key_dim,
}
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 MultiHeadAttention — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MultiHeadAttention 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
MultiHeadAttentionLayer Ran
ran on a synthesized input · constructed an object; no result was computed
kaist-silab/dppbench/src/models/devformer.py
code served (permissive licence) · get_code("e974ebdae8b92931")
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 an instance of its own class, MultiHeadAttentionLayer: the run constructed the object and did not call it, so no result was computed. 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
from torch import nn
import math
import numpy as np

torch.manual_seed(0)

ARGS = {
    'n_heads': 2,
    'embed_dim': 4,
    'feed_forward_hidden': 8,
    'normalization': 'batch'
}
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 MultiHeadAttentionLayer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MultiHeadAttentionLayer output the recorded ndim 1 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
check_extension Ran
ran; our contract draft was wrong, not the code
kaist-silab/devformer/src/utils/data_utils.py
code served (permissive licence) · get_code("01df1926cf07ac89")
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 str. 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 os

def check_extension(filename):
    if os.path.splitext(filename)[1] != '.pkl':
        return filename + '.pkl'
    return filename

ARGS = {
    'filename': 'myfile.txt'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
format_file_size Ran
ran on a synthesized input
kaist-silab/devformer/src/utils/download_anonymous_github.py
code served (permissive licence) · get_code("0afddc8bf087bf72")
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 str. 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 numpy as np

# Analyze the function: format_file_size(size, decimals=2, binary_system=False)
# Parameters:
# - size: a numeric value (int or float) representing file size in bytes
# - decimals: int, number of decimal places (default 2)
# - binary_system: bool, whether to use binary (1024) or decimal (1000) units

ARGS = {
    'size': 2048576,           # 2 MB (or 2 MiB), a typical file size value
    'decimals': 2,             # Standard 2 decimal places
    'binary_system': False     # Use decimal system (1000-based)
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
load_dataset Ran
ran; our contract draft was wrong, not the code
kaist-silab/devformer/src/utils/data_utils.py
code served (permissive licence) · get_code("69062811f34d8ff6")
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 os
import pickle
import tempfile

# Create a temporary pickle file for testing
temp_dir = tempfile.mkdtemp()
test_data = {"sample": "data", "values": [1, 2, 3]}
test_file_path = os.path.join(temp_dir, "test_dataset.pkl")

with open(test_file_path, 'wb') as f:
    pickle.dump(test_data, f)

# Remove the .pkl extension for the argument to test the check_extension logic
test_filename = os.path.join(temp_dir, "test_dataset")

ARGS = {
    "filename": test_filename
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
mask_bool2long Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
kaist-silab/devformer/src/utils/boolmask.py
code served (permissive licence) · get_code("454003b7383dce9f")
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, ndim 2, dtype family int, shape (2, 1) 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small uint8 tensor for mask input
# The function expects a uint8 tensor with shape (..., sequence_length)
# Let's create a tensor with batch_size=2 and sequence_length=4
mask = torch.randint(0, 2, (2, 4), dtype=torch.uint8)

ARGS = {
    "mask": mask
}
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, ndim 2, dtype family int, shape (2, 1) — shape (2, 1) 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
mask_long2bool Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
kaist-silab/devformer/src/utils/boolmask.py
code served (permissive licence) · get_code("10638ccfaa13fb59")
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, ndim 2, dtype family float, shape (2, 256) 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 torch

torch.manual_seed(0)

# mask_long2bool takes a mask tensor of dtype int64 and optional n parameter
# The function converts int64 mask to boolean mask by bit manipulation

# Create a small int64 tensor for the mask
# Shape: (2, 4) - batch of 2, 4 int64 values
mask = torch.tensor([[1, 2, 4, 8], [16, 32, 64, 128]], dtype=torch.int64)

# n is optional - can be None or an integer specifying number of bits
n = None

ARGS = {
    "mask": mask,
    "n": n
}
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, ndim 2, dtype family float, shape (2, 256) — shape (2, 256) 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
mask_long_scatter Ran
ran; our contract draft was wrong, not the code
kaist-silab/devformer/src/utils/boolmask.py
code served (permissive licence) · get_code("1a3bb2f0ebdf9a4e")
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, ndim 3, dtype family int, shape (2, 3, 4) 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 torch

torch.manual_seed(0)

# Create a mask tensor with batch dimensions and last dimension for bit packing
# mask shape: (2, 3, 4) - batch dims (2, 3), last dim 4 for bit positions
mask = torch.zeros((2, 3, 4), dtype=torch.long)

# Create values tensor with same shape as mask[:-1]
# values shape: (2, 3) - must match mask.size()[:-1]
# Values should be in range [0, 256) to work with the 64-bit packing logic
values = torch.tensor([[10, 50, 120], [200, 30, 100]], dtype=torch.long)

# check_unset parameter - boolean flag
check_unset = False

ARGS = {
    "mask": mask,
    "values": values,
    "check_unset": check_unset,
}
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, ndim 3, dtype family int, shape (2, 3, 4) — shape (2, 3, 4) 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
move_to Ran
ran; our contract draft was wrong, not the code
kaist-silab/devformer/src/utils/functions.py
pointer only (licence: MIT); the stored copy get_code serves, from zhangzizhen/ml-dam, is pointer only (licence: NONE) · get_code("107d6628712f1a21")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zhangzizhen/ml-dam, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

multi_head_attention Ran
ran; our contract draft was wrong, not the code
ai4co/reevo/problems/cvrp_lehd/VRPModel.py
code served (permissive licence) · get_code("388642e538834053")
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, ndim 3, dtype family float, shape (2, 4, 15) 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Construct tensors for multi_head_attention
# Expected shape: (batch_size, num_heads, sequence_length, key_dim)
batch_s = 2
head_num = 3
n = 4
key_dim = 5

q = torch.randn(batch_s, head_num, n, key_dim)
k = torch.randn(batch_s, head_num, n, key_dim)
v = torch.randn(batch_s, head_num, n, key_dim)

ARGS = {
    "q": q,
    "k": k,
    "v": v
}
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, ndim 3, dtype family float, shape (2, 4, 15) — shape (2, 4, 15) 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
req_url Ran
ran on a synthesized input
kaist-silab/devformer/src/utils/download_anonymous_github.py
code served (permissive licence) · get_code("3996e33f11d6e05c")
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 str. 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 os
import tempfile
from unittest.mock import Mock, patch

# Create a temporary directory for the test
temp_dir = tempfile.mkdtemp()
temp_file_path = os.path.join(temp_dir, "subdir", "test_file.bin")

# Mock the requests.get to avoid actual network calls
mock_response = Mock()
mock_response.content = b"test file content"

ARGS = {
    "dl_file": ["https://example.com/test_file.bin", temp_file_path],
    "max_retry": 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
requests — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
DevFormer Not yet run
unverified (harvested, no recorded run)
kaist-silab/dppbench/src/models/devformer.py
code served (permissive licence) · get_code("8344a332d9a93ac4")
How it ran

no invocation recorded.

backtrack Not yet run
unverified (harvested, no recorded run)
kaist-silab/devformer/src/utils/beam_search.py
code served (permissive licence) · get_code("9d5b8d4a73d01c19")
How it ran

no invocation recorded.

get_beam_search_results Not yet run
unverified (harvested, no recorded run)
kaist-silab/devformer/src/utils/beam_search.py
code served (permissive licence) · get_code("be9c547a8e748da5")
How it ran

no invocation recorded.

get_options Not yet run
unverified (harvested, no recorded run)
kaist-silab/devformer/src/options.py
code served (permissive licence) · get_code("082646223bfd2be7")
How it ran

no invocation recorded.

load_problem Not yet run
unverified (harvested, no recorded run)
kaist-silab/devformer/src/utils/functions.py
code served (permissive licence) · get_code("303bdfb5bc7ca4ca")
How it ran

no invocation recorded.

sample_many Not yet run
unverified (harvested, no recorded run)
kaist-silab/dppbench/src/models/devformer.py
code served (permissive licence) · get_code("4fff104acbe171fa")
How it ran

no invocation recorded.

torch_load_cpu Not yet run
unverified (harvested, no recorded run)
kaist-silab/devformer/src/utils/functions.py
pointer only (licence: MIT); the stored copy get_code serves, from zhangzizhen/ml-dam, is pointer only (licence: NONE) · get_code("0538f709044ed305")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zhangzizhen/ml-dam, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 16 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 0 the same month, 13 later) and 7 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.

FunctionAlso present inEarliest-datedOthers named
check_extension 7 other papers
1 dated earlier, 6 later
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2305.19587 (2023-05)
Towards Omni-generalizable Neural Methods for Vehicle Routing Problems
2308.14104 (2023-08)
Towards Generalizable Neural Solvers for Vehicle Routing Problems via Ensemble with Transferrable Local Policy
and 4 more not named here
load_dataset 4 other papers
1 dated earlier, 3 later
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2403.07041 (2024-03)
Ant Colony Sampling with GFlowNets for Combinatorial Optimization
2410.21066 (2024-10)
Learning to Handle Complex Constraints for Vehicle Routing Problems
and 1 more not named here
torch_load_cpu 4 other papers
3 dated earlier, 1 later
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2105.02741 (2021-05)
Meta-Learning-Based Deep Reinforcement Learning for Multiobjective Optimization Problems
2110.14074 (2021-10)
Fault-Tolerant Federated Reinforcement Learning with Theoretical Guarantee
and 1 more not named here
Feed_Forward_Module
brick of this paper's assembly: model
3 other papers
3 later · 3 only as an assembly brick
2310.07985 (2023-10)
Neural Combinatorial Optimization with Heavy Decoder: Toward Large Scale Generalization
2502.16170 (2025-02)
Destroy and Repair Using Hyper-Graphs for Routing
2505.13904 (2025-05)
Learning to Insert for Constructive Neural Vehicle Routing Solver
move_to 3 other papers
2 dated earlier, 1 later
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2105.02741 (2021-05)
Meta-Learning-Based Deep Reinforcement Learning for Multiobjective Optimization Problems
2606.30680 (2026-06)
Locker-based Truck-Drone Routing with Integrated Considerations of Pickups, Deliveries, and No-Fly Zones
MultiHeadAttentionLayer
brick of this paper's assembly: model
2 other papers
2 dated earlier · 1 only as an assembly brick
2110.13987 (2021-10)
Learning Collaborative Policies to Solve NP-hard Routing Problems
2204.03236 (2022-04)
Learning to Solve Travelling Salesman Problem with Hardness-Adaptive Curriculum
backtrack 2 other papers
1 dated earlier, 1 later
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2606.30680 (2026-06)
Locker-based Truck-Drone Routing with Integrated Considerations of Pickups, Deliveries, and No-Fly Zones
get_beam_search_results 2 other papers
1 dated earlier, 1 later
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2606.30680 (2026-06)
Locker-based Truck-Drone Routing with Integrated Considerations of Pickups, Deliveries, and No-Fly Zones
mask_bool2long 2 other papers
1 dated earlier, 1 later
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2606.30680 (2026-06)
Locker-based Truck-Drone Routing with Integrated Considerations of Pickups, Deliveries, and No-Fly Zones
mask_long2bool 2 other papers
1 dated earlier, 1 later
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2606.30680 (2026-06)
Locker-based Truck-Drone Routing with Integrated Considerations of Pickups, Deliveries, and No-Fly Zones
mask_long_scatter 2 other papers
1 dated earlier, 1 later
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2606.30680 (2026-06)
Locker-based Truck-Drone Routing with Integrated Considerations of Pickups, Deliveries, and No-Fly Zones
multi_head_attention
brick of this paper's assembly: model
2 other papers
2 later · 1 only as an assembly brick
2310.07985 (2023-10)
Neural Combinatorial Optimization with Heavy Decoder: Toward Large Scale Generalization
2402.01145 (2024-02)
ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolution
CVRP_Encoder
brick of this paper's assembly: entry
1 other paper
1 later · 1 only as an assembly brick
2310.07985 (2023-10)
Neural Combinatorial Optimization with Heavy Decoder: Toward Large Scale Generalization
EncoderLayer
brick of this paper's assembly: model
1 other paper
1 later · 1 only as an assembly brick
2310.07985 (2023-10)
Neural Combinatorial Optimization with Heavy Decoder: Toward Large Scale Generalization
GraphAttentionEncoder
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
2204.03236 (2022-04)
Learning to Solve Travelling Salesman Problem with Hardness-Adaptive Curriculum
MultiHeadAttention
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
2204.03236 (2022-04)
Learning to Solve Travelling Salesman Problem with Hardness-Adaptive Curriculum

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

In this paper, we present DEVFORMER, a novel transformer-based architecture for addressing the complex and computationally demanding problem of hardware design optimization. Despite the demonstrated efficacy of transformers in domains including natural language processing and computer vision, their use in hardware design has been limited by the scarcity of offline data. Our approach addresses this limitation by introducing strong inductive biases such as relative positional embeddings and action-permutation symmetricity that effectively capture the hardware context and enable efficient design optimization with limited offline data. We apply DEVFORMER to the problem of decoupling capacitor placement and show that it outperforms state-of-the-art methods in both simulated and real hardware, leading to improved performances while reducing the number of components by more than 30%. Finally, we show that our approach achieves promising results in other offline contextual learning-based combinatorial optimization tasks.

For agents

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

get_harvested_code_for_paper("2205.13225")
get_code_for_paper("2205.13225")
have("2205.13225")

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

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

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

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

Connect an agent — have() is free.