Making Images Earn Their Keep in Entity Linking

When a tweet says "Tesla wins," the words alone cannot tell you whether it means the car company, the inventor, or a football club. An attached photo often can. Systems that link such mentions to a knowledge base using both text and image have become a standard research setting. Their reported gains, however, mix two different things. One is real visual evidence about which entity is meant. The other is the model getting better at exploiting what it already relied on: the spelling of the name and how popular each candidate is.

This proposal separates the two, then builds a system that uses the image only when the image carries information. The method has three parts. First, a visual "expert" is trained on examples where the mention's name is hidden (entity masking), so it must identify the referent from the picture and the surrounding words, not from the name string. Second, a separate text expert sees the name. Third, a small maximum-entropy classifier combines them. A maximum-entropy classifier is a multinomial logistic regression over hand-chosen features. Here it weighs the experts' scores against two signals: how ambiguous the mention is, and whether the image looks related to the text. The claim is that this design matches joint multimodal models on ordinary examples. It should beat them clearly on two hard cases: long-tail entities, and posts whose images are decorative, sarcastic, or swapped. Its confidence scores should also be calibrated, meaning a stated 80% confidence is right about 80% of the time.

Core Claim

The visual pathway of a multimodal entity linker is only useful if it carries information the name does not. The simplest way to guarantee that is to train it with the name masked. Masking is usually treated as a robustness trick inside one model. Here it is a way to make two experts carry roughly independent evidence. A log-linear combination of independent evidence is exactly the setting where maximum entropy classification behaves well.

The output distribution over a candidate set $C(m)$ for mention $m$, with text context $c$ and image $v$, is

$$P(e \mid m,c,v) = \frac{1}{Z}\exp\Big(\sum_{k} \sum_{b} \lambda_{k,b}\, \mathbb{1}[g(m,c,v)=b]\, s_k(e)\Big),$$

The terms are defined as follows. The $s_k(e)$ are three log-scores for candidate $e$: the text expert, the masked visual expert, and the log popularity prior. The function $g$ assigns each example to a bin defined by the entropy of the prior over candidates and the image–text similarity. The $\lambda_{k,b}$ are learned weights, one per expert per bin. $Z$ normalizes over $C(m)$ only. Restricting $Z$ to a small candidate set sidesteps the cost of normalizing over millions of knowledge-base entries, which is the usual objection to maximum entropy models at this scale.

The model learns statements such as "when the prior is flat and the image matches the text, trust vision." It does this with a few dozen interpretable weights rather than a learned neural gate.

Grounding in Prior Work

Three groups of papers play distinct roles.

The motivation comes from entity masking. A Rigourous Study on Named Entity Recognition permuted names while keeping context intact. Micro-F1 on ACE2005 fell by about 24%, and by more than 40% on some entity types. The conclusion was that fine-tuned BERT taggers depend mostly on how names look. We take their permutation protocol and apply it to multimodal linking, where it has not been used to ask whether images recover what the name used to supply.

That same paper also constrains the design. Masking destroys useful surface evidence, so masking cannot be applied to the whole system. This is why the text expert keeps the name and only the visual expert is masked.

The visual pathway borrows from multimodal named entity recognition, the task of finding and typing names in posts using text plus image. - Multimodal Named Entity Recognition for Short Social Media Posts scales visual features per token with modality attention. - Visual Attention Model for Name Tagging in Multimodal Social Media attends to image regions and injects them through a modulation gate. - Adaptive Co-attention Network for Named Entity Recognition in Tweets filters visual noise with co-attention.

All three learn when to trust the image inside a single jointly trained network. None tests whether the image predictions are anything more than a noisy copy of the text predictions. We reuse their region-attention encoders for the visual expert but change what it is trained on.

The closest work is Multimodal Entity Linking for Tweets. It links tweet mentions to a knowledge base using both text and image, and it supplies the task setting and data for this proposal. Our differences are three: we train the visual evidence with masked mentions, we combine evidence through an explicit log-linear model conditioned on ambiguity and image relevance, and we evaluate with counterfactual image swaps and name permutation.

The choice of maximum entropy as the combiner has two supports. - Automatic Classification of English Verbs Using Rich Syntactic Features found that maximum entropy stayed robust on sparse, high-dimensional features where k-nearest-neighbors collapsed and SVMs were sensitive to skew. Our binned cross-product features are sparse in the same way. - A Maximum Entropy Approach to Information Extraction also motivates it. It shows maximum entropy can fuse overlapping cues, and it warns that pipelines pass errors downstream. Our combiner sees all experts at once rather than in sequence, which avoids that.

Popularity bias is the failure we target. Who's Who: Large Language Models Meet Knowledge Conflicts in Practice documents models defaulting to the most famous entity. That is the behavior the flat-prior bins are meant to override when the image disagrees.

Research Program

We would build four components, each also usable as a baseline:

  • a candidate generator from alias tables, with a popularity prior;
  • a text expert, a cross-encoder over mention, context and candidate description;
  • a visual expert, a region-attention encoder in the style of Lu et al., scoring candidates against the image and the context with the mention replaced by [ENTITY] or a type tag;
  • the maximum-entropy combiner, fit on a held-out split.

We would also build three diagnostic test sets from the tweet linking data:

  • a name-permuted set, where mentions are swapped for random same-type surface forms following Lin et al. and the gold entity is kept;
  • an image-swapped set, where each image is replaced by one from an unrelated post;
  • an ambiguity-stratified split, binned by prior entropy and by whether the gold entity is in the head or tail of the popularity distribution.

The analysis asks three questions:

  1. How much of each system's accuracy survives name permutation?
  2. How much does it lose under image swapping?
  3. Do the combiner's weights move as intended across bins, meaning vision is trusted more when the prior is flat and less when the image appears unrelated?

Baselines

The naive reference point links every mention to its most popular candidate. Next to it is the text expert alone, which shows what images add at all.

The strongest existing method is a joint multimodal linker in the style of Multimodal Entity Linking for Tweets. We implement it with the co-attention encoder of Adaptive Co-attention Network for Named Entity Recognition in Tweets over the same candidate sets. The research file reports no figure for linking on tweets: no reported result found on Lacuna for multimodal entity linking accuracy on the tweet dataset. We will therefore reproduce it rather than quote it. Fairness means:

  • the same candidate generator, image and text backbones, and training data;
  • an equal hyperparameter search budget, counted in GPU-hours and in number of configurations;
  • reporting means over five seeds.

Beating it means three things. Overall accuracy at rank one must be within one point of the joint model. Accuracy must be significantly higher on the flat-prior and tail-entity bins. The drop under image swapping must be smaller. Calibration error must also be lower.

On the named entity recognition side, where the file does give numbers, Visual Attention Model for Name Tagging in Multimodal Social Media reports 80.75 F1 on Twitter against 78.17 for text only. Multimodal Named Entity Recognition for Short Social Media Posts reports 52.4 F1 on SnapCaptions. These serve as a reproduction check for our visual encoder before we use it for linking.

Two ablations isolate the key ingredients. - The unmasked ablation keeps everything identical except that the visual expert sees the true mention during training. If masking matters, this version should look good on standard data but lose its edge on the name-permuted and flat-prior bins, because its errors will be correlated with the text expert's. - The ungated ablation uses one global weight per expert, with no bins. It tests whether conditioning on ambiguity and relevance is what helps.

Why not just…?

Why not just train the joint model with mention dropout? Randomly hiding the mention during joint training is the most serious competitor. It could give the image pathway the same independence without a separate expert. We run it as a baseline, sweeping the dropout rate within the shared budget.

Our reason to expect a difference is limited. In a joint network, the image features are still read through attention that the text helps steer, so their evidence is not separately inspectable or calibratable. If mention dropout matches us on accuracy, calibration, and image-swap robustness, the honest conclusion is that masking is the contribution and the separate combiner is unnecessary. We would report it that way.

Why not just use a learned neural gate instead of a maximum-entropy combiner? The modulation gate of Lu et al. and the modality attention of Moon et al. already decide how much to trust the image. Those gates are trained jointly with the encoders, though. Nothing stops them from learning to pass the image through whenever the name is easy, which is when the image is least needed.

The comparison runs our experts with a small MLP gate fit on the same held-out split. Our hypothesis is that the bin-based maximum-entropy weights do just as well with far fewer parameters and calibrate better on the small held-out set, which is the sparse-data regime where Sun et al. found maximum entropy most stable. If the MLP gate wins clearly, we adopt it, and the masking result still stands.

Why not just prompt a large vision-language model with the image and candidate list? This may well be strong on head entities. The popularity defaults documented in Who's Who predict it will be weakest exactly on flat-prior, tail-entity cases. It also offers no calibrated way to ignore an irrelevant image. We include it as a zero-shot reference on the stratified and image-swapped sets and judge it by the same per-bin numbers. We do not treat it as the primary baseline, because it does not run under a matched compute budget.

Proposed Experiments

All linking experiments use the tweet dataset from Multimodal Entity Linking for Tweets. The named entity recognition transfer check uses the Twitter and SnapCaptions sets from Lu et al. and Moon et al.

Metrics are:

  • accuracy at rank one, overall and per bin, by prior entropy and by head versus tail entity;
  • expected calibration error;
  • the relative drop under name permutation;
  • the relative drop under image swap.

Three checks are decisive. Each could falsify the core claim.

First, the masked expert should help most where the prior is flat. It should gain more over the text expert on the flat-prior bins than on the peaked-prior bins. The unmasked ablation should show a smaller version of that gap. If both gaps are the same, masking does nothing.

Second, image swapping should leave the system almost unchanged. It should push our system back to roughly text-only accuracy, with the combiner shifting weight off vision in the low-similarity bins. Joint baselines should fall below text-only. If our system also falls below text-only, the relevance features are not working.

Third, images should recover what name permutation removes. On name-permuted mentions, the gap between multimodal and text-only accuracy should widen for our system relative to the joint baseline. This mirrors the Lin et al. test.

As a smaller transfer check, we will apply the masked visual expert to entity typing on name-permuted Twitter named entity recognition data. The question is whether images recover part of the large drop Lin et al. observed for text-only taggers.