SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.19967 · NeurIPS · 2024

Magnet: We Never Know How Text-to-Image Diffusion Models Work, Until We Learn How Vision-Language Models Function

Chenyi Zhuang, Ying Hu, Pan Gao

arXiv · PDF · Open in the Atlas

Code that ran

11 of 17 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 6 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2409.19967.json · badge: /api/ran/2409.19967.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
I2-Multimedia-Lab/Magnet canonical (classifier label)
classifier basis: census
10 ran · 4 no recorded run
i2-multimedia-lab/magnet canonical (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
FunctionStatusWhere it lives
aggregate_attention Ran
ran, honoured the contract we drafted
I2-Multimedia-Lab/Magnet/utils/ptp_utils.py
pointer only (licence: NONE) · get_code("a020c1a6b1012624")
How it ran

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

check_emb_len Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
I2-Multimedia-Lab/Magnet/emb_swap_cases.py
pointer only (licence: NONE) · get_code("6d5cc44492ef32f9")
How it ran

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

check_prompt Ran
ran; our contract draft was wrong, not the code
I2-Multimedia-Lab/Magnet/utils/magnet_utils.py
pointer only (licence: NONE) · get_code("a868f49a58f3b0c1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, I2-Multimedia-Lab/Magnet 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_eot Ran
ran, honoured the contract we drafted
i2-multimedia-lab/magnet/utils/magnet.py
pointer only (licence: NONE) · get_code("eb532e7a9ef53248")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, i2-multimedia-lab/magnet 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_image_grid Ran
ran; our contract draft was wrong, not the code
I2-Multimedia-Lab/Magnet/utils/vis_utils.py
pointer only (licence: NONE) · get_code("0078d117f74b7c20")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, I2-Multimedia-Lab/Magnet 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_span Ran
ran; our contract draft was wrong, not the code
I2-Multimedia-Lab/Magnet/utils/magnet_utils.py
pointer only (licence: NONE) · get_code("7dece29f90f88c51")
How it ran

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

modify_prompt Ran
ran; our contract draft was wrong, not the code
I2-Multimedia-Lab/Magnet/utils/magnet_utils.py
pointer only (licence: NONE) · get_code("4af52c62cce564b4")
How it ran

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

rescale_noise_cfg Ran
ran; our contract draft was wrong, not the code
I2-Multimedia-Lab/Magnet/pipeline_sdxl.py
pointer only (licence: NONE) · get_code("bea2d776a332f2b0")
How it ran

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

retrieve_timesteps Ran
ran; our contract draft was wrong, not the code
I2-Multimedia-Lab/Magnet/pipeline_sdxl.py
pointer only (licence: NONE) · get_code("35717b791550ecb2")
How it ran

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

text_under_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
I2-Multimedia-Lab/Magnet/utils/ptp_utils.py
pointer only (licence: NONE) · get_code("d9c8674eef29679e")
How it ran

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

view_images Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
I2-Multimedia-Lab/Magnet/utils/ptp_utils.py
pointer only (licence: NONE) · get_code("e7fa6472a34f3407")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, I2-Multimedia-Lab/Magnet 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_depth Not yet run
unverified (harvested, no recorded run)
I2-Multimedia-Lab/Magnet/run_with_controlnet.py
pointer only (licence: NONE) · get_code("d2e162bceb23fb8b")
How it ran

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

get_magnet_direction Not yet run
unverified (harvested, no recorded run)
i2-multimedia-lab/magnet/utils/magnet.py
pointer only (licence: NONE) · get_code("cbf4b4066353af0f")
How it ran

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

get_prompt_embeds Not yet run
unverified (harvested, no recorded run)
I2-Multimedia-Lab/Magnet/utils/magnet.py
pointer only (licence: NONE) · get_code("998dcc4cecba3160")
How it ran

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

get_prompt_embeds_with_eid Not yet run
unverified (harvested, no recorded run)
i2-multimedia-lab/magnet/utils/magnet.py
pointer only (licence: NONE) · get_code("7baabbc4bf6672c9")
How it ran

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

load_bert Not yet run
unverified (harvested, no recorded run)
I2-Multimedia-Lab/Magnet/utils/magnet.py
pointer only (licence: NONE) · get_code("dce65a9d6d0c8f13")
How it ran

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

show_image_relevance Not yet run
unverified (harvested, no recorded run)
I2-Multimedia-Lab/Magnet/utils/vis_utils.py
pointer only (licence: NONE) · get_code("53e98bbf6844233a")
How it ran

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

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 2 the same month, 2 later) and 13 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
rescale_noise_cfg 62 other papers
33 dated earlier, 4 the same month, 24 later, 1 same year, order not determinable
2206.02779 (2022-06)
Blended Latent Diffusion
2304.06720 (2023-04)
Expressive Text-to-Image Generation with Rich Text
2309.06380 (2023-09)
InstaFlow: One Step is Enough for High-Quality Diffusion-Based Text-to-Image Generation
and 59 more not named here
retrieve_timesteps 21 other papers
11 dated earlier, 2 the same month, 8 later
2310.06313 (2023-10)
Advancing Pose-Guided Image Synthesis with Progressive Conditional Diffusion Models
2401.11708 (2024-01)
Mastering Text-to-Image Diffusion: Recaptioning, Planning, and Generating with Multimodal LLMs
2403.06976 (2024-03)
BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusion
and 18 more not named here
get_image_grid 2 other papers
2 dated earlier
2301.13826 (2023-01)
Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models
2307.10816 (2023-07)
BoxDiff: Text-to-Image Synthesis with Training-Free Box-Constrained Diffusion
show_image_relevance 2 other papers
2 dated earlier
2301.13826 (2023-01)
Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models
2307.10816 (2023-07)
BoxDiff: Text-to-Image Synthesis with Training-Free Box-Constrained Diffusion

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

Repositories linked to this paper

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

Abstract

Text-to-image diffusion models particularly Stable Diffusion, have revolutionized the field of computer vision. However, the synthesis quality often deteriorates when asked to generate images that faithfully represent complex prompts involving multiple attributes and objects. While previous studies suggest that blended text embeddings lead to improper attribute binding, few have explored this in depth. In this work, we critically examine the limitations of the CLIP text encoder in understanding attributes and investigate how this affects diffusion models. We discern a phenomenon of attribute bias in the text space and highlight a contextual issue in padding embeddings that entangle different concepts. We propose Magnet, a novel training-free approach to tackle the attribute binding problem. We introduce positive and negative binding vectors to enhance disentanglement, further with a neighbor strategy to increase accuracy. Extensive experiments show that Magnet significantly improves synthesis quality and binding accuracy with negligible computational cost, enabling the generation of unconventional and unnatural concepts. Code is available at https://github.com/I2-Multimedia-Lab/Magnet.

For agents

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

get_harvested_code_for_paper("2409.19967")
get_code_for_paper("2409.19967")
have("2409.19967")

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

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

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

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

Connect an agent — have() is free.