Abstract
Reasoning, i.e., inferring complicated patterns from given observations, is a central building block of artificial general intelligence. While humans find the answer by either eliminating wrong candidates or first constructing the answer, prior deep neural network (DNN)-based methods focus on the former discriminative approach. This paper aims to design a framework for the latter approach and bridge the gap between artificial and human intelligence. To this end, we propose logic-guided generation (LoGe), a novel generative DNN framework that reduces abstract reasoning as an optimization problem in propositional logic. LoGe is composed of three steps: extract propositional variables from images, reason the answer variables with a logic layer, and reconstruct the answer image from the variables. We demonstrate that LoGe outperforms the black box DNN frameworks for generative abstract reasoning under the RAVEN benchmark, i.e., reconstructing answers based on capturing correct rules of various attributes from observations.
Introduction: The Challenge of Abstract Reasoning
Abstract reasoning—the ability to infer complex patterns from limited observations—is a hallmark of human intelligence. In AI research, this is often tested using Raven’s Progressive Matrices (RPMs), where a grid of images follows a hidden rule, and the goal is to find the missing image.
Most current Deep Neural Networks (DNNs) approach this as a response elimination task: they look at a set of multiple-choice candidates and pick the one that fits best. However, cognitive science suggests humans also use constructive matching: we first "imagine" what the answer should look like based on the rules we've inferred, then look for a match.
The gap is that standard DNNs struggle with this generative approach. They are great at discriminative tasks but often fail to capture the underlying symbolic logic required to construct an answer from a blank canvas.
The LoGe Framework
The authors propose LoGe (Logic-guided Generation), a three-step generative framework designed to bridge the gap between pixel-level data and symbolic logic:
- Abstraction: An encoder network and a latent codebook map context images into discrete propositional variables. This turns raw pixels into "symbols" (e.g., "there is a triangle here," "the color is light gray"). It uses a Vector-Quantized Variational Autoencoder (VQ-VAE) style approach to ensure these variables are discrete and manageable.
- Reasoning: These variables are fed into a SATNet layer. SATNet is a differentiable MAXSAT solver that learns propositional logical formulas from data. Instead of just guessing, the model tries to find the variables for the missing image that satisfy the logical rules it has learned from the context images.
- Reconstruction: Finally, a decoder network takes the predicted variables and reconstructs the actual answer image.
The entire system is trained end-to-end using a combination of abstraction, reasoning, and reconstruction losses, all without needing explicit labels for what the rules or symbols actually are.
Key Insights and Results
By embedding a logic solver directly into the architecture, the authors provide a "structural prior." The model isn't just looking for statistical correlations; it is forced to find a solution that is logically consistent. This "constructive matching" approach proved highly robust, especially against the biases found in multiple-choice datasets.
LoGe demonstrated a massive leap in performance over existing black-box models on the i-RAVEN benchmark, which was specifically designed to eliminate "shortcut biases" where models could previously guess the answer by looking only at the candidate set without ever seeing the context images.
- Accuracy: On the "Center" configuration, LoGe achieved 87.5% accuracy, compared to just 53.4% for the previous state-of-the-art (SRAN).
- Generative Quality: Qualitatively, LoGe successfully generated clear, correct images that matched the ground truth, whereas standard VAEs and CNN-based reasoning layers produced blurry or logically incorrect results.
- Zero-Shot Discriminative Power: Even though LoGe is trained to generate images, it can be used for multiple-choice tasks by picking the candidate closest to its generated "ideal" answer. In this mode, it still outperformed models specifically trained for multiple-choice.
Conclusion
LoGe represents a significant step toward teaching AI to "imagine" solutions through logical reasoning. While it excels at the propositional logic found in RAVEN, challenges remain in scaling this to higher-order logic or more fluid, natural environments. Future work will likely focus on more efficient training of discrete logic layers and expanding the complexity of the rules the system can infer.
Summary updated