SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.17230 · IJCAI · 2025

MMET: A Multi-Input and Multi-Scale Transformer for Efficient PDEs Solving

Jia Wang, Yu Liu, Yichen Luo, Dapeng Lan, Zhibo Pang

arXiv · PDF · Open in the Atlas

Code that ran

13 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (7 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 8 have no contract verdict; 3 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2506.17230.json · badge: /api/ran/2506.17230.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
YichenLuo-0/MMET community
Papers with Code archive
13 ran · 3 no recorded run
FunctionStatusWhere it lives
Decoder Ran
ran on a synthesized input · constructed an object; no result was computed
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("a1c051050bd5cf88")
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, Decoder: 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

torch.manual_seed(0)

class WaveAct(nn.Module):
    def __init__(self):
        super(WaveAct, self).__init__()
        self.w1 = nn.Parameter(torch.ones(1), requires_grad=True)
        self.w2 = nn.Parameter(torch.ones(1), requires_grad=True)

    def forward(self, x):
        return self.w1 * torch.sin(x) + self.w2 * torch.cos(x)

class MLP(nn.Module):
    def __init__(self, d_input, d_output, d_ff=256):
        super(MLP, self).__init__()
        self.sequential = nn.Sequential(nn.Linear(d_input, d_ff), WaveAct(), nn.Linear(d_ff, d_output))

    def forward(self, x):
        return self.sequential(x)

class DecoderLayer(nn.Module):
    def __init__(self, d_model, num_heads):
        super(DecoderLayer, self).__init__()
        self.attn = torch.nn.MultiheadAttention(d_model, num_heads, batch_first=True)
        self.ff = MLP(d_model, d_model)
        self.layer_norm_1 = nn.LayerNorm(d_model)
        self.layer_norm_2 = nn.LayerNorm(d_model)

    def forward(self, x, encoder_out, mask=None):
        x2 = self.layer_norm_1(x)
        x = x + self.attn(x2, encoder_out, encoder_out, key_padding_mask=~mask.squeeze(-1))[0]
        x2 = self.layer_norm_2(x)
        x = x + self.ff(x2)
        return x

class Decoder(nn.Module):
    def __init__(self, d_model, num_layers, num_heads):
        super(Decoder, self).__init__()
        self.num_layers = num_layers
        self.layers = nn.ModuleList([DecoderLayer(d_model, num_heads) for _ in range(num_layers)])

    def forward(self, x, encoder_out, mask_kv):
        for i in range(self.num_layers):
            x = self.layers[i](x, encoder_out, mask_kv)
        return x

d_model = 4
num_layers = 2
num_heads = 2

batch_size = 2
seq_len_x = 3
seq_len_encoder = 5

x = torch.randn(batch_size, seq_len_x, d_model)
encoder_out = torch.randn(batch_size, seq_len_encoder, d_model)
mask_kv = torch.ones(batch_size, seq_len_encoder, 1, dtype=torch.bool)

ARGS = {
    "d_model": d_model,
    "num_layers": num_layers,
    "num_heads": num_heads,
}
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 Decoder — 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 Decoder 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
DecoderLayer Ran
ran on a synthesized input · constructed an object; no result was computed
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("9268078cec167a5a")
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, DecoderLayer: 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

torch.manual_seed(0)

class WaveAct(nn.Module):
    def __init__(self):
        super(WaveAct, self).__init__()
        self.w1 = nn.Parameter(torch.ones(1), requires_grad=True)
        self.w2 = nn.Parameter(torch.ones(1), requires_grad=True)

    def forward(self, x):
        return self.w1 * torch.sin(x) + self.w2 * torch.cos(x)

class MLP(nn.Module):
    def __init__(self, d_input, d_output, d_ff=256):
        super(MLP, self).__init__()
        self.sequential = nn.Sequential(nn.Linear(d_input, d_ff), WaveAct(), nn.Linear(d_ff, d_output))

    def forward(self, x):
        return self.sequential(x)

class DecoderLayer(nn.Module):
    def __init__(self, d_model, num_heads):
        super(DecoderLayer, self).__init__()
        self.attn = torch.nn.MultiheadAttention(d_model, num_heads, batch_first=True)
        self.ff = MLP(d_model, d_model)
        self.layer_norm_1 = nn.LayerNorm(d_model)
        self.layer_norm_2 = nn.LayerNorm(d_model)

    def forward(self, x, encoder_out, mask=None):
        x2 = self.layer_norm_1(x)
        x = x + self.attn(x2, encoder_out, encoder_out, key_padding_mask=~mask.squeeze(-1))[0]
        x2 = self.layer_norm_2(x)
        x = x + self.ff(x2)
        return x

d_model = 4
num_heads = 2

ARGS = {
    "d_model": d_model,
    "num_heads": num_heads,
}
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 DecoderLayer — 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 DecoderLayer 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
Encoder Ran
ran on a synthesized input · constructed an object; no result was computed
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("bb56bd0f6d39dc82")
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, Encoder: 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

torch.manual_seed(0)

class WaveAct(nn.Module):
    def __init__(self):
        super(WaveAct, self).__init__()
        self.w1 = nn.Parameter(torch.ones(1), requires_grad=True)
        self.w2 = nn.Parameter(torch.ones(1), requires_grad=True)

    def forward(self, x):
        return self.w1 * torch.sin(x) + self.w2 * torch.cos(x)

class MLP(nn.Module):
    def __init__(self, d_input, d_output, d_ff=256):
        super(MLP, self).__init__()
        self.sequential = nn.Sequential(nn.Linear(d_input, d_ff), WaveAct(), nn.Linear(d_ff, d_output))

    def forward(self, x):
        return self.sequential(x)

class EncoderLayer(nn.Module):
    def __init__(self, d_model, num_heads):
        super(EncoderLayer, self).__init__()
        self.attn = torch.nn.MultiheadAttention(d_model, num_heads, batch_first=True)
        self.ff = MLP(d_model, d_model)
        self.layer_norm_1 = nn.LayerNorm(d_model)
        self.layer_norm_2 = nn.LayerNorm(d_model)

    def forward(self, x, mask=None):
        x2 = self.layer_norm_1(x)
        x = x + self.attn(x2, x2, x2, key_padding_mask=~mask.squeeze(-1))[0]
        x2 = self.layer_norm_2(x)
        x = x + self.ff(x2)
        return x

class Encoder(nn.Module):
    def __init__(self, d_model, num_layers, num_heads):
        super(Encoder, self).__init__()
        self.num_layers = num_layers
        self.layers = nn.ModuleList([EncoderLayer(d_model, num_heads) for _ in range(num_layers)])

    def forward(self, x, mask=None):
        for i in range(self.num_layers):
            x = self.layers[i](x, mask)
        return x

d_model = 4
num_layers = 2
num_heads = 2

x = torch.randn(2, 3, d_model)
mask = torch.ones(2, 3, 1, dtype=torch.bool)

ARGS = {
    "d_model": d_model,
    "num_layers": num_layers,
    "num_heads": num_heads,
}
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 Encoder — 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 Encoder 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 · constructed an object; no result was computed
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("6fd35000ae1c6aff")
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, EncoderLayer: 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

torch.manual_seed(0)

class WaveAct(nn.Module):
    def __init__(self):
        super(WaveAct, self).__init__()
        self.w1 = nn.Parameter(torch.ones(1), requires_grad=True)
        self.w2 = nn.Parameter(torch.ones(1), requires_grad=True)

    def forward(self, x):
        return self.w1 * torch.sin(x) + self.w2 * torch.cos(x)

class MLP(nn.Module):
    def __init__(self, d_input, d_output, d_ff=256):
        super(MLP, self).__init__()
        self.sequential = nn.Sequential(nn.Linear(d_input, d_ff), WaveAct(), nn.Linear(d_ff, d_output))

    def forward(self, x):
        return self.sequential(x)

class EncoderLayer(nn.Module):
    def __init__(self, d_model, num_heads):
        super(EncoderLayer, self).__init__()
        self.attn = torch.nn.MultiheadAttention(d_model, num_heads, batch_first=True)
        self.ff = MLP(d_model, d_model)
        self.layer_norm_1 = nn.LayerNorm(d_model)
        self.layer_norm_2 = nn.LayerNorm(d_model)

    def forward(self, x, mask=None):
        x2 = self.layer_norm_1(x)
        x = x + self.attn(x2, x2, x2, key_padding_mask=~mask.squeeze(-1))[0]
        x2 = self.layer_norm_2(x)
        x = x + self.ff(x2)
        return x

d_model = 4
num_heads = 2
batch_size = 2
seq_len = 3

x = torch.randn(batch_size, seq_len, d_model)
mask = torch.ones(batch_size, seq_len, 1, dtype=torch.bool)

ARGS = {
    'd_model': d_model,
    'num_heads': num_heads,
}
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 EncoderLayer — 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 EncoderLayer 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
GCE Ran
ran on a synthesized input · constructed an object; no result was computed
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("dbea0c0e9ec700c1")
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, GCE: 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

torch.manual_seed(0)

# For the GCE module, we need to understand what it expects:
# - bc_dims: a list of dimensions for the different components
# - d_out: output dimension (default 256)

# Looking at the forward method:
# - condition: shape (batch, seq_len, sum(bc_dims))
# - type: a tensor for masking local encodes
# - It extracts global_encode from first bc_dims[0] features
# - It processes remaining features through linear layers
# - Each linear layer expects bc_dim input and outputs bc_dim * 2

# Create a small but valid configuration
bc_dims = [4, 3, 5]  # 3 components with different sizes
d_out = 8

# Total input feature dimension: sum(bc_dims) = 4 + 3 + 5 = 12
# After processing: global (4) + local (3*2 + 5*2) = 4 + 6 + 10 = 20
# This matches what learnable_emb expects: d_input = sum(bc_dims) * 2 - bc_dims[0]
# = (4+3+5)*2 - 4 = 24 - 4 = 20

ARGS = {
    "bc_dims": bc_dims,
    "d_out": d_out,
}
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 GCE — 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 GCE 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
MLP Ran
ran on a synthesized input · constructed an object; no result was computed
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("5b88e56ee8033be9")
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, MLP: 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

torch.manual_seed(0)

ARGS = {
    "d_input": 4,
    "d_output": 3,
    "d_ff": 256
}
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 MLP — 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 MLP 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
PatchEmbedding Ran
ran on a synthesized input · constructed an object; no result was computed
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("35a388a3fe7f597e")
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, PatchEmbedding: 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

torch.manual_seed(0)

# PatchEmbedding takes patch_size as parameter
patch_size = 4

# Create input tensors
batch_size = 2
max_seq_len = 5
d_emb = 3

# x: (batch_size, max_seq_len, d_emb)
x = torch.randn(batch_size, max_seq_len, d_emb)

# masks: (batch_size, max_seq_len, 1)
masks = torch.ones(batch_size, max_seq_len, 1, dtype=torch.float32)

ARGS = {
    'patch_size': patch_size,
}
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 PatchEmbedding — 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 PatchEmbedding 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
WaveAct Ran
ran on a synthesized input
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("cdbf9045323325e3")
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
from torch import nn

class WaveAct(nn.Module):

    def __init__(self):
        super(WaveAct, self).__init__()
        self.w1 = nn.Parameter(torch.ones(1), requires_grad=True)
        self.w2 = nn.Parameter(torch.ones(1), requires_grad=True)

    def forward(self, x):
        return self.w1 * torch.sin(x) + self.w2 * torch.cos(x)


INIT_ARGS = {}

ARGS = {
    'x': torch.randn(2, 4)
}
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)
get_bits Ran
ran; our contract draft was wrong, not the code
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("514f85c5964e0881")
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 (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)

# The function expects:
# - x: a tensor with integer values, shape ending in some dimension
# - depth: an integer representing the number of bits to extract

# Looking at the function body:
# - x.shape[-1] is used to get dims
# - x // 2**i % 2 is used (integer operations on x)
# - x.device is accessed
# The function extracts binary representations of integers

# Create a small integer tensor with shape [4] (dims=4)
x = torch.tensor([5, 12, 3, 15], dtype=torch.int32)

# depth is the number of bits to extract
depth = 3

ARGS = {
    "x": x,
    "depth": depth,
}
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 (4, 3) — shape (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
index Ran
ran, honoured the contract we drafted
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("d1131f0b49544860")
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 int, ndim 0, dtype family int, 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)

ARGS = {
    "x_bit": 1,
    "y_bit": 0,
    "z_bit": 1,
}
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 int, ndim 0, dtype family int, 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
rotate Ran
ran, violated the contract we drafted
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("a26c58cbaba46ba8")
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 tuple, 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

torch.manual_seed(0)

# Construct valid arguments for the rotate function
# The function expects:
# - x_rot: tensor with shape (dims, depth)
# - y_rot: tensor with shape (dims, depth)
# - z_rot: tensor with shape (dims, depth)
# - filter: tensor with shape (dims,) that will be unsqueezed and expanded to (dims, depth)

dims = 4
depth = 3

# Create x_rot, y_rot, z_rot as boolean tensors (since & operator is used with filter)
x_rot = torch.randint(0, 2, (dims, depth), dtype=torch.bool)
y_rot = torch.randint(0, 2, (dims, depth), dtype=torch.bool)
z_rot = torch.randint(0, 2, (dims, depth), dtype=torch.bool)

# Create filter as a 1D boolean tensor with dims elements
filter = torch.randint(0, 2, (dims,), dtype=torch.bool)

ARGS = {
    "x_rot": x_rot,
    "y_rot": y_rot,
    "z_rot": z_rot,
    "filter": filter,
}
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 tuple, ndim 3, dtype family float — a tuple output has no array shape of its own; none is stated
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
serialization Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("c720eda739273a55")
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 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

torch.manual_seed(0)

# Create small coordinate tensors for a batch of 2 sequences with max_seq_len of 4
# Each coordinate has 3 spatial dimensions (x, y, z)
batch_size = 2
max_seq_len = 4
spatial_dims = 3

coords = torch.randn(batch_size, max_seq_len, spatial_dims)

# Create a mask tensor indicating which sequence positions are valid
# Shape: (batch_size, max_seq_len, 1)
mask = torch.tensor([
    [[True], [True], [True], [False]],
    [[True], [True], [False], [False]]
], dtype=torch.bool)

depth = 16
dims_mode = '3d'

ARGS = {
    'coords': coords,
    'mask': mask,
    'depth': depth,
    'dims': dims_mode
}
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 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: none by the harness; any seed is in the setup block
sort_tensor Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("db147d40ad0b2527")
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, 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 valid arguments for sort_tensor
# The function expects:
# - x: a 3D tensor with shape (batch, sequence, d_out)
# - indices: a 2D tensor with shape (batch, sequence) containing indices for gathering

batch_size = 2
sequence_length = 4
d_out = 3

# Create x tensor with shape (batch, sequence, d_out)
x = torch.randn(batch_size, sequence_length, d_out)

# Create indices tensor with shape (batch, sequence)
# Values should be valid indices for the sequence dimension (0 to sequence_length-1)
indices = torch.tensor([
    [0, 2, 1, 3],
    [3, 1, 2, 0]
], dtype=torch.long)

ARGS = {
    'x': x,
    'indices': indices
}
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, 3) — shape (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
MMET Not yet run
unverified (harvested, no recorded run)
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("dd3334c2ab2d9c42")
How it ran

no invocation recorded.

encode Not yet run
unverified (harvested, no recorded run)
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("be6ea4c4439b5a73")
How it ran

no invocation recorded.

normalize Not yet run
unverified (harvested, no recorded run)
YichenLuo-0/MMET/model/mmet.py
code served (permissive licence) · get_code("608d71d88a587b2f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 1 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 15 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
WaveAct
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later · 1 only as an assembly brick
2502.00318 (2025-02)
Sub-Sequential Physics-Informed Learning with State Space Model
2509.04966 (2025-09)
Neuro-Spectral Architectures for Causal Physics-Informed Networks

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

Partial Differential Equations (PDEs) are fundamental for modeling physical systems, yet solving them in a generic and efficient manner using machine learning-based approaches remains challenging due to limited multi-input and multi-scale generalization capabilities, as well as high computational costs. This paper proposes the Multi-input and Multi-scale Efficient Transformer (MMET), a novel framework designed to address the above challenges. MMET decouples mesh and query points as two sequences and feeds them into the encoder and decoder, respectively, and uses a Gated Condition Embedding (GCE) layer to embed input variables or functions with varying dimensions, enabling effective solutions for multi-scale and multi-input problems. Additionally, a Hilbert curve-based reserialization and patch embedding mechanism decrease the input length. This significantly reduces the computational cost when dealing with large-scale geometric models. These innovations enable efficient representations and support multi-scale resolution queries for large-scale and multi-input PDE problems. Experimental evaluations on diverse benchmarks spanning different physical fields demonstrate that MMET outperforms SOTA methods in both accuracy and computational efficiency. This work highlights the potential of MMET as a robust and scalable solution for real-time PDE solving in engineering and physics-based applications, paving the way for future explorations into pre-trained large-scale models in specific domains. This work is open-sourced at https://github.com/YichenLuo-0/MMET.

For agents

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

get_harvested_code_for_paper("2506.17230")
get_code_for_paper("2506.17230")
have("2506.17230")

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

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

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

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

Connect an agent — have() is free.