Papers › Tokenizer Generator Coupling in Medical Image Generation

Tokenizer Generator Coupling in Medical Image Generation

7 Aug 2026arXiv:2608.07713added by Syntology

Liam Chalcroft

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

Latent medical image generators usually treat the tokenizer as fixed preprocessing. We test whether this separation is valid in a controlled ChestMNIST study at 64x64, crossing discrete tokenizers, generator families, and sampler settings under a shared latent grid, with continuous-latent reference cells. In this controlled setting, rankings depend jointly on the tokenizer, generator, and sampler: the best quantizer changes with the generator, and validation-based sampler selection changes the apparent generator ranking. We retrain the vocabulary-1024 interaction block at three seeds and the interaction survives (6 of 9 pairwise quantizer comparisons exceed three seed standard deviations), and we scope the wider single-seed grid accordingly. Reconstruction PSNR alone is not a reliable selection criterion; we instead introduce a generator-free statistic, neighbour-conditional predictive gain, that separates the quantizer families by downstream generation quality (rank-AUC 1.00) where reconstruction PSNR and marginal token entropy do not. On LFQ-1024, retuning D3PM and SE-D3PM (selected on a held-out validation split) moves them from default FID-192 0.44/0.41 to 0.09/0.10 at lower NFE, replicated across seeds; the continuous references were not given an equivalent sampler sweep. We report FID-192 as an internal ranking metric; it ranks consistently with standard FID-2048 (Spearman 0.80) and with a label-free classifier two-sample test (0.78). We interpret these results through a rate-distortion-modelability framing, where modelability is conditional on the generator, sampler, and inference budget. All experiments are at 64x64 on low-resolution medical-style images, unconditional, and evaluated with non-clinical FID-based metrics, and we scope every claim to that setting. Code: https://github.com/liamchalcroft/medtokenizers and https://github.com/liamchalcroft/medlatents.

PaperPDFCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 20 code samples harvested from 2 repositories linked to this paper: 14 ran (of which 0 constructed an object rather than computing a result; 9 with no instrument failure: 4 honoured, 0 violated, 5 with no contract checked; 5 where Syntology's instrument failed) · 6 unverified. Where Syntology's instrument failed: 4 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 20 samples from 2 repositories, 14 ran (9 with no instrument failure; 5 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

liamchalcroft/medtokenizers found in paper text by SyntologySyntology: 12 samples, 10 ran (2 instrument-failed) · 2 unverified report
liamchalcroft/medlatents found in paper text by SyntologySyntology: 8 samples, 4 ran (3 instrument-failed) · 4 unverified 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

20 samples harvested: 14 ran (of which 0 constructed an object rather than computing a result; 9 with no instrument failure: 4 honoured, 0 violated, 5 with no contract checked; 5 where Syntology's instrument failed) · 6 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

4ran · honoured contract
4ran · our draft was wrong
1ran; the contract check could not run
5ran
6unverified

Licence: 0 of the 20 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 2 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

liamchalcroft/medtokenizers found in paper text by Syntology 12 samples, 10 ran (2 instrument-failed) · 2 unverified
compute_mae in 5 papers src/medtokenizers/evaluation/metrics.py ran · honoured contract MIT (permissive) · 5c2e304ef7c3d032 · report fixture: signature reconstruction:Tensor/4/float, target:Tensor/4/float, mask:Tensor/4/float · returned float · level recorded 2026-09-24
compute_mse in 10 papers src/medtokenizers/evaluation/metrics.py ran · honoured contract MIT (permissive) · 4b806df4ec7208fb · report fixture: signature reconstruction:Tensor/4/float, target:Tensor/4/float, mask:Tensor/4/float · returned float · level recorded 2026-09-24
compute_psnr in 30 papers src/medtokenizers/evaluation/metrics.py ran MIT (permissive) · b6ddbbeb8cebe8e7 · report fixture: signature reconstruction:Tensor/5/float, target:Tensor/5/float, data_range:float/0/float, mask:Tensor/5/float · returned float · level recorded 2026-09-24
get_conv in 21 papers src/medtokenizers/modules/layers.py ran MIT (permissive) · eaa2e30c02052d7b · report fixture: signature dim:int/0/int, in_channels:int/0/int, out_channels:int/0/int, kernel_size:int/0/int, stride:int/0/int, padding:int/0/int · returned Conv3d · level recorded 2026-09-24
get_padding in 84 papers src/medtokenizers/modules/layers.py ran · honoured contract fingerprinted MIT (permissive) · b10e8e79b1c89c97 · report fixture: signature dim:int/0/int · returned tuple · level recorded 2026-09-24
jaxtyped_compile_safe src/medtokenizers/modules/utils.py ran · our draft was wrong MIT (permissive) · 3464031d3269e008 · report fixture: signature typechecker:callable/0/? · returned function · level recorded 2026-09-24
load_latents src/medtokenizers/inference.py ran · honoured contract MIT (permissive) · cb632039824220ae · report fixture: signature load_path:str/0/str, device:NoneType/0/?, dtype:dtype/0/? · returned Tensor · level recorded 2026-09-24
pad_divisible src/medtokenizers/preprocessing.py ran; the contract check could not run (RAISES) MIT (permissive) · d97836d8c1ecc9ee · report fixture: signature volume:Tensor/5/float, k:int/0/int · returned tuple · level recorded 2026-09-24
percentile_normalize src/medtokenizers/preprocessing.py ran MIT (permissive) · 834d158f1320c065 · report fixture: signature volume:ndarray/3/float, lower:float/0/float, upper:float/0/float, b_min:float/0/float, b_max:float/0/float, clip:bool/0/bool · returned tuple · level recorded 2026-09-24
resample_to_spacing src/medtokenizers/preprocessing.py ran MIT (permissive) · 7061c151f4be243f · report fixture: signature volume:Tensor/5/float, src_spacing:tuple/1/float, tgt_spacing:tuple/1/float, mode:str/0/str · returned Tensor · level recorded 2026-09-24
get_config in 203 papers src/medtokenizers/config.py unverified MIT (permissive) · 35851a6f82840307 · report
load_indices src/medtokenizers/inference.py unverified MIT (permissive) · eb41b5ce332542b3 · report
liamchalcroft/medlatents found in paper text by Syntology 8 samples, 4 ran (3 instrument-failed) · 4 unverified
collate_conditional_batch src/medlatents/conditioning/collate.py ran · our draft was wrong MIT (permissive) · 2af91ede38d69da0 · report fixture: signature batch:list/1/dict, config:ConditionalBatchConfig/0/? · returned dict · level recorded 2026-09-24
create_conditional_collate_fn src/medlatents/conditioning/collate.py ran · our draft was wrong MIT (permissive) · fe74f7596bc3cd62 · report fixture: signature config:ConditionalBatchConfig/0/? · returned function · level recorded 2026-09-24
create_model_variants src/medlatents/configs.py ran · our draft was wrong MIT (permissive) · a87d6af7f04a9527 · report fixture: signature model_cls:callable/0/?, base_name:str/0/str, sizes:dict/0/?, vocab_size:int/0/int, max_seq_length:int/0/int, dropout:float/0/float · returned dict · level recorded 2026-09-24
get_cosine_schedule_with_warmup in 42 papers src/medlatents/common/schedules.py ran MIT (permissive) · 6d05388476add5d7 · report fixture: signature step:int/0/int, warmup_steps:int/0/int, total_steps:int/0/int, max_lr:float/0/float, min_lr:float/0/float · returned float · level recorded 2026-09-24
create_encoder in 6 papers src/medlatents/conditioning/encoders.py unverified MIT (permissive) · 614326f7bc65a4c4 · report
sample_timesteps_u_shaped src/medlatents/common/time.py unverified MIT (permissive) · de2375ed3a91d92c · report
sample_timesteps_uniform src/medlatents/common/time.py unverified MIT (permissive) · c0b00bf63adf9872 · report
sample_timesteps_uniform_shifted src/medlatents/common/time.py unverified MIT (permissive) · 78dfddf27211614b · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2608.07713, was issued in August 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