Nemotron-Labs-VisualCreation: Pixel as Code for Agentic Visual Creation

Guo Chen, Fuxiao Liu, Haoqin Tu, Yiyang Zhou, Andrew Tao, Bryan Catanzaro, Cihang Xie, Yuyin Zhou, Huaxiu Yao, Didong Lu, Zongxia Li, Guilin LiuarXiv 2026

TL;DR

Generating a stunning photograph requires a very different toolkit than building a crisp, editable webpage or scientific chart—yet real-world creative tasks often demand both at once. NVIDIA introduces Nemotron-Labs-VisualCreation, an agentic framework that unifies expressive image synthesis and structured graphic design under a single "Pixel as Code" interface. By treating both raster pixels and explicit markup (HTML, SVG, LaTeX) as discrete codes that can be rendered, visually inspected, and iteratively repaired, the system rivals frontier closed-source tools across everything from photorealistic landscapes to interactive web layouts.

What Problem Does This Paper Address?

If you ask a standard image generator for a atmospheric coastal landscape, you get magic. Ask it for an interactive hotel landing page with exact typography, a 20-bar population chart, and an editable layout, and you usually get visual soup.

Visual creation is split between two worlds: neural raster generators (great at textures, lighting, and vibes, terrible at exact layout and editability) and code generators (great at crisp structure in HTML or SVG, blind to how the final rendered pixels actually look—leading to overlapping text or broken charts). Real-world deliverables like posters, slides, and web interfaces need both expressive imagery and exact structural control, coordinated by an intelligent eye that can spot visual bugs and fix them.

Methods

The core abstraction is Pixel as Code: whether the system is dreaming up a photograph or coding a chart, a generator predicts discrete tokens, a renderer turns them into a visual view, and a vision-language critic inspects the result.

Figure 1: Pixel as Code at a glance. Learned visual tokens and explicit programs provide complementary representations for raster images and editable structured artifacts. Their renderers connect both representations to visual outputs that agents can inspect. Hybrid artifacts combine raster assets with structured layouts. Representations are schematic; thumbnails show representative system outputs. Figure 5 details the route-specific generation, selection, and repair workflows.

To power this, the authors built three specialized model components orchestrated by an agentic harness:

  • Nemotron-Labs-Image-Tokenizer (642M): A Vision-Transformer autoencoder using a frozen Spherical Leech-lattice codebook (196,560 entries). It compresses $16 \times 16$ pixel patches into discrete tokens and decodes them back into pixels—acting as a "learned renderer" trained with L1, LPIPS, PatchGAN, and DINOv2 feature distillation.
  • Nemotron-Labs-Image-30B-A3B: An autoregressive raster generator built on a hybrid Mamba2–Transformer MoE backbone (30B total parameters, 3B active). It undergoes multi-stage resolution mid-training ($256^2 \rightarrow 512^2 \rightarrow 1024^2$) followed by Group Relative Policy Optimization (GRPO) using a vision-language judge.
  • Nemotron-Labs-VisionCode (30B-A3B & 120B-A12B): Multimodal coding models fine-tuned and RL-trained with execution sandboxes (Python, browsers, LaTeX compilers) to output valid, visually faithful structured code.
  • The Agentic Harness: Using Nemotron 3 Ultra (planner) and Nemotron-3.5-Super-VL (router/critic), the harness routes requests. Direct raster requests generate multiple candidates and pick the winner. Structured or hybrid requests (like a webpage embedding a custom-generated hero image) establish a frozen layout contract, run a "Dual Coder," and enter a bounded visual audit and repair loop that diagnoses bugs (e.g., text overlap, missing chart bars) and routes fixes to the exact causal owner—plan, asset, or code.

Datasets

No new evaluation benchmarks are introduced, though massive training mixtures were curated:

  • Tokenizer Training: ~153M images filtered and deduplicated from a 200M NVCLIP pool.
  • Raster Generation: ~374M text-to-image pairs (~326M web images from GPIC, CC12M, CommonCatalog, Megalith, and WIT, plus ~48M synthetic Z-Image samples), alongside 10% text-and-image-conditioned data.
  • Structured Code: ~4.7M effective multimodal-coding examples spanning SVG, web UI, plotting scripts, LaTeX tables/formulas, and CAD.
  • Evaluation: Tested on 35 datasets (~178K images) for reconstruction; GenEval, GenEval2, UniGenBench++, LongTextBench, CVTG-2K, OneIG, Qwen-Image-Bench, WISE, and BizGenEval for image/design creation; and Chart2Code, MMSVG, Design2Code, and Image2Struct for code generation.

Key Insights and Ideas

  • Learnability-Driven RL Refresh: During RL for the image generator, easy prompts quickly saturate—all 32 sampled rollouts get high scores, leaving zero variance for group-relative learning. By filtering out low-variance groups and dynamically refreshing the prompt pool with denser constraints when group yield drops, the policy keeps improving instead of plateauing.
  • Surgical Self-Correction via Root-Cause Ownership: Rather than blindly regenerating an entire webpage when something looks wrong, the browser audit separates the visible symptom (e.g., collision or missing region) from the causal layer (plan, raster asset, or CSS/HTML), freezing working regions so fixes don't break the rest of the page.
  • Token Compression Fuels Speed and Quality: Using $16 \times 16$ patches with a fixed geometric codebook processes $4\times$ more samples per node than $8 \times 8$ patches while actually improving fidelity on text-heavy UIs and documents.

Key Results

  • Tokenizer Speed & Fidelity: Across ~178K images, the tokenizer improves PSNR from 26.08 dB to 29.57 dB over Emu3.5 IBQ (jumping 4.63–5.35 dB on documents, charts, and UIs), while running 7.13$\times$ faster at encoding and 10.93$\times$ faster at decoding (batch size 1 on an A100).
  • Structured Coding: Standalone VisionCode-120B-A12B achieves an aggregate score of 98.27 across five visual coding tasks, beating the massive 2.8T-parameter Kimi K3.1 Pro (94.44) with a fraction of the active parameters (12B vs. 104B).
  • Agentic Boost: Wrapping the exact same 30B-A3B raster generator in the Nemotron-native agentic harness vaults GenEval2 from 31.71 to 52.56 and world-knowledge reasoning (WISE Verified) from 46.30 to 88.60 (surpassing Nano Banana Pro's 87.60). Swapping in a GPT-6 agentic backbone pushes WISE to 91.50 and BizGenEval to 86.0, outperforming GPT Image 2 (83.2).

Limitations and Future Work

  • System-Level Attribution & Compute: System benchmarks measure the entire agentic loop end-to-end without isolating how much gain comes from planning, search, or candidate selection, nor matching inference compute budgets against single-pass baselines.
  • Harness Integration: In the current system experiments, browser-based coding uses a Dual Coder (Ultra + Super-VL), while the newly trained VisionCode family was evaluated standalone rather than plugged into the live harness.
  • Untested Modalities: Although the raster generator was trained on text-and-image-conditioned data (editing and multi-reference synthesis), those capabilities were not benchmarked here and are left for future work, alongside closing remaining gaps on broad aesthetic benchmarks like OneIG.

Summary updated

Abstract

Visual creation demands expressive imagery together with precise control over text, layout, and structure. We introduce Nemotron-Labs-VisualCreation, an agentic framework that connects these capabilities through Pixel as Code. Raster images are represented by learned discrete visual tokens, while structured artifacts use explicit programs. A shared generation-and-rendering interface connects these representations to visual feedback across images, vector graphics, webpages, and documents. A Nemotron-native harness coordinates planning and raster candidate selection, with targeted repair for editable structured and hybrid artifacts. To support this interface, we develop Nemotron-Labs-Image-Tokenizer, the autoregressive raster generator Nemotron-Labs-Image-30B-A3B, and the structured-code model family Nemotron-Labs-VisionCode. On approximately 178K images spanning six visual domains, our tokenizer improves reconstruction PSNR from 26.08 to 29.57 dB over Emu3.5 IBQ. It also provides 7.13x faster encoding and 10.93x faster decoding at batch size one on A100. In standalone evaluation, one Nemotron-Labs-VisionCode variant surpasses Kimi K3.1 Pro on the aggregate across Chart2Code, MMSVG, Design2Code, and Image2Struct. At the system level, the Nemotron-native configuration raises GenEval2 Soft-TIFA GM from 31.71 to 52.56 using the same raster generator. With our best setting, Nemotron-Labs-VisualCreation achieves performance competitive with GPT Image 2 and Nano Banana Pro across most benchmarks with available comparisons.
BibTeX
@misc{chen2026nemotron,
  author = {Guo Chen and Fuxiao Liu and Haoqin Tu and Yiyang Zhou and Andrew Tao and Bryan Catanzaro and Cihang Xie and Yuyin Zhou and Huaxiu Yao and Didong Lu and Zongxia Li and Guilin Liu},
  title = {{Nemotron-Labs-VisualCreation: Pixel as Code for Agentic Visual Creation}},
  year = {2026},
  eprint = {2611.31358},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31358},
}
Figure