Gradient-Steered Synthetic Data for Federated Multilingual Entity Recognition

Picture a dozen organizations, each holding private, entity-labeled text in its own language, such as search logs or user questions in Hindi, Spanish or Bangla. They want one shared model that finds names of films, bands, products and people. The text cannot leave each site. Federated learning is the usual answer: each site trains locally and sends only parameter updates to a server that averages them. But the hardest entities, titles of creative works and names of groups, are rare and unevenly spread across sites, and no single site has enough examples. A large language model (LLM) on the server could write extra labeled sentences. The open question is what it should write, given that the server cannot see the data it is trying to help.

We propose that each site answer one private question about each batch of candidate synthetic sentences: would training on this batch push the shared model in the same direction as my own data does? Each site computes this as a single number, the cosine similarity between two gradients, and the server combines the numbers across sites with calibrated noise. The server then keeps, and asks the LLM for more of, the synthetic sentences that the sites collectively need. Sites never send entity strings or sentence embeddings, only a bounded score per candidate. The claim is that, for entity recognition, steering generation by training usefulness works better and leaks less than steering it by resemblance to private text, because resemblance rewards copying the entity surface strings. Those strings are both the most sensitive content and the thing current multilingual models already over-memorize.

Core Claim

Three bodies of work each stop one step short of this setting. Federated entity recognition exists only in English. Federated Domain Adaptation for Named Entity Recognition via Distilling with Heterogeneous Tag Sets handles sites that annotate different entity types by having the global model pseudo-label the missing types. It weights each local sentence by the cosine similarity between gradients of two losses. Federated Incremental Named Entity Recognition handles new types arriving over time with prototype-guided pseudo-labels. Neither is multilingual, and neither generates new text.

Multilingual federated tuning exists only for sentence-level tasks. Breaking Physical and Linguistic Borders freezes XLM-RoBERTa and averages a small learned prompt across language sites. It reports 6.9% higher accuracy than local monolingual fine-tuning on classification and inference. It never tests token-level tagging.

LLM-written data under federation exists only for unlabeled text. POPri steers a server LLM with privately aggregated embedding-similarity scores from clients, then trains small edge models on its output. Prompt Public Large Language Models to Synthesize Data for Private On-device Applications pre-trains on unsteered synthetic text before federated fine-tuning.

Our contribution is to move the client signal from "does this look like my data" to "does this teach what my data teaches." We apply it to labeled, multilingual sequence tagging, where the label alignment of every token must survive generation. Concretely, for candidate synthetic batch $j$ and participating site $k$ out of $K$, the site computes

$$s_{k,j} = \mathrm{clip}\big(\cos(\nabla_\theta L_{\text{syn}}(j), \nabla_\theta L_{\text{priv},k})\big) \in [-1,1],$$

where $\theta$ are the shared prompt parameters and $L_{\text{syn}}(j)$ is the tagging loss on batch $j$. $L_{\text{priv},k}$ is the loss on a fresh local sample of site $k$'s private data. The server forms

$$u_j = \frac{1}{K}\sum_k s_{k,j} + \mathcal{N}(0, \sigma^2),$$

with $\sigma$ set by the Gaussian mechanism for sensitivity $2/K$. That sensitivity comes from each site contributing one clipped value to the mean.

We expect gains to concentrate where the MultiCoNER analyses locate the failures. SemEval-2023 Task 2 (MultiCoNER 2) reports an 11.1% average drop when the entity itself is corrupted, against 4.3% when the surrounding context is corrupted. MultiCoNER v2 reports a roughly 14% gap between coarse and fine-grained typing, and 20–30% of medical and creative-work entities missed outright. Gradient-aligned synthetic data should teach context and boundary cues for these types. Similarity-steered data should mostly reproduce surface strings.

Research Program

The tagger. We build a frozen xlm-roberta-large encoder with a federated prompt encoder in the style of Zhao et al. and a token-level softmax head. We use softmax rather than a CRF because Wang et al. list distillation into CRF decoders as unsolved.

Generation. We borrow MulDA's placeholder idea to get past the "linguistic wall." MulDA replaces entities with typed placeholders before machine translation, so word-order changes cannot scramble labels. The server LLM writes English sentence templates containing typed slots for the 33 fine-grained MultiCoNER 2 classes, for example "who directed [CW-VisualWork] after leaving [GRP-MusicalGroup]". Templates are then translated with the slots kept intact. Slots are filled with target-language entity names drawn from public multilingual knowledge-base labels. This design responds to the Tamil Wall and the finding in LLM-powered Data Augmentation for Enhanced Cross-lingual Performance that translate-then-generate often beats direct generation in non-English languages. Here, the LLM never has to write fluent low-resource text with correct labels.

The steering loop. Each round, the server proposes candidate batches that vary along fine-grained type, template style (query, question, short encyclopedic sentence) and surface noise. Sampled sites return clipped gradient cosines. The server then does two things: it adds the top-scoring batches to the synthetic training pool, and it shifts its sampling distribution over types and styles toward high-scoring regions. A separate arm adds POPri-style preference optimization of the generator itself, using top-versus-middle candidate pairs. This tests whether training the generator is worth the cost over filtering alone.

Heterogeneous tag sets. We also study sites with partially disjoint fine-grained tag sets. In this setting, a site's private gradient ignores types it does not annotate. The aggregate score therefore naturally favors synthetic data for types that some sites need and others cannot supply. This is the case where Wang et al.'s teacher pseudo-labels should be weakest, because of the coarse-to-fine error gap.

Privacy accounting. We report the combined privacy budget of the score channel and of the prompt updates. The prompt updates are clipped and noised with standard differentially private federated averaging, since Zhao et al. flag gradient inversion as an open risk.

Baselines

Local fine-tuning (naive reference). Each language site tunes its own prompt on its own MultiCoNER 2 split, with no sharing. Zhao et al. show this collapses at small sample sizes, so it sets the floor.

Federated prompt tuning without synthetic data. This is Zhao et al.'s method applied unchanged to tagging. It is the direct test of whether synthetic data adds anything to federation.

Federated tuning with teacher pseudo-labels. For the disjoint-tag-set setting, the strongest existing federated NER method is Wang et al.'s distillation with gradient-similarity instance weighting. We reimplement it on the same XLM-R prompt backbone rather than BART, so the comparison isolates the method and not the backbone. Its reported result is 61.22 average F1 on OntoNotes 5.0, against 47.91 without distillation. It has no reported result on multilingual data, and we found no reported result on Lacuna for any federated method on MultiCoNER 2.

Unsteered synthetic data. This is the most dangerous competitor. The server generates synthetic data with the same placeholder pipeline, uniformly over types, at the same token budget. It is pre-trained on and then federated-tuned, following the Gboard recipe.

Embedding-similarity steering. We isolate the key ingredient by keeping everything identical and swapping the gradient cosine for POPri's embedding cosine.

Centralized upper references. These are not privacy-preserving and serve only to show how much of the gap federation closes. The MultiCoNER v2 XLM-R baseline reports 0.63 macro-F1 on the multilingual test set (MultiCoNER v2). The best SemEval system, DAMO-NLP, reports 85.53 (English) and 89.78 (Spanish) macro-F1 (MultiCoNER 2).

Fairness controls. All federated arms share the same rounds, sites per round, prompt size and privacy budget. All synthetic arms share the synthetic token budget and LLM query count. Hyperparameters get equal tuning trials on a held-out validation split. Beating the field means two things. First, gradient-steered data must exceed unsteered and similarity-steered data on fine-grained macro-F1, with gains concentrated on creative-work and group classes, at matched privacy budget. Second, it must exceed federated prompt tuning alone by more than the run-to-run spread over at least three seeds.

Why not just…?

Why not just generate a large unsteered synthetic set and skip the feedback loop? This is a real threat. Pre-training on unsteered synthetic text cut federated rounds from 1100 to 600 in the Gboard study. If the LLM's prior over MultiCoNER-style sentences is already good, steering may add nothing. The matched-budget comparison settles it directly. We will also report the result per fine-grained type and per language. Our prediction is that steering matters mainly for the rare types and lower-resource scripts, where a uniform prior wastes budget on types that sites already handle. If unsteered data ties overall and per type, we will report that steering is unnecessary.

Why not just use POPri's embedding-similarity feedback? It is proven for generation, but for tagging it rewards sentences that resemble private text. The heavy entity-corruption penalty suggests the shared model gains least from more of the same surface forms. Resemblance is also the more privacy-sensitive target. The similarity-steering ablation tests the first point. A membership test, checking whether synthetic entity strings drift toward held-out private strings, tests the second.

Why not just retrieve Wikipedia context at each site? Retrieval was decisive in MultiCoNER, for example in KDDIE and IITD. It can run privately against a local dump. But retrieval helps at inference and does not supply training examples for types a site never annotates. We treat it as complementary and run a cross condition, retrieval with and without steered synthetic data, to check whether the gains stack.

Why not just prompt an LLM to tag directly? Direct LLM tagging reached only about 14.78% F1 on MultiCoNER 2. Edge sites also cannot host large models, as POPri notes. Context generation of the kind in RIGA, which reports 79.7% validation F1 for English with GPT-3 context, requires sending private queries to the LLM. That is excluded in our setting.

Proposed Experiments

Setup. We split MultiCoNER 2 into one site per language, with natural size imbalance. We add a second configuration in which each site annotates a random half of the 33 fine-grained classes.

Metrics. We report fine-grained macro-F1 overall, per coarse type, on the noisy subset, and per language, with lower-resource scripts such as Bangla, Hindi and Farsi broken out. We also report communication volume and the privacy budget $\varepsilon$.

First decisive check. At matched $\varepsilon$ and token budget, gradient steering must beat both unsteered and similarity-steered synthetic data on creative-work and group F1. This is the step that justifies the client signal.

Second check. The placeholder translate-then-fill generator must beat direct multilingual LLM generation on the lower-resource scripts. This tests whether we have actually routed around the linguistic wall rather than injected English-centric artifacts.

Third check. In the disjoint-tag-set configuration, steered synthetic data must beat Wang et al.'s pseudo-labeling on the types each site lacks. The combination of the two must beat either one alone.

Final analyses. We sweep $\varepsilon$ to find where the noised score stops carrying information. We also test whether synthetic entity strings drift toward held-out private strings, which would indicate leakage.