Papers › BlockGen: Flexible Blockwise Sequence Modeling with Hybrid Samplers

BlockGen: Flexible Blockwise Sequence Modeling with Hybrid Samplers

1 Jun 2026arXiv:2606.02241added by Syntology

Justin Deschenaux, Caglar Gulcehre

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Is the uniform-state diffusion framework a more powerful paradigm for discrete diffusion? Recent studies indicate that this may be the case. In combination with predictor-corrector samplers, uniform-state diffusion models (USDMs) produce samples of higher-quality than masked diffusion models (MDMs), and USDMs equal or outperform MDMs in downstream tasks, even though they exhibit greater perplexity. Two issues remain unresolved. First, existing work compares uniform and masked diffusion with un-informed correctors that re-inject noise at random positions, rather than targeting tokens most likely to be wrong. Second, prior work compares full-sequence diffusion models, so we do not know whether the same conclusion holds when tokens are generated block by block. To address these issues, we introduce BlockGen, a blockwise sequence model that we instantiate with both masked and uniform diffusion. BlockGen trains on a mixture of block sizes and its likelihood interpolates between AR and pure diffusion more finely than models with a fixed block size. BlockGen enables AR-informed predictor-corrector sampling (ARPC), which combines AR and diffusion predictions to re-generate unlikely tokens without an auxiliary verifier. Under ancestral sampling, uniform outperforms masked in the block-by-block setting, especially in the few-step regime. Under ARPC, the gap closes and reverses at high NFE. With block size $16$ on GSM8K, MDMs reach slightly higher accuracy than USDMs, and we observe a similar trend in Generative Perplexity on OpenWebText. Find our code at https://github.com/jdeschena/blockgen.

PaperPDFCode 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="2606.02241")

Code

Syntology Ran 12 of 18 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · fixture could not drive it; 10 ran with no contract checked.

By repository: found in paper text by Syntology: 18 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.

jdeschena/blockgen found in paper text by Syntology report

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

18 samples harvested; 12 ran; 1 honoured the contract we drafted; 6 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.

1ran · honoured contract
1ran · fixture could not drive it
10ran
6unverified

Licence: 18 of the 18 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 jdeschena/blockgen. “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.

bias_dropout_add_scale jdeschena/blockgen/models/dit.py found in paper text by Syntology ran · fixture could not drive it fingerprinted no licence file found · pointer only · fbbc6722b74bda27 · report
evaluate_samples jdeschena/blockgen/sandbox_gsm8k.py found in paper text by Syntology ran no licence file found · pointer only · 3e1d14952db2c876 · report
get_bias_dropout_add_scale jdeschena/blockgen/models/dit.py found in paper text by Syntology ran no licence file found · pointer only · 06d2d8e50f91481f · report
get_noise jdeschena/blockgen/noise_schedules.py found in paper text by Syntology ran no licence file found · pointer only · 6214e0180e3a7ed6 · report
is_safetensors_spec jdeschena/blockgen/loading.py found in paper text by Syntology ran no licence file found · pointer only · e537f9c94d54bc23 · report
lm1b_detokenizer jdeschena/blockgen/dataloader.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 576e1b9b9bcae8ff · report
load_from_safetensors jdeschena/blockgen/loading.py found in paper text by Syntology ran no licence file found · pointer only · be857850092aef57 · report
modulate jdeschena/blockgen/models/dit.py found in paper text by Syntology ran · honoured contract fingerprinted no licence file found · pointer only · 78b555034273f3c7 · report
ptb_detokenizer jdeschena/blockgen/dataloader.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 9f7fbdbe7ca280e0 · report
sample_categorical jdeschena/blockgen/samplers.py found in paper text by Syntology ran no licence file found · pointer only · 42d20a65c4d664db · report
training_block_diff_mask jdeschena/blockgen/models/block_dit.py found in paper text by Syntology ran no licence file found · pointer only · f7e80b687fbacfc3 · report
wt_detokenizer jdeschena/blockgen/dataloader.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 46c10627206a7795 · report
absorbing_posterior_probs jdeschena/blockgen/samplers.py found in paper text by Syntology unverified no licence file found · pointer only · b8724226f0c9dc7c · report
ar_verification_mask jdeschena/blockgen/models/block_dit.py found in paper text by Syntology unverified no licence file found · pointer only · 204e76d63ba6bb1c · report
block_generation_mask jdeschena/blockgen/models/block_dit.py found in paper text by Syntology unverified no licence file found · pointer only · e3299708c77af14f · report
dataclass jdeschena/blockgen/dataclass_patch.py found in paper text by Syntology unverified no licence file found · pointer only · 60415613b01cd2d8 · report
generate_sudoku_dataset jdeschena/blockgen/sudoku_generator.py found in paper text by Syntology unverified no licence file found · pointer only · 6f282ca885430979 · report
sample_absorbing_posterior jdeschena/blockgen/samplers.py found in paper text by Syntology unverified no licence file found · pointer only · fd914ec9c4226ca5 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2606.02241, was issued in June 2026, after that date, so the archive has no leaderboard rows for it.

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