Skip to main content
QUICK REVIEW

[Paper Review] Procedural Image Programs for Representation Learning

Manel Baradad, Chun-Fu Chen|arXiv (Cornell University)|Nov 29, 2022
Generative Adversarial Networks and Image SynthesisComputer Science5 citations
TL;DR

This paper proposes a large-scale dataset of 21,000 procedural image-generating shaders written in OpenGL fragment language to enable high-performance representation learning without real images. By training neural networks on these diverse, fast-rendering programs, the method achieves state-of-the-art performance in both supervised and self-supervised representation learning, reducing the accuracy gap with real-image pre-training by 38%.

ABSTRACT

Learning image representations using synthetic data allows training neural networks without some of the concerns associated with real images, such as privacy and bias. Existing work focuses on a handful of curated generative processes which require expert knowledge to design, making it hard to scale up. To overcome this, we propose training with a large dataset of twenty-one thousand programs, each one generating a diverse set of synthetic images. These programs are short code snippets, which are easy to modify and fast to execute using OpenGL. The proposed dataset can be used for both supervised and unsupervised representation learning, and reduces the gap between pre-training with real and procedurally generated images by 38%.

Motivation & Objective

  • To address the limitation of existing synthetic data methods that rely on a small set of curated, expert-designed generative processes.
  • To explore whether scaling up the number of procedural image programs can significantly improve representation learning performance.
  • To develop a scalable, high-throughput framework for generating diverse synthetic images using short, executable code snippets.
  • To identify properties of effective procedural image programs that maximize downstream representation quality.
  • To demonstrate that procedural data can achieve performance competitive with real-image pre-training, especially in out-of-distribution settings.

Proposed method

  • Collect 21,000 short OpenGL fragment shader programs, each generating a diverse set of synthetic images with simple shapes and textures.
  • Use high-throughput GPU rendering (hundreds of frames per second) to generate images on-the-fly during training, enabling efficient data pipeline integration.
  • Train neural networks using both supervised and self-supervised representation learning (e.g., SimCLR, linear probing) on the generated images.
  • Leverage each unique shader as a discrete latent class for supervised learning, avoiding the need for ad-hoc clustering of generative parameters.
  • Train a lightweight predictor model to estimate the downstream performance of unseen shaders based on image-level statistics (e.g., LPIPS, compression, FID).
  • Use the predictor to guide the selection of high-performing shaders in a greedy, data-efficient manner for downstream evaluation.

Experimental results

Research questions

  • RQ1How does the number of procedural image programs scale with downstream representation learning performance?
  • RQ2Can a large, uncuration dataset of procedural shaders outperform existing synthetic data methods that rely on expert-designed generative processes?
  • RQ3What image-level properties (e.g., diversity, self-similarity, color variation) correlate with high downstream performance in procedural image generation?
  • RQ4Can a learned predictor model effectively identify high-performing shaders without full training, enabling efficient data selection?
  • RQ5How do the visual characteristics of high-performing shaders compare to low-performing ones in terms of structure and texture?

Key findings

  • Downstream performance scales logarithmically with the number of procedural image programs, indicating continued gains with larger program sets.
  • The proposed Shaders-21k dataset achieves a top-1 accuracy of 36% on ImageNet-1k using linear classification with a ResNet-50, outperforming the best prior method (Shaders-1k) by 10 percentage points.
  • The performance gap between pre-training with real images (Places365) and procedurally generated images is reduced by 38% using Shaders-21k with MixUp.
  • Shaders with high self-similarity (measured by LPIPS intra-image) tend to perform poorly, indicating that image diversity is a key driver of representation quality.
  • There is a strong Pareto frontier in FID and gzip compression: high-performing shaders cannot achieve both low FID and low compression simultaneously.
  • The greedy selection of shaders based on a learned performance predictor outperforms random selection by a large margin, with the top predicted shaders achieving 36% top-1 accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.