Abstract
Open-set Object Recognition (OSR) poses a significant challenge for computer vision models, which often struggle to distinguish between known classes and novel "unknown" categories due to spurious-discriminative features. This paper introduces a plug-and-play framework that combines the reasoning of Large Language Models (LLMs) with the factual grounding of Knowledge Graphs (KGs). By utilizing Wikipedia to correct LLM hallucinations and a multi-modal fusion strategy (TIKF) to align visual and semantic data, the proposed method achieves state-of-the-art results on standard benchmarks like TinyImageNet, significantly reducing error rates in open-set scenarios.
The Challenge of Open-set Recognition
In traditional computer vision, models are typically trained on a "closed set" of fixed categories. Open-set Object Recognition (OSR) is the more complex task of identifying whether an object belongs to a known class or is something entirely new.
A primary hurdle in OSR is the presence of spurious-discriminative features. For instance, a model might identify a "bill" as a defining feature of a Woodpecker. If the model then encounters a Bald Eagle—which also possesses a bill—it may incorrectly classify it as a Woodpecker with high confidence.
While LLMs can generate descriptive text to help distinguish classes, they are prone to "hallucinations"—generating factually incorrect details that lead to recognition errors. This research addresses these hallucinations by grounding LLM outputs in external knowledge.
Methodology: Grounding LLMs with Knowledge Graphs
The proposed framework operates without additional training, utilizing a multi-stage pipeline:
- Cyclic LLM Collaboration: ChatGPT generates virtual open-set classes and descriptions. A feedback loop involving DALL-E (generation) and CLIP (evaluation) refines these descriptions to ensure visual-semantic alignment.
- Knowledge Graph Integration: To eliminate hallucinations, the system cross-references LLM-generated text with Wikipedia. This "Textual Enhance Module" corrects factual errors and supplements missing information.
- Text-Image Knowledge Fusion (TIKF): This module employs a Vision Transformer (ViT) for images and BERT for the enhanced text. A transformer-based fusion strategy creates a unified representation capturing both visual and semantic nuances.
- Dual-Model Inference: Final classification combines the strengths of CLIP (image-text alignment) and DINO (image-to-image similarity) through a weighted summation.
Experimental Results
The framework was evaluated on CIFAR10, CIFAR10+, and TinyImageNet. The results demonstrate that grounding LLMs with Knowledge Graphs significantly improves the model's ability to handle unknown samples.
Key Performance Metrics:
- TinyImageNet: The model achieved an AUROC of 89.2%, surpassing the previous state-of-the-art (LMC) of 86.7%.
- Robustness: The method showed extremely low error fluctuations (±0.02 on CIFAR10), indicating high stability across varying inputs.
- Error Reduction: By focusing on unique identifiers rather than common traits (like "having a bill"), the approach reduced error rates by factors of 10 to 100 compared to traditional non-LLM methods.
Conclusion and Future Work
This research highlights the power of using Knowledge Graphs as a "truth anchor" for LLMs in computer vision tasks. By treating multiple models (ChatGPT, DALL-E, CLIP) as a collaborative system, the framework mimics human-like brainstorming and fact-checking. While the current implementation relies on Wikipedia, future iterations may explore specialized Knowledge Graphs for domains like medical imaging or industrial inspection. Although the framework requires no training, the computational overhead of running multiple large models remains a consideration for real-time applications.
Summary updated