Papers › 4M: Massively Multimodal Masked Modeling

4M: Massively Multimodal Masked Modeling

11 Dec 2023NeurIPS 2023 11arXiv:2312.06647archive 2025-07-28

David Mizrahi, Roman Bachmann, Oğuzhan Fatih Kar, Teresa Yeo, Mingfei Gao, Afshin Dehghan, Amir Zamir

Current machine learning models for vision are often highly specialized and limited to a single modality and task. In contrast, recent large language models exhibit a wide range of capabilities, hinting at a possibility for similarly versatile models in computer vision. In this paper, we take a step in this direction and propose a multimodal training scheme called 4M. It consists of training a single unified Transformer encoder-decoder using a masked modeling objective across a wide range of input/output modalities - including text, images, geometric, and semantic modalities, as well as neural network feature maps. 4M achieves scalability by unifying the representation space of all modalities through mapping them into discrete tokens and performing multimodal masked modeling on a small randomized subset of tokens. 4M leads to models that exhibit several key capabilities: (1) they can perform a diverse set of vision tasks out of the box, (2) they excel when fine-tuned for unseen downstream tasks or new input modalities, and (3) they can function as a generative model that can be conditioned on arbitrary modalities, enabling a wide variety of expressive multimodal editing capabilities with remarkable flexibility. Through experimental analyses, we demonstrate the potential of 4M for training versatile and scalable foundation models for vision tasks, setting the stage for further exploration in multimodal learning for vision and other domains.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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.06647")

Code

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

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

apple/ml-4m officialmentioned on GitHubpytorch 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

14 samples harvested; 11 ran; 2 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

2ran · honoured contract
1ran · fixture could not drive it
8ran
3unverified

Licence: 0 of the 14 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 apple/ml-4m. “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.

Attention apple/ml-4m/fourm/models/fm.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 469d6eab97788ae3 · report
CrossAttention apple/ml-4m/fourm/models/fm.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 92c05b09aa8b432d · report
DropPath apple/ml-4m/fourm/models/fm.py official repository ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · 0e191e0cd5b78fae · report
GatedMlp apple/ml-4m/fourm/models/fm.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 80a8c68c90e49910 · report
LayerNorm apple/ml-4m/fourm/models/fm.py official repository ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · aa04da21f78ede23 · report
Mlp apple/ml-4m/fourm/models/fm.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · fb956c775e434a63 · report
NormAttention apple/ml-4m/fourm/models/fm.py official repository ran Apache-2.0 (permissive) · 8e46b7a14afdc415 · report
NormCrossAttention apple/ml-4m/fourm/models/fm.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · be370600261ed57e · report
drop_path apple/ml-4m/fourm/models/fm.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · e60d6e23233f6f4b · report
get_value apple/ml-4m/fourm/demo_4M_sampler.py official repository ran · honoured contract Apache-2.0 (permissive) · 1c442a156b80c649 · report
softmax1 apple/ml-4m/fourm/models/fm.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 3369db8cc5790d44 · report
Block apple/ml-4m/fourm/models/fm.py official repository unverified Apache-2.0 (permissive) · 66f58c21558cf0b3 · report
DecoderBlock apple/ml-4m/fourm/models/fm.py official repository unverified Apache-2.0 (permissive) · 61b6a9e0db1b82ed · report
FourM apple/ml-4m/fourm/models/fm.py official repository unverified Apache-2.0 (permissive) · f975543590a1bbd0 · report

Tasks

Decoder

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSETSoftmaxTransformer

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