SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.11569 · ICML · 2025

The dark side of the forces: assessing non-conservative force models for atomistic machine learning

Filippo Bigi, Marcel Langer, Michele Ceriotti

arXiv · PDF · Open in the Atlas

Code that ran

9 of 16 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; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 7 no recorded run), measured 2026-11-22; 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.11569.json · badge: /api/ran/2412.11569.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
FAIR-Chem/fairchem canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
MDIL-SNU/SevenNet canonical (classifier label)
classifier basis: census
3 ran · 0 no recorded run
ACEsuit/mace canonical (classifier label)
classifier basis: census
2 ran · 6 no recorded run
metatensor/featomic canonical (classifier label)
classifier basis: census
0 ran · 1 no recorded run
FunctionStatusWhere it lives
all_reduce Ran
ran, honoured the contract we drafted
FAIR-Chem/fairchem/src/fairchem/core/common/distutils.py
pointer only (licence: NOASSERTION) · get_code("eb95a1f84fc1e1e8")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, FAIR-Chem/fairchem (NOASSERTION). 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.

config_initialize Ran
ran, honoured the contract we drafted
MDIL-SNU/SevenNet/sevenn/parse_input.py
code served (permissive licence) · get_code("5be11352a256938d")
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
from typing import Any, Callable, Dict

torch.manual_seed(0)

# Test case 1: Simple key not in config, return default
ARGS_1 = {
    "key": "missing_key",
    "config": {"other_key": "value"},
    "default": 42,
    "conditions": {}
}

# Test case 2: Key in config, no condition, return user_input
ARGS_2 = {
    "key": "learning_rate",
    "config": {"learning_rate": 0.001},
    "default": 0.01,
    "conditions": {}
}

# Test case 3: Key with type condition (int)
ARGS_3 = {
    "key": "batch_size",
    "config": {"batch_size": "32"},
    "default": 16,
    "conditions": {"batch_size": int}
}

# Test case 4: Key with callable condition (lambda)
ARGS_4 = {
    "key": "threshold",
    "config": {"threshold": 0.5},
    "default": 0.1,
    "conditions": {"threshold": lambda x: isinstance(x, float) and 0.0 <= x <= 1.0}
}

# Test case 5: Nested dict with recursive config_initialize
ARGS_5 = {
    "key": "model_config",
    "config": {
        "model_config": {
            "hidden_dim": 128,
            "num_layers": 2
        }
    },
    "default": {
        "hidden_dim": 64,
        "num_layers": 1
    },
    "conditions": {
        "model_config": {
            "hidden_dim": int,
            "num_layers": int
        }
    }
}

# Use the simplest test case
ARGS = ARGS_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
copy_state_dict Ran
ran; our contract draft was wrong, not the code
MDIL-SNU/SevenNet/sevenn/checkpoint.py
code served (permissive licence) · get_code("ad1feb9952020ba2")
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 torch.nn as nn
from typing import Any, Dict, List, Optional, Union
from torch import Tensor

torch.manual_seed(0)

# Create a complex nested state_dict with tensors, dicts, lists, and scalars
nested_state_dict = {
    "layer1": {
        "weight": torch.randn(4, 3),
        "bias": torch.randn(4),
    },
    "layer2": {
        "weight": torch.randn(5, 4),
        "bias": torch.randn(5),
        "nested_list": [
            torch.randn(2, 3),
            {"inner_weight": torch.randn(3, 2)},
        ],
    },
    "metadata": {
        "version": 1,
        "name": "test_model",
        "scalars": [1, 2.5, "string_value"],
    },
    "flat_list": [
        torch.randn(2, 4),
        torch.randn(3, 2),
        {"tensor": torch.randn(1, 5)},
    ],
}

ARGS = {
    "state_dict": nested_state_dict,
}
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 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
divide_and_check_no_remainder Ran
ran, honoured the contract we drafted
FAIR-Chem/fairchem/src/fairchem/core/common/gp_utils.py
pointer only (licence: NONE) · get_code("3ae9ca02160fa96e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, FAIR-Chem/fairchem 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.

error_record_condition Ran
ran, violated the contract we drafted
MDIL-SNU/SevenNet/sevenn/_const.py
code served (permissive licence) · get_code("e0125c28e1884371")
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 bool, 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 torch
import numpy as np

SUPPORTING_METRICS = ['RMSE', 'ComponentRMSE', 'MAE', 'Loss']
SUPPORTING_ERROR_TYPES = ['TotalEnergy', 'Energy', 'Force', 'Stress', 'Stress_GPa', 'TotalLoss', 'L2_modal', 'Modal_cos']

def error_record_condition(x):
    if type(x) is not list:
        return False
    for v in x:
        if type(v) is not list or len(v) != 2:
            return False
        if v[0] not in SUPPORTING_ERROR_TYPES:
            return False
        if v[0] == 'TotalLoss':
            continue
        if v[1] not in SUPPORTING_METRICS:
            return False
    return True

# Valid case: list of [error_type, metric] pairs
valid_x = [
    ['Energy', 'RMSE'],
    ['Force', 'MAE'],
    ['Stress', 'Loss'],
    ['TotalLoss'],
]

ARGS = {
    'x': valid_x
}
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 bool, 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
mask_head Ran
ran; our contract draft was wrong, not the code
ACEsuit/mace/mace/modules/irreps_tools.py
pointer only (licence: NONE); the stored copy get_code serves, from JIABI/mace, is pointer only (licence: NOASSERTION) · get_code("f50f37c0a5425c09")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ACEsuit/mace 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.

pad_input Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
FAIR-Chem/fairchem/src/fairchem/core/common/gp_utils.py
pointer only (licence: NOASSERTION) · get_code("724cb0390dff1053")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, FAIR-Chem/fairchem (NOASSERTION). 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.

reduce_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ACEsuit/mace/mace/modules/loss.py
pointer only (licence: NONE); the stored copy get_code serves, from JIABI/mace, is pointer only (licence: NOASSERTION) · get_code("899373c6ab1c87f0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ACEsuit/mace 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.

separate_run_commands Ran
ran; our contract draft was wrong, not the code
FAIR-Chem/fairchem/src/fairchem/lammps/lammps_fc.py
pointer only (licence: NOASSERTION) · get_code("738582ea823d8164")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, FAIR-Chem/fairchem (NOASSERTION). 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.

build_lora_irreps Not yet run
unverified (harvested, no recorded run)
ACEsuit/mace/mace/modules/lora.py
pointer only (licence: NOASSERTION) · get_code("52736b91eb1963da")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, ACEsuit/mace (NOASSERTION). 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. No invocation recorded.

get_requires_for_build_wheel Not yet run
unverified (harvested, no recorded run)
metatensor/featomic/python/featomic/build-backend/backend.py
code served (permissive licence) · get_code("e2098235f8102b73")
How it ran

no invocation recorded.

inject_LoRAs Not yet run
unverified (harvested, no recorded run)
ACEsuit/mace/mace/modules/lora.py
pointer only (licence: NOASSERTION) · get_code("c8def6f0058240fe")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, ACEsuit/mace (NOASSERTION). 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. No invocation recorded.

linear_out_irreps Not yet run
unverified (harvested, no recorded run)
ACEsuit/mace/mace/modules/irreps_tools.py
pointer only (licence: NOASSERTION) · get_code("3ded1daa0770bc97")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, ACEsuit/mace (NOASSERTION). 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. No invocation recorded.

merge_lora_weights Not yet run
unverified (harvested, no recorded run)
ACEsuit/mace/mace/modules/lora.py
pointer only (licence: NOASSERTION) · get_code("7e34fd3392b920bb")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, ACEsuit/mace (NOASSERTION). 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. No invocation recorded.

select_head Not yet run
unverified (harvested, no recorded run)
ACEsuit/mace/mace/cli/create_lammps_model.py
pointer only (licence: NONE); the stored copy get_code serves, from JIABI/mace, is pointer only (licence: NOASSERTION) · get_code("70fdc6dd466014a6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ACEsuit/mace 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. No invocation recorded.

tp_out_irreps_with_instructions Not yet run
unverified (harvested, no recorded run)
ACEsuit/mace/mace/modules/irreps_tools.py
pointer only (licence: NOASSERTION) · get_code("1fa51ab28bc114a1")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, ACEsuit/mace (NOASSERTION). 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. 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, 9 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 4 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
config_initialize 1 other paper
1 dated earlier
2402.03789 (2024-02)
Scalable Parallel Algorithm for Graph Neural Network Interatomic Potentials in Molecular Dynamics Simulations
copy_state_dict 1 other paper
1 dated earlier
2402.03789 (2024-02)
Scalable Parallel Algorithm for Graph Neural Network Interatomic Potentials in Molecular Dynamics Simulations
divide_and_check_no_remainder 1 other paper
1 later
2608.30682 (2026-08)
Learning Materials Properties from Scarce Labels and Unlabeled Crystals
error_record_condition 1 other paper
1 dated earlier
2402.03789 (2024-02)
Scalable Parallel Algorithm for Graph Neural Network Interatomic Potentials in Molecular Dynamics Simulations
linear_out_irreps 1 other paper
1 dated earlier
2401.10216 (2024-01)
Enabling Efficient Equivariant Operations in the Fourier Basis via Gaunt Tensor Products
mask_head 1 other paper
1 later
2606.15892 (2026-06)
Scalar-pathway fidelity improves physical accuracy in short-range equivariant interatomic potentials
reduce_loss 1 other paper
1 later
2606.15892 (2026-06)
Scalar-pathway fidelity improves physical accuracy in short-range equivariant interatomic potentials
select_head 1 other paper
1 later
2606.15892 (2026-06)
Scalar-pathway fidelity improves physical accuracy in short-range equivariant interatomic potentials
tp_out_irreps_with_instructions 1 other paper
1 dated earlier
2401.16914 (2024-01)
Energy-conserving equivariant GNN for elasticity of lattice architected metamaterials

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-22.

Repositories linked to this paper

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

Abstract

The use of machine learning to estimate the energy of a group of atoms, and the forces that drive them to more stable configurations, has revolutionized the fields of computational chemistry and materials discovery. In this domain, rigorous enforcement of symmetry and conservation laws has traditionally been considered essential. For this reason, interatomic forces are usually computed as the derivatives of the potential energy, ensuring energy conservation. Several recent works have questioned this physically constrained approach, suggesting that directly predicting the forces yields a better trade-off between accuracy and computational efficiency, and that energy conservation can be learned during training. This work investigates the applicability of such nonconservative models in microscopic simulations. We identify and demonstrate several fundamental issues, from ill-defined convergence of geometry optimization to instability in various types of molecular dynamics. Given the difficulty in monitoring and correcting the lack of energy conservation, direct forces should be used with great care. We show that the best approach to exploit the acceleration they afford is to use them in conjunction with conservative forces. A model can be pre-trained efficiently on direct forces, then fine-tuned using backpropagation. At evaluation time, both force types can be used together to avoid unphysical effects while still benefitting almost entirely from the computational efficiency of direct forces.

For agents

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

get_harvested_code_for_paper("2412.11569")
get_code_for_paper("2412.11569")
have("2412.11569")

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

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

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

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

Connect an agent — have() is free.