NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Task-General Representations with Generative Neuro-Symbolic Modeling

Reuben Feinman, Brenden M. Lake

TL;DR

Generative Neuro-Symbolic (GNS) modeling combines the structural strengths of symbolic programs with the learning power of neural networks to master the Omniglot "human-level concept learning" challenge. By representing concepts as probabilistic programs with neural subroutines, the model can perform one-shot classification, parsing, and creative generation using a single, task-general representation.

The Challenge: Bridging Two AI Paradigms

Current AI models typically fall into two distinct camps. Symbolic models excel at capturing the "causal" structure of how things are made—such as the sequence of strokes in a handwritten letter—but they require heavy hand-engineering and struggle with raw perceptual data. Conversely, neural networks learn effortlessly from raw data but struggle with compositionality and usually require retraining for every new task.

The authors target the "Omniglot challenge," a dataset of handwritten characters from various world alphabets designed to test human-level concept learning. While humans can see a single character and immediately understand how to draw it, classify it, or create a similar-looking new character, most machine learning models are "one-trick ponies." The goal of this research is to build a model with "deep expertise": a single representation that supports a wide range of conceptual tasks from raw pixels.

Methods: The Generative Neuro-Symbolic (GNS) Model

To bridge this gap, the authors introduce the Generative Neuro-Symbolic (GNS) model. GNS represents concepts using a "type-token" hierarchy that blends probabilistic programming with neural networks.

GNS Architecture
  • The Type Level (The Concept): A probabilistic program defines the "control flow" of drawing a character (e.g., "draw $N$ strokes"). However, instead of relying on hand-coded rules for where and how to draw, it uses neural network subroutines. A CNN-MLP predicts starting locations, and a CNN-LSTM generates the stroke trajectories while "looking" at a digital canvas.
  • The Token Level (The Instance): This level introduces "motor noise" and affine transformations (scaling and shearing) to create a specific, unique version of a character type.
  • The Renderer: A symbolic, differentiable image renderer turns these coordinates into pixels. Because it is differentiable, the model can use gradient descent to "fine-tune" its understanding of an image during inference.

To "understand" a new image, the model uses a heuristic search (random walks on an image skeleton) to find the most likely sequence of strokes, then optimizes the continuous variables to fit the pixels perfectly.

Key Insights and Ideas

  • Compositionality as an Inductive Bias: By forcing the model to generate characters stroke-by-stroke using a recurrent structure, the authors bake in the "causal" nature of handwriting. This makes the model much more robust than standard generative models like GANs or VAEs.
  • Learning the Prior: Unlike previous state-of-the-art approaches like Bayesian Program Learning (BPL), which relied on a hand-designed library of parts, GNS learns the distribution of strokes directly from data. This allows it to capture the "messy" statistical nuances of human drawing that purely symbolic models miss.
  • The Power of the Canvas: The model uses an internal image canvas as a "memory" state. When drawing the next stroke, the neural network can see what it has already drawn, allowing it to learn implicit relations (like attaching a new line to the corner of a previous one) without explicit instructions.

Key Results on the Omniglot Dataset

The model was trained to learn its "priors" (what human handwriting generally looks like) from a background set of 30 alphabets. It was then evaluated on 20 completely novel alphabets, requiring true one-shot generalization. GNS was tested on four distinct tasks using the same learned representation:

  1. One-shot Classification: Achieved a 5.7% error rate, significantly outperforming standard deep learning models like Prototypical Networks (13.7%) and coming close to the heavily hand-engineered BPL (3.3%).
  2. Parsing: The model successfully segmented novel characters into logical stroke orders, often matching human consistency better than purely symbolic approaches.
  3. Generating New Exemplars: When shown one image, GNS produced new versions of that character that captured its essential "spirit" and structure.
  4. Unconditional Generation: GNS can "dream up" entirely new characters. Qualitatively, these look much more like real human writing than the characters generated by BPL’s raw prior.
Unconditional Generation Comparison

Additionally, GNS provided better density estimates (marginal likelihood) for held-out data compared to other popular deep generative models like the Variational Homoencoder.

Limitations and Future Work

The authors note that their token model is currently too simple. It uses basic parametric distributions for noise, which sometimes leads to "sloppy" junctions where strokes don't perfectly meet. They suggest that future versions should use neural subroutines at the token level as well to better model motor execution.

While the model is demonstrated on 2D characters, the authors provide a roadmap for extending GNS to 3D object concepts (like chairs or vehicles), suggesting that this neuro-symbolic approach could serve as a general-purpose blueprint for human-like machine perception.

Summary updated

BibTeX
@inproceedings{feinman2021learning,
  author = {Reuben Feinman and Brenden M. Lake},
  title = {{Learning Task-General Representations with Generative Neuro-Symbolic Modeling}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=qzBUIzq5XR2},
}
Figure