SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.17218 · 2025

Machine Mental Imagery: Empower Multimodal Reasoning with Latent Visual Tokens

arXiv · PDF · Open in the Atlas

Code that ran

14 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 14 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2506.17218.json · badge: /api/ran/2506.17218.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
umass-embodied-agi/mirage canonical (classifier label)
classifier basis: census
14 ran · 3 no recorded run
FunctionStatusWhere it lives
build_tip_message Ran
ran; our contract draft was wrong, not the code
umass-embodied-agi/mirage/transformers/utils/deprecate_models.py
pointer only (licence: NONE); the stored copy get_code serves, from takagi97/OXA-Fine-tuning, is pointer only (licence: NONE) · get_code("ab306165fa74656c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, umass-embodied-agi/mirage 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_cased_name Ran
ran; our contract draft was wrong, not the code
umass-embodied-agi/mirage/transformers/utils/modular_model_converter.py
pointer only (licence: NONE) · get_code("8d6745e2692cf03d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, umass-embodied-agi/mirage 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_config_class_from_processor_class Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
umass-embodied-agi/mirage/transformers/utils/create_dummy_models.py
pointer only (licence: NONE); the stored copy get_code serves, from takagi97/OXA-Fine-tuning, is pointer only (licence: NONE) · get_code("3d999b95009c7537")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, umass-embodied-agi/mirage 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_list_of_repo_model_paths Ran
ran; our contract draft was wrong, not the code
umass-embodied-agi/mirage/transformers/utils/models_to_deprecate.py
pointer only (licence: NONE); the stored copy get_code serves, from takagi97/OXA-Fine-tuning, is pointer only (licence: NONE) · get_code("938fc7c2422ef91d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, umass-embodied-agi/mirage 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_model_doc_path Ran
ran; our contract draft was wrong, not the code
umass-embodied-agi/mirage/transformers/utils/deprecate_models.py
pointer only (licence: NONE); the stored copy get_code serves, from takagi97/OXA-Fine-tuning, is pointer only (licence: NONE) · get_code("051d790d9b197d9d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, umass-embodied-agi/mirage 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_module_source_from_name Ran
ran; our contract draft was wrong, not the code
umass-embodied-agi/mirage/transformers/utils/modular_model_converter.py
pointer only (licence: NONE); the stored copy get_code serves, from takagi97/OXA-Fine-tuning, is pointer only (licence: NONE) · get_code("029be6c1f552852b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, umass-embodied-agi/mirage 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_new_python_files_between_commits Ran
ran; our contract draft was wrong, not the code
umass-embodied-agi/mirage/transformers/utils/pr_slow_ci_models.py
pointer only (licence: NONE); the stored copy get_code serves, from takagi97/OXA-Fine-tuning, is pointer only (licence: NONE) · get_code("0f78c7037b35a137")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, umass-embodied-agi/mirage 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_processor_types_from_config_class Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
umass-embodied-agi/mirage/transformers/utils/create_dummy_models.py
pointer only (licence: NONE); the stored copy get_code serves, from takagi97/OXA-Fine-tuning, is pointer only (licence: NONE) · get_code("0c0b81b081919d8e")
How it ran

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

load_jsonl_dataset Ran
ran; our contract draft was wrong, not the code
umass-embodied-agi/mirage/src/utils.py
pointer only (licence: NONE) · get_code("0fbb3cf4415efb41")
How it ran

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

multiple_input_images_preprocess_function Ran
ran; our contract draft was wrong, not the code
umass-embodied-agi/mirage/src/task.py
pointer only (licence: NONE) · get_code("01f09967a9ef73ab")
How it ran

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

place_input_image Ran
ran; our contract draft was wrong, not the code
umass-embodied-agi/mirage/src/utils.py
pointer only (licence: NONE) · get_code("67012056b57c9945")
How it ran

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

place_output_image Ran
ran; our contract draft was wrong, not the code
umass-embodied-agi/mirage/src/utils.py
pointer only (licence: NONE) · get_code("a6823237c70a51ca")
How it ran

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

single_input_image_preprocess_function Ran
ran; our contract draft was wrong, not the code
umass-embodied-agi/mirage/src/task.py
pointer only (licence: NONE) · get_code("b76973ab8137eb01")
How it ran

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

single_input_image_test_preprocess_function Ran
ran; our contract draft was wrong, not the code
umass-embodied-agi/mirage/src/task.py
pointer only (licence: NONE) · get_code("c9aa7df020dc5885")
How it ran

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

extract_model_info Not yet run
unverified (harvested, no recorded run)
umass-embodied-agi/mirage/transformers/utils/deprecate_models.py
pointer only (licence: NONE); the stored copy get_code serves, from takagi97/OXA-Fine-tuning, is pointer only (licence: NONE) · get_code("54b7273383fcfc2d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, umass-embodied-agi/mirage 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_architectures_from_config_class Not yet run
unverified (harvested, no recorded run)
umass-embodied-agi/mirage/transformers/utils/create_dummy_models.py
pointer only (licence: NONE); the stored copy get_code serves, from takagi97/OXA-Fine-tuning, is pointer only (licence: NONE) · get_code("b176efb26f72e507")
How it ran

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

preserve_case_replace Not yet run
unverified (harvested, no recorded run)
umass-embodied-agi/mirage/transformers/utils/modular_model_converter.py
pointer only (licence: NONE); the stored copy get_code serves, from takagi97/OXA-Fine-tuning, is pointer only (licence: NONE) · get_code("d646d0a64800a8fe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, umass-embodied-agi/mirage 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, 11 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 10 the same month, 11 later) and 6 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
get_config_class_from_processor_class 27 other papers
24 dated earlier, 1 the same month, 2 later
2007.07779 (2020-07)
AdapterHub: A Framework for Adapting Transformers
2308.12219 (2023-08)
Diffusion Language Models Can Perform Many Tasks with Scaling and Instruction-Finetuning
2311.07468 (2023-11)
An Analysis and Mitigation of the Reversal Curse
and 24 more not named here
get_architectures_from_config_class 25 other papers
22 dated earlier, 1 the same month, 2 later
2308.12219 (2023-08)
Diffusion Language Models Can Perform Many Tasks with Scaling and Instruction-Finetuning
2311.07468 (2023-11)
An Analysis and Mitigation of the Reversal Curse
2312.15710 (2023-12)
Alleviating Hallucinations of Large Language Models through Induced Hallucinations
and 22 more not named here
get_processor_types_from_config_class 25 other papers
22 dated earlier, 1 the same month, 2 later
2308.12219 (2023-08)
Diffusion Language Models Can Perform Many Tasks with Scaling and Instruction-Finetuning
2311.07468 (2023-11)
An Analysis and Mitigation of the Reversal Curse
2312.15710 (2023-12)
Alleviating Hallucinations of Large Language Models through Induced Hallucinations
and 22 more not named here
build_tip_message 6 other papers
3 dated earlier, 1 the same month, 2 later
2402.17812 (2024-02)
DropBP: Accelerating Fine-Tuning of Large Language Models by Dropping Backward Propagation
2411.04358 (2024-11)
Robust and Efficient Fine-tuning of LLMs with Bayesian Reparameterization of Low-Rank Adaptation
2504.03933 (2025-04)
Language Models Are Implicitly Continuous
and 3 more not named here
extract_model_info 6 other papers
3 dated earlier, 1 the same month, 2 later
2402.17812 (2024-02)
DropBP: Accelerating Fine-Tuning of Large Language Models by Dropping Backward Propagation
2411.04358 (2024-11)
Robust and Efficient Fine-tuning of LLMs with Bayesian Reparameterization of Low-Rank Adaptation
2504.03933 (2025-04)
Language Models Are Implicitly Continuous
and 3 more not named here
get_list_of_repo_model_paths 6 other papers
3 dated earlier, 1 the same month, 2 later
2402.17812 (2024-02)
DropBP: Accelerating Fine-Tuning of Large Language Models by Dropping Backward Propagation
2411.04358 (2024-11)
Robust and Efficient Fine-tuning of LLMs with Bayesian Reparameterization of Low-Rank Adaptation
2504.03933 (2025-04)
Language Models Are Implicitly Continuous
and 3 more not named here
get_model_doc_path 6 other papers
3 dated earlier, 1 the same month, 2 later
2402.17812 (2024-02)
DropBP: Accelerating Fine-Tuning of Large Language Models by Dropping Backward Propagation
2411.04358 (2024-11)
Robust and Efficient Fine-tuning of LLMs with Bayesian Reparameterization of Low-Rank Adaptation
2504.03933 (2025-04)
Language Models Are Implicitly Continuous
and 3 more not named here
get_new_python_files_between_commits 5 other papers
2 dated earlier, 1 the same month, 2 later
2402.17812 (2024-02)
DropBP: Accelerating Fine-Tuning of Large Language Models by Dropping Backward Propagation
2504.03933 (2025-04)
Language Models Are Implicitly Continuous
2506.13752 (2025-06)
Steering LLM Thinking with Budget Guidance
and 2 more not named here
get_module_source_from_name 3 other papers
1 the same month, 2 later
2506.13752 (2025-06)
Steering LLM Thinking with Budget Guidance
2510.24061 (2025-10)
FALQON: Accelerating LoRA Fine-tuning with Low-Bit Floating-Point Arithmetic
2603.16206 (2026-03)
Offline Exploration-Aware Fine-Tuning for Long-Chain Mathematical Reasoning
preserve_case_replace 3 other papers
1 the same month, 2 later
2506.13752 (2025-06)
Steering LLM Thinking with Budget Guidance
2510.24061 (2025-10)
FALQON: Accelerating LoRA Fine-tuning with Low-Bit Floating-Point Arithmetic
2603.16206 (2026-03)
Offline Exploration-Aware Fine-Tuning for Long-Chain Mathematical Reasoning
get_cased_name 1 other paper
1 later
2510.24061 (2025-10)
FALQON: Accelerating LoRA Fine-tuning with Low-Bit Floating-Point Arithmetic

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

Vision-language models (VLMs) excel at multimodal understanding, yet their text-only decoding forces them to verbalize visual reasoning, limiting performance on tasks that demand visual imagination. Recent attempts train VLMs to render explicit images, but the heavy image-generation pre-training often hinders the reasoning ability. Inspired by the way humans reason with mental imagery-the internal construction and manipulation of visual cues-we investigate whether VLMs can reason through interleaved multimodal trajectories without producing explicit images. To this end, we present a Machine Mental Imagery framework, dubbed as Mirage, which augments VLM decoding with latent visual tokens alongside ordinary text. Concretely, whenever the model chooses to ``think visually'', it recasts its hidden states as next tokens, thereby continuing a multimodal trajectory without generating pixel-level images. Begin by supervising the latent tokens through distillation from ground-truth image embeddings, we then switch to text-only supervision to make the latent trajectory align tightly with the task objective. A subsequent reinforcement learning stage further enhances the multimodal reasoning capability. Experiments on diverse benchmarks demonstrate that Mirage unlocks stronger multimodal reasoning without explicit image generation.

For agents

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

get_harvested_code_for_paper("2506.17218")
get_code_for_paper("2506.17218")
have("2506.17218")

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

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

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

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

Connect an agent — have() is free.