Papers › Harnessing Diffusion Models for Visual Perception with Meta Prompts

Harnessing Diffusion Models for Visual Perception with Meta Prompts

22 Dec 2023arXiv:2312.14733archive 2025-07-28

Qiang Wan, Zilong Huang, Bingyi Kang, Jiashi Feng, Li Zhang

The issue of generative pretraining for vision models has persisted as a long-standing conundrum. At present, the text-to-image (T2I) diffusion model demonstrates remarkable proficiency in generating high-definition images matching textual inputs, a feat made possible through its pre-training on large-scale image-text pairs. This leads to a natural inquiry: can diffusion models be utilized to tackle visual perception tasks? In this paper, we propose a simple yet effective scheme to harness a diffusion model for visual perception tasks. Our key insight is to introduce learnable embeddings (meta prompts) to the pre-trained diffusion models to extract proper features for perception. The effect of meta prompts are two-fold. First, as a direct replacement of the text embeddings in the T2I models, it can activate task-relevant features during feature extraction. Second, it will be used to re-arrange the extracted features to ensures that the model focuses on the most pertinent features for the task on hand. Additionally, we design a recurrent refinement training strategy that fully leverages the property of diffusion models, thereby yielding stronger visual features. Extensive experiments across various benchmarks validate the effectiveness of our approach. Our approach achieves new performance records in depth estimation tasks on NYU depth V2 and KITTI, and in semantic segmentation task on CityScapes. Concurrently, the proposed method attains results comparable to the current state-of-the-art in semantic segmentation on ADE20K and pose estimation on COCO datasets, further exemplifying its robustness and versatility.

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="2312.14733")

Code

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

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

fudan-zvg/meta-prompts officialmentioned in papermentioned on GitHubpytorchMIT 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

6 samples harvested; 4 ran; 0 honoured the contract we drafted; 2 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.

2ran · violated contract
1ran · our draft was wrong
1ran
2unverified

Licence: 0 of the 6 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 fudan-zvg/meta-prompts. “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.

default fudan-zvg/meta-prompts/meta_prompts/models.py official repository ran · violated contract MIT (permissive) · 424012cb37b31172 · report
exists fudan-zvg/meta-prompts/meta_prompts/models.py official repository ran · violated contract MIT (permissive) · aa5486a3650902d8 · report
get_num_layer_for_swin fudan-zvg/meta-prompts/depth/models_depth/optimizer.py official repository ran MIT (permissive) · 6907f72868217c02 · report
uniq fudan-zvg/meta-prompts/meta_prompts/models.py official repository ran · our draft was wrong MIT (permissive) · 9a299fe5ae09e407 · report
cosine_scheduler fudan-zvg/meta-prompts/depth/utils.py official repository unverified MIT (permissive) · b700fb0a3496b255 · report
get_grad_norm_ fudan-zvg/meta-prompts/depth/utils.py official repository unverified MIT (permissive) · ba1356e8ceb654d2 · report

Tasks

Depth EstimationMonocular Depth EstimationPose EstimationSemantic Segmentation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Monocular Depth Estimation KITTI Eigen split MetaPrompt-SD Delta < 1.25 0.981 #11 of 79 Archive leaderboard report
Monocular Depth Estimation KITTI Eigen split MetaPrompt-SD Delta < 1.25^2 0.998 #11 of 79 Archive leaderboard report
Monocular Depth Estimation KITTI Eigen split MetaPrompt-SD Delta < 1.25^3 1.000 #11 of 79 Archive leaderboard report
Monocular Depth Estimation KITTI Eigen split MetaPrompt-SD RMSE 1.928 #11 of 79 Archive leaderboard report
Monocular Depth Estimation KITTI Eigen split MetaPrompt-SD RMSE log 0.071 #11 of 79 Archive leaderboard report
Monocular Depth Estimation KITTI Eigen split MetaPrompt-SD Sq Rel 0.125 #11 of 79 Archive leaderboard report
Monocular Depth Estimation KITTI Eigen split MetaPrompt-SD absolute relative error 0.047 #11 of 79 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 MetaPrompt-SD Delta < 1.25 0.976 #15 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 MetaPrompt-SD Delta < 1.25^2 0.997 #15 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 MetaPrompt-SD Delta < 1.25^3 0.999 #15 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 MetaPrompt-SD RMSE 0.223 #15 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 MetaPrompt-SD absolute relative error 0.061 #15 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 MetaPrompt-SD log 10 0.027 #15 of 85 Archive leaderboard report
Pose Estimation COCO (Common Objects in Context) MetaPrompt-SD AP 79.0 #2 of 10 Archive leaderboard report
Semantic Segmentation ADE20K MetaPrompt-SD Validation mIoU 56.8 #37 of 235 Archive leaderboard report
Semantic Segmentation Cityscapes test MetaPrompt-SD Mean IoU (class) 86.2 #2 of 105 Archive leaderboard report
Semantic Segmentation Cityscapes val MetaPrompt-SD mIoU 87.1 #3 of 99 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Diffusion

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