Abstract
Large language models (LLMs) often struggle with commonsense reasoning due to reporting bias—the tendency for people to omit obvious physical facts from written text. We propose VisCTG (Visually Grounded Concept-to-Text Generation), a framework that leverages image retrieval and captioning to provide models with the necessary visual context to generate logical and fluent sentences. By "showing" models pictures of everyday scenarios, we successfully steer them to avoid common hallucinations and produce more specific, grounded text.
The Commonsense Gap in Text Generation
While LLMs like BART and T5 are powerful, they lack an inherent understanding of physical reality. In tasks like CommonGen, where a model must generate a sentence from a set of concepts (e.g., {dog, house, eat}), baseline models often produce illogical results. This is because facts like "birds fly with wings" are rarely explicitly stated in training corpora. VisCTG aims to bridge this gap by using images as a proxy for the physical world.
The VisCTG Framework
The VisCTG pipeline consists of three main stages designed to ground text generation in visual reality:
- Retrieve: Given a set of concepts, the system queries a search engine (e.g., Google Images) to find relevant real-world photos that capture the likely relationships between those concepts.
- Caption: Since Transformer models process text, a pretrained image-captioning model generates descriptions for the retrieved images. This converts visual spatial and functional relationships into a format the model can understand.
- Generate: The original concepts and the generated captions are concatenated into an augmented input string. This context is fed into a Transformer model (BART or T5), which is fine-tuned to produce the final sentence.
Experimental Results
We evaluated VisCTG on the CommonGen benchmark using automatic metrics and human judgment. The approach yielded significant improvements across the board:
- Metric Gains: VisCTG models saw substantial increases in SPICE (which measures semantic scene graphs) and CIDEr. For instance, BART-large VisCTG improved its CIDEr score from 14.12 to 18.35.
- Impact of Multiple Captions: A key finding was the role of the Number of Top Captions (NTC). Performance generally improves as more visual context is added, though it eventually plateaus or slightly declines as noise is introduced.
- Human Evaluation: In blind tests, human annotators significantly preferred VisCTG outputs over baselines. For BART-large, humans chose the VisCTG output 62% of the time, compared to only 18% for the text-only baseline. VisCTG was particularly effective at correctly assigning semantic roles (e.g., knowing that a person holds a tool with their hands, rather than "hands sitting on a chair").
Conclusion and Future Directions
VisCTG demonstrates that visual grounding is a powerful tool for enhancing commonsense in text generation. By bypassing the limitations of text-only corpora, we can provide models with a "commonsense anchor" in physical reality. Future work will explore more advanced vision-language models like CLIP and the use of video captioning to capture temporal commonsense, such as how actions unfold over time.
Summary updated