SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.01123 · International Journal of Computer Vision 134(9) (2026) 404 · September 2026

P-PatchDiff: Progressive Patch Diffusion Models for Low-light Image Enhancement

Yang Song, Maurice Pagnucco, Ruoyu Guo, Haonan Zhong

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 0 no recorded run), measured 2026-11-24; 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/2609.01123.json · badge: /api/ran/2609.01123.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
RuoyuGuo/P-PatchDiff canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
AttentionBlock Ran
ran; our contract draft was wrong, not the code
RuoyuGuo/P-PatchDiff/BasicSR-light/basicsr/archs/dfdnet_util.py
pointer only (licence: NONE) · get_code("8d3cd21cd5c3181a")
How it ran

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

adaptive_instance_normalization Ran
ran; our contract draft was wrong, not the code
RuoyuGuo/P-PatchDiff/BasicSR-light/basicsr/archs/dfdnet_util.py
pointer only (licence: NONE) · get_code("b7c6741eed724350")
How it ran

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

calc_mean_std Ran
ran; our contract draft was wrong, not the code
RuoyuGuo/P-PatchDiff/BasicSR-light/basicsr/archs/dfdnet_util.py
pointer only (licence: NONE) · get_code("a7e8af4ef5efc131")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RuoyuGuo/P-PatchDiff 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_part_location Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
RuoyuGuo/P-PatchDiff/BasicSR-light/inference/inference_dfdnet.py
pointer only (licence: NONE) · get_code("9adf4d768799f874")
How it ran

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

reduce_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
RuoyuGuo/P-PatchDiff/BasicSR-light/basicsr/losses/loss_util.py
pointer only (licence: NONE) · get_code("a648a03a952822c0")
How it ran

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

weight_reduce_loss Ran
ran; our contract draft was wrong, not the code
RuoyuGuo/P-PatchDiff/BasicSR-light/basicsr/losses/loss_util.py
pointer only (licence: NONE) · get_code("94401022438b2365")
How it ran

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

weighted_loss Ran
ran; our contract draft was wrong, not the code
RuoyuGuo/P-PatchDiff/BasicSR-light/basicsr/losses/loss_util.py
pointer only (licence: NONE) · get_code("0dc0e03b0e6a68c2")
How it ran

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

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 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
weighted_loss 44 other papers
44 dated earlier
136790177 (2022 (year only))
Frequency and Spatial Dual Guidance for Image Dehazing
2203.14216 (2022-03)
Efficient and Degradation-Adaptive Network for Real-World Image Super-Resolution
2205.05996 (2022-05)
Blueprint Separable Residual Network for Efficient Image Super-Resolution
and 41 more not named here
reduce_loss 43 other papers
43 dated earlier
136790177 (2022 (year only))
Frequency and Spatial Dual Guidance for Image Dehazing
2203.14216 (2022-03)
Efficient and Degradation-Adaptive Network for Real-World Image Super-Resolution
2205.05996 (2022-05)
Blueprint Separable Residual Network for Efficient Image Super-Resolution
and 40 more not named here
adaptive_instance_normalization 16 other papers
16 dated earlier
Wang_Deep_Arbitrary-Scale_Image_Super-Resolution_via_Scale-Equivariance_Pursuit_CVPR_2023_paper (2023 (year only))
Deep Arbitrary-Scale Image Super-Resolution via Scale-Equivariance Pursuit
2303.04970 (2023-03)
LMR: A Large-Scale Multi-Reference Dataset for Reference-based Super-Resolution
2304.01064 (2023-04)
Real-time 6K Image Rescaling with Rate-distortion Optimization
and 13 more not named here
AttentionBlock 14 other papers
14 dated earlier
Wang_Deep_Arbitrary-Scale_Image_Super-Resolution_via_Scale-Equivariance_Pursuit_CVPR_2023_paper (2023 (year only))
Deep Arbitrary-Scale Image Super-Resolution via Scale-Equivariance Pursuit
2303.04970 (2023-03)
LMR: A Large-Scale Multi-Reference Dataset for Reference-based Super-Resolution
2304.01064 (2023-04)
Real-time 6K Image Rescaling with Rate-distortion Optimization
and 11 more not named here
calc_mean_std 14 other papers
14 dated earlier
Wang_Deep_Arbitrary-Scale_Image_Super-Resolution_via_Scale-Equivariance_Pursuit_CVPR_2023_paper (2023 (year only))
Deep Arbitrary-Scale Image Super-Resolution via Scale-Equivariance Pursuit
2303.04970 (2023-03)
LMR: A Large-Scale Multi-Reference Dataset for Reference-based Super-Resolution
2304.01064 (2023-04)
Real-time 6K Image Rescaling with Rate-distortion Optimization
and 11 more not named here
get_part_location 2 other papers
2 dated earlier
2303.04970 (2023-03)
LMR: A Large-Scale Multi-Reference Dataset for Reference-based Super-Resolution
2304.01064 (2023-04)
Real-time 6K Image Rescaling with Rate-distortion Optimization

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

Repositories linked to this paper

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

Abstract

Recent advancements in low-light image enhancement have leveraged diffusion models for their strong ability to generate perceptually realistic, detailed images. Patch diffusion models further offer a promising solution to size-agnostic image restoration while improving efficiency. However, existing methods typically rely on small, fixed patches (e.g., 64$\times$64) that cannot capture image-level brightness context, whereas enlarging the receptive field improves brightness and colour estimation but substantially increases computational cost. Moreover, low-light images often exhibit uneven brightness across regions, making it necessary to ensure that locally enhanced patches remain visually coherent when combined into the full image. To address these limitations, we propose P-PatchDiff, a scalable progressive patch diffusion framework for low-light image enhancement that dynamically adjusts patch size throughout the denoising process, enabling a gradual shift from local to global views. A Multi-Patch Alignment strategy is also introduced to normalise features across varying patch scales using an estimated global brightness proxy. Rather than pursuing pixel-level reconstruction accuracy, P-PatchDiff focuses on scalability and coherent brightness across the whole image, allowing the model to perceive multi-scale information and better enhance regions with varying brightness. We empirically demonstrate that P-PatchDiff effectively enhances images ranging from 400 $\times$ 600 to 4K and is 80$\times$ faster than existing patch diffusion models while using less than 9GB of memory. The code is available at https://github.com/RuoyuGuo/P-PatchDiff.

For agents

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

get_harvested_code_for_paper("2609.01123")
get_code_for_paper("2609.01123")
have("2609.01123")

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

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

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

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

Connect an agent — have() is free.