Combining Knowledge and Reasoning through Probabilistic Soft Logic for Image Puzzle Solving

Somak Aditya, Yezhou Yang, Chitta Baral, Yiannis Aloimonos

Abstract

This paper introduces "Image Riddles," a novel visual reasoning task requiring systems to identify a single word connecting four disparate images. We present the UnRiddler framework, which integrates deep learning-based visual recognition with Probabilistic Soft Logic (PSL) and external knowledge bases like ConceptNet. Our results demonstrate that combining visual perception with common-sense reasoning significantly outperforms vision-only baselines, achieving a 14% accuracy improvement and approaching human-level semantic relevance.

Introduction: The Image Riddle Challenge

While modern computer vision (CV) excels at object identification, it often struggles with higher-level cognitive tasks that require connecting disparate visual concepts. To bridge this gap, we propose the Image Riddle task. In this challenge, a system is presented with four images and must deduce a single connecting word.

An example of an Image Riddle where the connecting concept is 'fall'.

For instance, consider a set containing a forest in autumn, a waterfall, a rain shower, and a toppling statue. A human can easily identify "fall" as the common link. Solving this requires more than pixel-level analysis; it necessitates understanding linguistic nuances (synonyms like "autumn"), compound words ("waterfall"), and physical actions ("toppling").

Methodology: The UnRiddler Pipeline

The UnRiddler system is a multi-stage pipeline designed to transition from raw visual data to logical conclusions:

  1. Visual Detection: The system extracts the top 20 labels for each image using state-of-the-art classifiers (Clarifai and ResNet-200). These labels serve as the initial "seeds."
  2. Knowledge Retrieval: To expand beyond literal object labels, the system queries ConceptNet and Word2Vec. This step identifies "target" words related to the seeds through common-sense relations and distributional semantics.
  3. Probabilistic Soft Logic (PSL): The core reasoning engine uses PSL to model uncertainty. Unlike boolean logic, PSL operates with truth values between 0 and 1 using Hinge-Loss Markov Random Fields.
  4. Stage I Inference: Determines the most probable concepts for individual images.
  5. Stage II Inference: Performs joint inference across all four images to find the concept that best satisfies the logical constraints of the entire set.

Dataset and Validation

We introduced the 3K Image Riddles Dataset, comprising 3,333 riddles sourced from the internet. To establish a human baseline, the dataset was validated via Amazon Mechanical Turk (AMT). Participants rated riddles for difficulty and correctness. Notably, the average age required to solve these riddles was estimated at 13–17 years, indicating a level of complexity far exceeding standard Visual Question Answering (VQA) benchmarks.

Key Insights

  • Knowledge-in-the-Loop: Vision-only models perform poorly because they lack a conceptual dictionary. Reasoning with external knowledge is essential to resolve visual uncertainty.
  • Visual Similarity Metrics: Standard word-similarity often fails for physical objects. We developed a metric using ConceptNet relations (e.g., HasA, PartOf) to better rank candidate words.
  • Logic as a Filter: PSL acts as a sophisticated filter, identifying the word that is most logically consistent across four distinct visual contexts rather than just the most frequent label.

Results

The Greedy UnRiddler (GUR) variant, utilizing Clarifai detections, significantly outperformed all baselines:

  • Accuracy: The reasoning pipeline achieved a 14% improvement over vision-only Clarifai baselines and a 6% improvement over ResNet-based models.
  • Semantic Depth: WordNet-based metrics showed a substantial increase after reasoning stages, proving the system identifies semantically relevant answers even when the exact ground-truth word is missed.
  • Human Evaluation: AMT results indicated that the system's outputs were perceived as more "intelligent" and "correct" than those of vision-only models.

Conclusion and Future Work

The Image Riddle task highlights the limitations of pure perception in AI. By integrating PSL and external knowledge, the UnRiddler framework demonstrates a path toward more robust, common-sense reasoning in computer vision. Future work will focus on reducing the computational overhead of PSL inference (currently ~20 seconds per riddle) and improving the system's ability to handle abstract metaphors and wordplay.

Summary updated

BibTeX
@inproceedings{aditya2018combining,
  author = {Somak Aditya and Yezhou Yang and Chitta Baral and Yiannis Aloimonos},
  title = {{Combining Knowledge and Reasoning through Probabilistic Soft Logic for Image Puzzle Solving}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2018},
}
Figure