Papers › Language Model Beats Diffusion -- Tokenizer is Key to Visual Generation

Language Model Beats Diffusion -- Tokenizer is Key to Visual Generation

9 Oct 2023arXiv:2310.05737archive 2025-07-28

Lijun Yu, José Lezama, Nitesh B. Gundavarapu, Luca Versari, Kihyuk Sohn, David Minnen, Yong Cheng, Vighnesh Birodkar, Agrim Gupta, Xiuye Gu, Alexander G. Hauptmann, Boqing Gong, Ming-Hsuan Yang, Irfan Essa, David A. Ross, Lu Jiang

While Large Language Models (LLMs) are the dominant models for generative tasks in language, they do not perform as well as diffusion models on image and video generation. To effectively use LLMs for visual generation, one crucial component is the visual tokenizer that maps pixel-space inputs to discrete tokens appropriate for LLM learning. In this paper, we introduce MAGVIT-v2, a video tokenizer designed to generate concise and expressive tokens for both videos and images using a common token vocabulary. Equipped with this new tokenizer, we show that LLMs outperform diffusion models on standard image and video generation benchmarks including ImageNet and Kinetics. In addition, we demonstrate that our tokenizer surpasses the previously top-performing video tokenizer on two more tasks: (1) video compression comparable to the next-generation video codec (VCC) according to human evaluations, and (2) learning effective representations for action recognition tasks.

PaperPDFCodeCode Syntology ran

In Syntology 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="2310.05737")

Code

Syntology Ran 12 of 20 code samples harvested from 2 repositories linked to this paper; 8 have no recorded run. Of those that ran: 2 ran · honoured contract; 4 ran · violated contract; 2 ran · our draft was wrong; 4 ran with no contract checked.

By repository: community (archive-listed): 20 samples from 2 repositories, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jy0205/Pyramid-Flow mentioned on GitHubpytorch report
lucidrains/magvit2-pytorch mentioned on GitHubpytorchMIT 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

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

2ran · honoured contract
4ran · violated contract
2ran · our draft was wrong
4ran
8unverified

Licence: 0 of the 20 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

identity lucidrains/magvit2-pytorch/magvit2_pytorch/data.py community (archive-listed) ran · honoured contract MIT (permissive) · 7f1040f5e3991d5e · report
Normalize bornfly-detachment/asymmetric_magvitv2/models/modules/ops.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 9fcdaa6e423e8aa7 · report
compact lucidrains/magvit2-pytorch/magvit2_pytorch/attend.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 4a06bf1ac86f840a · report
default lucidrains/magvit2-pytorch/magvit2_pytorch/attend.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · 60fff7c3c400d7ff · report
default lucidrains/magvit2-pytorch/magvit2_pytorch/magvit2_pytorch.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · 99b3563ebc6734ad · report
exists lucidrains/magvit2-pytorch/magvit2_pytorch/attend.py community (archive-listed) ran · violated contract MIT (permissive) · aa5486a3650902d8 · report
exists lucidrains/magvit2-pytorch/magvit2_pytorch/magvit2_pytorch.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · b7c3487f192e31b7 · report
load_json bornfly-detachment/asymmetric_magvitv2/models/utils/ckpt_utils.py community (archive-listed) ran MIT (permissive) · 9edde0325b62d764 · report
nonlinearity bornfly-detachment/asymmetric_magvitv2/models/modules/ops.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 3137073275f8c21a · report
normal_kl bornfly-detachment/asymmetric_magvitv2/models/regularizers/distributions.py community (archive-listed) ran fingerprinted MIT (permissive) · 17eb0a31c91b671c · report
pair lucidrains/magvit2-pytorch/magvit2_pytorch/data.py community (archive-listed) ran fingerprinted MIT (permissive) · 9270ed2833cf3467 · report
separate_weight_decayable_params lucidrains/magvit2-pytorch/magvit2_pytorch/optimizer.py community (archive-listed) ran MIT (permissive) · fdc11aefc97f3abb · report
get_optimizer lucidrains/magvit2-pytorch/magvit2_pytorch/optimizer.py community (archive-listed) unverified MIT (permissive) · 86eb20af302241cc · report
get_transform bornfly-detachment/asymmetric_magvitv2/models/utils/image_op.py community (archive-listed) unverified MIT (permissive) · 241125f1cc6c1245 · report
get_video_frame bornfly-detachment/asymmetric_magvitv2/models/utils/image_op.py community (archive-listed) unverified MIT (permissive) · 5d4ae8e6aa7239c9 · report
measure_perplexity bornfly-detachment/asymmetric_magvitv2/models/regularizers/base.py community (archive-listed) unverified MIT (permissive) · cbe1cbc7eafd9f05 · report
model_load_ckpt bornfly-detachment/asymmetric_magvitv2/models/evaluation.py community (archive-listed) unverified MIT (permissive) · dba295827e199ba0 · report
read_image bornfly-detachment/asymmetric_magvitv2/models/utils/image_op.py community (archive-listed) unverified MIT (permissive) · eb7ab5a96e9ccae8 · report
safe_get_index lucidrains/magvit2-pytorch/magvit2_pytorch/magvit2_pytorch.py community (archive-listed) unverified MIT (permissive) · fb669d9f4c5be75e · report
video_to_image bornfly-detachment/asymmetric_magvitv2/models/modules/ops.py community (archive-listed) unverified MIT (permissive) · 3dc965c89ff14c5f · report

Tasks

Action RecognitionImage GenerationLanguage ModelingLanguage ModellingVideo CompressionVideo GenerationVideo Prediction

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Generation ImageNet 256x256 MAGVIT-v2 FID 1.78 #38 of 94 Archive leaderboard report
Image Generation ImageNet 256x256 MAGVIT-v2 (w/o guidance) FID 3.65 #73 of 94 Archive leaderboard report
Image Generation ImageNet 512x512 MAGVIT-v2 FID 1.91 #25 of 52 Archive leaderboard report
Image Generation ImageNet 512x512 MAGVIT-v2 Inception score 324.3 #25 of 52 Archive leaderboard report
Image Generation ImageNet 512x512 MAGVIT-v2 (w/o guidance) FID 3.07 #42 of 52 Archive leaderboard report
Image Generation ImageNet 512x512 MAGVIT-v2 (w/o guidance) Inception score 213.1 #42 of 52 Archive leaderboard report
Video Generation Kinetics-600 12 frames, 64x64 MAGVIT-v2 FVD 4.3±0.1 #2 of 4 Archive leaderboard report
Video Generation UCF-101 MAGVIT-v2 FVD16 58±3 #5 of 48 Archive leaderboard report
Video Generation UCF-101 MAGVIT-v2 (AR) FVD16 109 #10 of 48 Archive leaderboard report
Video Prediction Kinetics-600 12 frames, 64x64 MAGVIT-v2 FVD 4.3±0.1 #3 of 16 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Diffusion

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