SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.03729 · ICCV · 2023

Phasic Content Fusing Diffusion Model with Directional Distribution Consistency for Few-Shot Model Adaption

Xu Chen, Siqi Kou, Liang Liu, Jiangning Zhang, Chengjie Wang, Teng Hu, Ran Yi, Yabiao Wang, Lizhuang Ma, Haokun Zhu

arXiv · PDF · Open in the Atlas

Code that ran

15 of 25 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (11 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 13 have no contract verdict; 2 failures of our instrument; 10 no recorded run), measured 2026-11-23; 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/2309.03729.json · badge: /api/ran/2309.03729.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
sjtuplayer/few-shot-diffusion community
Papers with Code archive
15 ran · 10 no recorded run
FunctionStatusWhere it lives
Block Ran
ran on a synthesized input
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("d16665e1f56437fb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

CheckpointFunction Ran
ran on a synthesized input · constructed an object; no result was computed
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("27faeacc0d8cf344")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

Downsample Ran
ran on a synthesized input · constructed an object; no result was computed
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("8c5676227adb2492")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

LayerNorm Ran
ran on a synthesized input · constructed an object; no result was computed
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("f5fbdad1df60c363")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

LinearAttention Ran
ran on a synthesized input · constructed an object; no result was computed
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("c71125f439d1d5ea")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

PreNorm Ran
ran on a synthesized input · constructed an object; no result was computed
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("5b3345b4a26536a9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

QKVAttention Ran
ran on a synthesized input
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("5ebe00ac9e392f07")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

QKVAttentionLegacy Ran
ran on a synthesized input · constructed an object; no result was computed
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("c21412aa89ed28a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

Residual Ran
ran on a synthesized input · constructed an object; no result was computed
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("d2f3f77a4605ff1f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

ResnetBlock Ran
ran on a synthesized input · constructed an object; no result was computed
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("9cc672082b6782fb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

SinusoidalPosEmb Ran
ran on a synthesized input · constructed an object; no result was computed
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("7b3d0ed0839661d7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

Upsample Ran
ran on a synthesized input · constructed an object; no result was computed
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("6998a3677700ee6c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

WeightStandardizedConv2d Ran
ran on a synthesized input · constructed an object; no result was computed
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("179fd1dd12f18912")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

normalization Ran
ran; our contract draft was wrong, not the code
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("5b31715a9b105926")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

timestep_embedding Ran
ran; our contract draft was wrong, not the code
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("b0aa348a2f95ef0f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

AttentionBlock Not yet run
unverified (harvested, no recorded run)
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("33dbefd057c8df79")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

MyUnet Not yet run
unverified (harvested, no recorded run)
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("79d0a98cc75ac0c8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

ResBlock Not yet run
unverified (harvested, no recorded run)
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("0fc14114982f5c9d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

TimestepBlock Not yet run
unverified (harvested, no recorded run)
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("40fb9bc947892adc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

TimestepEmbedSequential Not yet run
unverified (harvested, no recorded run)
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("ed74c5af0b1d1d51")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

checkpoint Not yet run
unverified (harvested, no recorded run)
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("fb150e1f7e53041e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

convert_module_to_f16 Not yet run
unverified (harvested, no recorded run)
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("ac07425399caf784")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

convert_module_to_f32 Not yet run
unverified (harvested, no recorded run)
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("b283a8ab305dc007")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

count_flops_attn Not yet run
unverified (harvested, no recorded run)
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("0c49097ae6ff37ef")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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.

style_condtioner Not yet run
unverified (harvested, no recorded run)
sjtuplayer/few-shot-diffusion/model/big_unet.py
pointer only (licence: NONE) · get_code("176cae28c26d5cf2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sjtuplayer/few-shot-diffusion 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 25 samples lifted from this paper's linked repositories, 25 carry a function identity and 0 do not. Of the 25 distinct functions with an identity, 22 are also present in other papers whose code we hold (18 with at least one paper dated earlier, 0 the same month, 22 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
checkpoint
brick of this paper's assembly: helper
51 other papers
21 dated earlier, 30 later · 29 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2110.11291 (2021-10)
Likelihood Training of Schrödinger Bridge using Forward-Backward SDEs Theory
and 48 more not named here
TimestepBlock
brick of this paper's assembly: helper
33 other papers
20 dated earlier, 13 later · 28 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2112.10741 (2021-12)
GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models
and 30 more not named here
normalization
brick of this paper's assembly: helper
32 other papers
16 dated earlier, 16 later · 27 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2209.15264 (2022-09)
Diffusion-based Image Translation using Disentangled Style and Content Representation
and 29 more not named here
SinusoidalPosEmb
brick of this paper's assembly: helper
19 other papers
1 dated earlier, 18 later · 13 only as an assembly brick
2208.06193 (2022-08)
Diffusion Policies as an Expressive Policy Class for Offline Reinforcement Learning
2310.05333 (2023-10)
DiffCPS: Diffusion-based Constrained Policy Search for Offline Reinforcement Learning
2402.07226 (2024-02)
Stitching Sub-trajectories with Conditional Diffusion Model for Goal-Conditioned Offline RL
and 16 more not named here
count_flops_attn
brick of this paper's assembly: helper
19 other papers
10 dated earlier, 9 later · 18 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2209.15264 (2022-09)
Diffusion-based Image Translation using Disentangled Style and Content Representation
2301.05225 (2023-01)
Domain Expansion of Image Generators
and 16 more not named here
QKVAttention
brick of this paper's assembly: helper
17 other papers
10 dated earlier, 7 later · 7 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2209.15264 (2022-09)
Diffusion-based Image Translation using Disentangled Style and Content Representation
2301.05225 (2023-01)
Domain Expansion of Image Generators
and 14 more not named here
Downsample
brick of this paper's assembly: model
16 other papers
10 dated earlier, 6 later · 14 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2112.10741 (2021-12)
GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models
2205.11487 (2022-05)
Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
and 13 more not named here
Upsample
brick of this paper's assembly: model
16 other papers
10 dated earlier, 6 later · 13 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2112.10741 (2021-12)
GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models
2205.11487 (2022-05)
Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
and 13 more not named here
QKVAttentionLegacy
brick of this paper's assembly: helper
15 other papers
9 dated earlier, 6 later · 6 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2209.15264 (2022-09)
Diffusion-based Image Translation using Disentangled Style and Content Representation
2301.05225 (2023-01)
Domain Expansion of Image Generators
and 12 more not named here
timestep_embedding
brick of this paper's assembly: helper
15 other papers
9 dated earlier, 6 later · 14 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2112.10741 (2021-12)
GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models
2205.11487 (2022-05)
Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
and 12 more not named here
AttentionBlock
brick of this paper's assembly: model
12 other papers
6 dated earlier, 6 later · 2 only as an assembly brick
2209.15264 (2022-09)
Diffusion-based Image Translation using Disentangled Style and Content Representation
2301.05225 (2023-01)
Domain Expansion of Image Generators
2302.04304 (2023-02)
Q-Diffusion: Quantizing Diffusion Models
and 9 more not named here
convert_module_to_f32
brick of this paper's assembly: helper
12 other papers
6 dated earlier, 6 later · 12 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2112.10741 (2021-12)
GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models
2205.11487 (2022-05)
Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
and 9 more not named here
CheckpointFunction
brick of this paper's assembly: helper
11 other papers
5 dated earlier, 6 later · 11 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2209.15264 (2022-09)
Diffusion-based Image Translation using Disentangled Style and Content Representation
2304.02012 (2023-04)
EGC: Image Generation and Classification via a Diffusion Energy-Based Model
and 8 more not named here
ResBlock
brick of this paper's assembly: model
11 other papers
6 dated earlier, 5 later · 4 only as an assembly brick
2209.15264 (2022-09)
Diffusion-based Image Translation using Disentangled Style and Content Representation
2301.05225 (2023-01)
Domain Expansion of Image Generators
2302.07685 (2023-02)
Video Probabilistic Diffusion Models in Projected Latent Space
and 8 more not named here
TimestepEmbedSequential
brick of this paper's assembly: model
11 other papers
7 dated earlier, 4 later · 9 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2209.15264 (2022-09)
Diffusion-based Image Translation using Disentangled Style and Content Representation
and 8 more not named here
convert_module_to_f16
brick of this paper's assembly: helper
11 other papers
5 dated earlier, 6 later · 11 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2209.15264 (2022-09)
Diffusion-based Image Translation using Disentangled Style and Content Representation
2303.17189 (2023-03)
LayoutDiffusion: Controllable Diffusion Model for Layout-to-image Generation
and 8 more not named here
Residual
brick of this paper's assembly: helper
4 other papers
2 dated earlier, 2 later · 2 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2204.02311 (2022-04)
PaLM: Scaling Language Modeling with Pathways
2403.00939 (2024-03)
G3DR: Generative 3D Reconstruction in ImageNet
and 1 more not named here
LayerNorm
brick of this paper's assembly: helper
3 other papers
1 dated earlier, 2 later · 2 only as an assembly brick
2204.04676 (2022-04)
Simple Baselines for Image Restoration
2403.00939 (2024-03)
G3DR: Generative 3D Reconstruction in ImageNet
2601.00533 (2026-01)
All-in-One Video Restoration under Smoothly Evolving Unknown Weather Degradations
ResnetBlock
brick of this paper's assembly: helper
2 other papers
2 later · 1 only as an assembly brick
2407.16171 (2024-07)
Learning Trimodal Relation for Audio-Visual Question Answering with Missing Modality
2407.16448 (2024-07)
MonoWAD: Weather-Adaptive Diffusion Model for Robust Monocular 3D Object Detection
LinearAttention
brick of this paper's assembly: helper
1 other paper
1 later
2403.00939 (2024-03)
G3DR: Generative 3D Reconstruction in ImageNet

Shown: the 20 functions present in the most other papers. 2 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-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

Training a generative model with limited number of samples is a challenging task. Current methods primarily rely on few-shot model adaption to train the network. However, in scenarios where data is extremely limited (less than 10), the generative network tends to overfit and suffers from content degradation. To address these problems, we propose a novel phasic content fusing few-shot diffusion model with directional distribution consistency loss, which targets different learning objectives at distinct training stages of the diffusion model. Specifically, we design a phasic training strategy with phasic content fusion to help our model learn content and style information when t is large, and learn local details of target domain when t is small, leading to an improvement in the capture of content, style and local details. Furthermore, we introduce a novel directional distribution consistency loss that ensures the consistency between the generated and source distributions more efficiently and stably than the prior methods, preventing our model from overfitting. Finally, we propose a cross-domain structure guidance strategy that enhances structure consistency during domain adaptation. Theoretical analysis, qualitative and quantitative experiments demonstrate the superiority of our approach in few-shot generative model adaption tasks compared to state-of-the-art methods. The source code is available at: https://github.com/sjtuplayer/few-shot-diffusion.

For agents

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

get_harvested_code_for_paper("2309.03729")
get_code_for_paper("2309.03729")
have("2309.03729")

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

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

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

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

Connect an agent — have() is free.