SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.17004 · NeurIPS · 2025

Guided Diffusion Sampling on Function Spaces with Applications to PDEs

Anima Anandkumar, Jong Ye, Gavin Kerrigan, Jiachen Yao, Abbas Mammadov, Julius Nvidia, Kaist Kamyar, Azizzadenesheli Nvidia

arXiv · PDF · Open in the Atlas

Code that ran

19 of 26 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (5 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 1 violated it and 5 have no contract verdict; 10 failures of our instrument; 7 no recorded run), measured 2026-11-24; 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.17004.json · badge: /api/ran/2505.17004.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
neuraloperator/fundps community
Papers with Code archive
19 ran · 7 no recorded run
FunctionStatusWhere it lives
DatasetNormalizer Ran
ran on a synthesized input · constructed an object; no result was computed
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("a764c92b51887090")
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, DatasetNormalizer: 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

torch.manual_seed(0)

# Define stats dictionary with mean and std for normalization
stats = {
    'mean': [0.5, 0.3],
    'std': [0.2, 0.15]
}

ARGS = {
    'dataset_name': 'darcy',
    'stats': stats
}
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 DatasetNormalizer — 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 DatasetNormalizer 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
FullObservation Ran
ran on a synthesized input · constructed an object; no result was computed
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("607661f0464669d6")
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, FullObservation: 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 loss functions that are referenced
def mse_loss(x, n_obs):
    return torch.sum(x ** 2, dim=(-2, -1)) / n_obs

def l1_loss(x, n_obs):
    return torch.sum(torch.abs(x), dim=(-2, -1)) / n_obs

def l2_loss(x, n_obs):
    return torch.sqrt(torch.sum(x ** 2, dim=(-2, -1)) / n_obs)

def batched_loss(x, n_obs):
    assert len(x.shape) == 4, 'Input tensor must have shape [batch_size, channels, resolution, resolution]'
    batch_size = x.shape[0]
    channel_losses = torch.sqrt(torch.sum(x ** 2, dim=(0, 2, 3)) / (batch_size * n_obs))
    batch_losses = channel_losses.repeat(batch_size, 1)
    return batch_losses

def huber_loss(x, n_obs, delta=1.0):
    abs_x = torch.abs(x)
    return torch.sum(torch.where(abs_x < delta, 0.5 * abs_x ** 2, delta * (abs_x - 0.5 * delta)), dim=(-2, -1)) / n_obs

def get_loss_func(loss_type):
    if loss_type == 'mse':
        return mse_loss
    elif loss_type == 'l1':
        return l1_loss
    elif loss_type == 'l2':
        return l2_loss
    elif loss_type == 'batched':
        return batched_loss
    elif loss_type.startswith('huber'):
        delta = float(loss_type.split('-')[1]) if '-' in loss_type else 1.0
        return lambda x, n_obs: huber_loss(x, n_obs, delta=delta)
    else:
        raise ValueError(f'Invalid loss type: {loss_type}')

# Stand-in normalizer class
class SimpleNormalizer:
    def normalize(self, x):
        return x / (torch.abs(x).max() + 1e-8)

# Create config dict
config = {
    'type': 'full',
    'loss_type': 'mse',
    'normalize': False
}

# Create dataset name
dataset_name = 'test_dataset'

ARGS = {
    'config': config,
    'dataset_name': dataset_name
}
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 FullObservation — 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 FullObservation 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
Observation Ran
ran on a synthesized input · constructed an object; no result was computed
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("1281fa90656c411b")
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, Observation: 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

torch.manual_seed(0)

# Create a minimal config dict with required keys
config = {
    'type': 'test_observation',
    'loss_type': 'mse'
}

dataset_name = 'test_dataset'

ARGS = {
    'config': config,
    'dataset_name': dataset_name
}
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 Observation — 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 Observation 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
PDEDataset Ran
ran on a synthesized input · constructed an object; no result was computed
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("9ad0358dd430c924")
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, PDEDataset: 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 numpy as np
import json
import os
import tempfile
from datasets import Dataset as HFDataset

torch.manual_seed(0)

# Create a temporary directory to hold the mock dataset
tmpdir = tempfile.mkdtemp()
dataset_path = os.path.join(tmpdir, "mock_dataset")
os.makedirs(dataset_path, exist_ok=True)

# Create mock dataset data
mock_data = {
    'data': [np.random.randn(2, 4, 4).astype(np.float64) for _ in range(8)]
}

# Create HuggingFace Dataset
hf_dataset = HFDataset.from_dict(mock_data)

# Save the dataset to disk
hf_dataset.save_to_disk(dataset_path)

# Create metadata.json
metadata = {
    'name': 'darcy',
    'stats': {
        'mean': [0.5, 0.5],
        'std': [1.0, 1.0]
    },
    '__version__': '1.0'
}

with open(os.path.join(dataset_path, 'metadata.json'), 'w') as f:
    json.dump(metadata, f)

ARGS = {
    'path': dataset_path,
    'offset': 0,
    'resolution': None,
    'max_size': None,
    'shuffle': False,
    'use_labels': False,
    'xflip': False,
    'cache': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PDEDataset — the run constructed an instance of its own class and did not call it; no shape 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
RBFKernel Ran
ran on a synthesized input · constructed an object; no result was computed
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("55a5bbf6c6f4dea1")
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, RBFKernel: 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

torch.manual_seed(0)

ARGS = {
    "in_channels": 3,
    "Ln1": 4,
    "Ln2": 5,
    "scale": 1.0,
    "eps": 0.01,
    "device": 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 RBFKernel — 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 RBFKernel 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
batched_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("f6f36fd9d354adad")
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, 3) 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)

# Construct arguments for batched_loss
# x: a 4D tensor with shape [batch_size, channels, resolution, resolution]
# n_obs: an integer representing number of observations

x = torch.randn(2, 3, 4, 5)  # [batch_size=2, channels=3, resolution=4, resolution=5]
n_obs = 10

ARGS = {
    'x': x,
    'n_obs': n_obs
}
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, 3) — shape (2, 3) 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
get_burgers_residual Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("2c86054a4f79a831")
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 4, dtype family float, shape (2, 1, 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)

# x_pred should be a tensor with shape (batch, channels, height, width)
# The function extracts u_pred = x_pred[:, 1:2], so it needs at least 2 channels
# It then applies 2D convolutions with temporal and spatial kernels
# The tensor needs to be large enough to survive the padding and slicing operations

# Create a small tensor: batch=2, channels=3, height=6, width=5
# This gives us enough spatial dimensions to handle the convolutions and final slicing
x_pred = torch.randn(2, 3, 6, 5, dtype=torch.float64)

ARGS = {
    "x_pred": x_pred,
}
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 4, dtype family float, shape (2, 1, 2, 1) — shape (2, 1, 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
get_darcy_residual Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("336217453f6a14d2")
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 4, dtype family float, shape (2, 1, 0, 0) 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)

# The function expects x_pred to be a tensor with shape (batch_size, 2, height, width)
# where channel 0 is permeability field a and channel 1 is pressure field u
# We'll use a small batch size of 2 and spatial dimensions of 4x4

batch_size = 2
num_channels = 2
spatial_dim = 4

# Create x_pred tensor
# Shape: (batch_size, channels, height, width) = (2, 2, 4, 4)
x_pred = torch.randn(batch_size, num_channels, spatial_dim, spatial_dim, dtype=torch.float64)

ARGS = {
    "x_pred": x_pred
}
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 4, dtype family float, shape (2, 1, 0, 0) — shape (2, 1, 0, 0) 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
get_fixed_coords Ran
ran, honoured the contract we drafted
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("1cc6a2ab17c9f3e2")
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 (35, 2) 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 takes two integer parameters: Ln1 and Ln2
# These are used as steps in torch.linspace to create coordinate grids
# Ln1 and Ln2 should be positive integers representing grid dimensions

Ln1 = 5
Ln2 = 7

ARGS = {
    "Ln1": Ln1,
    "Ln2": Ln2,
}
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 (35, 2) — shape (35, 2) 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
get_helmholtz_residual Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("132b513b6ea8e67b")
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 4, dtype family float, shape (2, 1, 2, 2) 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)

# Construct x_pred: a tensor with shape (batch, channels, height, width)
# batch=2, channels=2 (first is source 'a', second is solution 'u')
# height=4, width=4 for small tensor
batch_size = 2
channels = 2
height = 4
width = 4

x_pred = torch.randn(batch_size, channels, height, width)

ARGS = {
    "x_pred": x_pred
}
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 4, dtype family float, shape (2, 1, 2, 2) — shape (2, 1, 2, 2) 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
get_loss_func Ran
ran; our contract draft was wrong, not the code
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("507e51ab566b1005")
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 function. 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)

ARGS = {
    'loss_type': 'mse'
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
get_ns_bounded_residual Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("3b03fab64964340f")
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 4, dtype family float, shape (2, 1, 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
import torch.nn.functional as F

torch.manual_seed(0)

# x_pred should be a tensor with shape (batch, channels, height, width)
# The function extracts u_pred = x_pred[:, 1:2, :, :] (second channel)
# Then applies 2D convolutions with spatial kernels
# Needs to be at least 3x3 spatial for the padding and slicing to work

x_pred = torch.randn(2, 4, 5, 6, dtype=torch.float64)

ARGS = {
    "x_pred": x_pred
}
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 4, dtype family float, shape (2, 1, 3, 4) — shape (2, 1, 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
get_ns_nonbounded_residual Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("fb5f9dc83a09ffa0")
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 4, dtype family float, shape (2, 1, 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 as nn

torch.manual_seed(0)

# The function expects x_pred to be a tensor
# Looking at the function:
# - x_pred is indexed as x_pred[:, 1:2] to extract vorticity (batch, channel, height, width)
# - It's used with F.conv2d, so needs to be 4D
# - The slicing [:, 1:2] suggests at least 2 channels
# - After convolutions with padding, we index [1:-1, 1:-1] at the end
# - So we need spatial dims > 2, let's use 4x3 spatial dims

# Create a small batch of predictions
# Shape: (batch_size=2, channels=2, height=4, width=3)
x_pred = torch.randn(2, 2, 4, 3, dtype=torch.float64)

ARGS = {
    "x_pred": x_pred
}
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 4, dtype family float, shape (2, 1, 2, 1) — shape (2, 1, 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
get_poisson_residual Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("7eea8f617cd78cdc")
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 4, dtype family float, shape (2, 1, 2, 2) 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 tensor with batch size 2, 2 channels (a and u), and spatial dims 4x4
# Shape: (batch, channels, height, width)
batch_size = 2
num_channels = 2
spatial_dim = 4

x_pred = torch.randn(batch_size, num_channels, spatial_dim, spatial_dim)

ARGS = {
    "x_pred": x_pred
}
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 4, dtype family float, shape (2, 1, 2, 2) — shape (2, 1, 2, 2) 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
huber_loss Ran
ran; our contract draft was wrong, not the code
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("ab891ef221209094")
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, 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)

# Construct arguments for huber_loss function
# x: a tensor of shape that allows reduction over last 2 dimensions
# n_obs: number of observations (scalar)
# delta: threshold parameter (default 1.0)

# Create a tensor with shape (2, 4, 3, 5) so we can reduce over last 2 dims
x = torch.randn(2, 4, 3, 5)

# n_obs should be the total number of observations
n_obs = 2 * 4

# delta uses default value of 1.0, but we can also specify it
delta = 1.0

ARGS = {
    "x": x,
    "n_obs": n_obs,
    "delta": delta
}
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, 4) — shape (2, 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
l1_loss Ran
ran, honoured the contract we drafted
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("e90ea3b7b0c4106e")
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, 3) 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)

# Construct arguments for l1_loss function
# The function takes:
# - x: a tensor that will have torch.sum and torch.abs applied, with dim=(-2, -1)
# - n_obs: a scalar used as divisor

# x should be at least 2D to support dim=(-2, -1) reduction
# Let's make it 4D: (batch=2, channels=3, height=4, width=5)
x = torch.randn(2, 3, 4, 5)

# n_obs is used as a divisor - typically the number of observations
n_obs = 2

ARGS = {
    "x": x,
    "n_obs": n_obs,
}
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, 3) — shape (2, 3) 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
l2_loss Ran
ran, honoured the contract we drafted
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("033caf372281941b")
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, 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)

# Construct arguments for l2_loss
# x: tensor with shape allowing reduction over last 2 dimensions
# n_obs: scalar or int for normalization

x = torch.randn(2, 4, 3, 5)  # batch=2, with last 2 dims being (3, 5)
n_obs = 6

ARGS = {
    "x": x,
    "n_obs": n_obs,
}
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, 4) — shape (2, 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
mse_loss Ran
ran, violated the contract we drafted
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("8be214b363325c85")
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, 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)

# Construct arguments for mse_loss
x = torch.randn(2, 4, 3, 5)  # batch=2, with last two dims being 3 and 5
n_obs = 30  # scalar value for normalization

ARGS = {
    "x": x,
    "n_obs": n_obs
}
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, 4) — shape (2, 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
transform_darcy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("fcb362bbb769848b")
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 4, dtype family float, shape (2, 2, 4, 3) 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 small batch of data with shape (batch, channels, height, width)
# batch=2, channels=2 (a and u), height=4, width=3
x = torch.randn(2, 2, 4, 3)

ARGS = {
    "x": x
}
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 4, dtype family float, shape (2, 2, 4, 3) — shape (2, 2, 4, 3) 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
NoiseSampler Not yet run
unverified (harvested, no recorded run)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("a1ad6aa95472bdcd")
How it ran

no invocation recorded.

PDEObservation Not yet run
unverified (harvested, no recorded run)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("f1e50f2f0c3eb299")
How it ran

no invocation recorded.

PDESolver Not yet run
unverified (harvested, no recorded run)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("187875e852c295f0")
How it ran

no invocation recorded.

PDESolverDPS Not yet run
unverified (harvested, no recorded run)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("831b22b68d561737")
How it ran

no invocation recorded.

SparseObservation Not yet run
unverified (harvested, no recorded run)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("ee86e31974265100")
How it ran

no invocation recorded.

get_observation_class Not yet run
unverified (harvested, no recorded run)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("892f92a74b9d2bfb")
How it ran

no invocation recorded.

get_pde_residual Not yet run
unverified (harvested, no recorded run)
neuraloperator/fundps/generation/dps.py
code served (permissive licence) · get_code("f933ac4c89aec5c5")
How it ran

no invocation recorded.

Also present in other papers' code

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

Repositories linked to this paper

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

Abstract

We propose a general framework for conditional sampling in PDE-based inverse problems, targeting the recovery of whole solutions from extremely sparse or noisy measurements. This is accomplished by a function-space diffusion model and plug-and-play guidance for conditioning. Our method first trains an unconditional discretization-agnostic denoising model using neural operator architectures. At inference, we refine the samples to satisfy sparse observation data via a gradientbased guidance mechanism. Through rigorous mathematical analysis, we extend Tweedie's formula to infinite-dimensional Banach spaces, providing the theoretical foundation for our posterior sampling approach. Our method (FunDPS) accurately captures posterior distribution in function spaces under minimal supervision and severe data scarcity. Across five PDE tasks with only 3% observation, our method achieves an average 32% accuracy improvement over state-of-the-art fixedresolution diffusion baselines while reducing sampling steps by 4x. Furthermore, multi-resolution fine-tuning ensures strong cross-resolution generalizability and speedup. To the best of our knowledge, this is the first diffusion-based framework to operate independently of discretization, offering a practical and flexible solution for forward and inverse problems in the context of PDEs. Code is available at https://github.com/neuraloperator/FunDPS.

For agents

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

get_harvested_code_for_paper("2505.17004")
get_code_for_paper("2505.17004")
have("2505.17004")

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

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

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

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

Connect an agent — have() is free.