Federated Molecular Screening: Predicting Toxicity Across Labs Without Sharing Compounds
A lab explores only one region of chemical space, the one it synthesises. It is therefore blind to families of structures it never produces, and its screening model extrapolates poorly as soon as it leaves that region. Federated learning lets several labs train one shared toxicity model without any of them showing its compounds. Measured on the public Tox21 NR-AhR dataset: +6.9 AUC points against the average of the labs trained alone.
The blind spot is chemical, not statistical
In screening, the model exists to decide which molecules to test first, since you cannot test them all. Its value therefore depends entirely on its ability to judge structures it has never seen.
Every lab, though, has a chemistry. It works particular families of scaffolds, particular molecular weight ranges, particular degrees of aromaticity, because of its therapeutic area, its synthetic know-how, or its portfolio. Its catalogue is therefore a narrow band of chemical space, and everything outside it is unknown not by accident but by construction.
The public Tox21 NR-AhR dataset illustrates this mechanism sharply. The assay targets the aryl hydrocarbon receptor, whose ligands are large aromatic structures. When the molecules are split across five labs along bands of molecular complexity, as we did, the toxic compounds concentrate in certain labs. The others have data, and almost no positive example of what they are looking for.
This is not a volume problem that more screening would solve. It is a diversity problem, and the missing diversity sits with one's peers.
What federating changes, measured
We took the public Tox21 NR-AhR dataset, split it across five labs with different chemistries, then compared four situations. Each reference is an exact optimum, computed by Newton's method: a standalone lab is compared against the best it can reach with its own catalogue.
| Situation | AUC | Gap to federated |
|---|---|---|
| Average of the five labs trained alone | 0.7322 | +6.9 pt for federated |
| The best of the five, alone | 0.8000 | +0.1 pt, which is a tie |
| All molecules pooled into one library | 0.8041 | −0.3 pt for federated |
| Federated model, no molecule moved | 0.8014 |
Three readings, and the last two deserve to be read as they are.
The collective gain is clear. +6.9 AUC points against a standard error of 2.01 points, and the sign is the same across all twenty-one runs of the protocol. An average lab gains a great deal by joining a collective.
Against the best lab, it is a tie. A 0.1 point gap against a standard error of 2.01: the federated model is ahead on six seeds out of seven, and that does not constitute a lead. The best-resourced lab in this dataset does not improve its model by joining the collective; it loses nothing either, and that is what the measurement says.
Here, not centralising costs 0.3 points. This is the only one of the three datasets on our bench where that cost is visible, and its sign is the same on all seven seeds. We publish it because it is the measurement, and because a comparison showing only the favourable cases would be worth nothing. The order of magnitude remains one sixth of the standard error.
The hardest of the three datasets, and what it teaches
Of our three public datasets, Tox21 is the one that resists most, and the cause is measurable rather than anecdotal. The conditioning of the optimisation problem there is 5803, against 41 on the industrial dataset and 462 on the wind dataset. Its smallest eigenvalue coincides exactly with the regularisation floor, which means one direction of the model is held by no data at all.
Two practical consequences, useful to anyone assessing a collective screening project.
First, training needs more cycles: a median of 180 against 80 on the industrial dataset. A screening collective is therefore a longer project to converge, and that is something to plan for.
Second, it is precisely on this dataset that the gap to the centralised model persists. When a direction of the model is supported by almost nothing, the way local learning is recombined stops being neutral. That is the method's limit on this class of problem, and it comes to 0.3 points.
We also measure a point that is not obvious: federated normalisation, meaning descriptor scaling computed at the scale of the collective from local means and counts, costs 0.00 points, verified bit for bit against centralised normalisation. Doing without it, and letting each lab normalise at home, costs 2.6 points on this dataset. That is the kind of implementation detail that decides the result.
What leaves the lab, and what does not
Each lab computes its descriptors locally, on its own structures, and trains the model on its own infrastructure. What then circulates, and nothing else, are the model parameters, inside an encrypted envelope only the recipient can open.
What never leaves: structures, SMILES, compound identifiers, assay results, counts tested per family. A competitor cannot infer from the shared model which series a lab is working on, because it receives no individual contribution. And if the threat model includes the coordinator, secure aggregation and the enclave are available as options. → the four reinforcements, and what each one costs.
A separate point is worth raising because it always comes up: ownership of the trained model is settled in the contract, not by the technology. → who owns the model.
Where this applies
- An early screening consortium. Several biotechnology companies, none of which holds the necessary chemical diversity alone, that want a prioritisation model better than what each can build.
- An academic lab and industrial partners. The academic side has the diversity, the industrial side the volume and the annotation quality. Both have reasons not to transfer their data.
- The sites of one pharmaceutical group. The easiest configuration to decide, and often the most blocked in practice by internal rules on data movement between legal entities and between countries.
- Regulatory toxicology and materials chemistry. The same mechanism applies wherever actors test different substances under the same protocol.
In every case the first step is to look at where your chemical band sits, and what is missing around it. → how a project works.
FAQ: federated molecular screening
Why does a single lab hit a ceiling in toxicity prediction?
Because a lab explores only one region of chemical space: the one it synthesises. It is structurally blind to families of structures it never produces, and a model trained on its own catalogue extrapolates poorly as soon as it leaves that region. This is not a shortage of volume, it is a shortage of diversity.
What does federating several labs gain?
On the public Tox21 NR-AhR dataset split across five labs, the federated model reaches 0.8014 AUC against 0.7322 for the average of the five trained alone, which is +6.9 points. Against the best of the five, at 0.8000, the 0.1 point gap is a tie given a standard error of 2.01 points, and must not be read as a lead.
Do chemical structures leave the lab?
No. Each lab computes its descriptors locally and trains the model on its own molecules, on its own premises. Only model parameters circulate, encrypted end to end. No structure, no compound identifier and no assay result is transmitted.
Must every lab use the same descriptors?
No. A participant that does not compute a descriptor declares it unobserved: its learning stays at zero on that dimension, and it benefits from what the others learned there. What is pooled is a dictionary of descriptors, not a compound library.
Does this replace a biological assay?
No, it prioritises. A screening model exists to decide which molecules to test first when you cannot test them all. It changes the order of the queue; it produces no assay result and substitutes for no regulatory validation.
Why publish an unfavourable figure on this dataset?
Because the two readings of a measurement are cited together: what the collective adds, and what federating costs relative to pooling. On Tox21 the second is 0.3 AUC points, one sixth of the standard error, with the same sign on all seven seeds. A comparison showing only the favourable datasets would let nobody decide anything.
Let us look at where your chemistry sits, and what is missing around it
An interactive demonstration is available on request, and we give you access to it.