SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.03962 · ICML · 2024

AdsorbDiff: Adsorbate Placement via Conditional Denoising Diffusion

Adeesh Kolluru, John Kitchin

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 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, 1 violated it and 0 have no contract verdict; 7 failures of our instrument; 0 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/2405.03962.json · badge: /api/ran/2405.03962.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
AdeeshKolluru/AdsorbDiff canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
balanced_partition Ran
ran; our contract draft was wrong, not the code
AdeeshKolluru/AdsorbDiff/adsorbdiff/datasets/data_parallel.py
code served (permissive licence) · get_code("e4e47fd3f979e4cc")
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 list. 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 heapq
from typing import List, Tuple

# Create a small array of sizes to partition
sizes = np.array([10, 5, 8, 3, 7, 2, 6], dtype=np.int_)

# Number of partitions to create
num_parts = 3

ARGS = {
    "sizes": sizes,
    "num_parts": num_parts,
}
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 list — a list output has no array shape of its own; none is 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
data_list_collater Ran
ran; our contract draft was wrong, not the code
AdeeshKolluru/AdsorbDiff/adsorbdiff/datasets/lmdb_dataset.py
code served (permissive licence) · get_code("6dfbb1c937ac7d0b")
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 DataBatch. 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
from torch_geometric.data import Data

torch.manual_seed(0)

# Create small sample Data objects with edge_index
data1 = Data(
    x=torch.randn(4, 3),
    edge_index=torch.tensor([[0, 1, 2], [1, 2, 3]], dtype=torch.long),
    y=torch.tensor([0])
)

data2 = Data(
    x=torch.randn(5, 3),
    edge_index=torch.tensor([[0, 1, 2, 3], [1, 2, 3, 4]], dtype=torch.long),
    y=torch.tensor([1])
)

data_list = [data1, data2]

ARGS = {
    "data_list": data_list,
    "otf_graph": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataBatch — a DataBatch output has no array shape of its own; none is 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
forcesx_mae Ran
ran; our contract draft was wrong, not the code
AdeeshKolluru/AdsorbDiff/adsorbdiff/modules/evaluator.py
code served (permissive licence) · get_code("47fc51599c9e4144")
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 torch

torch.manual_seed(0)

# Create prediction dict with forces tensor
# Shape: [batch_size=2, features=4]
prediction = {
    'forces': torch.randn(2, 4)
}

# Create target dict with forces tensor
# Shape: [batch_size=2, features=4]
target = {
    'forces': torch.randn(2, 4)
}

ARGS = {
    'prediction': prediction,
    'target': target,
    'key': None
}
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 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
forcesx_mse Ran
ran; our contract draft was wrong, not the code
AdeeshKolluru/AdsorbDiff/adsorbdiff/modules/evaluator.py
code served (permissive licence) · get_code("1bab9763b40020bb")
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 torch

torch.manual_seed(0)

# The function forcesx_mse calls mse(prediction['forces'][:, 0], target['forces'][:, 0])
# So prediction and target need to be dicts with a 'forces' key
# The 'forces' value should be a tensor that supports indexing [:, 0]
# This means it needs at least 2 dimensions, with the first dimension being the batch

# Create prediction dict with forces tensor of shape (batch=2, features=4)
prediction = {
    'forces': torch.randn(2, 4)
}

# Create target dict with forces tensor of shape (batch=2, features=4)
target = {
    'forces': torch.randn(2, 4)
}

ARGS = {
    'prediction': prediction,
    'target': target,
    'key': None
}
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 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
forcesy_mae Ran
ran; our contract draft was wrong, not the code
AdeeshKolluru/AdsorbDiff/adsorbdiff/modules/evaluator.py
code served (permissive licence) · get_code("402e5b34a0ccc738")
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 torch

torch.manual_seed(0)

# Create prediction and target dicts with 'forces' key
# The function accesses prediction['forces'][:, 1] and target['forces'][:, 1]
# So forces should be a 2D tensor where we can slice the second column
# Shape: (batch=2, features=4) to have distinct dimensions

prediction = {
    'forces': torch.randn(2, 4)
}

target = {
    'forces': torch.randn(2, 4)
}

ARGS = {
    'prediction': prediction,
    'target': target,
    'key': None
}
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 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
target_constant_shape Ran
ran, violated the contract we drafted
AdeeshKolluru/AdsorbDiff/adsorbdiff/datasets/target_metadata_guesser.py
code served (permissive licence) · get_code("d303f7f92625701a")
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 bool, ndim 0, dtype family float, shape () 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)

# The function checks if all samples in target_samples have the same shape
# atoms_lens is not used in the function body
# target_samples should be an iterable of objects with a .shape attribute

# Create sample tensors with consistent shapes
sample1 = torch.randn(2, 4)
sample2 = torch.randn(2, 4)
sample3 = torch.randn(2, 4)

target_samples = [sample1, sample2, sample3]

atoms_lens = [1, 2, 3]  # Not used but required parameter

ARGS = {
    "atoms_lens": atoms_lens,
    "target_samples": target_samples,
}
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 bool, ndim 0, dtype family float, shape () — shape () 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
target_per_atom Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
AdeeshKolluru/AdsorbDiff/adsorbdiff/datasets/target_metadata_guesser.py
code served (permissive licence) · get_code("95276daac1c9d35f")
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 bool, ndim 0, dtype family float, shape () 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

# Construct arguments for target_per_atom function
# The function checks if target_samples are proportional to atoms_lens in first dimension
# and constant in other dimensions

# Case 1: Valid per-atom targets - first dimension matches atoms_lens, other dims constant
atoms_lens = [2, 3]  # Two atoms with lengths 2 and 3
target_samples = [
    np.array([[1.0, 2.0, 3.0, 4.0],
              [5.0, 6.0, 7.0, 8.0]]),  # shape (2, 4)
    np.array([[9.0, 10.0, 11.0, 12.0],
              [13.0, 14.0, 15.0, 16.0],
              [17.0, 18.0, 19.0, 20.0]])  # shape (3, 4)
]

ARGS = {
    "atoms_lens": atoms_lens,
    "target_samples": target_samples
}
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 bool, ndim 0, dtype family float, shape () — shape () 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
uniform_atoms_lengths Ran
ran; our contract draft was wrong, not the code
AdeeshKolluru/AdsorbDiff/adsorbdiff/datasets/target_metadata_guesser.py
code served (permissive licence) · get_code("32e59d535ce41f8d")
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 bool, ndim 0, dtype family float, shape () 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)

# The function checks if all elements in atoms_lens are the same
# by converting to a set and checking if the set has length 1.
# atoms_lens should be a list or iterable of lengths (integers)

ARGS = {
    "atoms_lens": [5, 5, 5]
}
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 bool, ndim 0, dtype family float, shape () — shape () 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

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 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 8 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

Determining the optimal configuration of adsorbates on a slab (adslab) is pivotal in the exploration of novel catalysts across diverse applications. Traditionally, the quest for the lowest energy adslab configuration involves placing the adsorbate onto the slab followed by an optimization process. Prior methodologies have relied on heuristics, problem-specific intuitions, or bruteforce approaches to guide adsorbate placement. In this work, we propose a novel framework for adsorbate placement using denoising diffusion. The model is designed to predict the optimal adsorbate site and orientation corresponding to the lowest energy configuration. Further, we have an end-to-end evaluation framework where diffusionpredicted adslab configuration is optimized with a pretrained machine learning force field and finally evaluated with Density Functional Theory (DFT). Our findings demonstrate an acceleration of up to 5x or 3.5x improvement in accuracy compared to the previous best approach. Given the novelty of this framework and application, we provide insights into the impact of pre-training, model architectures, and conduct extensive experiments to underscore the significance of this approach.

For agents

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

get_harvested_code_for_paper("2405.03962")
get_code_for_paper("2405.03962")
have("2405.03962")

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

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

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

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

Connect an agent — have() is free.