Papers › DEEM: Diffusion Models Serve as the Eyes of Large Language Models for Image Perception

DEEM: Diffusion Models Serve as the Eyes of Large Language Models for Image Perception

24 May 2024arXiv:2405.15232archive 2025-07-28

Run Luo, Yunshui Li, Longze Chen, Wanwei He, Ting-En Lin, Ziqiang Liu, Lei Zhang, Zikai Song, Xiaobo Xia, Tongliang Liu, Min Yang, Binyuan Hui

The development of large language models (LLMs) has significantly advanced the emergence of large multimodal models (LMMs). While LMMs have achieved tremendous success by promoting the synergy between multimodal comprehension and creation, they often face challenges when confronted with out-of-distribution data, such as which can hardly distinguish orientation, quantity, color, structure, etc. This is primarily due to their reliance on image encoders trained to encode images into task-relevant features, which may lead them to disregard irrelevant details. Delving into the modeling capabilities of diffusion models for images naturally prompts the question: Can diffusion models serve as the eyes of large language models for image perception? In this paper, we propose DEEM, a simple but effective approach that utilizes the generative feedback of diffusion models to align the semantic distributions of the image encoder. This addresses the drawbacks of previous methods that solely relied on image encoders like CLIP-ViT, thereby enhancing the model's resilience against out-of-distribution samples and reducing visual hallucinations. Importantly, this is achieved without requiring additional training modules and with fewer training parameters. We extensively evaluated DEEM on both our newly constructed RobustVQA benchmark and other well-known benchmarks, POPE and MMVP, for visual hallucination and perception. In particular, DEEM improves LMM's visual perception performance to a large extent (e.g., 4% higher on RobustVQA, 6.5% higher on MMVP and 12.8 % higher on POPE ). Compared to the state-of-the-art interleaved content generation models, DEEM exhibits enhanced robustness and a superior capacity to alleviate model hallucinations while utilizing fewer trainable parameters, less pre-training data (10%), and a smaller base model size.

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

Code

Syntology Ran 7 of 15 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · fixture could not drive it; 5 ran with no contract checked.

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

rainbowluocs/deem 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; 7 ran; 1 honoured the contract we drafted; 8 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
1ran · fixture could not drive it
5ran
8unverified

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 rainbowluocs/deem. “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.

box_iou rainbowluocs/deem/uni_interleaved/utils/grounding_score.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · ce749f837424dd8c · report
extract_answer rainbowluocs/deem/uni_interleaved/utils/vqa_score.py official repository ran fingerprinted Apache-2.0 (permissive) · c1b06375bdb265f4 · report
grounding_eval rainbowluocs/deem/uni_interleaved/utils/grounding_score.py official repository ran Apache-2.0 (permissive) · 218b45d457ba5f5b · report
load_annt_data rainbowluocs/deem/inference.py official repository ran Apache-2.0 (permissive) · 983c68ab9faa901c · report
parse_box rainbowluocs/deem/uni_interleaved/utils/grounding_score.py official repository ran Apache-2.0 (permissive) · 13e859c753057e62 · report
tensor_to_pil rainbowluocs/deem/uni_interleaved/utils/clip_sim_score.py official repository ran Apache-2.0 (permissive) · 1af97eee0d5e9a78 · report
update_texts rainbowluocs/deem/inference.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 6aae1c40e557fe64 · report
calculate_activation_statistics rainbowluocs/deem/uni_interleaved/utils/fid_score.py official repository unverified Apache-2.0 (permissive) · 58f3cb144de3c6f9 · report
calculate_clip_sim_i2i rainbowluocs/deem/uni_interleaved/utils/clip_sim_score.py official repository unverified Apache-2.0 (permissive) · a2cc9c29fefca146 · report
calculate_frechet_distance rainbowluocs/deem/uni_interleaved/utils/fid_score.py official repository unverified Apache-2.0 (permissive) · 0def50a351111624 · report
clip_rerank_generated_images rainbowluocs/deem/uni_interleaved/utils/clip_sim_score.py official repository unverified Apache-2.0 (permissive) · b6d159b5ffc47aa4 · report
get_activations rainbowluocs/deem/uni_interleaved/utils/fid_score.py official repository unverified Apache-2.0 (permissive) · 696501a9b5a48e4b · report
imagenet_eval rainbowluocs/deem/uni_interleaved/utils/imagenet_score.py official repository unverified Apache-2.0 (permissive) · 716ae138c69cc76e · report
vizwiz_vqa_eval rainbowluocs/deem/uni_interleaved/utils/vqa_score.py official repository unverified Apache-2.0 (permissive) · 521448a8a9392444 · report
vqa_eval rainbowluocs/deem/uni_interleaved/utils/vqa_score.py official repository unverified Apache-2.0 (permissive) · 2de01f2d390090d6 · report

Tasks

Hallucination

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGNBASEDiffusion

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