SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.20888 · 2024

Navigating Chemical-Linguistic Sharing Space with Heterogeneous Molecular Encoding

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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 3 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2412.20888.json · badge: /api/ran/2412.20888.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
Lyu6PosHao/HME canonical (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
FunctionStatusWhere it lives
compute_metrics Ran
ran on a synthesized input
Lyu6PosHao/HME/src/hme/run_classification.py
code served (permissive licence) · get_code("b04bf311f5568191")
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

# Create sample logits and labels for binary classification
# Logits should be of shape (batch_size, 1) as per the docstring
batch_size = 2
logits = np.random.randn(batch_size, 1).astype(np.float32)
labels = np.array([0, 1], dtype=np.int32)

# Construct the eval_preds tuple
eval_preds = (logits, labels)

# Define the ARGS dictionary
ARGS = {
    'eval_preds': eval_preds
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
get_fragments Ran
ran on a synthesized input
Lyu6PosHao/HME/src/hme/frg.py
code served (permissive licence) · get_code("fa02fb45ee1f29e4")
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 str. 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.

class MockNode:
    def __init__(self, smiles):
        self.smiles = smiles


class MockMolecule:
    def __init__(self, nodes_list):
        self.nodes = nodes_list
        self._node_map = {node: MockNode(f"C{i}") for i, node in enumerate(nodes_list)}
    
    def get_node(self, node):
        return self._node_map[node]


mol1 = MockMolecule(['node_0', 'node_1', 'node_2'])
mol2 = MockMolecule(['node_a', 'node_b'])
mol3 = None

ARGS = {
    'mol_list': [mol1, mol2, mol3]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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_json_list Ran
ran on a synthesized input
Lyu6PosHao/HME/src/hme/preprocess_mol.py
code served (permissive licence) · get_code("271e7e74e265eaf2")
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 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 json
import tempfile
import os

# Create a temporary directory and file for testing
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_data.json")

# Create sample JSON data
sample_data = [
    {"id": 1, "name": "Alice", "value": 42},
    {"id": 2, "name": "Bob", "value": 84},
    {"id": 3, "name": "Charlie", "value": 126}
]

# Write the sample data to the temporary file
with open(temp_file, 'w') as f:
    json.dump(sample_data, f)

# Define ARGS with the file path
ARGS = {
    "file_path": temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — 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
parse_PDB Ran
ran; our contract draft was wrong, not the code
Lyu6PosHao/HME/src/hme/preprocess_prot.py
code served (permissive licence) · get_code("c27059fb5e0b78aa")
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 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 numpy as np
import tempfile
import os

# Create a minimal valid PDB file
pdb_content = """ATOM      1  N   ALA A   1       0.000   0.000   0.000  1.00  0.00           N
ATOM      2  CA  ALA A   1       1.458   0.000   0.000  1.00  0.00           C
ATOM      3  C   ALA A   1       2.009   1.390   0.000  1.00  0.00           C
ATOM      4  O   ALA A   1       1.380   2.390   0.000  1.00  0.00           O
ATOM      5  N   GLY A   2       3.309   1.520   0.000  1.00  0.00           N
ATOM      6  CA  GLY A   2       4.050   2.800   0.000  1.00  0.00           C
ATOM      7  C   GLY A   2       5.540   2.630   0.000  1.00  0.00           C
ATOM      8  O   GLY A   2       6.120   1.540   0.000  1.00  0.00           O
END
"""

# Create a temporary PDB file
temp_dir = tempfile.mkdtemp()
pdb_path = os.path.join(temp_dir, "test.pdb")
with open(pdb_path, 'w') as f:
    f.write(pdb_content)

ARGS = {
    'path_to_pdb': pdb_path,
    'input_chain_list': None,
    'ca_only': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — 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
parse_PDB_biounits Ran
ran; our contract draft was wrong, not the code
Lyu6PosHao/HME/src/hme/preprocess_prot.py
code served (permissive licence) · get_code("1f8f228b8a06d784")
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 numpy as np
import tempfile
import os

# Create a minimal valid PDB file
pdb_content = """ATOM      1  N   ALA A   1      10.000  20.000  30.000  1.00  0.00           N
ATOM      2  CA  ALA A   1      11.000  21.000  31.000  1.00  0.00           C
ATOM      3  C   ALA A   1      12.000  22.000  32.000  1.00  0.00           C
ATOM      4  N   GLY A   2      13.000  23.000  33.000  1.00  0.00           N
ATOM      5  CA  GLY A   2      14.000  24.000  34.000  1.00  0.00           C
ATOM      6  C   GLY A   2      15.000  25.000  35.000  1.00  0.00           C
ATOM      7  N   VAL A   3      16.000  26.000  36.000  1.00  0.00           N
ATOM      8  CA  VAL A   3      17.000  27.000  37.000  1.00  0.00           C
ATOM      9  C   VAL A   3      18.000  28.000  38.000  1.00  0.00           C
END
"""

# Write to temporary file
with tempfile.NamedTemporaryFile(mode='w', suffix='.pdb', delete=False) as f:
    f.write(pdb_content)
    pdb_file = f.name

try:
    ARGS = {
        'x': pdb_file,
        'atoms': ['N', 'CA', 'C'],
        'chain': None
    }
finally:
    # Clean up will happen after function execution
    pass
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
parse_fasta Ran
ran; our contract draft was wrong, not the code
Lyu6PosHao/HME/src/hme/preprocess_prot.py
code served (permissive licence) · get_code("cc287b7f78ecb5e5")
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 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 tempfile
import os
import numpy as np

# Create a temporary FASTA file
temp_dir = tempfile.mkdtemp()
fasta_file = os.path.join(temp_dir, "test.fasta")

with open(fasta_file, 'w') as f:
    f.write(">sequence1\n")
    f.write("ACGTACGT\n")
    f.write(">sequence2\n")
    f.write("TGCATGCA\n")
    f.write(">sequence3\n")
    f.write("AAGGCCTT\n")

ARGS = {
    'filename': fasta_file,
    'limit': -1,
    'omit': []
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, 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
build_molecule_qa_input Not yet run
unverified (harvested, no recorded run)
Lyu6PosHao/HME/src/hme/data.py
code served (permissive licence) · get_code("c9f03d843e6f832a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 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, 3 later) and 4 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
parse_PDB 4 other papers
3 dated earlier, 1 later
2401.06151 (2024-01)
Towards Joint Sequence-Structure Generation of Nucleic Acid and Protein Complexes with SE(3)-Discrete Diffusion
2406.03141 (2024-06)
Floating Anchor Diffusion Model for Multi-motif Scaffolding
2411.10618 (2024-11)
D-Flow: Multi-modality Flow Matching for D-peptide Design
and 1 more not named here
parse_PDB_biounits 4 other papers
3 dated earlier, 1 later
2401.06151 (2024-01)
Towards Joint Sequence-Structure Generation of Nucleic Acid and Protein Complexes with SE(3)-Discrete Diffusion
2406.03141 (2024-06)
Floating Anchor Diffusion Model for Multi-motif Scaffolding
2411.10618 (2024-11)
D-Flow: Multi-modality Flow Matching for D-peptide Design
and 1 more not named here
parse_fasta 2 other papers
1 dated earlier, 1 later
2401.06151 (2024-01)
Towards Joint Sequence-Structure Generation of Nucleic Acid and Protein Complexes with SE(3)-Discrete Diffusion
2503.00089 (2025-03)
Protein Structure Tokenization: Benchmarking and New Recipe

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

Chemical language models (CLMs) are prominent for their effectiveness in exploring chemical space and enabling molecular engineering. However, while exploring chemical-linguistic space, CLMs suffer from the gap between natural language and molecular representations. This challenge is primarily due to the inherent modeling differences between molecules and texts: molecules operate unified modeling to learn chemical space, while natural language sequentially models the semantic space. Additionally, the limited availability of high-quality text-to-molecule datasets further exacerbates this challenge. To address the problem, we first verified the information bias in molecular representations from different perspectives. We then developed the Heterogeneous Molecular Encoding (HME) framework, a unified molecular encoder compressing the molecular features from fragment sequence, topology, and conformation with Q-learning. To better model chemical-linguistic space, we further constructed the MCMoD dataset, which contains over one million molecules with various conditions, including properties, fragments, and descriptions. Experimentally, HME promotes CLMs to achieve chemical-linguistic sharing space exploration: (1) chemical space exploration with linguistic guidance, where HME achieves significant improvements (+8.9\% FCD) for molecular design in multiple constraints, even in zero-shot scenarios; (2) linguistic space exploration with molecular guidance, where HME generates textual descriptions with high qualities (+11.6\% BLEU) for molecules. These results highlight the precision of HME in handling multi-objective and cross-domain tasks, as well as its remarkable generalization capability on unseen task combinations. HME offers a new perspective on navigating chemical-linguistic sharing space, advancing the potential of CLMs in both fundamental research and practical applications in chemistry.

For agents

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

get_harvested_code_for_paper("2412.20888")
get_code_for_paper("2412.20888")
have("2412.20888")

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

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

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

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

Connect an agent — have() is free.