[Paper Review] Learning Neurosymbolic Generative Models via Program Synthesis
This paper proposes Program-Synthesis Guided Generative Models (PS-GM), which integrate neurosymbolic programs—comprising sketches with perceptual components—to capture global structural patterns in images, such as repeating window arrangements. By synthesizing programs from training data and using them to guide deep generative models, PS-GM significantly improves image generation and completion over state-of-the-art baselines, especially on data with complex spatial structures.
Significant strides have been made toward designing better generative models in recent years. Despite this progress, however, state-of-the-art approaches are still largely unable to capture complex global structure in data. For example, images of buildings typically contain spatial patterns such as windows repeating at regular intervals; state-of-the-art generative methods can't easily reproduce these structures. We propose to address this problem by incorporating programs representing global structure into the generative model---e.g., a 2D for-loop may represent a configuration of windows. Furthermore, we propose a framework for learning these models by leveraging program synthesis to generate training data. On both synthetic and real-world data, we demonstrate that our approach is substantially better than the state-of-the-art at both generating and completing images that contain global structure.
Motivation & Objective
- To address the limitation of state-of-the-art deep generative models in capturing complex global structures like repeating patterns in images.
- To develop a method that combines program synthesis with deep generative models to model high-level structural priors in perceptual data.
- To enable both image generation from scratch and image completion by leveraging synthesized programs as structural priors.
- To overcome the challenge of lacking ground-truth global structure in training data by using domain-specific program synthesis to generate supervisory signals.
- To demonstrate that incorporating programmatic structure leads to more accurate and structured image generation and completion, especially in low-data regimes.
Proposed method
- Decompose global structure into a sketch (s) with holes and perceptual components (c), forming a neurosymbolic program P = (s, c).
- Use a domain-specific program synthesis algorithm to extract nested for-loops that represent 2D repeating patterns from training images.
- Generate a structure rendering x_struct by executing the synthesized program P on perceptual components from input data.
- Train a deep generative model (e.g., VAE, GAN, or VED) to complete x_struct into a full image, using the structural prior to guide generation.
- For image completion, synthesize a program from a partial image, extrapolate it to predict full structure, and use this to guide completion via a pre-trained model.
- Train the end-to-end system using supervised signals derived from synthesized programs, avoiding reinforcement learning or weak supervision.
Experimental results
Research questions
- RQ1Can neurosymbolic programs effectively capture complex global structures such as 2D repeating patterns in images?
- RQ2Does incorporating programmatic structure via program synthesis improve the performance of deep generative models in image generation and completion tasks?
- RQ3How does the proposed PS-GM framework compare to state-of-the-art models like GLCIC, CycleGAN, and VAEs in terms of structural fidelity and quantitative metrics?
- RQ4Can the method generalize to real-world datasets with limited data, such as the facades dataset, where baseline models fail?
- RQ5To what extent does the use of synthesized programs as structural priors improve generalization and sample quality in low-data regimes?
Key findings
- On synthetic data, PS-GM achieved a Fréchet inception distance (FID) of 91.8 with CycleGAN and 106.8 with GLCIC, significantly outperforming the baseline (218.7 and 163.66 respectively).
- On the facades dataset, PS-GM reduced FID to 124.4 (CycleGAN) and 141.8 (GLCIC), compared to baseline values of 251.4 and 195.9, demonstrating robustness to data scarcity.
- For VED-based completion, PS-GM achieved a negative log-likelihood (NLL) of 8755.4 on the facades dataset, slightly better than the baseline of 8636.3, though both models struggled due to poor structure learning.
- In image generation, PS-GM with VED produced images with more coherent and structured patterns than the baseline VAE, as shown in qualitative comparisons.
- The PS-GM framework significantly improved completion quality on images with complex spatial structures, such as buildings with repeating window patterns, where baselines failed to reconstruct global layout.
- The method demonstrated that program synthesis can generate meaningful supervisory signals for training deep generative models when ground-truth structure is unavailable.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.