- Introduced by
- Moon, S.; Lu, D. et al.
- Year
- 2018
- Type
- Sequence labeling with multimodal fusion
- Family
- Deep learning / NLP / CV
What does it do?
Multimodal Named Entity Recognition (MNER) extends classical NER by combining the text with a complementary modality, most commonly an image, so that the model can use visual context when identifying and classifying named entities such as people, organizations and locations.
It is aimed at settings where the text alone is short, informal or ambiguous. The two early papers cited on this page both concern social media posts, which are often paired with photos.
The intuition behind the method
A tweet saying 'Jordan just won again!' is ambiguous: Jordan could be a person, a country or a brand. If the accompanying photo shows a basketball player mid-dunk, the entity type becomes much clearer. MNER captures this kind of signal by letting a visual (or other auxiliary) encoder inform the token-level sequence labeler. The model can learn that certain visual features tend to accompany certain entity types, which can help where a text-only tagger is uncertain, as with short, informal posts.
History
Multimodal NER is represented on this page by two early papers from 2018: Moon et al. (NAACL 2018), on named entity recognition for short social media posts, and Lu et al. (ACL 2018), whose title describes a visual attention model for name tagging in multimodal social media. Both address social media content in which text is accompanied by images.
When to use it
Consider MNER when each text is paired with an image or another modality that actually depicts or describes the entities being tagged, and when the text is short, informal or ambiguous enough that a text-only tagger is likely to be uncertain, as with social media posts and news items with photographs. Do not use it when images are attached incidentally and have no relation to the entity mentions, when the input is long and syntactically rich (a standard text-only BERT-based NER model is then the natural baseline), or when aligned multimodal annotation cannot be afforded. In those cases the added complexity is unlikely to pay off, so a text-only baseline should be the first comparison.
Limitations and considerations
- Requires text-image pairs in which the image is informative about the entities; collecting and annotating such aligned data is costly, especially for a new domain.
- The gain shrinks or disappears when images are generic or unrelated to the entity mentions, so the benefit depends on the data and must be measured.
- Dual encoders and a fusion layer make inference more expensive than a text-only tagger.
- Public multimodal NER benchmarks are few and cover limited domains, which restricts how far reported results can be generalized.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Can improve entity recognition over a text-only tagger on short posts paired with informative images, where the text alone leaves entity types ambiguous.
- The image can settle an otherwise ambiguous word when it shows the entity itself, such as a person or object in the photo; how much this helps must be checked on your own data.
- Can reuse pre-trained text and vision encoders, so the fusion and labelling layers are trained on top of existing representations rather than from scratch.
- The modules are separable: the image encoder, the fusion mechanism and the sequence labeler can be changed independently, which allows controlled comparisons of fusion designs.
- The output is a standard BIO-type tag sequence, so span-level evaluation used for text NER can be applied to the predicted entities.
Applications
- Entity tagging of social media posts that include user-uploaded photos.
- Entity extraction from news articles that combine text with accompanying photographs.
- Product entity recognition in e-commerce listings where item descriptions are paired with product images.
- NER on sparse or noisy text in settings where an accompanying image or other modality is available.
How it works
How it works
The input text is tokenized and encoded with a contextual language model, typically BERT or a transformer fine-tuned on NER tasks, producing a sequence of token-level hidden representations that capture syntactic and semantic context.
The paired image (or other modality, such as audio or structured metadata) is passed through a visual encoder such as a ResNet or Vision Transformer. The resulting feature map or pooled vector represents salient visual concepts and objects present in the image.
Text and visual representations are combined through a fusion mechanism such as co-attention, gated fusion or cross-modal transformer layers, so that each token's representation can be updated with visual evidence judged relevant to it. In attention-based fusion, a token representation acts as the query, a softmax over its similarity scores with the image-region features gives attention weights, and the weighted visual summary is combined with the token representation. Attention over image regions lets each token select what it uses, whereas simple concatenation gives every token the same image summary. Which strategy works best depends on the data and should be checked by comparison.
The fused, token-level representations are passed to a sequence labeling head over BIO/BIOES entity tags. A linear-chain CRF scores a whole tag sequence as the sum of per-token emission scores and learned tag-to-tag transition scores, so that invalid transitions can be penalised; a softmax layer instead labels each token independently and does not enforce these constraints by itself. Either way, the head assigns an entity-type label to every token.
The predicted tag sequence is decoded into entity spans. With a CRF head, the most probable tag sequence is usually found with the Viterbi algorithm before span extraction. Post-processing resolves subword token boundaries, filters low-confidence spans, and maps entity mentions to canonical types (PER, ORG, LOC, MISC).
Common pitfalls
- Assuming that any attached image will help. Check the visual-textual alignment of the dataset before adopting MNER, because loosely related photos can add noise rather than signal.
- Evaluating only on short social media posts and generalizing to formal text, where text-only models may already perform well. Test on data from the target domain.
- Ignoring subword-to-word alignment when decoding BIO tags into spans; misaligned subword boundaries change the number and extent of predicted entities.
- Selecting a fusion design, such as plain concatenation, without comparing it against attention or gated alternatives on your own data, since the better design depends on the dataset.
- Treating MNER as a drop-in replacement for text-only NER without confirming that the image or other auxiliary modality is available at inference time, not only in the training data.
Frequently asked questions
Which datasets should I use for MNER evaluation?
Start from the datasets used in the two cited papers, Moon et al. (2018) and Lu et al. (2018), and check their licences and annotation schemes. Then evaluate on data from your own target domain.
Does MNER always outperform text-only BERT NER?
Not always. The benefit depends on how strongly the images are aligned with the entity mentions. When images are generic or unrelated, MNER can perform similarly to, or worse than, a well-tuned text-only model, so a text-only baseline should always be included.
What fusion strategy should I use?
Cross-modal attention, in which each text token attends over image regions, lets the model weight visual evidence per token. Gated fusion learns how much visual signal to mix into each token. Neither option is universally better, so compare both against a simple concatenation baseline on your own data.
Can MNER be applied to modalities other than images?
The same pattern can in principle be applied to other auxiliary modalities, such as audio features in spoken NER or structured metadata in e-commerce, as long as the modality carries information that helps disambiguate entities. Whether it does must be tested.
How much labeled data is needed?
No general minimum can be given, because it depends on the task and the modality. Pre-trained text and vision encoders reduce how much paired data is needed, whereas training without pre-training generally requires more labelled data. Estimate the requirement with a learning curve on your own data.
Related methods
Sources
Moon, S., Neves, L., & Carvalho, V. (2018). Multimodal Named Entity Recognition for Short Social Media Posts. Proceedings of NAACL-HLT 2018, pp. 852–860. Association for Computational Linguistics.
Open publication referenceLu, D., Neves, L., Carvalho, V., Zhang, N., & Ji, H. (2018). Visual Attention Model for Name Tagging in Multimodal Social Media. Proceedings of ACL 2018, pp. 1990–1999. Association for Computational Linguistics.
Open publication reference