Papers › Gradient-based Discrete Sampling with Automatic Cyclical Scheduling

Gradient-based Discrete Sampling with Automatic Cyclical Scheduling

27 Feb 2024arXiv:2402.17699archive 2025-07-28

Patrick Pynadath, Riddhiman Bhattacharya, Arun Hariharan, Ruqi Zhang

Discrete distributions, particularly in high-dimensional deep models, are often highly multimodal due to inherent discontinuities. While gradient-based discrete sampling has proven effective, it is susceptible to becoming trapped in local modes due to the gradient information. To tackle this challenge, we propose an automatic cyclical scheduling, designed for efficient and accurate sampling in multimodal discrete distributions. Our method contains three key components: (1) a cyclical step size schedule where large steps discover new modes and small steps exploit each mode; (2) a cyclical balancing schedule, ensuring "balanced" proposals for given step sizes and high efficiency of the Markov chain; and (3) an automatic tuning scheme for adjusting the hyperparameters in the cyclical schedules, allowing adaptability across diverse datasets with minimal tuning. We prove the non-asymptotic convergence and inference guarantee for our method in general discrete distributions. Extensive experiments demonstrate the superiority of our method in sampling complex multimodal discrete distributions.

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="2402.17699")

Code

Syntology Ran 14 of 16 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 14 ran with no contract checked.

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

patrickpynadath1/automatic_cyclical_sampling officialmentioned in papermentioned on GitHubpytorch 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

16 samples harvested; 14 ran; 0 honoured the contract we drafted; 2 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.

14ran
2unverified

Licence: 16 of the 16 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 patrickpynadath1/automatic_cyclical_sampling. “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.

all_binary_choices patrickpynadath1/automatic_cyclical_sampling/block_samplers.py official repository ran fingerprinted no licence file found · pointer only · 4b71b5539fbe3289 · report
avg_hamming patrickpynadath1/automatic_cyclical_sampling/mmd.py official repository ran fingerprinted no licence file found · pointer only · cf3a4e39e2d79a43 · report
calc_probs patrickpynadath1/automatic_cyclical_sampling/multi_modal_ex.py official repository ran no licence file found · pointer only · 2d70133f59562ab2 · report
config_acs_args patrickpynadath1/automatic_cyclical_sampling/config_cmdline.py official repository ran no licence file found · pointer only · 9a0e7a7738621547 · report
conv3x3 patrickpynadath1/automatic_cyclical_sampling/mlp.py official repository ran no licence file found · pointer only · a01b6bf3d5c907c2 · report
conv_transpose_3x3 patrickpynadath1/automatic_cyclical_sampling/mlp.py official repository ran no licence file found · pointer only · abe28c18ca27abc1 · report
evaluate patrickpynadath1/automatic_cyclical_sampling/ais.py official repository ran no licence file found · pointer only · 924730532d5e99f9 · report
exp_avg_hamming patrickpynadath1/automatic_cyclical_sampling/mmd.py official repository ran fingerprinted no licence file found · pointer only · dfc4c4bf9a645098 · report
generate_text_samples patrickpynadath1/automatic_cyclical_sampling/run_text_sampling.py official repository ran no licence file found · pointer only · 101c15272a0d35ca · report
get_modes patrickpynadath1/automatic_cyclical_sampling/multi_modal_ex.py official repository ran fingerprinted no licence file found · pointer only · 63653736074e7a1e · report
hamming_ball patrickpynadath1/automatic_cyclical_sampling/block_samplers.py official repository ran no licence file found · pointer only · 9d0191ea46d3b42e · report
mlp_ebm patrickpynadath1/automatic_cyclical_sampling/mlp.py official repository ran no licence file found · pointer only · 646a9f9fd82940a8 · report
run_sampler_burnin patrickpynadath1/automatic_cyclical_sampling/multi_modal_ex.py official repository ran no licence file found · pointer only · afe25139f1c95e42 · report
scaled_exp_avg_hamming patrickpynadath1/automatic_cyclical_sampling/mmd.py official repository ran no licence file found · pointer only · d5d8e438b37db8df · report
config_acs_pcd_args patrickpynadath1/automatic_cyclical_sampling/config_cmdline.py official repository unverified no licence file found · pointer only · 297b7c3b1a05ee63 · report
get_unique_ngram patrickpynadath1/automatic_cyclical_sampling/run_text_sampling.py official repository unverified no licence file found · pointer only · df8ea1929abb5d9f · report

Tasks

Scheduling

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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