Abstract
Recent advancements in multimodal AI have improved object recognition, yet these systems often struggle with formal logical reasoning. We present an unsupervised system that translates both images and text into First-Order Logic (FOL) formulas to determine visual-textual entailment. By leveraging scene graphs and predicate circumscription, the system effectively handles complex linguistic phenomena such as negation, numerals, and universal quantification.
Introduction
While deep learning models excel at mapping images and text into high-dimensional vector spaces, these embeddings are often insufficient for precise logical reasoning. Standard multimodal systems can identify objects but frequently fail to verify statements involving negation ("There are no cats") or universal quantification ("Every dog is brown"). This research addresses the gap between visual perception and formal logic by proposing a framework that treats visual-textual entailment as a theorem-proving task.
Methodology
The proposed pipeline for visual-textual entailment consists of three primary stages: graph translation, semantic parsing, and logical inference.
- Graph Translation: The system converts a scene graph (representing objects, attributes, and relations) into an FOL formula ($M$). A "Complex Translation" ($Tr_c$) based on predicate circumscription is employed to implement a "Closed World Assumption." This allows the system to infer that if an object is not explicitly labeled in the scene graph, it does not exist in the context, enabling the proof of negative statements.
- Semantic Parsing: Input sentences are transformed into logical formulas ($T$) using the
ccg2lambdaCombinatory Categorial Grammar (CCG) parser, which is optimized for handling quantifiers and numerals. - Inference Engine: The automated theorem prover, Prover9, checks if the image formula ($M$) logically entails the text formula ($T$). To maintain efficiency, a hybrid approach is used, applying complex translation only when the sentence contains negative or universal operators.
Key Insights: Logic as a Unified Language
The core innovation of this work is the use of formal logic as a "universal bridge" between modalities. Unlike supervised methods that require extensive training data, this approach is entirely unsupervised.
A critical component is the "Power of Nothing Else"—the application of predicate circumscription. By defining the scene graph's contents as the exhaustive set of existing objects, the system overcomes the traditional logical hurdle where "no cats" cannot be proven because a cat might simply be "off-camera." This allows for rigorous handling of negation and universal statements.
Evaluation and Results
The system was evaluated on the Visual Genome and GRIM datasets. The hybrid approach demonstrated significant improvements over simple conjunctive baselines, particularly in complex linguistic categories.
Key performance gains in F1-score on the Visual Genome dataset include:
- Quantifiers (Q): Improved from 8.59 to 28.18.
- Negation (Neg): Improved from 66.38 to 73.39.
- Relations (Rel): Improved from 25.13 to 35.10.
The system proved exceptionally capable in image retrieval tasks involving logically intricate queries that typically stump standard embedding-based models.
Limitations and Future Work
Despite its logical precision, the system faces challenges with lexical gaps and linguistic vagueness. For instance, it may fail to recognize synonyms like "wearing" and "having" without external knowledge bases. Additionally, vague terms like "many" or "everyone" are difficult to map to strict logical domains. Future research will focus on integrating knowledge insertion mechanisms (e.g., WordNet) and expanding the system's ability to handle the inherent ambiguity of natural language.
Summary updated