Neurosymbolic Models for Computer Graphics

Daniel Ritchie, Paul Guerrero, R. Kenny Jones, Niloy J. Mitra, Adriana Schulz, Karl D. D. Willis, Jiajun Wu

Abstract

This report surveys the emerging field of neurosymbolic models in computer graphics, which integrate the structured, interpretable nature of symbolic programs with the learning capabilities of deep neural networks. By bridging the gap between "black-box" AI and traditional procedural modeling, these models facilitate the generation of high-quality, editable, and compact 2D and 3D representations. We explore the design space of these models, the datasets driving the field, and the key insights that enable efficient program synthesis and differentiable execution.

Introduction: The Representation Trade-off

Computer graphics has long grappled with a fundamental trade-off in how visual data is represented. Traditional procedural models, such as CAD scripts or L-systems, offer significant advantages: they are compact, resolution-independent, and highly interpretable. However, authoring these models is a labor-intensive process requiring deep technical and artistic expertise.

Conversely, modern deep learning models (e.g., GANs or Diffusion models) can learn to generate complex visuals from raw data but produce "opaque" representations. These "black-box" outputs are difficult for humans to edit precisely and often suffer from geometric artifacts or blurry textures due to their statistical nature. Neurosymbolic models aim to provide the "best of both worlds" by using artificial intelligence to automatically write or manipulate symbolic programs that represent visual data. This approach allows for the creation of assets that are both learned from data and fully editable by humans.

The Neurosymbolic Design Space

The authors categorize neurosymbolic research across five primary axes:

  1. Task Specification: This defines how a user communicates intent, ranging from a single target image to complex objective functions, such as ensuring a 3D structure remains stable under gravity.
  2. Domain-Specific Language (DSL): The DSL is the vocabulary of the model. It encompasses the programming paradigm and determines whether the primitives are fixed shapes or "Neural Primitives"—learned sub-modules that represent complex geometry.
  3. Program Synthesizer: This is the search engine responsible for finding the optimal program. A key innovation here is Neural Guidance, where a neural network predicts the most likely next code snippet to prune the massive search space.
  4. Execution Engine: This component converts the program into pixels or geometry. While standard compilers are common, some systems employ a Learned Proxy—a neural network that simulates the code's output—to enable faster, differentiable training.
  5. Learning Algorithm: Training strategies vary from Modular Training, which utilizes human-written code as ground truth, to End-to-End Unsupervised Training using "Smooth Relaxation" to make discrete programming choices differentiable.

Data Foundations for Structured Learning

The development of neurosymbolic models relies heavily on datasets that provide structured, programmatic data. Key datasets highlighted in the report include:

  • 2D Shapes: SketchGraphs and CAD as Language provide millions of sketches from OnShape; SVG-Icons8 offers vector icons; and Quick, Draw! captures hand-drawn strokes.
  • 3D Shapes: PartNet focuses on hierarchical part decompositions; ABC provides one million mechanical CAD parts; and the Fusion 360 Gallery documents real-world CAD construction sequences.
  • Materials: Substance Source contains thousands of professional node-based graphs for procedural textures.
Examples of mechanical CAD parts from datasets like ABC, illustrating the structured geometric data used to train neurosymbolic models.

Key Insights: Bridging AI and Symbolic Logic

Several breakthroughs have propelled the field of neurosymbolic graphics:

  • Neural Guidance for NP-Hard Search: Pure program synthesis is computationally prohibitive. By using neural networks to guide the search through the space of possible programs, researchers have made it feasible to "reverse-engineer" code from visual inputs.
  • Interpretability and Editability: Unlike latent space manipulation in standard AI, neurosymbolic models allow users to modify specific parameters in the generated code (e.g., changing a radius value) for precise, predictable edits.
  • Differentiable Programming: "Smooth Relaxation" allows for a continuous transition between discrete shapes (like a square and a circle). This makes the programming language compatible with gradient-based optimization.
A sketch of a tree structure being automatically translated into a symbolic program using neural guidance.
  • Abstraction Discovery: Advanced systems can "invent" their own functions by identifying repeating patterns in the code they generate, effectively building higher-level libraries that simplify future synthesis tasks.

Applications and Results

Neurosymbolic models have demonstrated significant improvements across several domains:

  • 2D/3D Reconstruction: Models such as Im2Vec and CSGNet can take pixel images or point clouds and reconstruct the clean, mathematical CAD programs that define them.
  • Layout Generation: These models excel at synthesizing floor plans and furniture arrangements that adhere to strict constraints (e.g., "beds must be adjacent to walls") more reliably than pure neural approaches.
  • Material Synthesis: Tools like MatFormer generate complex, node-based procedural materials (e.g., wood, marble) that are infinitely tileable and resolution-independent.

Challenges and Future Directions

Despite their promise, several hurdles remain. Many models still depend on scarce human-written code for supervision. Scaling these techniques to industrial-grade languages like OpenSCAD or GLSL is a significant technical challenge. Furthermore, while "Text-to-Image" models are now common, creating robust "Text-to-Procedural-Program" systems remains an open research problem. Future work is expected to focus on "Human-in-the-Loop" systems, where AI acts as a collaborative partner to human designers rather than a fully autonomous replacement.

Summary updated

BibTeX
@article{ritchie2023neurosymbolic,
  author = {Daniel Ritchie and Paul Guerrero and R. Kenny Jones and Niloy J. Mitra and Adriana Schulz and Karl D. D. Willis and Jiajun Wu},
  title = {{Neurosymbolic Models for Computer Graphics}},
  journal = {Computer Graphics Forum},
  year = {2023},
  doi = {10.1111/cgf.14775},
}
Figure