SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.00939 · 2022

Improving Sample Quality of Diffusion Models Using Self-Attention Guidance

arXiv · PDF · Open in the Atlas

Code that ran

19 of 22 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; 3 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 14 failures of our instrument; 3 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-22; 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/2210.00939.json · badge: /api/ran/2210.00939.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
KU-CVLAB/Self-Attention-Guidance canonical (classifier label)
classifier basis not recorded on the link
16 ran · 3 no recorded run
ashen-sensored/sd_webui_SAG extension (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
center_crop_arr Ran
ran; our contract draft was wrong, not the code
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/image_datasets.py
pointer only (licence: MIT) · get_code("8ab9a97df8161f31")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

approx_standard_normal_cdf Ran
ran; our contract draft was wrong, not the code
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/losses.py
pointer only (licence: MIT); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("cfd76fd0d89574a4")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

attention_from_qkv Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/unet.py
pointer only (licence: MIT) · get_code("e2497fcb1db5da74")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

betas_for_alpha_bar Ran
ran, honoured the contract we drafted
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/gaussian_diffusion.py
pointer only (licence: MIT); the stored copy get_code serves, from NVlabs/DiffPure, is pointer only (licence: NOASSERTION) · get_code("2ab2316ac6fdd869")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

create_named_schedule_sampler Ran
ran; our contract draft was wrong, not the code
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/resample.py
pointer only (licence: MIT); the stored copy get_code serves, from ucsb-nlp-chang/diffusion_resampling, is pointer only (licence: NONE) · get_code("35572566acf61c78")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

default Ran
ran, violated the contract we drafted
ashen-sensored/sd_webui_SAG/scripts/SAG.py
code served (permissive licence) · get_code("424012cb37b31172")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) 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.

from inspect import isfunction

def exists(val):
    return val is not None

def default(val, d):
    if exists(val):
        return val
    return d() if isfunction(d) else d

# Test case 1: val exists (not None), d is a regular value
ARGS_1 = {
    'val': 42,
    'd': 100
}

# Test case 2: val is None, d is a regular value
ARGS_2 = {
    'val': None,
    'd': 100
}

# Test case 3: val is None, d is a function
def default_func():
    return 200

ARGS_3 = {
    'val': None,
    'd': default_func
}

# Test case 4: val exists, d is a function
ARGS_4 = {
    'val': "existing_value",
    'd': lambda: "default_value"
}

# Use one of the test cases as the final ARGS
ARGS = ARGS_3
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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 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
discretized_gaussian_log_likelihood Ran
ran; our contract draft was wrong, not the code
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/losses.py
pointer only (licence: MIT); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("cd33283d615fb3d7")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

exists Ran
ran, violated the contract we drafted
this paper's copy was not recorded; identical code first harvested from ThomasMrY/VCT
pointer only; the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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_named_beta_schedule Ran
ran, honoured the contract we drafted
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/gaussian_diffusion.py
pointer only (licence: MIT); the stored copy get_code serves, from NVlabs/DiffPure, is pointer only (licence: NOASSERTION) · get_code("a086d6286a40b889")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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_param_groups_and_shapes Ran
ran; our contract draft was wrong, not the code
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/fp16_util.py
pointer only (licence: MIT); the stored copy get_code serves, from ZhendongWang6/DIRE, is pointer only (licence: NONE) · get_code("e41367ad14ff58fd")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

make_master_params Ran
ran; our contract draft was wrong, not the code
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/fp16_util.py
pointer only (licence: MIT); the stored copy get_code serves, from ZhendongWang6/DIRE, is pointer only (licence: NONE) · get_code("e20dd5102da3b050")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

make_output_format Ran
ran; our contract draft was wrong, not the code
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/logger.py
pointer only (licence: MIT) · get_code("bcd8b4acab199405")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

mpi_weighted_mean Ran
ran; our contract draft was wrong, not the code
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/logger.py
pointer only (licence: MIT); the stored copy get_code serves, from HeadLiuYun/NeuroDiff, is pointer only (licence: NONE) · get_code("e515a67f7f32e76d")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

normal_kl Ran
ran, honoured the contract we drafted
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/losses.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/agrol, is pointer only (licence: NOASSERTION) · get_code("cf2798b666b231ca")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

random_crop_arr Ran
ran; our contract draft was wrong, not the code
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/image_datasets.py
pointer only (licence: MIT) · get_code("53d5be4fdbcfac23")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

save_input_hook Ran
ran; our contract draft was wrong, not the code
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/unet.py
pointer only (licence: MIT) · get_code("25d9a8be93bc84f5")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

unflatten_master_params Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/fp16_util.py
pointer only (licence: MIT); the stored copy get_code serves, from ZhendongWang6/DIRE, is pointer only (licence: NONE) · get_code("64fff1e30802b815")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

xattn_forward_log Ran
ran; our contract draft was wrong, not the code
ashen-sensored/sd_webui_SAG/scripts/SAG.py
code served (permissive licence) · get_code("c6e4e3cadf377bdf")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 3, dtype family float, shape (2, 5, 12) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
from torch import nn
from einops import rearrange, repeat

torch.manual_seed(0)

# Build a minimal CrossAttention module that has the attributes used in xattn_forward_log
class MinimalCrossAttention(nn.Module):
    def __init__(self, query_dim=12, context_dim=12, heads=3, dim_head=4):
        super().__init__()
        self.heads = heads
        inner_dim = dim_head * heads  # 12
        self.scale = dim_head ** -0.5
        
        self.to_q = nn.Linear(query_dim, inner_dim, bias=False)
        self.to_k = nn.Linear(context_dim, inner_dim, bias=False)
        self.to_v = nn.Linear(context_dim, inner_dim, bias=False)
        self.to_out = nn.Linear(inner_dim, query_dim, bias=False)
        
        self.attn_probs = None
    
# Create instance
self_instance = MinimalCrossAttention(query_dim=12, context_dim=15, heads=3, dim_head=4)

# Create input tensors
batch_size = 2
seq_len_x = 5
seq_len_context = 7
query_dim = 12
context_dim = 15

x = torch.randn(batch_size, seq_len_x, query_dim)
context = torch.randn(batch_size, seq_len_context, context_dim)
mask = torch.ones(batch_size, seq_len_context, dtype=torch.bool)

ARGS = {
    'self': self_instance,
    'x': x,
    'context': context,
    'mask': mask
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 5, 12) — shape (2, 5, 12) 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
zero_module Ran
ran; our contract draft was wrong, not the code
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/nn.py
pointer only (licence: MIT) · get_code("129b804760b3115f")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

avg_pool_nd Not yet run
unverified (harvested, no recorded run)
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/nn.py
pointer only (licence: MIT) · get_code("ecd0fc28815b65ae")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

conv_nd Not yet run
unverified (harvested, no recorded run)
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/nn.py
pointer only (licence: MIT) · get_code("fe4eb545bbb728e0")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

profile Not yet run
unverified (harvested, no recorded run)
KU-CVLAB/Self-Attention-Guidance/guided_diffusion/logger.py
pointer only (licence: MIT); the stored copy get_code serves, from HeadLiuYun/NeuroDiff, is pointer only (licence: NONE) · get_code("0c6607473a4c4c55")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, KU-CVLAB/Self-Attention-Guidance, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 21 are also present in other papers whose code we hold (19 with at least one paper dated earlier, 8 the same month, 21 later) and 1 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
exists 486 other papers
116 dated earlier, 9 the same month, 358 later, 1 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
default 207 other papers
23 dated earlier, 2 the same month, 182 later · 41 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
2010.08162 (2020-10)
SidechainNet: An All-Atom Protein Structure Dataset for Machine Learning
and 204 more not named here
zero_module 196 other papers
20 dated earlier, 1 the same month, 175 later · 49 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
and 193 more not named here
normal_kl 160 other papers
19 dated earlier, 141 later · 19 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 157 more not named here
approx_standard_normal_cdf 154 other papers
19 dated earlier, 135 later · 17 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 151 more not named here
discretized_gaussian_log_likelihood 128 other papers
19 dated earlier, 109 later · 16 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 125 more not named here
conv_nd 121 other papers
18 dated earlier, 1 the same month, 102 later · 32 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 118 more not named here
avg_pool_nd 113 other papers
19 dated earlier, 1 the same month, 93 later · 31 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2110.11291 (2021-10)
Likelihood Training of Schrödinger Bridge using Forward-Backward SDEs Theory
and 110 more not named here
betas_for_alpha_bar 92 other papers
19 dated earlier, 1 the same month, 72 later · 3 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2102.09672 (2021-02)
Improved Denoising Diffusion Probabilistic Models
and 89 more not named here
make_output_format 73 other papers
30 dated earlier, 43 later
1611.05763 (2016-11)
Learning to reinforcement learn
1804.06459 (2018-04)
On Learning Intrinsic Rewards for Policy Gradient Methods
1806.02473 (2018-06)
Graph Convolutional Policy Network for Goal-Directed Molecular Graph Generation
and 70 more not named here
unflatten_master_params 72 other papers
9 dated earlier, 63 later
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
2112.03145 (2021-12)
Diffusion Models for Implicit Image Segmentation Ensembles
and 69 more not named here
make_master_params 70 other papers
9 dated earlier, 61 later
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
2112.03145 (2021-12)
Diffusion Models for Implicit Image Segmentation Ensembles
and 67 more not named here
get_param_groups_and_shapes 68 other papers
9 dated earlier, 59 later
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
2112.03145 (2021-12)
Diffusion Models for Implicit Image Segmentation Ensembles
and 65 more not named here
get_named_beta_schedule 63 other papers
15 dated earlier, 48 later
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2108.02938 (2021-08)
ILVR: Conditioning Method for Denoising Diffusion Probabilistic Models
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 60 more not named here
profile 61 other papers
17 dated earlier, 44 later
1611.05763 (2016-11)
Learning to reinforcement learn
1905.06750 (2019-05)
Random Expert Distillation: Imitation Learning via Expert Policy Support Estimation
1906.05841 (2019-06)
Deep Reinforcement Learning for Industrial Insertion Tasks with Visual Inputs and Natural Rewards
and 58 more not named here
mpi_weighted_mean 52 other papers
11 dated earlier, 41 later
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
and 49 more not named here
create_named_schedule_sampler 45 other papers
6 dated earlier, 39 later
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
and 42 more not named here
center_crop_arr 33 other papers
5 dated earlier, 1 the same month, 27 later
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
2203.15636 (2022-03)
Diffusion Models for Counterfactual Explanations
and 30 more not named here
random_crop_arr 32 other papers
6 dated earlier, 1 the same month, 25 later
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
2203.04306 (2022-03)
Diffusion Models for Medical Anomaly Detection
and 29 more not named here
attention_from_qkv 2 other papers
2 later
aaai_28602 (2024 (year only))
Reducing Spatial Fitting Error in Distillation of Denoising Diffusion Models
2403.17377 (2024-03)
Self-Rectifying Diffusion Sampling with Perturbed-Attention Guidance

Shown: the 20 functions present in the most other papers. 1 more shared functions are not listed here.

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-22.

Repositories linked to this paper

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

Abstract

Denoising diffusion models (DDMs) have attracted attention for their exceptional generation quality and diversity. This success is largely attributed to the use of class- or text-conditional diffusion guidance methods, such as classifier and classifier-free guidance. In this paper, we present a more comprehensive perspective that goes beyond the traditional guidance methods. From this generalized perspective, we introduce novel condition- and training-free strategies to enhance the quality of generated images. As a simple solution, blur guidance improves the suitability of intermediate samples for their fine-scale information and structures, enabling diffusion models to generate higher quality samples with a moderate guidance scale. Improving upon this, Self-Attention Guidance (SAG) uses the intermediate self-attention maps of diffusion models to enhance their stability and efficacy. Specifically, SAG adversarially blurs only the regions that diffusion models attend to at each iteration and guides them accordingly. Our experimental results show that our SAG improves the performance of various diffusion models, including ADM, IDDPM, Stable Diffusion, and DiT. Moreover, combining SAG with conventional guidance methods leads to further improvement.

For agents

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

get_harvested_code_for_paper("2210.00939")
get_code_for_paper("2210.00939")
have("2210.00939")

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

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

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

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

Connect an agent — have() is free.