Papers › HART: Efficient Visual Generation with Hybrid Autoregressive Transformer

HART: Efficient Visual Generation with Hybrid Autoregressive Transformer

14 Oct 2024arXiv:2410.10812archive 2025-07-28

Haotian Tang, Yecheng Wu, Shang Yang, Enze Xie, Junsong Chen, Junyu Chen, Zhuoyang Zhang, Han Cai, Yao Lu, Song Han

We introduce Hybrid Autoregressive Transformer (HART), an autoregressive (AR) visual generation model capable of directly generating 1024x1024 images, rivaling diffusion models in image generation quality. Existing AR models face limitations due to the poor image reconstruction quality of their discrete tokenizers and the prohibitive training costs associated with generating 1024px images. To address these challenges, we present the hybrid tokenizer, which decomposes the continuous latents from the autoencoder into two components: discrete tokens representing the big picture and continuous tokens representing the residual components that cannot be represented by the discrete tokens. The discrete component is modeled by a scalable-resolution discrete AR model, while the continuous component is learned with a lightweight residual diffusion module with only 37M parameters. Compared with the discrete-only VAR tokenizer, our hybrid approach improves reconstruction FID from 2.11 to 0.30 on MJHQ-30K, leading to a 31% generation FID improvement from 7.85 to 5.38. HART also outperforms state-of-the-art diffusion models in both FID and CLIP score, with 4.5-7.7x higher throughput and 6.9-13.4x lower MACs. Our code is open sourced at https://github.com/mit-han-lab/hart.

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="2410.10812")

Code

Syntology Ran 22 of 27 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 2 ran · honoured contract; 6 ran · our draft was wrong; 2 ran · fixture could not drive it; 12 ran with no contract checked.

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

mit-han-lab/hart officialmentioned in papermentioned on GitHubpytorchMIT report
FoundationVision/VAR officialmentioned in paperpytorchMIT 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

27 samples harvested; 22 ran; 2 honoured the contract we drafted; 5 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
6ran · our draft was wrong
2ran · fixture could not drive it
12ran
5unverified

Licence: 0 of the 27 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 mit-han-lab/hart. “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.

Normalize mit-han-lab/hart/hart/modules/networks/basic_vae.py official repository ran · our draft was wrong MIT (permissive) · 9fcdaa6e423e8aa7 · report
approx_standard_normal_cdf mit-han-lab/hart/hart/modules/diffusion/diffusion_utils.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · cfd76fd0d89574a4 · report
continuous_gaussian_log_likelihood mit-han-lab/hart/hart/modules/diffusion/diffusion_utils.py official repository ran · our draft was wrong MIT (permissive) · ab1c9568b4e13899 · report
drop_path mit-han-lab/hart/hart/modules/networks/utils.py official repository ran · fixture could not drive it MIT (permissive) · 971ae8d2d8313e30 · report
get_beta_schedule mit-han-lab/hart/hart/modules/diffusion/gaussian_diffusion.py official repository ran · honoured contract MIT (permissive) · 3e0fa4efc22272d4 · report
get_device mit-han-lab/hart/hart/modules/utils/network.py official repository ran MIT (permissive) · 7fe4e244281faf24 · report
get_params_num mit-han-lab/hart/hart/modules/utils/network.py official repository ran MIT (permissive) · b511bc5bb4607931 · report
get_position_ids_1d mit-han-lab/hart/hart/modules/networks/basic_hart.py official repository ran MIT (permissive) · 9f89d149e5ae9c22 · report
gumbel_softmax_with_rng mit-han-lab/hart/hart/modules/networks/utils.py official repository ran MIT (permissive) · e543491ea064c733 · report
list_mean mit-han-lab/hart/hart/modules/utils/list.py official repository ran fingerprinted MIT (permissive) · 7daf0d33ee58230c · report
list_sum mit-han-lab/hart/hart/modules/utils/list.py official repository ran fingerprinted MIT (permissive) · 09a2b9533add11e1 · report
mean_flat mit-han-lab/hart/hart/modules/diffusion/gaussian_diffusion.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · f6d7c009a8efb8b7 · report
modulate mit-han-lab/hart/hart/modules/diffusion/diffloss.py official repository ran · honoured contract fingerprinted MIT (permissive) · 62fcb3912a967a50 · report
nonlinearity mit-han-lab/hart/hart/modules/networks/basic_vae.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 3137073275f8c21a · report
normal_kl mit-han-lab/hart/hart/modules/diffusion/diffusion_utils.py official repository ran fingerprinted MIT (permissive) · 5ad3c89a859b3cae · report
rotate_half mit-han-lab/hart/hart/modules/networks/basic_hart.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · e03d53ba9d4f9ae5 · report
sample_with_top_k_top_p_ mit-han-lab/hart/hart/modules/networks/utils.py official repository ran MIT (permissive) · 80371584448f2f6e · report
space_timesteps mit-han-lab/hart/hart/modules/diffusion/respace.py official repository ran · fixture could not drive it MIT (permissive) · ea9dbc131adf582e · report
torch_randint mit-han-lab/hart/hart/modules/utils/random.py official repository ran MIT (permissive) · 19f1fd31c903cd91 · report
torch_random mit-han-lab/hart/hart/modules/utils/random.py official repository ran MIT (permissive) · ac590aa27c431a22 · report
torch_shuffle mit-han-lab/hart/hart/modules/utils/random.py official repository ran MIT (permissive) · 8829b59194c5fa59 · report
weighted_list_sum mit-han-lab/hart/hart/modules/utils/list.py official repository ran MIT (permissive) · 48a9a7c6f1af26d2 · report
get_named_beta_schedule mit-han-lab/hart/hart/modules/diffusion/gaussian_diffusion.py official repository unverified MIT (permissive) · 4f55c34a92359642 · report
get_position_ids mit-han-lab/hart/hart/modules/networks/basic_hart.py official repository unverified MIT (permissive) · fda451de9b534788 · report
is_dangerous mit-han-lab/hart/hart/utils/safety_check.py official repository unverified MIT (permissive) · a2304895c9083cad · report
is_parallel mit-han-lab/hart/hart/modules/utils/network.py official repository unverified MIT (permissive) · b0d3762fc8297376 · report
make_attn mit-han-lab/hart/hart/modules/networks/basic_vae.py official repository unverified MIT (permissive) · 793c7e2489dd8dfc · report

Tasks

Image GenerationImage Reconstruction

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPECLIPDense ConnectionsDiffusionDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

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