NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FedAnchor: Coordinated Anti-Collapse for Federated Molecular Generation

When a generative model is trained to maximize a property score — say, predicted binding to a disease target — it tends to collapse: it finds one decent scaffold and generates thousands of near-duplicates of it, while ignoring the rest of chemical space. This pathology is well documented and, as KL-Regularized Reinforcement Learning for Generative Modelling is Designed to Mode Collapse proves, it is baked into the standard objective itself: the KL-regularized reinforcement-learning target distribution places essentially all probability mass on a single mode at practical regularization strengths. Meanwhile, the institutions that most need diverse candidate molecules — competing pharmaceutical companies — cannot pool their data, so they increasingly turn to federated learning, where each participant trains locally and shares only parameter updates, as ten companies did in the MELLODDY consortium Industry-Scale Orchestrated Federated Learning for Drug Discovery. But MELLODDY trains only predictors, not generators. Nobody knows what happens when the federated model is itself a generative policy, and there is good reason to fear the worst: each client's generator collapses onto its own local mode, and averaging parameters across clients with structurally disjoint libraries may produce a narrow "consensus" mode rather than the union of everyone's discoveries.

This proposal makes one deep claim and tests it. The claim: mode collapse in federated generation is a two-level failure — local collapse from the reward objective, and global collapse from aggregation under scaffold heterogeneity — and it can be repaired without any client revealing a single molecule, by combining local anti-collapse reward shaping with a cryptographically aggregated histogram of which regions of scaffold space are already crowded. We call the method FedAnchor.

Core Claim

Federated averaging of generative policies does not mix modes; it collapses them. Under a linearized analysis, the stationary point of federated averaging over clients whose local KL-regularized objectives each concentrate on their own mode corresponds to a geometric-mean-like target rather than an arithmetic mixture, which favors modes shared across clients and suppresses client-specific niches — precisely the ones federation is supposed to preserve. The fix is not a smarter aggregator but coordinated reward shaping: each client trains with a mode-anchored reward (adapting MARA from KL-Regularized Reinforcement Learning for Generative Modelling is Designed to Mode Collapse) that prevents local collapse, and each client additionally penalizes molecules whose Murcko scaffold falls into a bucket that the whole consortium has already over-sampled. The bucket counts are shared only as a securely summed histogram, in the additive-masking style that MELLODDY Industry-Scale Orchestrated Federated Learning for Drug Discovery already deploys, so no client learns which scaffolds belong to which partner. Pooled samples from the resulting clients then approximate draws from a flattened global target — diversity by construction, privacy by arithmetic.

Research Program

The program has three parts: a diagnostic, the method, and a modest theory component.

First, the diagnostic. We construct a federated generative benchmark by applying the FedChem recipe — Bemis–Murcko scaffold splitting followed by Latent Dirichlet Allocation Federated Learning of Molecular Properties with Graph Neural Networks in a Heterogeneous Setting — not to a property dataset but to the MOSES distribution-learning corpus, whose ZINC Clean Leads collection of 4,591,276 molecules carries 448,854 unique scaffolds Molecular Sets (MOSES): A Benchmarking Platform for Molecular Generation Models, using the public codebase at MOSES. We partition scaffolds unevenly across eight to ten clients (mirroring MELLODDY's silo count), pre-train a chemical language model on ChEMBL as in ACEGEN: Reinforcement learning of generative chemical agents for drug discovery, then let each client fine-tune with proximal policy optimization and experience replay toward a docking target. The open question is genuinely open in both directions: scaffold skew is known to break FedAvg for predictors on 7 of 9 molecular datasets Federated Learning of Molecular Properties with Graph Neural Networks in a Heterogeneous Setting, yet peer-to-peer averaging was also observed to help models escape local minima SpreadGNN: Decentralized Multi-Task Federated Learning for Graph Neural Networks on Molecular Data. Whether averaging perturbs generative policies out of collapsed basins or drags them into a consensus basin is exactly what we will measure first.

Second, the method. Client $k$ modifies its reward for molecule $y$ as

$$\bar{R}_k(y) = R(y) + \beta\big(\log \pi_{\mathrm{ref}}(z_k) - \log \pi_{\mathrm{ref}}(y)\big) - \lambda \log\!\big(1 + N[h(s(y))]\big),$$

where $R$ is the oracle (docking score or assay value), $\pi_{\mathrm{ref}}$ is the pre-trained prior, $z_k$ is client $k$'s current most-likely high-reward sample (the MARA anchor, computed purely locally), $s(y)$ is the Murcko scaffold of $y$, $h$ hashes the scaffold into one of a fixed number of buckets, and $N[b]$ is the global count of recent generations landing in bucket $b$. The first added term is MARA, which flattens the local reward peak; the second is a soft occupancy penalty in the spirit of TanhIMS from Diversity-Aware Reinforcement Learning for de novo Drug Design, which gently decays rewards for repeated scaffolds rather than zeroing them. Each round, clients compute their bucket counts, add random masks that cancel under server summation, and receive back only the summed histogram. A histogram over hashed buckets reveals, at coarse resolution, where the consortium as a whole is crowded — which is the point — but attributes nothing to any partner; we add calibrated noise where a tighter guarantee is needed. This matters because sharing anything richer is unsafe: gradient inversion can exactly reconstruct graph data from shared updates GRAIN: Exact Graph Reconstruction from Gradients and invert federated diffusion models GIDM: Gradient Inversion of Federated Diffusion Models, and MolRL-MGPT's diversity mechanism De novo Drug Design using Reinforcement Learning with Multiple GPT Agents requires exactly the token-level probability comparisons that would expose a partner's lead series.

Third, the theory. We extend the single-agent collapse analysis of KL-Regularized Reinforcement Learning for Generative Modelling is Designed to Mode Collapse to the federated fixed point, showing under a mixture-of-experts policy linearization that parameter averaging over per-client collapsed targets concentrates the aggregate on cross-client overlap rather than the mixture. The occupancy penalty counteracts this by making each client's target support avoid globally over-allocated regions, in the same spirit in which the scout network of Avoid What You Know: Divergent Trajectory Balance for GFlowNets is forbidden from re-entering over-allocated states — but coordinated through aggregate counts rather than shared policies. We verify the analysis empirically on synthetic mixture distributions where the ground-truth global target is known.

Baselines

The naive reference point is FedAvg of a ChEMBL-pre-trained chemical language model fine-tuned with PPO and experience replay, with no anti-collapse mechanism of any kind; this isolates what plain federated generative training does, which the diagnostic phase establishes. Alongside it sit the two "do nothing to federation" extremes: fully isolated local generators whose outputs are pooled at inference, and a single centralized model trained on all pooled data — the latter is privacy-violating and serves only as an upper bound on achievable diversity and yield.

The strongest existing competitor is MolRL-MGPT De novo Drug Design using Reinforcement Learning with Multiple GPT Agents, the multi-agent system with a cross-agent policy-divergence penalty that achieved the highest total score of 18.052 on GuacaMol's 20 tasks with 98% validity, and on JNK3 bioactivity an internal diversity of 0.372 versus 0.343 for its single-agent baseline and 0.368 for Reinvent. It is the strongest because it is the only prior method that attacks collapse through coordinated diversity pressure among multiple generators, which is conceptually the same lever we pull. We run it in two configurations under identical partitions, oracle budgets, and tuning effort: as the published centralized version with full policy visibility (a privacy-violating upper reference), and as a "federated MolRL" that averages parameters but never exchanges logits or molecules. Beating it means matching its 18.052-class goal-directed performance within noise while exceeding its pooled internal diversity and unique-scaffold counts under federation's communication and privacy constraints.

The closest federated generative baseline is EP-GFlowNet Embarrassingly Parallel GFlowNets, which aggregates local GFlowNets into a global sampler via a product-of-local-distributions condition in a single communication round. Its Theorem 3.4 makes our case for us: if any client fails to cover a mode of its sub-distribution, the aggregate fails catastrophically, and the paper includes no anti-collapse mechanism and no molecular evaluation — no reported result found on Lacuna for EP-GFlowNet on any molecular benchmark. We run it on our scaffold-heterogeneous partitions; beating it means higher pooled internal diversity and higher yield of unique high-reward molecules, and the comparison directly tests whether its known fragility manifests under realistic chemical heterogeneity.

The key ablation removes only the global ingredient: local MARA shaping plus FedAvg, with no scaffold histograms exchanged. A second ablation removes only the local ingredient: histograms exchanged, no MARA anchor. All methods receive the same number of oracle calls, RL steps, communication volume per round, and tuning budget, because the question is coordination, not compute.

Why not just…?

Why not just train isolated local models and pool their generated libraries? This is the cheapest possible answer and we treat it as a first-class baseline rather than arguing it away. The evidence against it is two-sided: isolated predictive models have restricted applicability domains, and collaboration in MELLODDY expanded the domain by 10% and improved activity classification by 4% Industry-Scale Orchestrated Federated Learning for Drug Discovery, suggesting local models genuinely miss foreign chemistry; and isolated RL agents on hard targets like JNK3 get trapped, failing to surpass a reward of 0.5 in standard RL Diversity-Aware Reinforcement Learning for de novo Drug Design. But pooling could well suffice for easy targets or mild heterogeneity, and if pooled-local matches FedAnchor on our benchmarks, the proposal's added machinery is not justified — the pooled-IntDiv comparison will settle this honestly.

Why not just use decoding tricks — diverse beam search or higher temperature — on the federated model? This is already refuted empirically: on ChEBI-20, Diverse Beam Search scored 4.413 on the NCircles set-diversity metric, worse than plain beam search at 5.576 and far below diversity-aligned training at 11.301 Can LLMs Generate Diverse Molecules? Towards Alignment with Structural Diversity, because different SMILES strings can describe the same molecule — a linguistic illusion of diversity. Decoding operates on a policy whose distribution has already collapsed; it cannot manufacture modes the training objective deleted. We include a temperature-sweep arm anyway, since it costs almost nothing and makes the negative result concrete in our setting.

Why not just add local anti-collapse — entropy bonuses, MARA, or curiosity rewards — at every client and let FedAvg do the rest? This is the most serious alternative, because it is exactly our ablation, and MARA alone demonstrably works centrally, raising unique high-reward yield on ALL-AMIDE from roughly 1100 under REINVENT to over 1400 KL-Regularized Reinforcement Learning for Generative Modelling is Designed to Mode Collapse. Our concern is that uncoordinated local shaping lets each client escape its own basin only to fall into the same globally easiest one, since nothing tells clients where the others are; FedAvg's documented failure on 7 of 9 molecular datasets under scaffold skew Federated Learning of Molecular Properties with Graph Neural Networks in a Heterogeneous Setting and the fragility of entropy bonuses noted in the MARA paper both point this way. But it might not happen, and if the scaffold histograms of the ablation's clients turn out near-disjoint — local niches preserved by averaging alone — coordination is unnecessary and we will report that. The decisive measurement is pairwise scaffold-histogram overlap across clients, which we run from the first experiment.

Decisive Checks and Experiments

The empirical program runs on three testbeds of increasing fidelity. The synthetic mixtures validate the federated-collapse theory where ground truth is known. The FedGen-MOSES partition measures the core claim: distribution metrics from the MOSES suite — validity, uniqueness, novelty, internal diversity, and Fréchet ChemNet Distance Molecular Sets (MOSES): A Benchmarking Platform for Molecular Generation Models — plus the number of distinct Murcko scaffolds, computed on the pooled outputs of all clients, which is the quantity federation is supposed to maximize. The goal-directed testbeds are the JNK3 and GSK3β targets used across the mode-collapse literature — where ERA reports a near-perfect mean JNK3 score of 0.987 but internal diversity of only 0.264 Energy Rank Alignment: Using Preference Optimization to Search Chemical Space at Scale, showing the score-diversity frontier our method must move — and GuacaMol's 20 tasks for head-to-head comparison with MolRL-MGPT's 18.052. We also simulate private heterogeneous assays by assigning each client its own MolOpt task subset, echoing MELLODDY's private heads.

Four checks decide the proposal. First, does FedAvg of generative policies under scaffold skew collapse toward a consensus mode, and by how much does FedAnchor's pooled internal diversity exceed both the naive FedAvg and pooled-local references? Second, does the histogram ablation beat local-MARA-only by a margin that justifies the coordination, measured both in pooled diversity and in the yield of unique high-reward molecules per oracle call? Third, does the exchanged histogram resist reconstruction — we run GRAIN-style inversion attacks GRAIN: Exact Graph Reconstruction from Gradients on everything a client transmits, and report what an honest attacker recovers, with differential-privacy accounting for the noise option. Fourth, how do all of the above scale from three to ten clients, since consensus pressure should grow with the number of collapsed basins being averaged. If the first two checks succeed and the third holds, the result is a federated generative pipeline in which ten competitors can jointly search $10^{60}$ molecules without any of them revealing what it has found — diversity through arithmetic that no one can inspect.