SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.09323 · ICLR · 2024

BENO: Boundary-embedded Neural Operators for Elliptic PDEs

Tailin Wu, Haixin Wang, Jiaxin Li, Anubhav Dwivedi, Kentaro Hara

arXiv · PDF · Open in the Atlas

Code that ran

5 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 3 failures of our instrument; 4 no recorded run), measured 2026-11-22; 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/2401.09323.json · badge: /api/ran/2401.09323.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
AI4Science-WestlakeU/beno canonical (classifier label)
classifier basis: census
2 ran · 1 no recorded run
ai4science-westlakeu/beno community
Papers with Code archive
3 ran · 3 no recorded run
FunctionStatusWhere it lives
Decoder Ran
ran on a synthesized input
ai4science-westlakeu/beno/BE_MPNN.py
code served (permissive licence) · get_code("bdd576900f6376a0")
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, 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
import torch.nn as nn
from typing import List

def build_mlp(input_size: int, hidden_layer_sizes: List[int], output_size: int=None, output_activation: nn.Module=nn.Identity, activation: nn.Module=nn.ReLU) -> nn.Module:
    layer_sizes = [input_size] + hidden_layer_sizes
    if output_size:
        layer_sizes.append(output_size)
    nlayers = len(layer_sizes) - 1
    act = [activation for i in range(nlayers)]
    act[-1] = output_activation
    mlp = nn.Sequential()
    for i in range(nlayers):
        mlp.add_module('NN-' + str(i), nn.Linear(layer_sizes[i], layer_sizes[i + 1]))
        mlp.add_module('Act-' + str(i), act[i]())
    return mlp

class Decoder(nn.Module):

    def __init__(self, nnode_in: int, nnode_out: int, nmlp_layers: int, mlp_hidden_dim: int, activation: nn.Module):
        super(Decoder, self).__init__()
        self.node_fn = build_mlp(nnode_in, [mlp_hidden_dim for _ in range(nmlp_layers)], nnode_out, activation=activation)
        self.node_fn_inbd = build_mlp(nnode_in, [mlp_hidden_dim for _ in range(nmlp_layers)], nnode_out, activation=activation)

    def forward(self, x: torch.tensor, x_inbd: torch.tensor):
        u1 = self.node_fn(x)
        u2 = self.node_fn_inbd(x_inbd)
        u = u1 + u2
        return u


INIT_ARGS = {
    'nnode_in': 4,
    'nnode_out': 3,
    'nmlp_layers': 2,
    'mlp_hidden_dim': 8,
    'activation': nn.ReLU
}

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

decoder = Decoder(**INIT_ARGS)
output = decoder(**ARGS)
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, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Encoder Ran
ran on a synthesized input
ai4science-westlakeu/beno/BE_MPNN.py
code served (permissive licence) · get_code("2af5dbe8b3fb3afc")
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 tuple. 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 typing import List

def build_mlp(input_size: int, hidden_layer_sizes: List[int], output_size: int=None, output_activation: nn.Module=nn.Identity, activation: nn.Module=nn.ReLU) -> nn.Module:
    layer_sizes = [input_size] + hidden_layer_sizes
    if output_size:
        layer_sizes.append(output_size)
    nlayers = len(layer_sizes) - 1
    act = [activation for i in range(nlayers)]
    act[-1] = output_activation
    mlp = nn.Sequential()
    for i in range(nlayers):
        mlp.add_module('NN-' + str(i), nn.Linear(layer_sizes[i], layer_sizes[i + 1]))
        mlp.add_module('Act-' + str(i), act[i]())
    return mlp

class Encoder(nn.Module):

    def __init__(self, nnode_in_features: int, nnode_out_features: int, nedge_in_features: int, nedge_out_features: int, nmlp_layers: int, mlp_hidden_dim: int, activation: nn.Module):
        super(Encoder, self).__init__()
        self.node_fn = nn.Sequential(*[build_mlp(nnode_in_features, [mlp_hidden_dim for _ in range(nmlp_layers)], nnode_out_features, activation=activation), nn.LayerNorm(nnode_out_features)])
        self.edge_fn = nn.Sequential(*[build_mlp(nedge_in_features, [mlp_hidden_dim for _ in range(nmlp_layers)], nedge_out_features, activation=activation), nn.LayerNorm(nedge_out_features)])
        self.node_fn_inbd = nn.Sequential(*[build_mlp(nnode_in_features, [mlp_hidden_dim for _ in range(nmlp_layers)], nnode_out_features, activation=activation), nn.LayerNorm(nnode_out_features)])
        self.edge_fn_inbd = nn.Sequential(*[build_mlp(nedge_in_features, [mlp_hidden_dim for _ in range(nmlp_layers)], nedge_out_features, activation=activation), nn.LayerNorm(nedge_out_features)])

    def forward(self, x: torch.tensor, edge_features: torch.tensor, x_inbd: torch.tensor, edge_inbd_features: torch.tensor):
        return (self.node_fn(x), self.edge_fn(edge_features), self.node_fn_inbd(x_inbd), self.edge_fn_inbd(edge_inbd_features))


INIT_ARGS = {
    'nnode_in_features': 4,
    'nnode_out_features': 5,
    'nedge_in_features': 3,
    'nedge_out_features': 6,
    'nmlp_layers': 2,
    'mlp_hidden_dim': 8,
    'activation': nn.ReLU
}

ARGS = {
    'x': torch.randn(2, 4),
    'edge_features': torch.randn(2, 3),
    'x_inbd': torch.randn(2, 4),
    'edge_inbd_features': torch.randn(2, 3)
}

encoder = Encoder(**INIT_ARGS)
output = encoder(**ARGS)
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 tuple — a tuple 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
build_mlp Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ai4science-westlakeu/beno/BE_MPNN.py
code served (permissive licence) · get_code("75242456aca1ec7b")
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) and returned Sequential. 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)

ARGS = {
    'input_size': 4,
    'hidden_layer_sizes': [8, 16],
    'output_size': 3,
    'output_activation': nn.Identity,
    'activation': nn.ReLU
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential 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
recursive_index Ran
ran; our contract draft was wrong, not the code
AI4Science-WestlakeU/beno/util.py
code served (permissive licence) · get_code("9e275404aa5e3c6a")
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 torch
import numpy as np

torch.manual_seed(0)

# The function recursively indexes into nested data structures.
# It expects:
# - data: a list/tuple of elements where each element is either:
#   - a tuple (which triggers recursive call)
#   - an indexable object like a tensor or list (which gets indexed with idx)
# - idx: an integer index to apply to non-tuple elements

# Create some indexable objects (tensors)
tensor1 = torch.randn(5, 4)  # 5 samples, 4 features
tensor2 = torch.randn(5, 3)  # 5 samples, 3 features
tensor3 = torch.randn(5, 2)  # 5 samples, 2 features

# Create a nested structure with tuples and tensors
# This tests both the tuple recursion and the indexing
data = [
    tensor1,
    (tensor2, tensor3),
    tensor2
]

idx = 0

ARGS = {
    "data": data,
    "idx": idx
}
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 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
transform_dict Ran
ran; our contract draft was wrong, not the code
AI4Science-WestlakeU/beno/util.py
code served (permissive licence) · get_code("398aeb54fbc373f8")
How it ran

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

import numpy as np
import torch

torch.manual_seed(0)

# Create a dictionary with various data types that can be processed
Dict = {
    'key1': [1.0, 2.0, 3.0, 4.0],
    'key2': [5.0, 6.0, 7.0, 8.0],
    'key3': [9.0, 10.0, 11.0, 12.0]
}

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

no invocation recorded.

InteractionNetwork Not yet run
unverified (harvested, no recorded run)
ai4science-westlakeu/beno/BE_MPNN.py
code served (permissive licence) · get_code("c12241529df7714d")
How it ran

no invocation recorded.

Processor Not yet run
unverified (harvested, no recorded run)
ai4science-westlakeu/beno/BE_MPNN.py
code served (permissive licence) · get_code("fc9804a83b0f802c")
How it ran

no invocation recorded.

plot_vectors Not yet run
unverified (harvested, no recorded run)
AI4Science-WestlakeU/beno/util.py
code served (permissive licence) · get_code("c67b9864a21d4148")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 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
build_mlp
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2002.09405 (2020-02)
Learning to Simulate Complex Physics with Graph Networks
recursive_index 1 other paper
1 later
2402.06716 (2024-02)
Dynamic Graph Information Bottleneck

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-22.

Repositories linked to this paper

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

Abstract

Elliptic partial differential equations (PDEs) are a major class of time-independent PDEs that play a key role in many scientific and engineering domains such as fluid dynamics, plasma physics, and solid mechanics. Recently, neural operators have emerged as a promising technique to solve elliptic PDEs more efficiently by directly mapping the input to solutions. However, existing networks typically cannot handle complex geometries and inhomogeneous boundary values present in the real world. Here we introduce Boundary-Embedded Neural Operators (BENO), a novel neural operator architecture that embeds the complex geometries and inhomogeneous boundary values into the solving of elliptic PDEs. Inspired by classical Green's function, BENO consists of two branches of Graph Neural Networks (GNNs) for interior source term and boundary values, respectively. Furthermore, a Transformer encoder maps the global boundary geometry into a latent vector which influences each message passing layer of the GNNs. We test our model extensively in elliptic PDEs with various boundary conditions. We show that all existing baseline methods fail to learn the solution operator. In contrast, our model, endowed with boundary-embedded architecture, outperforms state-of-the-art neural operators and strong baselines by an average of 60.96%. Our source code can be found https://github.com/AI4Science-WestlakeU/beno.git.

For agents

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

get_harvested_code_for_paper("2401.09323")
get_code_for_paper("2401.09323")
have("2401.09323")

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

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

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

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

Connect an agent — have() is free.