SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.10531 · 2023

How to Train Neural Field Representations: A Comprehensive Study and Benchmark

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 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; 5 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 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/2312.10531.json · badge: /api/ran/2312.10531.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
samuelepapa/fit-a-nef canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
FunctionStatusWhere it lives
FourierNet_key Ran
ran, honoured the contract we drafted
samuelepapa/fit-a-nef/fit_a_nef/nef/mfn.py
code served (permissive licence) · get_code("f90aa88a32a08da9")
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
import torch.nn as nn

torch.manual_seed(0)

class NefConfig:
    def __init__(self, num_filters=8):
        self.num_filters = num_filters
    
    def get(self, key, default=None):
        return getattr(self, key, default)

nef_cfg = NefConfig(num_filters=8)

param_name_bias = "output_linear.bias"
param_name_kernel = "linears_1.kernel"

ARGS = {
    "param_name": param_name_bias,
    "nef_cfg": nef_cfg
}
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
MLP_key Ran
ran, honoured the contract we drafted
samuelepapa/fit-a-nef/fit_a_nef/nef/mlp.py
code served (permissive licence) · get_code("34ec5cf3c7bdb159")
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)

# Analyze the function:
# - param_name: string that gets split and checked for endings like '.bias' or '.kernel'
# - nef_cfg: not used in the function body, but included as a parameter
# 
# The function extracts an index from param_name by:
# 1. Splitting by '.' and taking the first part
# 2. Splitting that by '_' and taking the last part
# 3. Converting to int and multiplying by 2
# 4. Adding 0 if ends with '.bias', 1 if ends with '.kernel'

# Construct valid param_name examples:
# Format should be something like "layer_0.bias" or "layer_0.kernel"
# So splitting by '.' gives ["layer_0", "bias"]
# Taking first part: "layer_0"
# Splitting by '_' gives ["layer", "0"]
# Taking last part: "0"
# int("0") = 0, 0 * 2 = 0

param_name = "layer_0.bias"

# nef_cfg is not used in the function, so it can be any value
nef_cfg = {}

ARGS = {
    "param_name": param_name,
    "nef_cfg": nef_cfg,
}
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
RFFNet_key Ran
ran, honoured the contract we drafted
samuelepapa/fit-a-nef/fit_a_nef/nef/rffnet.py
code served (permissive licence) · get_code("fbdd4ec2ef49c888")
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
import torch.nn as nn

class NEFConfig:
    def __init__(self, num_layers=3):
        self.num_layers = num_layers
    
    def get(self, key, default=None):
        return getattr(self, key, default)

nef_cfg = NEFConfig(num_layers=3)

param_name_1 = 'encoding.weight'
param_name_2 = 'linear_1.bias'
param_name_3 = 'linear_2.kernel'
param_name_4 = 'linear_final.bias'

ARGS = {
    'param_name': param_name_1,
    'nef_cfg': nef_cfg
}
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
SIREN_key Ran
ran, honoured the contract we drafted
samuelepapa/fit-a-nef/fit_a_nef/nef/siren.py
code served (permissive licence) · get_code("ab6bb1b5a31aa804")
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

class MockConfig(dict):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
    
    def get(self, key, default=None):
        return super().get(key, default)

torch.manual_seed(0)

# Test cases for SIREN_key function
# The function parses parameter names and uses nef_cfg.get('num_layers')

# Example 1: output_linear layer with bias
param_name_1 = 'output_linear.bias'
nef_cfg_1 = MockConfig({'num_layers': 5})

# Example 2: hidden layer with kernel
param_name_2 = 'layer_3.kernel'
nef_cfg_2 = MockConfig({'num_layers': 4})

# Example 3: hidden layer with bias
param_name_3 = 'layer_2.bias'
nef_cfg_3 = MockConfig({'num_layers': 6})

# Use the first example for ARGS
ARGS = {
    'param_name': 'output_linear.bias',
    'nef_cfg': MockConfig({'num_layers': 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 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
get_scheduler Ran
ran; our contract draft was wrong, not the code
samuelepapa/fit-a-nef/fit_a_nef/utils.py
code served (permissive licence) · get_code("184421ec2a0f995f")
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 function. 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 optax

ARGS = {
    'scheduler_cfg': {
        'name': 'exponential_decay',
        'params': {
            'init_value': 0.1,
            'transition_steps': 1000,
            'decay_rate': 0.96
        }
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
optax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
kmeans Ran
ran; our contract draft was wrong, not the code
samuelepapa/fit-a-nef/fit_a_nef/metrics.py
code served (permissive licence) · get_code("b7e745ba7a3c5e2b")
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

# Create small feature matrix with shape (N, D)
# N=2 samples, D=4 features
np.random.seed(0)
feats = np.random.randn(2, 4).astype(np.float32)

# Number of clusters
k = 2

# Number of iterations for K-means
niter = 10

# Use GPU (set to False for CPU-only execution)
gpu = False

ARGS = {
    "feats": feats,
    "k": k,
    "niter": niter,
    "gpu": gpu,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
faiss, 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
load_model_cfg Ran
ran; our contract draft was wrong, not the code
samuelepapa/fit-a-nef/fit_a_nef/nef/utils.py
code served (permissive licence) · get_code("2a9f9a789a55f332")
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 json
from pathlib import Path
import tempfile

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()
storage_folder = Path(temp_dir)

# Create a sample nef_cfg.json file
nef_cfg_data = {
    "model_type": "neural_field",
    "hidden_dim": 256,
    "num_layers": 4,
    "activation": "relu",
    "learning_rate": 0.001
}

nef_cfg_path = storage_folder / "nef_cfg.json"
with open(nef_cfg_path, 'w') as f:
    json.dump(nef_cfg_data, f)

ARGS = {
    "storage_folder": storage_folder
}
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 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
nmi Ran
ran; our contract draft was wrong, not the code
samuelepapa/fit-a-nef/fit_a_nef/metrics.py
code served (permissive licence) · get_code("ffb1a8b6883b3ab0")
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 float, ndim 0, dtype family float, 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 numpy as np
import torch

torch.manual_seed(0)
np.random.seed(0)

# Create small feature array (N=2 samples, D=4 dimensions)
feats = np.random.randn(2, 4).astype(np.float32)

# Create labels array matching number of samples
labels = np.array([0, 1], dtype=np.int32)

# Number of clusters
k = 2

# Number of iterations for kmeans
niter = 10

# GPU flag (CPU only)
gpu = False

ARGS = {
    "feats": feats,
    "labels": labels,
    "k": k,
    "niter": niter,
    "gpu": gpu,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
faiss, numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, 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
stack_cut_tensor Ran
ran, honoured the contract we drafted
samuelepapa/fit-a-nef/fit_a_nef/tasks/shape.py
code served (permissive licence) · get_code("a8b82ee78d7112b7")
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 3, dtype family int, shape (3, 100, 8) 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 jax.numpy as jnp
import numpy as np

# Create small test tensors with distinct sizes
tensor1 = jnp.arange(24).reshape(3, 8)  # shape (3, 8)
tensor2 = jnp.arange(32).reshape(4, 8)  # shape (4, 8)
tensor3 = jnp.arange(40).reshape(5, 8)  # shape (5, 8)

tensor_list = [tensor1, tensor2, tensor3]

ARGS = {
    "tensor_list": tensor_list,
    "repeat_upto": 100,
    "shuffle": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (3, 100, 8) — shape (3, 100, 8) 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_optimizer Not yet run
unverified (harvested, no recorded run)
samuelepapa/fit-a-nef/fit_a_nef/utils.py
code served (permissive licence) · get_code("a093ce98da7c4662")
How it ran

no invocation recorded.

simse Not yet run
unverified (harvested, no recorded run)
samuelepapa/fit-a-nef/fit_a_nef/metrics.py
code served (permissive licence) · get_code("5fbf9d2522868465")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 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 11 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

Neural fields (NeFs) have recently emerged as a versatile method for modeling signals of various modalities, including images, shapes, and scenes. Subsequently, a number of works have explored the use of NeFs as representations for downstream tasks, e.g. classifying an image based on the parameters of a NeF that has been fit to it. However, the impact of the NeF hyperparameters on their quality as downstream representation is scarcely understood and remains largely unexplored. This is in part caused by the large amount of time required to fit datasets of neural fields. In this work, we propose a JAX-based library that leverages parallelization to enable fast optimization of large-scale NeF datasets, resulting in a significant speed-up. With this library, we perform a comprehensive study that investigates the effects of different hyperparameters on fitting NeFs for downstream tasks. In particular, we explore the use of a shared initialization, the effects of overtraining, and the expressiveness of the network architectures used. Our study provides valuable insights on how to train NeFs and offers guidance for optimizing their effectiveness in downstream applications. Finally, based on the proposed library and our analysis, we propose Neural Field Arena, a benchmark consisting of neural field variants of popular vision datasets, including MNIST, CIFAR, variants of ImageNet, and ShapeNetv2. Our library and the Neural Field Arena will be open-sourced to introduce standardized benchmarking and promote further research on neural fields.

For agents

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

get_harvested_code_for_paper("2312.10531")
get_code_for_paper("2312.10531")
have("2312.10531")

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

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

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

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

Connect an agent — have() is free.