# 4M: Massively Multimodal Masked Modeling

Source: [4M: Massively Multimodal Masked Modeling](<https://www.sota2.com/research/paper/68fa717a1e209131cea517d2>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-01-04T04:39:06.900Z

Authors: David Mizrahi, Roman Bachmann, O\\u{g}uzhan Fatih Kar, Teresa Yeo, Mingfei Gao, Afshin Dehghan, Amir Zamir

Published: 2023-12-11T18:57:35.000Z

## Abstract

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.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Image Classification on ImageNet 1K (val) (Single Accuracy Metric)](<https://www.sota2.com/research/sota/image-classification-on-imagenet-1k-val-single-accuracy-metric.md>): Image Classification; ImageNet-1k (val); Accuracy: 86.6.

- [Surface Normal Estimation on DIODE (test)](<https://www.sota2.com/research/sota/surface-normal-estimation-on-diode-test.md>): Surface Normal Estimation; DIODE (test); L1 Error: 20.6.

- [Surface Normals Estimation on DIODE (val)](<https://www.sota2.com/research/sota/surface-normals-estimation-on-diode-val.md>): Surface Normals Estimation; DIODE (val); Mean Angle Error: 20.8.

- [Image Classification on ImageNet-1k 1.0 (test)](<https://www.sota2.com/research/sota/image-classification-on-imagenet-1k-1-0-test.md>): Image Classification; ImageNet-1k 1.0 (test); Top-1 Accuracy: 0.866.

- [Semantic Segmentation on ADE20K v1 (val)](<https://www.sota2.com/research/sota/semantic-segmentation-on-ade20k-v1-val.md>): Semantic segmentation; ADE20K v1 (val); mIoU: 53.4.

- [Depth Estimation on DIODE (val)](<https://www.sota2.com/research/sota/depth-estimation-on-diode-val.md>): Depth Estimation; DIODE (val); Standardized L1 Error: 0.68.

- [Text-to-Image Generation on CC12M 50K (val)](<https://www.sota2.com/research/sota/text-to-image-generation-on-cc12m-50k-val.md>): Text-to-Image Generation; CC12M 50K (val); FID: 11.9.

- [Depth Estimation on NYU](<https://www.sota2.com/research/sota/depth-estimation-on-nyu.md>): Depth Estimation; NYU; AbsRel: 0.068.

- [Depth Estimation on ETH3D (AbsRel, delta1, Average Rank)](<https://www.sota2.com/research/sota/depth-estimation-on-eth3d-absrel-delta1-average-rank.md>): Depth Estimation; ETH3D; AbsRel: 0.07.

- [Depth Estimation on ScanNet](<https://www.sota2.com/research/sota/depth-estimation-on-scannet.md>): Depth Estimation; ScanNet; AbsRel: 0.065.

- [Text-to-Image Generation on MSCOCO zero-shot 30k](<https://www.sota2.com/research/sota/text-to-image-generation-on-mscoco-zero-shot-30k.md>): Text-to-Image Generation; MSCOCO zero-shot 30k; FID (MSCOCO 30k, zero-shot): 30.1.

- [Depth Estimation on NYU v2 (test)](<https://www.sota2.com/research/sota/depth-estimation-on-nyu-v2-test.md>): Depth Estimation; NYU v2 (test); Threshold Accuracy (delta \< 1.25): 94.4.

- [Semantic Segmentation on COCO (val)](<https://www.sota2.com/research/sota/semantic-segmentation-on-coco-val.md>): Semantic segmentation; COCO (val); mIoU: 46.5.

- [Depth Estimation on DIODE](<https://www.sota2.com/research/sota/depth-estimation-on-diode.md>): Depth Estimation; DIODE; Delta-1 Accuracy: 73.4.

- [Referring Segmentation on refCOCOg (val)](<https://www.sota2.com/research/sota/referring-segmentation-on-refcocog-val.md>): Referring Segmentation; RefCOCOg (val); CIoU: 65.6.

- [Semantic Segmentation on ADE20K](<https://www.sota2.com/research/sota/semantic-segmentation-on-ade20k.md>): Semantic segmentation; ADE20K; mIoU: 53.4.

- [Object Detection on COCO 2017 (val)](<https://www.sota2.com/research/sota/object-detection-on-coco-2017-val.md>): Object Detection; COCO 2017 (val); AP: not recorded.

- [Instance Segmentation on COCO 2017 (val)](<https://www.sota2.com/research/sota/instance-segmentation-on-coco-2017-val.md>): Instance Segmentation; COCO 2017 (val); APm: not recorded.

- [Depth Estimation on NYU v2](<https://www.sota2.com/research/sota/depth-estimation-on-nyu-v2.md>): Depth Estimation; NYU V2; RMSE: not recorded.

- [Depth Estimation on KITTI](<https://www.sota2.com/research/sota/depth-estimation-on-kitti.md>): Depth Estimation; KITTI; RMSE: not recorded.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2312.06647>)

[PDF](<https://arxiv.org/pdf/2312.06647.pdf>)

[Implementation](<https://4m.epfl.ch/>)
