Public-Catalog Negatives for Federated Entity Retrieval

Entity linking maps a phrase in text, such as "MS" in a clinical note, to one entry in a knowledge base that may hold millions of concepts. Every practical system works as a funnel. A fast retriever first shortlists a few dozen candidates, and a slower, more accurate model then picks one. Whatever the retriever misses is lost for good, because the second stage never sees it. Hospitals are exactly where this first stage fails most, since local abbreviations and rare diseases are underrepresented in public training text. Hospitals are also exactly where notes cannot be pooled to retrain the retriever. Federated learning, which trains a shared model by sending weight updates rather than data, is the natural answer. There is a known obstacle, though. When two-tower retrievers are trained this way, each client sees too few and too similar negative examples, and the embedding space collapses.

This note argues that entity linking escapes that obstacle in a way recommendation cannot. The list of things to retrieve, the knowledge base, is public, so every client can draw negatives from the same catalog-wide distribution. That makes each client's loss independent of its local batch without ever computing a softmax over millions of entities. We propose to build and test this. The central empirical question is who benefits. We expect the gain to concentrate on entities that one hospital rarely sees but others see often, which is the case federation is supposed to help and the case a public-only retriever cannot help.

Core Claim

Learning Federated Representations and Recommendations with Limited Negatives motivates this proposal and supplies its central idea. It trains two-tower recommenders federatedly on MovieLens 1M and shows three things. Standard in-batch softmax falls 27–43% short of centralized recall. The cause is scarce negatives rather than client drift, since the failure persists under single-step FedSGD. Losses whose gradient splits into independent per-pair terms shrink the gap to 0.53–2.42%. Their best such loss, a global softmax over the whole catalog, does not scale to the 5.9M Wikipedia entities indexed by Zero-shot Entity Linking with Dense Entity Retrieval or the 40M Wikidata nodes in Improving Candidate Retrieval with Entity Profile Generation for Wikidata Entity Linking. Their other loss, hinge plus a spreading regularizer, was never tested on text.

Our claim is that a public catalog lets us replace the global softmax with a sampled softmax. Its negatives come from one shared proposal distribution, which is the same for every client and does not depend on what else is in the client's batch. For a mention $m$ with gold entity $e^+$, the proposal is $q(\cdot \mid m)$, a mixture of nearest neighbours of $m$ in a shared, compressed entity index and uniform draws from the catalog. With $K$ entities $e_1,\dots,e_K$ drawn from it and a dot-product score $s$, each client minimizes

$$ \ell(m,e^+) = -s(m,e^+) + \log\Big(e^{s(m,e^+)} + \sum_{j=1}^{K} e^{\,s(m,e_j) - \log(K\,q(e_j\mid m))}\Big). $$

The $\log(Kq)$ term corrects for the biased sampler, so the loss estimates the full-catalog softmax. Its cost grows with $K$, not with catalog size. Its gradient depends only on the pair $(m, e^+)$ and the shared sampler, which is the batch-insensitivity property the recommendation paper identified.

What remains hard, and specific to text entity retrieval, is staleness. If the entity tower is trained federatedly, the shared index describes last round's entity embeddings, and its hard negatives drift away from what the current model finds confusing. So the second claim to test is that a cheap policy closes most of the remaining gap. The candidate policies are a frozen entity tower plus a trainable mention tower, or a slowly moving entity tower with periodic server-side re-indexing.

Research Program

The system has three parts. The server holds the public knowledge base, the entity tower, and a product-quantized FAISS-style index, as in the dense retrievers of Zero-shot Entity Linking with Dense Entity Retrieval and Learning Dense Representations for Entity Retrieval. Each round it broadcasts the compressed index, or a delta against the previous one, together with current weights.

Clients run the sampled-softmax loss above on their private mention–entity pairs. They mine hard negatives from the shared index and send back weight updates. Aggregation is plain FedAvg, so any gain can be credited to the choice of negatives rather than to aggregation tricks.

We will compare three entity-side regimes. In the first, the entity tower is frozen and only the mention tower is updated. In the second, the entity tower is trained federatedly and the index is refreshed every $R$ rounds. In the third, the entity tower is refreshed only on the server, using public knowledge-base text. Sweeping $R$ gives a direct measurement of the cost of staleness.

This design differs from FedHAP, which keeps silos aligned by broadcasting one hash prototype per class across roughly 80 image categories. FedHAP reports shrinking gains as the number of classes grows, and it assumes closed, shared labels. We broadcast no per-class state. The public entity descriptions themselves act as anchors, which scales to millions of open-world concepts and to entities no client has labeled.

The vertical-federation record-linkage papers study a different problem, namely aligning rows of a table across organizations before joint training. These are Entity Resolution and Federated Learning get a Federated Resolution and Private federated learning on vertically partitioned data via entity resolution and additively homomorphic encryption. They inform one of our analyses: their finding that cross-class matching errors dominate downstream damage motivates splitting our recall errors into near-miss confusions and outright absences.

The analysis centers on the silo structure. We partition data so that each client has skewed entity coverage. Every test mention is then labeled by how often its gold entity appears in the client's own training data and how often it appears in other clients' data. The quantity of interest is Recall@k on entities that are rare locally but common elsewhere.

Baselines

The naive reference point is local-only training. Each silo fine-tunes the public checkpoint on its own data with in-batch negatives and hard negatives mined from the full index, and never shares updates. It measures what a single hospital achieves alone. Any federated method must beat it on locally rare entities to justify itself.

The strongest competitor is the public-only retriever. This is a dense bi-encoder trained centrally on public biomedical text and deployed frozen: SapBERT-style or BioSyn-style retrievers as used in Improving biomedical entity linking with generative relevance feedback. In the general domain, the analogue is DEER from Learning Dense Representations for Entity Retrieval, which reports 87.0% Recall@1 on TACKBP-2010 and 97.9% Recall@100 on Wikinews. It is the strongest competitor because it needs no federation at all and already transfers well. We could not find on Lacuna an absolute Recall@k for SapBERT or BioSyn on the BELB corpora or MedMentions; the file reports only relative gains of 1–15 points from generative feedback. We will therefore run it ourselves, using the same encoder backbone, index, and $k$. Beating it means a statistically reliable Recall@64 gain on held-out silo mentions, concentrated in the locally-rare bucket.

The federated reference is FedAvg with in-batch softmax, following Learning Federated Representations and Recommendations with Limited Negatives. We also run hinge-plus-spreadout from that paper, adapted to text encoders. That paper's 0.53–2.42% relative gap on MovieLens 1M is the target our method should approach relative to pooled-centralized training.

Pooled-centralized training on all silos' data is the upper bound. It shows how much federation leaves on the table, and how much private data adds over public-only.

Two ablations isolate the key ingredient. The first keeps everything fixed but mines hard negatives from each client's locally seen entities instead of the shared catalog. The second removes the $\log(Kq)$ correction.

For fairness, every method gets the same backbone, the same number of client–server rounds, the same total local gradient steps, and the same budget of 20 hyperparameter configurations.

Why not just…?

Why not just train on public data and deploy the retriever frozen? This is the real threat. If public-only recall matches pooled-centralized recall on silo data, federation has nothing to offer, and we will report that. The evidence against it is indirect. Fine-Grained Entity Typing for Domain Independent Entity Linking finds that neural linkers overfit to the entity distributions and text genres they were trained on. Design Challenges in Low-resource Cross-lingual Entity Linking attributes 80–90% of low-resource errors to retrieval. Our first experiment measures the public-only versus pooled gap directly, before any federated method is run.

Why not just ship the full index to each hospital and fine-tune locally? Cross-silo clients can store a compressed index, so this is also a serious alternative, and it avoids negative collapse for the same reason our method does. What it cannot do is transfer: a silo never learns the surface forms other silos use for entities it rarely sees. The local-only baseline tests exactly this. If it matches federated training on the locally-rare, globally-common bucket, our transfer claim fails.

Why not just use an alias table or BM25? Learning Dense Representations for Entity Retrieval shows that dense retrieval beats alias-table priors on TACKBP-2010. Hansel: A Chinese Few-Shot and Zero-Shot Entity Linking Benchmark shows that popularity priors drop tail entities. We still include BM25 as a floor.

Why not just add LLM-generated entity names to the query? Generative relevance feedback, as in Improving biomedical entity linking with generative relevance feedback, changes the query, not the training, so it complements our method rather than competing with it. We test it stacked on each retriever.

Proposed Experiments

The biomedical setting uses MedMentions ST21PV, whose test split contains many entities absent from training. We split its documents into 8 silos, skewed by dominant semantic type as in FedHAP's synthetic non-IID protocol. A second, more realistic setting treats the BELB disease corpora, NCBI Disease and BC5CDR (D), as separate institutions sharing one disease vocabulary. The general-domain check trains on Wikipedia partitioned by topic and evaluates on TACKBP-2010 and Wikinews, where DEER's published numbers give a fixed anchor.

Metrics are Recall@1, @10 and @64, broken down by the local/global frequency bucket. We also report end-to-end accuracy with a fixed cross-encoder reranker, communication bytes per round, and client compute per step. For context only, since it measures end-to-end accuracy rather than retrieval recall, Clustering-based Inference for Biomedical Entity Linking reports 74.1% end-to-end accuracy on MedMentions.

Three checks decide whether the proposal works. First, the public-only versus pooled gap must be non-trivial; otherwise we stop and report that result. Second, shared-catalog negatives must close most of that gap, while local-negative FedAvg must show collapse, visible as falling embedding spread and falling tail recall. Third, the gain over local-only training must sit in the locally-rare, globally-common bucket. The index-refresh sweep then tells practitioners how much staleness they can tolerate.