Neurosymbolic Object-Centric Learning with Distant Supervision

Stefano Colamonaco, David Debot, Giuseppe Marra · DOI

Abstract

DeepObjectLog integrates slot-based perception with probabilistic logic to learn object-centric representations from distant supervision. Unlike traditional methods requiring object-level labels, DeepObjectLog uses global task labels to supervise the discovery and classification of individual objects. By combining a differentiable logic engine with an image reconstruction objective, the framework achieves superior compositional generalization and extrapolation to unseen object counts and tasks.

Introduction

In the quest for human-like AI, Object-Centric Learning (OCL) and Neurosymbolic AI (NeSy) have largely remained siloed. OCL models typically require explicit object-level labels (e.g., bounding boxes), while NeSy models often assume inputs are already structured into symbols. Real-world data, however, often provides only "distant supervision"—global labels for complex scenes without a breakdown of constituent parts. DeepObjectLog bridges this gap, enabling fully relational learning from raw pixels by treating high-level task labels as the primary signal for object discovery.

Methods

DeepObjectLog bridges the gap between raw pixels and logical symbols through a four-stage pipeline:

  1. Objects Encoder: Uses a variant of Slot Attention (SA-MESH) to extract $N$ latent "slots" from a global image representation.
  2. Object Detector & Classifier: Two neural heads process each slot to predict "objectness" (is this an object?) and class (e.g., rank of a card).
  3. Probabilistic Logic Reasoning: Powered by DeepProbLog, this component treats neural outputs as probabilistic facts and applies logical rules to derive the final task label $y$. The differentiable nature of the logic allows errors to flow back to the perception module.
  4. Masked Decoder: To ensure slots represent visual entities, the model reconstructs the original image $X$ from the slots, using objectness scores to mask background noise.
DeepObjectLog Architecture: The pipeline from raw image $X$ through object slots and neural heads to logical reasoning and reconstruction.

The underlying probabilistic structure, shown in the graphical model below, illustrates how latent slots $s_i$ mediate between the visual input $x$ and the symbolic reasoning required for the task label $y$.

Graphical model of DeepObjectLog illustrating the dependencies between latent slots, objectness, classification, and the final output.

Key Insights

  • Logic as a Discovery Signal: Logic acts as a powerful inductive bias. If the model knows a total sum and identifies one object, the logical constraints guide the perception of remaining slots.
  • Independence from Object Count: Because logical rules are size-invariant, the model can generalize to images with more objects than seen during training.
  • The "Two-Head" Advantage: Separating object detection from classification prevents the model from assigning classes to empty slots or background noise.

Evaluation and Results

The model was evaluated on MultiMNIST-Addition and a new PokerRules dataset.

  • Compositional Generalization: On MultiMNIST, DeepObjectLog maintained 90% accuracy on unseen digit combinations, while the best neural baseline (CoSA) dropped to 36%.
  • Extrapolation: When trained on 1–4 cards and tested on 5-card hands, DeepObjectLog achieved ~78% accuracy, whereas standard CNNs and Slot Attention models performed near chance (~22%).
  • Unseen Tasks: The model successfully generalized to entirely new poker hand classes (e.g., "Three of a Kind") simply by updating logical rules at test time without retraining the perception module.

Discussion

While DeepObjectLog demonstrates significant gains in generalization, it faces challenges regarding the computational overhead of probabilistic logic inference. Future work involves scaling the framework to "in-the-wild" natural images with complex occlusions and lighting, where reasoning shortcuts might be more prevalent.

Summary updated

BibTeX
@inproceedings{colamonaco2026neurosymbolic,
  author = {Stefano Colamonaco and David Debot and Giuseppe Marra},
  title = {{Neurosymbolic Object-Centric Learning with Distant Supervision}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=bMkCLL1wPH},
}
Figure