SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.01986 · ICLR · 2025

Draw-In-Mind: Rebalancing Designer-Painter Roles in Unified Multimodal Models Benefits Image Editing

Wei Li, David Zhang, Mike Shou, Ziyun Zeng, Connector Mlp, Dit

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 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; 5 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 4 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/2509.01986.json · badge: /api/ran/2509.01986.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
showlab/DIM canonical (classifier label)
classifier basis: census
8 ran · 4 no recorded run
FunctionStatusWhere it lives
ceil_by_factor Ran
ran, honoured the contract we drafted
showlab/DIM/utils/vision_process.py
pointer only (licence: NONE) · get_code("6e45201fa27cb24a")
How it ran

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

classify_height_width_bin Ran
ran, honoured the contract we drafted
showlab/DIM/models/modeling_dim.py
pointer only (licence: NOASSERTION) · get_code("e2dd3c314bb633a4")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, showlab/DIM (NOASSERTION). 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.

classify_height_width_bin Ran
ran, honoured the contract we drafted
showlab/DIM/models/sana_pipeline.py
pointer only (licence: NOASSERTION) · get_code("9d06ee4c83d30c78")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, showlab/DIM (NOASSERTION). 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.

floor_by_factor Ran
ran, honoured the contract we drafted
showlab/DIM/utils/vision_process.py
pointer only (licence: NONE) · get_code("8155263d7ff19bb3")
How it ran

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

guidance_type_select Ran
ran; our contract draft was wrong, not the code
showlab/DIM/models/modeling_dim.py
pointer only (licence: NOASSERTION) · get_code("57e4b02c63e00263")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, showlab/DIM (NOASSERTION). 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.

hf_download_or_fpath Ran
ran; our contract draft was wrong, not the code
showlab/DIM/models/utils/hf_utils.py
pointer only (licence: NOASSERTION) · get_code("5eb9cc54b0a256fa")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, showlab/DIM (NOASSERTION). 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.

rotate_half Ran
ran; our contract draft was wrong, not the code
showlab/DIM/models/modeling_qwen2_5_vl.py
pointer only (licence: NONE) · get_code("e03d53ba9d4f9ae5")
How it ran

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

round_by_factor Ran
ran, honoured the contract we drafted
showlab/DIM/utils/vision_process.py
pointer only (licence: NONE) · get_code("e252767324188623")
How it ran

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

apply_rotary_pos_emb_flashatt Not yet run
unverified (harvested, no recorded run)
showlab/DIM/models/modeling_qwen2_5_vl.py
pointer only (licence: NONE) · get_code("24acaeb8ad82253e")
How it ran

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

apply_rotary_pos_emb_vision Not yet run
unverified (harvested, no recorded run)
showlab/DIM/models/modeling_qwen2_5_vl.py
pointer only (licence: NONE) · get_code("09445ca10af72017")
How it ran

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

download_model Not yet run
unverified (harvested, no recorded run)
showlab/DIM/models/utils/download.py
pointer only (licence: NOASSERTION) · get_code("d0929a67889d1b71")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, showlab/DIM (NOASSERTION). 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.

hf_download_data Not yet run
unverified (harvested, no recorded run)
showlab/DIM/models/utils/hf_utils.py
pointer only (licence: NOASSERTION) · get_code("4dd2cac04ecdac59")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, showlab/DIM (NOASSERTION). 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 1 the same month, 6 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
rotate_half 360 other papers
301 dated earlier, 2 the same month, 49 later, 5 same year, order not determinable, 3 undated · 30 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
and 357 more not named here
round_by_factor 25 other papers
15 dated earlier, 7 later, 2 same year, order not determinable, 1 undated
2409.12191 (2024-09)
Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution
2410.11623 (2024-10)
VidEgoThink: Assessing Egocentric Video Understanding Capabilities for Embodied AI
2412.01720 (2024-12)
LamRA: Large Multimodal Model as Your Advanced Retrieval Assistant
and 22 more not named here
ceil_by_factor 23 other papers
13 dated earlier, 7 later, 2 same year, order not determinable, 1 undated
2409.12191 (2024-09)
Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution
2410.11623 (2024-10)
VidEgoThink: Assessing Egocentric Video Understanding Capabilities for Embodied AI
2412.01720 (2024-12)
LamRA: Large Multimodal Model as Your Advanced Retrieval Assistant
and 20 more not named here
floor_by_factor 23 other papers
13 dated earlier, 7 later, 2 same year, order not determinable, 1 undated
2409.12191 (2024-09)
Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution
2410.11623 (2024-10)
VidEgoThink: Assessing Egocentric Video Understanding Capabilities for Embodied AI
2412.01720 (2024-12)
LamRA: Large Multimodal Model as Your Advanced Retrieval Assistant
and 20 more not named here
apply_rotary_pos_emb_flashatt 6 other papers
3 dated earlier, 3 later
2503.11187 (2025-03)
FastVID: Dynamic Density Pruning for Fast Video Large Language Models
2506.15220 (2025-06)
video-SALMONN 2: Caption-Enhanced Audio-Visual Large Language Models
2507.01949 (2025-07)
Kwai Keye-VL Technical Report
and 3 more not named here
apply_rotary_pos_emb_vision 4 other papers
1 dated earlier, 3 later
2503.11187 (2025-03)
FastVID: Dynamic Density Pruning for Fast Video Large Language Models
2602.01173 (2026-02)
EEmo-Logic: A Unified Dataset and Multi-Stage Framework for Comprehensive Image-Evoked Emotion Assessment
2602.22278 (2026-02)
RETLLM: Training and Data-Free MLLMs for Multimodal Information Retrieval
and 1 more not named here
classify_height_width_bin 1 other paper
1 dated earlier
2503.09641 (2025-03)
SANA-Sprint: One-Step Diffusion with Continuous-Time Consistency Distillation
guidance_type_select 1 other paper
1 dated earlier
2503.09641 (2025-03)
SANA-Sprint: One-Step Diffusion with Continuous-Time Consistency Distillation

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

In recent years, integrating multimodal understanding and generation into a single unified model has emerged as a promising paradigm. While this approach achieves strong results in text-to-image (T2I) generation, it still struggles with precise image editing. We attribute this limitation to an imbalanced division of responsibilities. The understanding module primarily functions as a translator that encodes user instructions into semantic conditions, while the generation module must simultaneously act as designer and painter, inferring the original layout, identifying the target editing region, and rendering the new content. This imbalance is counterintuitive because the understanding module is typically trained with several times more data on complex reasoning tasks than the generation module. To address this issue, we introduce Draw-In-Mind (DIM), a dataset comprising two complementary subsets: (i) DIM-T2I, containing 14M long-context imagetext pairs to enhance complex instruction comprehension; and (ii) DIM-Edit, consisting of 233K chain-of-thought imaginations generated by GPT-4o, serving as explicit design blueprints for image edits. We connect a frozen Qwen2.5-VL-3B (Bai et al., 2025) with a trainable SANA1.5-1.6B (Xie et al., 2025a) via a lightweight two-layer MLP, and train it on the proposed DIM dataset, resulting in DIM-4.6B-T2I/Edit. Despite its modest parameter scale, DIM-4.6B-Edit achieves SOTA or competitive performance on the ImgEdit and GEdit-Bench benchmarks, outperforming much larger models such as UniWorld-V1 (Lin et al., 2025) and Step1X-Edit (Liu et al., 2025). These findings demonstrate that explicitly assigning the design responsibility to the understanding module provides significant benefits for image editing. Our dataset and models are available at https://github.com/showlab/DIM.

For agents

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

get_harvested_code_for_paper("2509.01986")
get_code_for_paper("2509.01986")
have("2509.01986")

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

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

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

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

Connect an agent — have() is free.