SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.11694 · 2022

Exploring Discrete Diffusion Models for Image Captioning

arXiv · PDF · Open in the Atlas

Code that ran

14 of 18 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 7 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2211.11694.json · badge: /api/ran/2211.11694.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
buxiangzhiren/ddcap canonical (classifier label)
classifier basis not recorded on the link
14 ran · 4 no recorded run
FunctionStatusWhere it lives
add_period Ran
ran on a synthesized input
buxiangzhiren/ddcap/parse_conceptual.py
code served (permissive licence) · get_code("c68cb2401825d6a1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

def add_period(caption: str):
    caption = caption.strip()
    if caption[-1] != '.':
        caption = caption + '.'
    elif caption[-2] == ' ':
        caption = caption[:-2] + '.'
    return caption

ARGS = {
    'caption': 'hello world'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
check_imports Ran
ran; our contract draft was wrong, not the code
buxiangzhiren/ddcap/dynamic_module_utils.py
code served (permissive licence) · get_code("5a97e7f261c6118d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary Python file with some imports for testing
temp_dir = tempfile.mkdtemp()
test_file = os.path.join(temp_dir, "test_module.py")

# Write a test file with various import statements
test_content = """import os
import sys
from collections import defaultdict
from . import relative_module
from .utils import helper_function
import json
"""

with open(test_file, 'w', encoding='utf-8') as f:
    f.write(test_content)

ARGS = {
    'filename': test_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_pruneable_heads_and_indices Ran
ran; our contract draft was wrong, not the code
buxiangzhiren/ddcap/fix_pre.py
code served (permissive licence) · get_code("adea8f61592be69f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct arguments for find_pruneable_heads_and_indices
heads = [0, 2, 4]  # List of head indices to prune
n_heads = 8  # Total number of heads in the model
head_size = 64  # Size of each head
already_pruned_heads = {1, 3}  # Set of heads that have already been pruned

ARGS = {
    "heads": heads,
    "n_heads": n_heads,
    "head_size": head_size,
    "already_pruned_heads": already_pruned_heads,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
generate2 Ran
ran; our contract draft was wrong, not the code
buxiangzhiren/ddcap/predict.py
pointer only (licence: MIT); the stored copy get_code serves, from chuangchuangtan/c2p-clip-deepfakedetection, is pointer only (licence: NONE) · get_code("e33b112514a9e4b0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from chuangchuangtan/c2p-clip-deepfakedetection, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_beam Ran
ran; our contract draft was wrong, not the code
buxiangzhiren/ddcap/predict.py
pointer only (licence: MIT); the stored copy get_code serves, from yvsriram/FACTS, is pointer only (licence: NONE) · get_code("883320eb62f15d12")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from yvsriram/FACTS, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_image Ran
ran on a synthesized input
buxiangzhiren/ddcap/parse_conceptual.py
code served (permissive licence) · get_code("0a286fb23ba005b9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import requests
import shutil
import tempfile
import os
from unittest.mock import Mock, patch

# Create a temporary directory for output
temp_dir = tempfile.mkdtemp()
out_path = os.path.join(temp_dir, "test_image.jpg")

# Mock the requests.get to avoid actual network calls
# We'll set up valid arguments that would work if the network call succeeded
url = "https://example.com/image.jpg"
timeout = 10

ARGS = {
    "url": url,
    "out_path": out_path,
    "timeout": timeout
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
requests — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_model_parameters_info Ran
ran on a synthesized input
buxiangzhiren/ddcap/misc.py
code served (permissive licence) · get_code("7d86410784062a90")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple model with multiple child modules
class SimpleModel(nn.Module):
    def __init__(self):
        super(SimpleModel, self).__init__()
        self.layer1 = nn.Linear(4, 8)
        self.layer2 = nn.Linear(8, 3)
        self.layer3 = nn.Linear(3, 2)
        
        # Make one parameter non-trainable
        self.layer3.weight.requires_grad = False
    
    def forward(self, x):
        x = self.layer1(x)
        x = self.layer2(x)
        x = self.layer3(x)
        return x

model = SimpleModel()

ARGS = {
    'model': model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_relative_import_files Ran
ran; our contract draft was wrong, not the code
buxiangzhiren/ddcap/dynamic_module_utils.py
code served (permissive licence) · get_code("373405b421a7ccd1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os
from pathlib import Path

# Create temporary directory with test module files
temp_dir = tempfile.mkdtemp()

# Create a main module file with relative imports
main_module = os.path.join(temp_dir, "main_module.py")
with open(main_module, 'w', encoding='utf-8') as f:
    f.write("""import .submodule_a
from .submodule_b import some_function
from .utils import helper
""")

# Create submodule_a.py with relative imports
submodule_a = os.path.join(temp_dir, "submodule_a.py")
with open(submodule_a, 'w', encoding='utf-8') as f:
    f.write("""from .utils import helper
import .other
""")

# Create submodule_b.py with relative imports
submodule_b = os.path.join(temp_dir, "submodule_b.py")
with open(submodule_b, 'w', encoding='utf-8') as f:
    f.write("""import .utils
""")

# Create utils.py with no relative imports
utils = os.path.join(temp_dir, "utils.py")
with open(utils, 'w', encoding='utf-8') as f:
    f.write("""# utility module
def helper():
    pass
""")

# Create other.py with no relative imports
other = os.path.join(temp_dir, "other.py")
with open(other, 'w', encoding='utf-8') as f:
    f.write("""# other module
""")

ARGS = {
    "module_file": main_module
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_relative_imports Ran
ran; our contract draft was wrong, not the code
buxiangzhiren/ddcap/dynamic_module_utils.py
code served (permissive licence) · get_code("9f0143385b707e8a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary Python file with relative imports for testing
temp_dir = tempfile.mkdtemp()
test_file = os.path.join(temp_dir, "test_module.py")

# Write content with various relative import patterns
content = """
import .utils
from .helpers import some_function
from .submodule import AnotherClass
import .config

def my_function():
    pass
"""

with open(test_file, 'w', encoding='utf-8') as f:
    f.write(content)

ARGS = {
    "module_file": test_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
log_1_min_a Ran
ran, honoured the contract we drafted
buxiangzhiren/ddcap/train_tclip.py
pointer only (licence: MIT); the stored copy get_code serves, from MuhangTian/TimeDiff, is pointer only (licence: NONE) · get_code("479771b269fc5883")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from MuhangTian/TimeDiff, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

log_add_exp Ran
ran, honoured the contract we drafted
buxiangzhiren/ddcap/train_tclip.py
pointer only (licence: MIT); the stored copy get_code serves, from MuhangTian/TimeDiff, is pointer only (licence: NONE) · get_code("032c0dece6594020")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from MuhangTian/TimeDiff, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

merge_opts_to_config Ran
ran; our contract draft was wrong, not the code
buxiangzhiren/ddcap/misc.py
code served (permissive licence) · get_code("66531358d7cefe44")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Construct a nested config dictionary that can be modified
config = {
    'model': {
        'hidden_dim': 256,
        'num_layers': 3,
        'dropout': 0.5
    },
    'training': {
        'learning_rate': 0.001,
        'batch_size': 32,
        'epochs': 10
    },
    'data': {
        'path': '/tmp/data',
        'normalize': True
    }
}

# opts is a list of alternating keys (dot-separated paths) and values
opts = [
    'model.hidden_dim', '512',
    'training.learning_rate', '0.0005',
    'data.normalize', 'False'
]

ARGS = {
    'config': config,
    'opts': opts
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
modify_config_for_debug Ran
ran on a synthesized input
buxiangzhiren/ddcap/misc.py
code served (permissive licence) · get_code("647f36aefa59b564")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Create a minimal config dict that matches what modify_config_for_debug expects
config = {
    'dataloader': {
        'num_workers': 4,
        'batch_size': 32
    }
}

ARGS = {
    'config': config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
thread Ran
ran on a synthesized input
buxiangzhiren/ddcap/parse_conceptual.py
code served (permissive licence) · get_code("50449115c68a0ddb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import threading
from tqdm import tqdm
import os

# Create a temporary directory for output
temp_dir = tempfile.mkdtemp()

# Create the subdirectory for images
suffix = "images"
out_root = os.path.join(temp_dir, suffix)
os.makedirs(out_root, exist_ok=True)

# Construct the urls parameter: List[Tuple[List[str], int]]
# Each element is a tuple of (caption_url_pair, index)
# where caption_url_pair is [caption, url]
urls = [
    (["cat photo", "http://example.com/cat1.jpg"], 0),
    (["dog photo", "http://example.com/dog1.jpg"], 1),
    (["bird photo", "http://example.com/bird1.jpg"], 2),
]

# Thread ID
thread_id = 0

# Progress bar
progress = tqdm(total=len(urls), desc="Processing")

# Lock for thread safety
lock = threading.Lock()

# Suffix for output files
suffix = "images"

# Conceptual root directory
conceptual_root = temp_dir

ARGS = {
    "urls": urls,
    "thread_id": thread_id,
    "progress": progress,
    "lock": lock,
    "suffix": suffix,
    "conceptual_root": conceptual_root,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
requests, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_model Not yet run
unverified (harvested, no recorded run)
buxiangzhiren/ddcap/clip1/model.py
code served (permissive licence) · get_code("8b17971afcbd7a4f")
How it ran

no invocation recorded.

build_scheduler Not yet run
unverified (harvested, no recorded run)
buxiangzhiren/ddcap/lr_scheduler.py
code served (permissive licence) · get_code("5e666c43b8dba5d1")
How it ran

no invocation recorded.

extract Not yet run
unverified (harvested, no recorded run)
buxiangzhiren/ddcap/train_tclip.py
code served (permissive licence) · get_code("09c8479d9a5b3e06")
How it ran

no invocation recorded.

load_tf_weights_in_gpt2 Not yet run
unverified (harvested, no recorded run)
buxiangzhiren/ddcap/tf_adpt.py
pointer only (licence: MIT); the stored copy get_code serves, from ybseo-academy/TAALM, is pointer only (licence: NONE) · get_code("cb4e99dd4b50f69d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ybseo-academy/TAALM, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 15 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 3 the same month, 15 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
build_model 119 other papers
18 dated earlier, 3 the same month, 96 later, 2 undated
1809.11096 (2018-09)
Large Scale GAN Training for High Fidelity Natural Image Synthesis
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2104.14294 (2021-04)
Emerging Properties in Self-Supervised Vision Transformers
and 116 more not named here
extract 77 other papers
14 dated earlier, 1 the same month, 62 later · 32 only as an assembly brick
1711.11585 (2017-11)
High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2102.05379 (2021-02)
Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions
and 74 more not named here
get_relative_import_files 18 other papers
18 later
2304.05568 (2023-04)
Improving Diffusion Models for Scene Text Editing with Dual Encoders
2305.15756 (2023-05)
UniTRec: A Unified Text-to-Text Transformer and Joint Contrastive Learning Framework for Text-based Recommendation
2306.05720 (2023-06)
Beyond Surface Statistics: Scene Representations in a Latent Diffusion Model
and 15 more not named here
get_relative_imports 18 other papers
18 later
2304.05568 (2023-04)
Improving Diffusion Models for Scene Text Editing with Dual Encoders
2305.15756 (2023-05)
UniTRec: A Unified Text-to-Text Transformer and Joint Contrastive Learning Framework for Text-based Recommendation
2306.05720 (2023-06)
Beyond Surface Statistics: Scene Representations in a Latent Diffusion Model
and 15 more not named here
log_add_exp 14 other papers
3 dated earlier, 10 later, 1 same year, order not determinable · 3 only as an assembly brick
2102.05379 (2021-02)
Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions
2205.16007 (2022-05)
Improved Vector Quantized Diffusion Models
and 11 more not named here
log_1_min_a 13 other papers
3 dated earlier, 9 later, 1 same year, order not determinable · 3 only as an assembly brick
2102.05379 (2021-02)
Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions
2205.16007 (2022-05)
Improved Vector Quantized Diffusion Models
and 10 more not named here
find_pruneable_heads_and_indices 11 other papers
6 dated earlier, 5 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2021.emnlp-main.154 (2021 (year only))
Reconstruction Attack on Instance Encoding for Language Understanding
2104.08066 (2021-04)
Effect of Visual Extensions on Natural Language Understanding in Vision-and-Language Models
and 8 more not named here
load_tf_weights_in_gpt2 11 other papers
1 dated earlier, 1 the same month, 9 later
2206.11871 (2022-06)
Offline RL for Natural Language Generation with Implicit Language Q Learning
2211.09817 (2022-11)
On the Effect of Pre-training for Transformer in Different Modality on Offline Reinforcement Learning
2212.04501 (2022-12)
Learning Video Representations from Large Language Models
and 8 more not named here
check_imports 10 other papers
10 later
2304.05568 (2023-04)
Improving Diffusion Models for Scene Text Editing with Dual Encoders
2305.15756 (2023-05)
UniTRec: A Unified Text-to-Text Transformer and Joint Contrastive Learning Framework for Text-based Recommendation
2306.05720 (2023-06)
Beyond Surface Statistics: Scene Representations in a Latent Diffusion Model
and 7 more not named here
generate2 4 other papers
1 dated earlier, 3 later
2111.09734 (2021-11)
ClipCap: CLIP Prefix for Image Captioning
2309.17430 (2023-09)
FACTS: First Amplify Correlations and Then Slice to Discover Bias
2408.09647 (2024-08)
C2P-CLIP: Injecting Category Common Prompt in CLIP to Enhance Generalization in Deepfake Detection
and 1 more not named here
generate_beam 3 other papers
1 dated earlier, 2 later
2111.09734 (2021-11)
ClipCap: CLIP Prefix for Image Captioning
2309.17430 (2023-09)
FACTS: First Amplify Correlations and Then Slice to Discover Bias
2412.20206 (2024-12)
Toward Visual Grounding: A Survey
merge_opts_to_config 3 other papers
3 later
2305.01319 (2023-05)
Long-Term Rhythmic Video Soundtracker
2411.07506 (2024-11)
FlowTS: Time Series Generation via Rectified Flow
2412.09328 (2024-12)
Auto-Regressive Moving Diffusion Models for Time Series Forecasting
add_period 2 other papers
1 dated earlier, 1 later
2111.09734 (2021-11)
ClipCap: CLIP Prefix for Image Captioning
2412.20206 (2024-12)
Toward Visual Grounding: A Survey
get_image 2 other papers
1 dated earlier, 1 later
2111.09734 (2021-11)
ClipCap: CLIP Prefix for Image Captioning
2412.20206 (2024-12)
Toward Visual Grounding: A Survey
thread 2 other papers
1 dated earlier, 1 later
2111.09734 (2021-11)
ClipCap: CLIP Prefix for Image Captioning
2412.20206 (2024-12)
Toward Visual Grounding: A Survey

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2211.11694")
get_code_for_paper("2211.11694")
have("2211.11694")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2211.11694.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2211.11694.svg)](https://syntology.ai/paper/2211.11694)

Connect an agent — have() is free.