When Candidate Order Masquerades as Popularity in Entity Disambiguation

Entity disambiguation means deciding which real-world entity a name in a text refers to: whether "Charlton" in a football report is Jack or Bobby, or whether "George Washington" is the president, the university, or a jazz trombonist. Modern systems answer by reading a short list of candidate entities alongside the text and picking one. In almost every pipeline that list arrives sorted by a popularity prior or a retrieval score, so the famous namesake usually sits first. A second line of work shows that language models and neural rankers prefer whatever appears first or at the edges of their input, regardless of content. Put together, these facts mean that two biases studied separately are confounded in disambiguation data. A model that "favors the famous entity" may in fact favor the first slot, and a model that "favors the first slot" may in fact favor the famous entity. Nobody has separated the two.

This note proposes to measure that confound directly and then remove the position component with a training method that needs no gold-position trick and no extra inference cost. The method trains the disambiguator so that its single-pass prediction under any candidate order matches its own prediction averaged over several reorderings. The central empirical question is what remains of the well-documented failure on lesser-known namesakes ("shadow entities") once order carries no information. If most of that failure disappears, then a large share of what the literature calls popularity bias is positional. If it remains or grows, then position debiasing alone can expose a popularity bias that the sorted list had been hiding, and the two must be handled together.

Core Claim

In disambiguation models trained on prior-sorted candidate lists, list position works as a learned stand-in for entity popularity. A factorial evaluation that places the gold entity at controlled positions and controlled popularity ranks will attribute a measurable fraction of shadow-entity errors to position rather than to popularity. Training with an order-consistency objective, in which the model's own order-averaged prediction serves as the target, will close the position gap. On shadow entities it will match or beat the simpler fix of shuffling candidates at training time, and it will keep single-pass inference.

Where This Sits in Prior Work

The motivation comes from two bridge papers that each see half the problem. Who's Who: Large Language Models Meet Knowledge Conflicts in Practice builds WhoQA, a benchmark of questions whose retrieved passages describe different people or things sharing one name. It shows Llama 3 8B dropping from 98.2% accuracy with a single passage to 72.4% when conflicting namesake passages appear without warning, and it attributes the drop to a pull toward the famous namesake. It never controls where the shadow entity's passage sits, so its popularity effect and a position effect cannot be told apart. On the position side, Large Language Models are not Fair Evaluators shows that judge models flip their verdicts when answers are swapped, with conflict rates up to 82.5% for ChatGPT. It also finds the bias is strongest when the candidates are close in quality. That is exactly the situation when two namesakes both fit a context, so it suggests disambiguation is a worst case for order effects.

The architectures we test supply the method side. ExtEnD: Extractive Entity Disambiguation treats disambiguation as extracting a span from one long string of concatenated candidate titles, read by a Longformer, a transformer designed for long inputs. Entity Disambiguation with Entity Definitions appends short Wikidata descriptions to each candidate and reports +2.4 on AIDA test over titles alone. Those longer strings push later candidates far from the query. Neither paper permutes candidates at test time. Entity Disambiguation via Fusion Entity Decoding (FUSIONED) encodes each candidate separately and lets a decoder attend over all of them, reporting +1.5% accuracy over GENRE on ZELDA and showing that descriptions help with shadow entities. Its decoder still receives candidates in a fixed index order, and that order was never varied.

The closest mitigation is Position Bias Mitigates Position Bias (Pos2Distill). It trains a model so that its output when the gold document sits in the middle matches its output when the gold sits at the favored start position. With a few hundred examples it brings Llama-3-8B's average accuracy across 20 positions on WebQ to 56.7%, against a 57.9% peak. Its teacher depends on putting the gold item at the privileged slot. That does not transfer cleanly to disambiguation: a model trained on sorted lists, where the gold is usually first, would find a gold-first teacher trivially correct, so the teacher teaches nothing about content. We therefore replace the privileged-position teacher with an order-marginalized self-teacher. Pos2Distill also never touches entity candidate lists or popularity, which is the interaction we study. Training-time order augmentation, as in the position-flipping of the Praetor evaluator (Jin et al.) and the swapped-pair preference training of FairJudge, is the obvious simpler competitor and is treated as a primary baseline.

One paper constrains the design. Strong Heuristics for Named Entity Linking shows popularity-plus-lexical heuristics reaching P@1 0.833 on hard QUOTEBANK mentions, against 0.810 for mGENRE, at 15 ms on a CPU versus 8 s on a GPU. Any fix that multiplies inference cost by the number of candidates is unacceptable at web scale, which rules out inference-time permutation as the deployed answer.

Research Program

The first component is a diagnostic. For each test mention we keep the retrieved candidate set fixed and build orderings that place the gold entity at the first, middle, and last position. We cross this with the gold entity's popularity rank within the set: top prior, meaning a dominant entity, versus not top prior, meaning a shadow entity. We fit a logistic model of correctness on gold position, gold popularity rank, and their interaction. The coefficients give a direct decomposition of how much error each factor explains. We also report the position gap, the accuracy difference between the best and worst gold position, and the flip rate, the fraction of mentions whose prediction changes under reordering.

The second component is the mitigation. Let $p_\theta(e \mid x, \sigma)$ be the model's probability of candidate entity $e$ given mention context $x$ and candidate ordering $\sigma$, mapped back to entity identity so it is comparable across orderings. During training we draw $K$ cyclic shifts $\sigma_1,\dots,\sigma_K$ of a randomly shuffled list and form a stop-gradient teacher $q(e) = \frac{1}{K}\sum_k p_{\bar\theta}(e \mid x, \sigma_k)$. Here $\bar\theta$ is the current parameters with gradients blocked. The loss for a fresh random ordering $\sigma$ is

$$ \mathcal{L} = -\log p_\theta(e^\ast \mid x, \sigma) + \lambda\, \mathrm{KL}\big(q \,\|\, p_\theta(\cdot \mid x, \sigma)\big), $$

where $e^\ast$ is the gold entity and $\lambda$ weights the consistency term. The $K$ extra forward passes are paid only at training time. Inference stays one pass in arbitrary order. We apply the objective to three systems: a description-augmented extractive model in the style of ExtEnDdef, a FUSIONED-style fusion decoder, and an open LLM (Llama 3 8B, fine-tuned with low-rank adapters) prompted with WhoQA-style namesake passages.

The third component tests the confound itself. We train identical models on prior-sorted lists and on randomly ordered lists, each with and without the consistency term. This 2-by-2 design tells us whether sorted training is what teaches position-as-popularity. It also tells us whether the consistency term adds anything once training order is already random.

Baselines

The naive reference point is each architecture trained and tested the standard way, on prior-sorted candidate lists. For the extractive model the file reports only the relative gain of ExtEnDdef (+2.4 on AIDA test over title-only), and no reported absolute AIDA number for ExtEnDdef was found on Lacuna, so we will reproduce it ourselves. For FUSIONED the relevant reported figure is +1.5% accuracy over GENRE on ZELDA. On the LLM side the reference numbers are Llama 3 8B at 72.4% on WhoQA without conflict warning and the warned prompt setting from the same paper. All are evaluated under sorted, reversed, and random orders and under all-or-nothing cyclic accuracy, where a mention counts as correct only if it is correct under every shift.

The strongest competitor is shuffle augmentation: the same model trained on randomly permuted candidate lists, generalizing the order-flipping used by Praetor and FairJudge. It is the strongest because it attacks the same confound at zero inference cost and with no new loss. It gets the identical data, the same number of optimizer steps, and the same hyperparameter search budget as our method. Because our method sees $K$ forward passes per example, we also run an augmentation variant given $K$ shuffled copies per example, so the comparison holds total training compute fixed. Beating it means a smaller position gap and higher shadow-entity accuracy at equal compute, with confidence intervals from three seeds that do not overlap.

The invariance ceiling is inference-time cyclic averaging, which averages predictions over $K$ shifts in the style of circular evaluation and balanced position calibration. It is order-invariant by construction but costs $K$ times more per mention. We also run the cheaper selective version from FairEval, which permutes only the most uncertain fraction of mentions. Our goal is to match the full averaging accuracy within one point in a single pass. The key ablation removes the consistency term while keeping random-order training. A second ablation keeps the term but trains on sorted lists, which isolates the contribution of breaking the sort-popularity correlation. As a speed reference we include the UIScore heuristic from the Strong Heuristics paper and a pointwise scorer that judges each candidate alone.

Why not just…?

Why not just sort candidates by popularity or retrieval score, as everyone already does? Sorting is the cause under study, not a cure. If the diagnostic finds a large position coefficient, a sorted list hands the first slot to the famous namesake and so stacks position bias on top of popularity bias. The shadow-entity failures documented in Who's Who and FUSIONED would then be partly self-inflicted. The fair-evaluator finding that order effects peak when candidates are close in quality predicts the damage concentrates on ambiguous mentions. The sorted-versus-random training contrast measures this directly.

Why not just shuffle candidates during training? This is a real threat, and it may close most of the position gap by itself. Shuffling removes the correlation between slot and gold label, but it does not force the model's output to stay the same when the same input is reordered. A model can still have order-dependent preferences that average out to correct labels while flipping on close pairs. The FairJudge finding that pointwise and pairwise judgments disagree even after debiasing hints that consistency needs its own pressure. If the compute-matched augmentation baseline equals our method on flip rate and shadow accuracy, we will report that the cheap fix suffices. The diagnostic decomposition then becomes the main contribution.

Why not just average over permutations at inference? It works, and it is our ceiling, but it multiplies cost by the number of candidates. In a setting where a generative linker already needs 8 s per mention and roughly 37 GPU-years for QUOTEBANK (Strong Heuristics), a 10-to-30-fold multiplier rules it out for large corpora. Selective permutation of uncertain cases reduces but does not remove the cost. We report accuracy against forward passes per mention so the trade-off is explicit.

Why not just score each candidate independently so order never arises? Pointwise scoring is order-free, but ExtEnD and FUSIONED both attribute their gains to comparing candidates jointly, and FUSIONED's shadow-entity gains come from that joint comparison. We include a pointwise scorer on the same backbone. If it matches jointly-trained models on shadow entities, joint comparison is not worth its position risk, and we would say so.

Proposed Experiments

Training uses AIDA-CoNLL. Evaluation covers AIDA test, the out-of-domain suite (MSNBC, AQUAINT, ACE2004, WNED-CWEB, WNED-WIKI), and ZELDA for the trained disambiguators. WhoQA serves the LLM, where we additionally control the slot of the shadow entity's passage among the conflicting passages. The shadow subset is defined throughout as mentions whose gold entity is not the top-prior candidate. ExtEnD's least-frequent-candidate split serves as a secondary rare-entity view.

The decisive checks are three. First, under prior-sorted training, does the position coefficient in the diagnostic regression remain significant when popularity rank is controlled? A null here means the confound is not real, and the project reduces to a negative result worth publishing. Second, does random-order training with the consistency term raise shadow-entity accuracy relative to compute-matched shuffle augmentation, or does it only shrink the position gap? Third, on WhoQA, does moving the shadow passage from the middle to the first slot recover a large part of the drop from 98.2% to 72.4%, and does the trained LLM keep that recovery when the passage is placed anywhere? A positive answer to the third check would show that a sizable part of the "parametric popularity" failure reported for retrieval-augmented models is an order effect that training can remove.