Abstract
Named Entity Recognition (NER) is a fundamental task in natural language processing, yet it faces significant hurdles when applied to multi-modal data containing unseen entities and noisy labels. This paper presents SCANNER (Span CANdidate detection and recognition for NER), a two-stage framework designed to enhance Multi-modal NER (MNER) and Grounded MNER (GMNER). By leveraging entity-centric knowledge retrieval—including Wikipedia descriptions and visual context filtered via CLIP—and a "Trust Your Teacher" (TYT) self-distillation method, SCANNER achieves state-of-the-art performance. Notably, it demonstrates superior robustness on unseen entities and operates at speeds significantly faster than Large Language Model (LLM) alternatives.
1. Introduction
Traditional Named Entity Recognition (NER) identifies and classifies entities like persons, locations, and organizations within text. However, modern digital content is increasingly multi-modal, requiring models to process both text and images. This has led to the development of Multi-modal NER (MNER) and Grounded MNER (GMNER), where models must not only identify entities but also associate them with specific visual regions (bounding boxes).
Current MNER systems struggle with two primary challenges:
- The "Unseen" Entity Problem: Models often fail to recognize entities that were not present in the training data, limiting their real-world utility.
- Label Noise: Datasets sourced from social media are frequently plagued by ambiguous or incorrect labels, which can degrade model performance during training.
SCANNER addresses these issues by decoupling the detection and recognition phases and integrating targeted external knowledge to provide the necessary context for identifying novel entities.
2. The SCANNER Framework
SCANNER utilizes a two-stage architecture that prioritizes precision in candidate identification before applying heavy-duty knowledge retrieval for classification.
2.1 Stage 1: Span Candidate Detection
In the first stage, the model functions as a detector. It identifies potential entity spans within the text using standard BIO (Beginning, Inside, Outside) tagging. This stage focuses on locating where an entity might be, rather than determining what it is, which simplifies the initial search space.
2.2 Stage 2: Knowledge-Enhanced Recognition
Once a candidate span (e.g., "Kroger") is identified, SCANNER enriches the span with three distinct types of context:
- External Knowledge: The model queries Wikipedia to retrieve a brief, relevant description (e.g., "American retail company").
- Global Visual Context: Using the BLIP-2 model, SCANNER generates a natural language caption for the entire associated image, providing a high-level summary of the visual scene.
- Local Visual Context: An object detector identifies specific items within the image. To prevent the model from being overwhelmed by irrelevant background details, SCANNER uses CLIP (Contrastive Language-Image Pre-training) to rank these objects based on their similarity to the text candidate. Only the most relevant visual objects are included in the prompt.
These inputs are concatenated into a structured prompt and processed by a RoBERTa encoder to determine the final entity category.
2.3 Trust Your Teacher (TYT)
To mitigate the impact of noisy training data, the authors introduce the "Trust Your Teacher" (TYT) self-distillation method. A pre-trained "teacher" model evaluates training samples; if the teacher is highly confident in a label, the "student" model treats it as ground truth. If the teacher expresses uncertainty or disagreement, the student model prioritizes the teacher's soft probability distribution over the potentially erroneous dataset label. This mechanism effectively "smooths" the noise, leading to more robust learning.
3. Experimental Evaluation
SCANNER was evaluated across several rigorous benchmarks, including CoNLL2003 (text-only), Twitter-2015, Twitter-2017, and the Twitter-GMNER dataset.
3.1 Performance on Unseen Entities
The framework's ability to handle novel entities was specifically tested on the Twitter-2017 dataset. SCANNER improved the F1 score for unseen entities from a baseline of 67.76 to 82.96, demonstrating the power of entity-centric knowledge retrieval in bridging the gap for data not seen during training.
3.2 Grounded MNER and Efficiency
On the Twitter-GMNER benchmark, which requires both recognition and image grounding, SCANNER established a new state-of-the-art with an F1 score of 68.52, significantly outperforming previous baselines (approximately 56.41).
Beyond accuracy, SCANNER offers substantial gains in computational efficiency. While LLM-based approaches (such as GPT-4) are often used for complex NER tasks, they are computationally expensive and slow. SCANNER processes approximately 1,300 sentences per second, making it roughly 20 times faster than retrieval-heavy models like MoRe and over 1,400 times faster than PGIM (GPT-based) methods.
4. Discussion and Conclusion
SCANNER demonstrates that a modular, knowledge-enhanced approach is highly effective for MNER. By focusing visual and external retrieval on specific entity candidates rather than the entire document, the model minimizes cross-modal noise and maximizes relevance. The inclusion of the TYT distillation method further ensures that the model remains robust even when training data is imperfect.
While the framework relies on a pipeline of external tools (Wikipedia, BLIP-2, CLIP), its efficiency and accuracy make it a viable candidate for production-scale entity recognition. Future research may explore the integration of broader knowledge sources, such as structured knowledge graphs, to further refine the recognition of niche or highly specialized entities.
Summary updated