Papers › Exploring Discrete Diffusion Models for Image Captioning

Exploring Discrete Diffusion Models for Image Captioning

21 Nov 2022arXiv:2211.11694archive 2025-07-28

Zixin Zhu, Yixuan Wei, JianFeng Wang, Zhe Gan, Zheng Zhang, Le Wang, Gang Hua, Lijuan Wang, Zicheng Liu, Han Hu

The image captioning task is typically realized by an auto-regressive method that decodes the text tokens one by one. We present a diffusion-based captioning model, dubbed the name DDCap, to allow more decoding flexibility. Unlike image generation, where the output is continuous and redundant with a fixed length, texts in image captions are categorical and short with varied lengths. Therefore, naively applying the discrete diffusion model to text decoding does not work well, as shown in our experiments. To address the performance gap, we propose several key techniques including best-first inference, concentrated attention mask, text length prediction, and image-free training. On COCO without additional caption pre-training, it achieves a CIDEr score of 117.8, which is +5.0 higher than the auto-regressive baseline with the same architecture in the controlled setting. It also performs +26.8 higher CIDEr score than the auto-regressive baseline (230.3 v.s.203.5) on a caption infilling task. With 4M vision-language pre-training images and the base-sized model, we reach a CIDEr score of 125.1 on COCO, which is competitive to the best well-developed auto-regressive frameworks. The code is available at https://github.com/buxiangzhiren/DDCap.

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

Code

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

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

buxiangzhiren/ddcap officialmentioned in papermentioned 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

18 samples harvested; 4 ran; 2 honoured the contract we drafted; 14 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 · honoured contract
2ran
14unverified

Licence: 0 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 buxiangzhiren/ddcap. “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.

generate2 buxiangzhiren/ddcap/predict.py official repository ran MIT (permissive) · e33b112514a9e4b0 · report
generate_beam buxiangzhiren/ddcap/predict.py official repository ran MIT (permissive) · 883320eb62f15d12 · report
log_1_min_a buxiangzhiren/ddcap/train_tclip.py official repository ran · honoured contract fingerprinted MIT (permissive) · 479771b269fc5883 · report
log_add_exp buxiangzhiren/ddcap/train_tclip.py official repository ran · honoured contract fingerprinted MIT (permissive) · 032c0dece6594020 · report
add_period buxiangzhiren/ddcap/parse_conceptual.py official repository unverified MIT (permissive) · c68cb2401825d6a1 · report
build_model buxiangzhiren/ddcap/clip1/model.py official repository unverified MIT (permissive) · 8b17971afcbd7a4f · report
build_scheduler buxiangzhiren/ddcap/lr_scheduler.py official repository unverified MIT (permissive) · 5e666c43b8dba5d1 · report
check_imports buxiangzhiren/ddcap/dynamic_module_utils.py official repository unverified MIT (permissive) · 5a97e7f261c6118d · report
extract buxiangzhiren/ddcap/train_tclip.py official repository unverified MIT (permissive) · 09c8479d9a5b3e06 · report
find_pruneable_heads_and_indices buxiangzhiren/ddcap/fix_pre.py official repository unverified MIT (permissive) · adea8f61592be69f · report
get_image buxiangzhiren/ddcap/parse_conceptual.py official repository unverified MIT (permissive) · 0a286fb23ba005b9 · report
get_model_parameters_info buxiangzhiren/ddcap/misc.py official repository unverified MIT (permissive) · 7d86410784062a90 · report
get_relative_import_files buxiangzhiren/ddcap/dynamic_module_utils.py official repository unverified MIT (permissive) · 373405b421a7ccd1 · report
get_relative_imports buxiangzhiren/ddcap/dynamic_module_utils.py official repository unverified MIT (permissive) · 9f0143385b707e8a · report
load_tf_weights_in_gpt2 buxiangzhiren/ddcap/tf_adpt.py official repository unverified MIT (permissive) · cb4e99dd4b50f69d · report
merge_opts_to_config buxiangzhiren/ddcap/misc.py official repository unverified MIT (permissive) · 66531358d7cefe44 · report
modify_config_for_debug buxiangzhiren/ddcap/misc.py official repository unverified MIT (permissive) · 647f36aefa59b564 · report
thread buxiangzhiren/ddcap/parse_conceptual.py official repository unverified MIT (permissive) · 50449115c68a0ddb · report

Tasks

Image CaptioningImage Generation

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