SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2507.00846 · NeurIPS · 2025

BoltzNCE: Learning Likelihoods for Boltzmann Generation with Stochastic Interpolants and Noise Contrastive Estimation

Ryan David, Koes, Rishal Aggarwal, Nicholas Boffi, Jacky Chen

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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, 2 violated it and 0 have no contract verdict; 2 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/2507.00846.json · badge: /api/ran/2507.00846.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
RishalAggarwal/BoltzNCE canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
FunctionStatusWhere it lives
args_to_dict Ran
ran; our contract draft was wrong, not the code
RishalAggarwal/BoltzNCE/BoltzNCE/utils/arguments.py
code served (permissive licence) · get_code("ecdd17b39b0ffced")
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 argparse
import torch

# Create a minimal ArgumentParser with groups and actions
parser = argparse.ArgumentParser(description='Test parser')

# Add some options (default group)
parser.add_argument('--learning_rate', type=float, default=0.001)
parser.add_argument('--batch_size', type=int, default=32)

# Add a custom argument group
training_group = parser.add_argument_group('training')
training_group.add_argument('--epochs', type=int, default=10)
training_group.add_argument('--optimizer', type=str, default='adam')

# Add another custom argument group
model_group = parser.add_argument_group('model')
model_group.add_argument('--hidden_dim', type=int, default=64)
model_group.add_argument('--dropout', type=float, default=0.1)

# Parse arguments with default values
args = parser.parse_args([])

ARGS = {
    'args': args,
    'p': parser
}
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
exists Ran
ran, violated the contract we drafted
RishalAggarwal/BoltzNCE/BoltzNCE/models/gvp.py
pointer only (licence: MIT); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
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 ThomasMrY/VCT, 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.

gaussian Ran
ran, violated the contract we drafted
RishalAggarwal/BoltzNCE/BoltzNCE/models/graphormer.py
pointer only (licence: MIT); the stored copy get_code serves, from bowenwang77/DR-Label, is pointer only (licence: NONE) · get_code("294ba20b052bfbc7")
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 bowenwang77/DR-Label, 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.

softmax_dropout Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
RishalAggarwal/BoltzNCE/BoltzNCE/models/graphormer.py
pointer only (licence: MIT); the stored copy get_code serves, from bowenwang77/DR-Label, is pointer only (licence: NONE) · get_code("74ba23674705912e")
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 bowenwang77/DR-Label, 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.

get_args Not yet run
unverified (harvested, no recorded run)
RishalAggarwal/BoltzNCE/BoltzNCE/utils/arguments.py
code served (permissive licence) · get_code("76915d5197f294aa")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 2 later) and 2 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
exists 486 other papers
452 dated earlier, 4 the same month, 26 later, 2 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
gaussian 12 other papers
10 dated earlier, 2 later
2203.04810 (2022-03)
Benchmarking Graphormer on Large-Scale Molecular Modeling Datasets
2210.01765 (2022-10)
One Transformer Can Understand Both 2D & 3D Molecular Data
2301.09505 (2023-01)
Rethinking the Expressive Power of GNNs via Graph Biconnectivity
and 9 more not named here
softmax_dropout 3 other papers
3 dated earlier
2203.04810 (2022-03)
Benchmarking Graphormer on Large-Scale Molecular Modeling Datasets
2301.09505 (2023-01)
Rethinking the Expressive Power of GNNs via Graph Biconnectivity
2303.02875 (2023-03)
DR-Label: Improving GNN Models for Catalysis Systems by Label Deconstruction and Reconstruction

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

Efficient sampling from the Boltzmann distribution given its energy function is a key challenge for modeling complex physical systems such as molecules. Boltzmann Generators address this problem by leveraging continuous normalizing flows to transform a simple prior into a distribution that can be reweighted to match the target using sample likelihoods. Despite the elegance of this approach, obtaining these likelihoods requires computing costly Jacobians during integration, which is impractical for large molecular systems. To overcome this difficulty, we train an energy-based model (EBM) to approximate likelihoods using both noise contrastive estimation (NCE) and score matching, which we show outperforms the use of either objective in isolation. On 2d synthetic systems where failure can be easily visualized, NCE improves mode weighting relative to score matching alone. On alanine dipeptide, our method yields free energy profiles and energy distributions that closely match those obtained using exact likelihoods while achieving 100× faster inference. By training on multiple dipeptide systems, we show that our approach also exhibits effective transfer learning, generalizing to new systems at inference time and achieving at least a 6× speedup over standard MD. While many recent efforts in generative modeling have prioritized models with fast sampling, our work demonstrates the design of models with accelerated likelihoods, enabling the application of reweighting schemes that ensure unbiased Boltzmann statistics at scale. Our code is available at https://github.com/RishalAggarwal/BoltzNCE.

For agents

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

get_harvested_code_for_paper("2507.00846")
get_code_for_paper("2507.00846")
have("2507.00846")

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

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

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

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

Connect an agent — have() is free.