Manuscript Offprint

arXiv:2611.02540

PixelBench: Can LLMs Understand and Generate Images Pixel by Pixel?

Haoquan Zhang, Feiyang Liu, Juanxi Tian, Wanhua Li, Haodong Duan, Weiyang Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Haoquan Zhang¹ Feiyang Liu² Juanxi Tian³ Wanhua Li³ Haodong Duan¹,† Weiyang Liu¹

¹CUHK ²SCUT ³NTU Singapore †Corresponding author Project Page

Figure

Figure 1: Zero-shot text-to-pixel generation by large language models. Left: pixel images generated at different resolutions. Right: our generation protocol, in which the model defines a color palette and outputs a numerical grid whose entries index the palette colors. See Figure 3 for image-to-pixel generation.

ABSTRACT

Large language models (LLMs) can generate visual assets through text-based formats such as SVG and CAD, but these symbolic representations describe images using high-level primitives rather than explicit raster values. We ask whether LLMs can instead generate pixel images directly through their existing vocabulary, without a learned image tokenizer or decoder. We introduce PixelBench, a benchmark for text-to-pixel (T2P) and image-to-pixel (I2P) generation across multiple resolutions, together with a complementary pixel-understanding evaluation. Models generate an RGB color palette followed by a grid of indices specifying the palette color of each output pixel. In T2P, the strongest models produce recognizable images directly from text. In I2P, the strongest models outperform palette-matched downsampling and specialized pixelization algorithms at low resolutions. Pixel-understanding performance correlates strongly with generation performance. A resolution-scaling study shows that pixel-generation performance often improves initially before declining at high resolutions. Finally, we introduce Pixel Reconstruction Tuning (PRT), which augments visual instruction tuning with caption-palette-grid trajectories. We post-train Molmo2-4B from its pretraining checkpoint by mixing general instruction data with our curated PRT data, improving performance across 16 visual-centric benchmarks, indicating that explicit pixel reconstruction can provide useful auxiliary supervision.

1 INTRODUCTION

Large language models (LLMs) were originally developed to predict the next token in natural-language sequences. The same autoregressive training paradigm has since produced strong code-generation capabilities. Some generated code, including SVG code and CAD programs, can be rendered into images, providing an interface for probing how LLMs express visual information (Sharma et al., 2024; Qiu et al., 2025; Chen et al., 2026b; Rodriguez et al., 2025; Xing et al., 2025; Khan et al., 2024). However, these formats describe images using semantically meaningful, high-level primitives and are therefore one step away from actual visual appearance: a renderer expands each primitive into many pixels. By contrast, RGB rasters provide a more direct and ubiquitous representation of digital images, with each spatial location in a two-dimensional grid storing a color value. Most modern image generators map learned visual tokens or latent representations to pixels through dedicated decoders (Chameleon Team, 2024; Wang et al., 2026). Prior work has also trained specialized autoregressive image models to generate images directly in raster space (van den Oord et al., 2016a;b; Parmar et al., 2018; Chen et al., 2020). These studies demonstrate the feasibility of direct pixel generation, but rely on models specifically designed and trained for image modeling. To better investigate pixel-based visual understanding and generation, we ask the following question:

Can LLMs directly generate and understand visual content pixel by pixel?

To address this research question, we introduce PixelBench, a benchmark for evaluating LLMs on direct pixel generation and understanding. PixelBench uses a palette-indexed raster representation: the model first defines a palette of up to eight RGB colors and then generates a grid of palette indices, with each grid position specifying the color of one pixel. This interface needs no learned tokenizer, image decoder, or architectural change. PixelBench evaluates three tasks: text-to-pixel generation (T2P), where a model generates a recognizable pixel image from an object label, image-to-pixel generation (I2P), where the model reconstructs a given image in pixel format, and pixel understanding, where the model identifies the underlying concept from a textual palette-and-grid representation generated by either an algorithmic or a model-based pixel oracle.

Our evaluation shows that frontier LLMs already exhibit substantial pixel-generation capabilities, with leading models producing recognizable T2P outputs and competitive I2P reconstructions. Their behavior, however, depends strongly on target resolution. For many models, both visual quality and quantitative performance peak at an intermediate resolution, with 64×6464 \times 64 often performing worse than 32×3232 \times 32, while GPT-6 Astra exhibits notably better robustness. We therefore conduct a fine-grained resolution-scaling study and find that, except for Astra's consistently strong performance, most evaluated models initially improve but eventually decline as resolution increases. Viewing resolution as a measure of visual abstraction, these model-specific performance peaks suggest that different models are most effective at different levels of abstraction. Pixel understanding exhibits a similar ranking across models and correlates strongly with generation performance, suggesting that the connection between visual understanding and generation persists for pixel-based interface.

The observed connection between pixel generation and visual understanding raises a natural question of whether reconstructing an input image can serve as a training objective to improve a model's visual understanding. Reconstruction Alignment (RecA) (Xie et al., 2026) shows that reconstruction-aligned visual representations can improve image generation, but whether reconstruction can also enhance visual understanding remains underexplored. Motivated by this, we propose Pixel Reconstruction Tuning (PRT), which augments post-training with trajectories that describe an image, explain an automatically constructed color palette, and reconstruct the image as a pixel grid. In a controlled experiment with Molmo2-4B, we start from its pretraining checkpoint and post-train it on 500k LLaVA-OneVision-1.5 instructions mixed with PRT examples. Incorporating PRT data improves average performance across 16 visual-centric benchmarks. Ablations varying the number of PRT examples from 1k to 8k show consistent improvements across all tested data scales. A complementary study with Qwen3-VL further shows that Pixel data can regularize post-training when incorporated into a general instruction mixture. Our contributions are summarized below:

• A unified interface for evaluating pixel capabilities. We introduce PixelBench, a shared text-based pixel interface for evaluating frontier LLMs on both pixel generation and understanding.

• Capability limits at increasing resolutions. We characterize model-specific performance peaks and failure modes. GPT-6 Astra remains robust as resolution increases, while other evaluated models generally improve and then decline.

• Pixels as training supervision. We propose Pixel Reconstruction Tuning (PRT), which uses pixel reconstruction as a post-training objective. Starting from the Molmo2-4B pretraining checkpoint, incorporating PRT data into general instruction tuning consistently improves performance.

Figure

Figure 2: Examples of palette-indexed pixel representations. Each example pairs a compact color palette (top) with a 16 × 16 grid of palette indices (bottom). The mushroom, bee, frog, and rocket remain recognizable despite the low resolution and restricted palettes.

References (51)

  • SLIC superpixels compared to state-of-the-art superpixel methods
  • A visual language model for few-shot learning
  • Visual reasoning beyond language
  • Generative pretraining from pixels
  • Svgenius: Benchmarking llms in svg understanding, editing and generation
  • Symbolic graphics programming with large language models
  • Instructblip: Towards general-purpose vision-language models with instruction tuning
  • DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence
  • Open weights and open data for state-of-the-art vision-language models
  • Imagenet: A large-scale hierarchical image database
  • BLINK: Multimodal large language models can see but not perceive
  • Pixelated image abstraction
  • An advanced diagnostic suite for entangled language hallucination and visual illusion in large vision-language models
  • Masked autoencoders are scalable vision learners
  • Prismatic VLMs: Investigating the design space of visually-conditioned language models
  • Text2CAD: Generating sequential cad designs from beginner-to-expert level text prompts
  • Kimi K3: Open Frontier Intelligence
  • What matters when building vision-language models? In NeurIPS, 2024
  • BLIP-2: Bootstrapping language-image pre-training with frozen image encoders and large language models
  • ColorBench: Can VLMs see and understand the colorful world? a comprehensive benchmark for color perception, reasoning, and robustness
  • Evaluating atomic visual perception in multimodal large language models, 2026
  • Visual instruction tuning
  • Improved baselines with visual instruction tuning
  • Is your multi-modal model an all-around player? In ECCV, pp. 216–233, 2024b
  • MathVista: Evaluating mathematical reasoning of foundation models in visual contexts
  • ChartQA: A benchmark for question answering about charts with visual and logical reasoning
  • TMLR, 2024
  • Perceptually based downscaling of images
  • Image transformer
  • Can large language models understand symbolic graphics programs? In ICLR, 2025
  • Vision language models are blind
  • Starvector: Generating scalable vector graphics code from images and text
  • CAD-Recode: Reverse engineering cad code from point clouds
  • A vision check-up for language models
  • Eyes wide shut? exploring the visual shortcomings of multimodal llms
  • Metamorph: Multimodal understanding and generation via instruction tuning
  • Pixel recurrent neural networks
  • Conditional image generation with PixelCNN decoders
  • Vision language models are biased
  • Nature, 650:327–333, 2026
  • Rapid, detail-preserving image downscaling
  • Finevision: Open data is all you need, 2025
  • Q-Bench: A benchmark for general-purpose foundation models on low-level vision
  • V*: Guided visual search as a core mechanism in multimodal llms
  • Chat2svg: Vector graphics generation with large language models and image diffusion models
  • Make your own sprites: Aliasing-aware and cell-controllable pixelization
  • Reconstruction alignment improves unified multimodal models
  • Empowering llms to understand and generate complex vector graphics
  • Sigmoid loss for language image pre-training
  • Can It Actually Work? Synthesizing Functional CAD Mechanisms
  • VGBench: Evaluating large language models on vector graphics understanding and generation