Blocksworld Revisited: Learning and Reasoning to Generate Event-Sequences from Image Pairs

Tejas Gokhale, Shailaja Sampat, Zhiyuan Fang, Yezhou Yang, Chitta Baral

Abstract

The process of identifying changes or transformations in a scene along with the ability of reasoning about their causes and effects, is a key aspect of intelligence. In this work we go beyond recent advances in computational perception, and introduce a more challenging task, Image-based Event-Sequencing (IES). In IES, the task is to predict a sequence of actions required to rearrange objects from the configuration in an input source image to the one in the target image. IES also requires systems to possess inductive generalizability. Motivated from evidence in cognitive development, we compile the first IES dataset, the Blocksworld Image Reasoning Dataset (BIRD) which contains images of wooden blocks in different configurations, and the sequence of moves to rearrange one configuration to the other. We first explore the use of existing deep learning architectures and show that these end-to-end methods under-perform in inferring temporal event-sequences and fail at inductive generalization. We then propose a modular two-step approach: Visual Perception followed by Event-Sequencing, and demonstrate improved performance by combining learning and reasoning. Finally, by showing an extension of our approach on natural images, we seek to pave the way for future research on event sequencing for real world scenes.

Introduction: The Image-based Event-Sequencing (IES) Challenge

While modern computer vision excels at perception tasks like object detection and segmentation, it often struggles with high-level reasoning about causes and effects. This paper introduces Image-based Event-Sequencing (IES), a task where a system must not only identify differences between two states but also output a temporal sequence of discrete moves to transition from a source image to a target image.

The Image-based Event-Sequencing (IES) task: determining the sequence of moves to transition from a source to a target configuration.

A core requirement of IES is inductive generalizability. Much like a human who learns to solve a 3-move puzzle can apply that logic to a 10-move puzzle, AI models should ideally train on short sequences and successfully predict longer, unseen sequences at test time.

Methodology: End-to-End vs. Modular Neuro-Symbolic Learning

The authors compare two distinct paradigms for solving the IES task:

  1. End-to-End Learning (Baselines): Standard deep neural networks (e.g., ResNet-50, PSPNet) are trained to map directly from a stacked pair of RGB images to a binary vector representing the sequence of moves. These models struggle because the output space is combinatorially massive (roughly $2.8 \times 10^{13}$ possibilities).
  2. Modular Two-Stage Approach (Proposed): This approach decomposes the problem into perception and reasoning modules.
  3. Stage I (Visual Perception): Convolutional networks extract interpretable representations, outputting an "arrangement vector" (spatial locations) and a "color vector" (object identities).
  4. Stage II (Event Sequencing): This module takes the abstract representations to generate moves. The authors tested Fully Connected (FC) networks, Q-Learning (QL), and Inductive Logic Programming (ILP). ILP uses background knowledge (e.g., physical constraints like "a block cannot move if another is on top") to learn logic programs.
The modular two-stage approach: Stage I uses a CNN and ResNet-50 to extract arrangement and color vectors for symbolic reasoning.

The BIRD Dataset and Experimental Results

To evaluate these methods, the authors introduced the Blocksworld Image Reasoning Dataset (BIRD). Unlike synthetic datasets like CLEVR, BIRD contains 7,267 real images of wooden blocks. These blocks are stacked and in contact, creating realistic physical constraints and occlusion challenges.

Key Findings

  • End-to-End Failure: Standard networks performed poorly, hovering around 30% to 35% Full Sequence Accuracy (FSA). They failed to learn the semantic correspondence between pixels and sequential logic.
  • Modular Success: The two-stage approach using ILP achieved 83.60% FSA even with imperfect perception. With ground-truth perception, ILP achieved 100% accuracy.
  • Perfect Generalization: While neural reasoning modules (FC, QL) struggled with sequences longer than those in the training set, the ILP module generalized perfectly. Once the logical rules were learned, sequence length became irrelevant.
  • Zero-Shot Domain Transfer: By using an off-the-shelf object detector (Mask-RCNN) to map real-world objects to abstract "blocks," the BIRD-trained logic engine successfully sequenced actions for natural images (e.g., moving suitcases or TVs) with 75.55% FSA.

Conclusion and Future Work

The study demonstrates that abstraction is the key to reasoning. By translating pixels into interpretable symbolic states, models can learn the underlying rules of an environment rather than just memorizing patterns. Future work aims to relax the constraints of the BIRD dataset, allowing for more complex object characteristics and a wider variety of actions to better simulate the messiness of real-world environments.

Summary updated

Abstract

The process of identifying changes or transformations in a scene along with the ability of reasoning about their causes and effects, is a key aspect of intelligence. In this work we go beyond recent advances in computational perception, and introduce a more challenging task, Image-based Event-Sequencing (IES). In IES, the task is to predict a sequence of actions required to rearrange objects from the configuration in an input source image to the one in the target image. IES also requires systems to possess inductive generalizability. Motivated from evidence in cognitive development, we compile the first IES dataset, the Blocksworld Image Reasoning Dataset (BIRD) which contains images of wooden blocks in different configurations, and the sequence of moves to rearrange one configuration to the other. We first explore the use of existing deep learning architectures and show that these end-to-end methods under-perform in inferring temporal event-sequences and fail at inductive generalization. We then propose a modular two-step approach: Visual Perception followed by Event-Sequencing, and demonstrate improved performance by combining learning and reasoning. Finally, by showing an extension of our approach on natural images, we seek to pave the way for future research on event sequencing for real world scenes.
BibTeX
@inproceedings{gokhale2019blocksworld,
  author = {Tejas Gokhale and Shailaja Sampat and Zhiyuan Fang and Yezhou Yang and Chitta Baral},
  title = {{Blocksworld Revisited: Learning and Reasoning to Generate Event-Sequences from Image Pairs}},
  booktitle = {Workshops @ CVPR},
  year = {2019},
}
Figure