Papers › Training Neural Samplers with Reverse Diffusive KL Divergence

Training Neural Samplers with Reverse Diffusive KL Divergence

16 Oct 2024arXiv:2410.12456archive 2025-07-28

Jiajun He, Wenlin Chen, Mingtian Zhang, David Barber, José Miguel Hernández-Lobato

Training generative models to sample from unnormalized density functions is an important and challenging task in machine learning. Traditional training methods often rely on the reverse Kullback-Leibler (KL) divergence due to its tractability. However, the mode-seeking behavior of reverse KL hinders effective approximation of multi-modal target distributions. To address this, we propose to minimize the reverse KL along diffusion trajectories of both model and target densities. We refer to this objective as the reverse diffusive KL divergence, which allows the model to capture multiple modes. Leveraging this objective, we train neural samplers that can efficiently generate samples from the target distribution in one step. We demonstrate that our method enhances sampling performance across various Boltzmann distributions, including both synthetic multi-modal densities and n-body particle systems.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.12456")

Code

Syntology Ran 12 of 17 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 9 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jiajunhe98/DiKL officialmentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 12 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
1ran · fixture could not drive it
9ran
5unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from jiajunhe98/DiKL. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

cubic_spline jiajunhe98/DiKL/DiKL/energy/lj.py official repository ran MIT (permissive) · 6a4f0d967a8cb434 · report
get_distance jiajunhe98/DiKL/DiKL/evaluation/metric.py official repository ran MIT (permissive) · 6c7ab62a76e76d23 · report
get_target_log_prob_marginal_pair_alt jiajunhe98/DiKL/DiKL/energy/mw.py official repository ran MIT (permissive) · a17ca029536b3a01 · report
lennard_jones_energy_torch jiajunhe98/DiKL/DiKL/energy/lj.py official repository ran MIT (permissive) · 5cf4b7554f0be361 · report
make_beta_schedule jiajunhe98/DiKL/DiKL/models/dm_utils.py official repository ran MIT (permissive) · b19cfb790c935cfa · report
remove_mean jiajunhe98/DiKL/DiKL/models/dm_utils.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · e63616b709d7b674 · report
sample_from_array jiajunhe98/DiKL/DiKL/energy/lj.py official repository ran fingerprinted MIT (permissive) · 97f8fa3693aa3225 · report
target_density_and_grad_fn_full jiajunhe98/DiKL/DiKL/sampler/ais.py official repository ran MIT (permissive) · 99db9eab31a4b281 · report
total_variation_distance jiajunhe98/DiKL/DiKL/evaluation/metric.py official repository ran MIT (permissive) · c0348b436c7ff544 · report
unsorted_segment_mean jiajunhe98/DiKL/DiKL/models/egnn.py official repository ran · fixture could not drive it MIT (permissive) · bc66f19be57720e7 · report
unsorted_segment_sum jiajunhe98/DiKL/DiKL/models/egnn.py official repository ran · our draft was wrong MIT (permissive) · dfdf6dc1a0720e57 · report
wasserstein jiajunhe98/DiKL/DiKL/evaluation/optimal_transport.py official repository ran MIT (permissive) · 6f5bee0c5377e751 · report
AIS jiajunhe98/DiKL/DiKL/sampler/ais.py official repository unverified MIT (permissive) · 9d543034eb6d9ec3 · report
extract jiajunhe98/DiKL/DiKL/models/dm_utils.py official repository unverified MIT (permissive) · 37d26b88d3365920 · report
get_network jiajunhe98/DiKL/DiKL/train_utils.py official repository unverified MIT (permissive) · ff8886e0aa6b6e69 · report
get_sample jiajunhe98/DiKL/DiKL/train_utils.py official repository unverified MIT (permissive) · b1acbf2faa52b3e8 · report
get_target jiajunhe98/DiKL/DiKL/train_utils.py official repository unverified MIT (permissive) · 3c1b0fd4fe0ce00b · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections