[Paper Review] A Study of Compositional Generalization in Neural Models
This paper introduces ConceptWorld, a logical domain-specific language and image generation environment for creating compositional and relational visual concepts, enabling systematic evaluation of neural models on compositional generalization. Despite using state-of-the-art architectures like ResNet, WReN, and PrediNet, all models show significant failure in zero-shot generalization under compositional depth and substitutivity, highlighting a critical gap in neural network reasoning capabilities for structured, hierarchical concepts.
Compositional and relational learning is a hallmark of human intelligence, but one which presents challenges for neural models. One difficulty in the development of such models is the lack of benchmarks with clear compositional and relational task structure on which to systematically evaluate them. In this paper, we introduce an environment called ConceptWorld, which enables the generation of images from compositional and relational concepts, defined using a logical domain specific language. We use it to generate images for a variety of compositional structures: 2x2 squares, pentominoes, sequences, scenes involving these objects, and other more complex concepts. We perform experiments to test the ability of standard neural architectures to generalize on relations with compositional arguments as the compositional depth of those arguments increases and under substitution. We compare standard neural networks such as MLP, CNN and ResNet, as well as state-of-the-art relational networks including WReN and PrediNet in a multi-class image classification setting. For simple problems, all models generalize well to close concepts but struggle with longer compositional chains. For more complex tests involving substitutivity, all models struggle, even with short chains. In highlighting these difficulties and providing an environment for further experimentation, we hope to encourage the development of models which are able to generalize effectively in compositional, relational domains.
Motivation & Objective
- To address the lack of benchmarks for evaluating compositional and relational generalization in neural models.
- To develop a formal, logical, and reusable framework for defining and generating compositional visual concepts.
- To systematically test standard and relational neural networks on zero-shot generalization across increasing compositional depth and object substitution.
- To identify and demonstrate persistent failures in generalization despite advances in relational neural architectures.
- To provide a reproducible testbed for future research on compositional reasoning in deep learning.
Proposed method
- ConceptWorld uses a declarative, hierarchical logical DSL to define visual concepts, such as 2x2 squares, pentominoes, and sequences, with clear compositional structure.
- The system generates pixel-level images from these logical concept definitions, enabling controlled data synthesis for evaluation.
- Four distinct tasks are designed: productivity (increasing compositional depth) and substitutivity (replacing base objects at same depth) across multiple domains.
- Standard models (MLP, CNN, ResNet) and relational models (WReN, PrediNet) are trained on image classification tasks with zero-shot test sets.
- Evaluation uses F1 scores on unseen compositional concepts, including both pure and mixed sequences, with controlled substitution patterns.
- Curriculum training is applied to assess whether sequential learning of base concepts improves generalization to higher-order compositions.
Experimental results
Research questions
- RQ1Can standard neural networks generalize to compositional concepts with greater depth than seen during training?
- RQ2Can neural models generalize when base objects in a compositional structure are substituted with novel but structurally similar ones?
- RQ3Do state-of-the-art relational neural networks (e.g., WReN, PrediNet) outperform standard architectures on compositional generalization tasks?
- RQ4Does curriculum training—learning base concepts before composite ones—improve generalization performance?
- RQ5To what extent do models fail on zero-shot compositional generalization, even with short compositional chains?
Key findings
- All evaluated models, including state-of-the-art relational networks like WReN and PrediNet, fail to generalize effectively on substitutivity tasks, even with short compositional chains.
- For the 2x2 to 4x4 patterned squares task (Experiment 3), the best-performing model (SimpleFeedForward) achieved only 0.5157 F1 score on vertical stripes and 0.5074 on checkerboard, indicating poor generalization.
- In the sequence substitution task (Experiment 4), ResNet achieved 0.603 F1 on type 1 concepts with one substitution, but dropped to 0.0005 on two-substitution sequences, showing near-total failure.
- Even with curriculum training, models like ResNet and WReN showed degraded performance on higher-order sequences, with mixed sequence F1 scores dropping to 0.244 and 0.1642 respectively.
- PrediNet and WReN showed limited improvement over standard CNNs, with F1 scores below 0.35 on most substitutivity tasks, indicating weak relational inductive bias for compositionality.
- The SimpleFeedForward model achieved near-perfect performance (F1 ≈ 1.0) on simple concepts like blue and red, but failed on complex patterns, underscoring the challenge of compositional generalization beyond atomic features.
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.