SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2212.13120 · 2022

Neural Structure Fields with Application to Crystal Structure Autoencoders

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 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 6 have no contract verdict; 0 failures of our instrument; 0 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/2212.13120.json · badge: /api/ran/2212.13120.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
omron-sinicx/neural-structure-field canonical (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
FunctionStatusWhere it lives
generate_global_grid_points Ran
ran on a synthesized input
omron-sinicx/neural-structure-field/src/utils.py
code served (permissive licence) · get_code("70633b30bf724b2c")
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 (216, 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 takes:
# - bounding_box: a tuple of (pos_min, pos_max) where each is a 3D position
# - interval: a scalar step size for the grid

# Create a bounding box with two 3D points
pos_min = torch.tensor([0.0, 0.0, 0.0])
pos_max = torch.tensor([2.0, 2.0, 2.0])
bounding_box = (pos_min, pos_max)

# Create an interval for grid spacing
interval = 0.5

ARGS = {
    "bounding_box": bounding_box,
    "interval": interval,
}
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 (216, 3) — shape (216, 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
generate_local_grid_points Ran
ran on a synthesized input
omron-sinicx/neural-structure-field/src/utils.py
code served (permissive licence) · get_code("4fa9d8c5a34bc041")
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 (64, 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)

ARGS = {
    "interval": 0.5,
    "range": 2.0
}
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 (64, 3) — shape (64, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_repeated_query_batch Ran
ran on a synthesized input
omron-sinicx/neural-structure-field/src/utils.py
code served (permissive licence) · get_code("20d0ac15fe11b125")
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 DataBatch. 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_geometric.data import Data
from torch_geometric.data.batch import Batch

torch.manual_seed(0)

# The function expects:
# - batch_size: int
# - query: tensor with shape[1] == 3

batch_size = 2
query = torch.randn(4, 3)  # 4 rows, 3 columns (required by assert)

ARGS = {
    "batch_size": batch_size,
    "query": query,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataBatch — a DataBatch 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
process_entry Ran
ran on a synthesized input
omron-sinicx/neural-structure-field/src/dataset_generation/02_extract_structures.py
code served (permissive licence) · get_code("a350aed21b86f515")
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 torch
import numpy as np

# Create a minimal structure object (the function just stores it, doesn't call methods on it)
class Structure:
    def __init__(self):
        self.lattice = np.eye(3)
        self.sites = []

# Create a minimal symmetry object (the function just stores it, doesn't call methods on it)
class Symmetry:
    def __init__(self):
        self.space_group = "P1"
        self.number = 1

# Construct a valid entry dictionary with all required fields
e = {
    'material_id': 'mp-12345',
    'structure': Structure(),
    'formula_anonymous': 'AB2',
    'symmetry': Symmetry(),
    'formation_energy_per_atom': -2.5
}

ARGS = {
    'e': e
}
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
process_entry Ran
ran on a synthesized input
omron-sinicx/neural-structure-field/src/dataset_generation/04_01_select_materials_by_cell.py
code served (permissive licence) · get_code("1a8e043fe0269a5b")
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 numpy as np

class Lattice:
    def __init__(self, a, b, c, matrix):
        self.a = a
        self.b = b
        self.c = c
        self.matrix = matrix

class ConventionalCellStructure:
    def __init__(self, lattice):
        self.lattice = lattice

# Create a lattice with valid dimensions (all less than max_lattice_length=6)
# and matrix values greater than min_lattice_coord=-0.1
lattice_matrix = np.array([
    [3.0, 0.2, 0.1],
    [0.1, 4.0, 0.2],
    [0.2, 0.1, 5.0]
])

lattice = Lattice(
    a=3.0,
    b=4.0,
    c=5.0,
    matrix=lattice_matrix
)

conventional_cell_structure = ConventionalCellStructure(lattice)

# Create the entry tuple
entry = "test_entry"
e = (entry, conventional_cell_structure)

ARGS = {
    "e": e
}
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 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
process_file Ran
ran on a synthesized input
omron-sinicx/neural-structure-field/src/dataset_generation/02_extract_structures.py
code served (permissive licence) · get_code("47e6d373a8ee71e9")
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 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 os
import pickle
import tempfile
from pathlib import Path

# Set up temporary directories for testing
temp_dir = tempfile.mkdtemp()
data_path = Path(temp_dir) / 'data'
structure_path = data_path / 'structures'
structure_path.mkdir(parents=True, exist_ok=True)

# Create a mock pickle file with test entries
test_entries = [
    {
        'material_id': 'mp-1',
        'structure': {'lattice': [[3.0, 0, 0], [0, 3.0, 0], [0, 0, 3.0]], 'sites': []},
        'formula_anonymous': 'A',
        'symmetry': {'crystal_system': 'cubic'},
        'formation_energy_per_atom': -1.5
    },
    {
        'material_id': 'mp-2',
        'structure': {'lattice': [[4.0, 0, 0], [0, 4.0, 0], [0, 0, 4.0]], 'sites': []},
        'formula_anonymous': 'B2',
        'symmetry': {'crystal_system': 'cubic'},
        'formation_energy_per_atom': -2.3
    },
    {
        'material_id': 'mp-3',
        'structure': None,
        'formula_anonymous': 'C',
        'symmetry': {'crystal_system': 'tetragonal'},
        'formation_energy_per_atom': -0.8
    },
]

input_path = data_path / 'input.pkl'
input_path.parent.mkdir(parents=True, exist_ok=True)

with open(input_path, 'wb') as f:
    pickle.dump(test_entries, f)

ARGS = {
    'path': input_path,
    'structure_path': structure_path,
}
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 tuple, ndim 1, dtype family int — 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

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

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

Representing crystal structures of materials to facilitate determining them via neural networks is crucial for enabling machine-learning applications involving crystal structure estimation. Among these applications, the inverse design of materials can contribute to explore materials with desired properties without relying on luck or serendipity. We propose neural structure fields (NeSF) as an accurate and practical approach for representing crystal structures using neural networks. Inspired by the concepts of vector fields in physics and implicit neural representations in computer vision, the proposed NeSF considers a crystal structure as a continuous field rather than as a discrete set of atoms. Unlike existing grid-based discretized spatial representations, the NeSF overcomes the tradeoff between spatial resolution and computational complexity and can represent any crystal structure. We propose an autoencoder of crystal structures that can recover various crystal structures, such as those of perovskite structure materials and cuprate superconductors. Extensive quantitative results demonstrate the superior performance of the NeSF compared with the existing grid-based approach.

For agents

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

get_harvested_code_for_paper("2212.13120")
get_code_for_paper("2212.13120")
have("2212.13120")

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

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

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

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

Connect an agent — have() is free.