Template Leakage

Template leakage happens when evaluation examples are indirectly seen through homologous structures, bound complexes, close ligands, or template databases used during model construction.

For a test complex , leakage risk increases when training or template data contains:

is a protein similarity threshold and is a ligand similarity threshold. The exact thresholds depend on the benchmark policy.

Why It Matters

Structure-based models can look strong when the test target, binding mode, or ligand chemotype is already represented in training data or template databases. This is especially risky for docking, pose prediction, protein structure prediction, and protein-ligand interaction models.

Leakage Sources

SourceWhat LeaksTypical Symptom
protein templatesfold, pocket geometry, side-chain arrangementstrong pose results on homologous targets
bound complexesbinding mode and pocket-ligand geometrynear-native poses without real generalization
ligand analogsscaffold, substructure, interaction patterninflated enrichment or affinity prediction
benchmark curationduplicate complexes or same assay sourcerandom split much stronger than family/scaffold split
preprocessing databasestemplates used during structure prediction, MSA, or pocket definitiondeployment cannot reproduce the same context
generated decoysnegatives easier than real inactive moleculeshigh AUROC but poor prospective screening

Split Contract

For a structure-based benchmark, state which axes are held out:

The claim depends on the held-out axes:

Held-Out AxisSupported Claim
ligand scaffoldnew chemotypes for known or related targets
protein familynew target families for known or related chemistry
protein-ligand pairnew combinations, not necessarily new entities
assay/sourcerobustness across measurement protocols
timefuture-like deployment from past data

If only one axis is held out, do not claim generalization on all axes.

Template Audit

Before trusting a benchmark claim, ask whether any stage used deployment-unavailable templates:

  • protein structure prediction;
  • pocket cropping or binding-site definition;
  • receptor alignment or side-chain preparation;
  • ligand pose initialization;
  • database search, MSA, or similarity retrieval;
  • post hoc filtering based on known complex geometry.

Checks

  • Are train/test proteins separated by family or sequence identity?
  • Are ligands separated by scaffold or similarity?
  • Is the combined protein-ligand split strict enough for the benchmark claim?
  • Was any bound ligand, close analog, or protein-ligand complex used as a template?
  • Are template databases and cutoffs documented?
  • Are pose quality, affinity, and enrichment claims evaluated under the same leakage policy?
  • Are sequence, structure, ligand, and assay leakage checked together rather than one at a time?
  • Does the preprocessing pipeline use information available at deployment?