Abstract
Visual-Textual Entailment (VTE) is the task of determining whether an image entails a given natural language hypothesis. While deep learning models excel at general scene understanding, they often struggle with systematic reasoning involving quantities and negation. This paper proposes a hybrid system that combines formal logic with neural components. By representing images as First-Order Logic (FOL) models and utilizing model checking alongside knowledge injection from WordNet, Word2Vec, and CLIP, the proposed method significantly outperforms standard Vision-Language Models in counting tasks and offers a massive speedup over traditional logic-based approaches.
Introduction
Modern Vision-Language Models (VLMs) like CLIP and ViLT are proficient at describing scenes but frequently fail at "systematic" reasoning tasks. Two primary areas of weakness are quantities (e.g., distinguishing "two dogs" from "three dogs") and negation (e.g., understanding "there are no cars"). Previous logic-based solutions relied on automated theorem proving, which is computationally expensive and sensitive to lexical mismatches (the "lexical gap").
To address these issues, researchers from the University of Tokyo developed a system that treats an image as a formal logical world and the sentence as a query. This approach bridges the gap between the precision of logic and the flexibility of deep learning.
Methodology
The proposed pipeline transforms the VTE task into a model-checking problem through four main stages:
- Image to FOL Model: Scene graphs from the image are converted into First-Order Logic (FOL) models where objects are entities and their attributes are predicates.
- Sentence to FOL Formula: The hypothesis sentence is parsed using Combinatory Categorial Grammar (CCG) and translated into a mathematical formula via lambda calculus.
- Model Checking: Instead of slow theorem proving, the system checks if the formula is true within the specific FOL model of the image, ensuring high efficiency.
- Knowledge Injection: To overcome the lexical gap, the system integrates WordNet for hypernyms, Word2Vec for synonyms, and CLIP to verify attributes not present in the initial scene graph.
Experimental Evaluation
The system was evaluated using scene graphs from Visual Genome (VG) and GQA. A specialized dataset was created featuring 100 quantity problems and 100 negation problems, each paired with true and false hypotheses. The system was compared against state-of-the-art neural models (ViLT, FLAVA) and a previous logic-based baseline.
Key Results
- Quantity Accuracy: The system achieved 20% accuracy on a strict metric for quantity tasks, outperforming ViLT (7-16%) and FLAVA (14%).
- Inference Speed: The model-checking approach is orders of magnitude faster than theorem proving. For an image with 29 objects, processing time dropped from over 60 seconds to just 1.18 seconds.
- Negation Robustness: The system reached ~49% accuracy on negation tasks, nearly double the random baseline and superior to the tested neural models.
Discussion and Future Work
The hybrid approach demonstrates that pure logic is often too rigid for natural language, while pure deep learning is too "fuzzy" for counting. By using CLIP and Word2Vec to "soften" logical predicates, the system maintains reasoning rigor while handling linguistic variation.
However, limitations remain. The system is highly dependent on the quality of the initial scene graph. Errors or omissions in the graph directly impact the final logical evaluation. Additionally, while basic cardinal numbers are handled well, complex expressions like "more than two" or ordinal numbers remain a challenge. Future research will focus on generating FOL models directly from images to remove the dependency on pre-existing scene graphs.
Summary updated