Papers › Analog Bits: Generating Discrete Data using Diffusion Models with Self-Conditioning

Analog Bits: Generating Discrete Data using Diffusion Models with Self-Conditioning

8 Aug 2022arXiv:2208.04202archive 2025-07-28

Ting Chen, Ruixiang Zhang, Geoffrey Hinton

We present Bit Diffusion: a simple and generic approach for generating discrete data with continuous state and continuous time diffusion models. The main idea behind our approach is to first represent the discrete data as binary bits, and then train a continuous diffusion model to model these bits as real numbers which we call analog bits. To generate samples, the model first generates the analog bits, which are then thresholded to obtain the bits that represent the discrete variables. We further propose two simple techniques, namely Self-Conditioning and Asymmetric Time Intervals, which lead to a significant improvement in sample quality. Despite its simplicity, the proposed approach can achieve strong performance in both discrete image generation and image captioning tasks. For discrete image generation, we significantly improve previous state-of-the-art on both CIFAR-10 (which has 3K discrete 8-bit tokens) and ImageNet-64x64 (which has 12K discrete 8-bit tokens), outperforming the best autoregressive model in both sample quality (measured by FID) and efficiency. For image captioning on MS-COCO dataset, our approach achieves competitive results compared to autoregressive models.

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

Code

Syntology Ran 13 of 20 code samples harvested from 5 repositories linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · violated contract; 6 ran · our draft was wrong; 3 ran · fixture could not drive it.

By repository: community (archive-listed): 20 samples from 5 repositories, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

google-research/pix2seq officialmentioned in papermentioned on GitHubtf report
facebookresearch/flowmm mentioned on GitHubpytorch report
lucidrains/bit-diffusion mentioned on GitHubpytorch report
lucidrains/chroma-pytorch mentioned on GitHubpytorch report
lucidrains/imagen-pytorch mentioned on GitHubpytorchMIT report
pinellolab/dna-diffusion mentioned on GitHubpytorch report
yiyixuxu/denoising-diffusion-flax mentioned on GitHubjax 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

20 samples harvested; 13 ran; 1 honoured the contract we drafted; 7 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
3ran · violated contract
6ran · our draft was wrong
3ran · fixture could not drive it
7unverified

Licence: 4 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 5 repositories linked to this paper, official or community; each sample names its own and says which. “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.

has_int_squareroot lucidrains/bit-diffusion/bit_diffusion/bit_diffusion.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · 2f7a1370a8d67d2b · report
alpha_cosine_log_snr lucidrains/bit-diffusion/bit_diffusion/bit_diffusion.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · fa3ce2c24d2643c1 · report
alpha_cosine_log_snr lucidrains/chroma-pytorch/chroma_pytorch/chroma_pytorch.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · ddf4da47f26cd499 · report
beta_linear_log_snr lucidrains/bit-diffusion/bit_diffusion/bit_diffusion.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 9fe6ed9d0531983d · report
bits_to_decimal lucidrains/bit-diffusion/bit_diffusion/bit_diffusion.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · e7eda7b93123b0c4 · report
decimal_to_bits lucidrains/bit-diffusion/bit_diffusion/bit_diffusion.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 988193e21742ab7c · report
default lucidrains/bit-diffusion/bit_diffusion/bit_diffusion.py community (archive-listed) ran · violated contract MIT (permissive) · d1ef6b8cb9a28a53 · report
exists lucidrains/bit-diffusion/bit_diffusion/bit_diffusion.py community (archive-listed) ran · violated contract MIT (permissive) · 608e364a9d2376a3 · report
extract pinellolab/dna-diffusion/src/dnadiffusion/models/diffusion.py community (archive-listed) ran · fixture could not drive it licence not identified · pointer only · b7011ece22ccb931 · report
linear_beta_schedule pinellolab/dna-diffusion/src/dnadiffusion/models/diffusion.py community (archive-listed) ran · honoured contract fingerprinted licence not identified · pointer only · 96c65b4e8f4db8cd · report
log_snr_to_alpha_sigma lucidrains/bit-diffusion/bit_diffusion/bit_diffusion.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 849bd7ab7c062cb0 · report
noise_to_x0 yiyixuxu/denoising-diffusion-flax/denoising_diffusion_flax/sampling.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · 74e89df0b66e6b81 · report
x0_to_noise yiyixuxu/denoising-diffusion-flax/denoising_diffusion_flax/sampling.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · 2236f2ca70df2e84 · report
AnalogBits facebookresearch/flowmm/src/flowmm/rfm/manifolds/analog_bits.py community (archive-listed) unverified licence not identified · pointer only · 7f71bbd3c757f052 · report
BitDiffusion lucidrains/bit-diffusion/bit_diffusion/bit_diffusion.py community (archive-listed) unverified MIT (permissive) · 66dda96766b0e160 · report
Chroma lucidrains/chroma-pytorch/chroma_pytorch/chroma_pytorch.py community (archive-listed) unverified MIT (permissive) · cfa818cbd46c6f90 · report
Diffusion pinellolab/dna-diffusion/src/dnadiffusion/models/diffusion.py community (archive-listed) unverified licence not identified · pointer only · 973a3cc89e5b7ca1 · report
ddpm_sample_step yiyixuxu/denoising-diffusion-flax/denoising_diffusion_flax/sampling.py community (archive-listed) unverified Apache-2.0 (permissive) · c816e1480a517375 · report
get_posterior_mean_variance yiyixuxu/denoising-diffusion-flax/denoising_diffusion_flax/sampling.py community (archive-listed) unverified Apache-2.0 (permissive) · 0698c1200472a361 · report
model_predict yiyixuxu/denoising-diffusion-flax/denoising_diffusion_flax/sampling.py community (archive-listed) unverified Apache-2.0 (permissive) · de61f80c42158b58 · report

Tasks

Image CaptioningImage Generation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Captioning COCO (Common Objects in Context) Bit Diffusion (20 steps) BLEU-4 34.7 #7 of 17 Archive leaderboard report
Image Captioning COCO (Common Objects in Context) Bit Diffusion (20 steps) CIDEr 115 #7 of 17 Archive leaderboard report
Image Captioning COCO (Common Objects in Context) Bit Diffusion (20 steps) ROUGE-L 58 #7 of 17 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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