All models

GRN

Class-conditional image generator that refines a map of binary-quantized tokens step by step with a transformer.

Diffusion and generative · 1,264 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (34 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
130.9M
Operations
1,264
Framework
PyTorch
Recurrent
No
Published
ECCV 2026
Cited by
1 (as of 27 October 2026)
Authors
Jian Han, Jinlai Liu, Jiahuan Wang and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m16961
Graph hash
86aaf01fa2bf04112a72349e918df5276c100355948f7476f915a57a09cf1ad6
Skeleton hash
814ae1ed955cb09c0b0571b463933add23cc3891408204f9072cca8ce5b1e833
Architecture hash
56eccc4cdb025adf6bb306252ac6df1b41465e2455a989922e98b409bfac42a3
Diagram SHA-256
62a12470fca21efa87da33f222c80d50519822faf4ef1cf6d55ea33edee01c62
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

GRN (Generative Refinement Networks) generates images by repeatedly refining a map of discrete tokens. Starting from a random token map, it randomly selects more predictions at each step and refines all input tokens. The paper sets this against diffusion models, which apply a uniform computational effort regardless of complexity, and autoregressive models, which it says are often hindered by lossy discrete tokenization and error accumulation.

The tokens come from Hierarchical Binary Quantization (HBQ), in which each element of the VAE encoded features undergoes several rounds of binary quantization, from coarse to fine. For class-to-image generation the tokenizer has a latent dimension of 16 and uses 4 rounds of HBQ, compressing a 256 × 256 image into 16 × 16 × 16 × 4 binary tokens. The network is a transformer with SwiGLU, RMSNorm, RoPE, qk-norm and in-context class conditioning. It is trained with a cross-entropy loss to predict the ground-truth tokens from an input that mixes ground-truth tokens and random tokens. An entropy-guided sampling strategy makes the number of generation steps adapt to complexity.

The paper trains four class-to-image sizes, GRN-B, GRN-L, GRN-H and GRN-G, which it gives as 130M, 458M, 952M and 2B parameters. On ImageNet 256×256 class-conditional generation it reports an FID of 3.56 for GRN-B and 1.81 for GRN-G.

Key idea. GRN generates images by refining a whole map of discrete tokens over several steps, starting from random tokens, on top of a Hierarchical Binary Quantization tokenizer.

  • GRN
  • Generative Refinement Networks
  • Hierarchical Binary Quantization
  • HBQ
  • class-conditional image generation
  • visual synthesis
  • image generation
  • discrete visual tokenizer
  • entropy-guided sampling

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{han2026generativerefinementnetworksvisual,
      title={Generative Refinement Networks for Visual Synthesis}, 
      author={Jian Han and Jinlai Liu and Jiahuan Wang and Bingyue Peng and Zehuan Yuan},
      year={2026},
      eprint={2604.13030},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2604.13030}, 
}