Papers › Learning A Physical-aware Diffusion Model Based on Transformer for Underwater Image Enhancement

Learning A Physical-aware Diffusion Model Based on Transformer for Underwater Image Enhancement

3 Mar 2024arXiv:2403.01497archive 2025-07-28

Chen Zhao, Chenyu Dong, Weiling Cai

Underwater visuals undergo various complex degradations, inevitably influencing the efficiency of underwater vision tasks. Recently, diffusion models were employed to underwater image enhancement (UIE) tasks, and gained SOTA performance. However, these methods fail to consider the physical properties and underwater imaging mechanisms in the diffusion process, limiting information completion capacity of diffusion models. In this paper, we introduce a novel UIE framework, named PA-Diff, designed to exploiting the knowledge of physics to guide the diffusion process. PA-Diff consists of Physics Prior Generation (PPG) Branch, Implicit Neural Reconstruction (INR) Branch, and Physics-aware Diffusion Transformer (PDT) Branch. Our designed PPG branch aims to produce the prior knowledge of physics. With utilizing the physics prior knowledge to guide the diffusion process, PDT branch can obtain underwater-aware ability and model the complex distribution in real-world underwater scenes. INR Branch can learn robust feature representations from diverse underwater image via implicit neural representation, which reduces the difficulty of restoration for PDT branch. Extensive experiments prove that our method achieves best performance on UIE tasks.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.01497")

Code

Syntology Ran 12 of 15 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · violated contract; 3 ran · our draft was wrong; 6 ran with no contract checked.

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

chenydong/pa-diff officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 12 ran; 1 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · violated contract
3ran · our draft was wrong
6ran
3unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from chenydong/pa-diff. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

calculate_psnr chenydong/pa-diff/core/metrics.py official repository ran fingerprinted Apache-2.0 (permissive) · 9394ff2c25b8a988 · report
default chenydong/pa-diff/model/ddpm_trans_modules/diffusion.py official repository ran · violated contract Apache-2.0 (permissive) · fbf9ec7be545688e · report
default_conv chenydong/pa-diff/model/ddpm_trans_modules/PPU.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 7e1f7c581619b800 · report
dict2str chenydong/pa-diff/core/logger.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 40c52ad98161c17b · report
dict_to_nonedict chenydong/pa-diff/core/logger.py official repository ran · our draft was wrong Apache-2.0 (permissive) · ada7273eee7081c7 · report
exists chenydong/pa-diff/model/ddpm_trans_modules/diffusion.py official repository ran · violated contract Apache-2.0 (permissive) · 608e364a9d2376a3 · report
gram_matrix chenydong/pa-diff/model/ddpm_trans_modules/style_transfer.py official repository ran fingerprinted Apache-2.0 (permissive) · 91325ea11845812d · report
load_part_of_model chenydong/pa-diff/model/utils.py official repository ran Apache-2.0 (permissive) · 1855446869c2370c · report
load_part_of_model2 chenydong/pa-diff/model/utils.py official repository ran Apache-2.0 (permissive) · bdbc72e56312023e · report
make_beta_schedule chenydong/pa-diff/model/ddpm_trans_modules/diffusion.py official repository ran · honoured contract Apache-2.0 (permissive) · 90be2f67f3d453d7 · report
ssim chenydong/pa-diff/core/metrics.py official repository ran fingerprinted Apache-2.0 (permissive) · ba721aeacc165234 · report
tensor2img chenydong/pa-diff/core/metrics.py official repository ran Apache-2.0 (permissive) · 34c878feb7966d4c · report
define_G chenydong/pa-diff/model/networks.py official repository unverified Apache-2.0 (permissive) · 25a6a47b93887187 · report
np_to_pil chenydong/pa-diff/model/utils.py official repository unverified Apache-2.0 (permissive) · 9ded097b1ff97516 · report
parse chenydong/pa-diff/core/logger.py official repository unverified Apache-2.0 (permissive) · 7ab62e92dd308cad · report

Tasks

Image EnhancementUIE

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDiffusionDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections