SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.01625 · 2026

PRIME: Protein Representation via Physics-Informed Multiscale Equivariant Hierarchies

Duy Nguyen, Truong-Son Hy, Viet Thanh, John Johnstone

arXiv · PDF

Code that ran

9 of 10 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; 4 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/2605.01625.json · badge: /api/ran/2605.01625.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
HySonLab/PRIME canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
collate_fn Ran
ran; our contract draft was wrong, not the code
HySonLab/PRIME/plm_baseline.py
code served (permissive licence) · get_code("890ccf93ef063709")
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 a batch of dictionaries, each containing 'emb' and 'label' tensors
batch = [
    {
        'emb': torch.randn(4),  # embedding vector of dimension 4
        'label': torch.tensor(0)  # scalar label
    },
    {
        'emb': torch.randn(4),  # embedding vector of dimension 4
        'label': torch.tensor(1)  # scalar label
    }
]

ARGS = {
    'batch': batch
}
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
collect_attention_weights Ran
ran, honoured the contract we drafted
HySonLab/PRIME/visualize_attention.py
code served (permissive licence) · get_code("df3b20eb658d3f76")
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 ndarray, 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
import torch.nn as nn
import numpy as np
from unittest.mock import Mock

torch.manual_seed(0)

# Define a minimal model that satisfies the function's usage
class MinimalGraphModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def forward(self, graph, return_attn=False):
        # graph is expected to be a dict or object with some data
        # We need to return (output, attention) when return_attn=True
        batch_size = 2
        seq_len = 3
        
        # Create dummy output and attention weights
        output = torch.randn(batch_size, seq_len, 4)
        attn = torch.randn(1, seq_len)  # Attention weights that will be squeezed(0)
        
        if return_attn:
            return output, attn
        return output

# Create model instance
model = MinimalGraphModel()

# Create a minimal loader with batches of samples
# Each sample should have a 'graph' key based on the function usage
batch1 = [
    {'graph': {'nodes': torch.randn(3, 4)}, 'label': 0},
    {'graph': {'nodes': torch.randn(3, 4)}, 'label': 1},
]

batch2 = [
    {'graph': {'nodes': torch.randn(3, 4)}, 'label': 0},
    {'graph': {'nodes': torch.randn(3, 4)}, 'label': 1},
]

loader = [batch1, batch2]

ARGS = {
    'model': model,
    'loader': loader,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, 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
evaluate Ran
ran, honoured the contract we drafted
HySonLab/PRIME/plm_baseline.py
code served (permissive licence) · get_code("fddb0ea79ee68552")
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 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Define a minimal model that implements forward()
class MinimalModel(nn.Module):
    def __init__(self, emb_dim=4, num_classes=3):
        super().__init__()
        self.linear = nn.Linear(emb_dim, num_classes)
    
    def forward(self, x):
        return self.linear(x)

# Create the model
model = MinimalModel(emb_dim=4, num_classes=3)

# Create a minimal data loader (list of (embeddings, labels) tuples)
# Batch size 2, embedding dimension 4, 3 classes
loader = [
    (torch.randn(2, 4), torch.tensor([0, 1])),
    (torch.randn(2, 4), torch.tensor([2, 0])),
]

# Create a criterion (loss function)
criterion = nn.CrossEntropyLoss()

# Device (CPU only)
device = 'cpu'

ARGS = {
    'model': model,
    'loader': loader,
    'criterion': criterion,
    'device': device,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
get_activation Ran
ran; our contract draft was wrong, not the code
HySonLab/PRIME/models/classification_head.py
code served (permissive licence) · get_code("60c78926c622999d")
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 ReLU. 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 = {
    'name': 'relu'
}
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 ReLU — a ReLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ReLU 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_edges Ran
ran, honoured the contract we drafted
HySonLab/PRIME/models/egnn.py
code served (permissive licence) · get_code("c2f9c401f5379aac")
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, ndim 2, dtype family int; 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)

def get_edges(n_nodes):
    rows, cols = ([], [])
    for i in range(n_nodes):
        for j in range(n_nodes):
            if i != j:
                rows.append(i)
                cols.append(j)
    edges = [rows, cols]
    return edges

ARGS = {
    "n_nodes": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family int — a list 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
train_epoch Ran
ran, honoured the contract we drafted
HySonLab/PRIME/plm_baseline.py
code served (permissive licence) · get_code("99ce6594cd4b4a1e")
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 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import torch.optim as optim

torch.manual_seed(0)

# Define a small model
class SimpleModel(nn.Module):
    def __init__(self, input_dim, num_classes):
        super().__init__()
        self.linear = nn.Linear(input_dim, num_classes)
    
    def forward(self, x):
        return self.linear(x)

# Create model
model = SimpleModel(input_dim=4, num_classes=3)

# Create optimizer
optimizer = optim.SGD(model.parameters(), lr=0.01)

# Create criterion
criterion = nn.CrossEntropyLoss()

# Create a small data loader (list of (embs, labels) tuples)
loader = [
    (torch.randn(2, 4), torch.randint(0, 3, (2,))),
    (torch.randn(2, 4), torch.randint(0, 3, (2,))),
]

# Set device to CPU
device = 'cpu'

ARGS = {
    'model': model,
    'loader': loader,
    'optimizer': optimizer,
    'criterion': criterion,
    'device': device,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
train_one_epoch Ran
ran on a synthesized input
HySonLab/PRIME/train_prime.py
code served (permissive licence) · get_code("72d1a5a69354f146")
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 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from torch.optim import Adam

torch.manual_seed(0)

# Minimal model that accepts a graph and outputs logits
class DummyGraphModel(nn.Module):
    def __init__(self, output_size=1):
        super().__init__()
        self.linear = nn.Linear(4, output_size)
    
    def forward(self, graph):
        # graph is a dict with 'x' and 'edge_index'
        x = graph['x']
        return self.linear(x.mean(dim=0, keepdim=True))

# Minimal metric class that tracks updates and computes
class DummyMetric:
    def __init__(self):
        self.preds = []
        self.labels = []
    
    def reset(self):
        self.preds = []
        self.labels = []
    
    def update(self, preds, labels):
        self.preds.append(preds)
        self.labels.append(labels)
    
    def compute(self):
        return torch.tensor(0.5)

# Create dummy graph samples
def create_dummy_graph():
    return {
        'x': torch.randn(3, 4),
        'edge_index': torch.randint(0, 3, (2, 4))
    }

def create_node_sample():
    return {
        'graph': create_dummy_graph(),
        'label': torch.tensor(1.0)
    }

def create_graph_sample(num_classes=2):
    return {
        'graph': create_dummy_graph(),
        'label': 0
    }

# Build loader with 2 samples
loader = [
    [create_graph_sample(), create_graph_sample()],
    [create_graph_sample(), create_graph_sample()]
]

# Build arguments
ARGS = {
    'model': DummyGraphModel(output_size=2),
    'loader': loader,
    'optimizer': Adam([torch.randn(4, 2, requires_grad=True)]),
    'criterion': nn.CrossEntropyLoss(),
    'device': 'cpu',
    'task_type': 'classification',
    'num_classes': 2,
    'metric': DummyMetric(),
    'grad_clip': 1.0,
    'task_level': 'graph'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
unsorted_segment_mean Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HySonLab/PRIME/models/egnn.py
code served (permissive licence) · get_code("bc66f19be57720e7")
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)

# Create sample data tensor with shape (batch_size, feature_dim)
# Using distinct sizes: 2 for batch, 4 for features
data = torch.randn(2, 4)

# Create segment_ids tensor that maps each data point to a segment
# Values should be in range [0, num_segments)
segment_ids = torch.tensor([0, 1])

# Number of segments to aggregate into
num_segments = 2

ARGS = {
    "data": data,
    "segment_ids": segment_ids,
    "num_segments": num_segments,
}
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
unsorted_segment_sum Ran
ran; our contract draft was wrong, not the code
HySonLab/PRIME/models/egnn.py
pointer only (licence: MIT); the stored copy get_code serves, from ZhangGroup-MITChemistry/Schake_GNN, is pointer only (licence: NONE) · get_code("5fb62a78eb65d3d7")
How it ran

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

evaluate Not yet run
unverified (harvested, no recorded run)
HySonLab/PRIME/train_prime.py
code served (permissive licence) · get_code("e74e991ea6639f67")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 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
unsorted_segment_mean 20 other papers
20 dated earlier · 1 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2102.09844 (2021-02)
E(n) Equivariant Graph Neural Networks
2110.14811 (2021-10)
SE(3) Equivariant Graph Neural Networks with Complete Local Frames
and 17 more not named here
unsorted_segment_sum 19 other papers
19 dated earlier · 2 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1906.02547 (2019-06)
Combining Generative and Discriminative Models for Hybrid Inference
2102.09844 (2021-02)
E(n) Equivariant Graph Neural Networks
and 16 more not named here
get_edges 5 other papers
5 dated earlier
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2207.08824 (2022-07)
Energy-Motivated Equivariant Pretraining for 3D Molecular Graphs
aaai_25978 (2023 (year only))
Energy-Motivated Equivariant Pretraining for 3D Molecular Graphs
and 2 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

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

Abstract

Proteins are inherently multiscale physical systems whose functional properties emerge from coordinated structural organization across multiple spatial resolutions, ranging from atomic interactions to global fold topology. However, existing protein representation learning methods typically operate at a single structural level or treat different sources of structural information as parallel modalities, without explicitly modeling their hierarchical relationships. We introduce PRIME (Protein Representation via Physics-Informed Multiscale Equivariant Hierarchies), a unified framework that models proteins as a nested family of five physically grounded structural graphs spanning surface, atomic, residue, secondary-structure, and protein levels. Adjacent levels are connected through deterministic, physics-informed assignment operators, enabling bidirectional information exchange via bottom-up aggregation and top-down contextual refinement. Experiments on standard protein representation learning benchmarks demonstrate strong and competitive performance across diverse tasks, with particularly notable gains on the Fold Classification benchmark, where PRIME outperforms the strongest geometric GNN baseline by margins of 13.80 and 18.30 points on the harder Superfamily and Fold splits, and achieves a state-of-the-art accuracy of 84.10% on Reaction Class prediction, surpassing all baseline methods, including ESM. Ablation studies confirm that each structural level contributes complementary and non-redundant information, and adaptive cross-attention analysis reveals that PRIME autonomously identifies the most task-relevant structural resolutions at prediction time. Our source code is publicly available at https://github.com/HySonLab/PRIME.

For agents

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

get_harvested_code_for_paper("2605.01625")
get_code_for_paper("2605.01625")
have("2605.01625")

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

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

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

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

Connect an agent — have() is free.