1 of 28

Data splitting against information leakage

with DataSAIL

Roman Joeres, Drug Bioinformatics, HIPS/HZI

HelmholtzAI Conference, Karlsruhe, 03.06.2025

1

2 of 28

Information leakage in biomedical research

2

2

3 of 28

Information leakage in biomedical research

Bernett, Blumenthal, Grimm, Haselbeck, Joeres, Kalinina, List. Nature Methods (2024)

  1. Study bias: Are classes over-/understudied compared to inference time?
  2. Label distribution: Are the labels in test differently distributed to inference?
  3. Data shift: Are the samples used for developing representative of the samples at inference time?
  4. Inter-sample similarities: Are there (possibly hidden) similarities/dependencies in the development data that are not given for the inference data?
  5. Unavailable features: Do you use features that do not exist for the inference data?
  6. Features as illegitimate surrogates: Does feature engineering affect performance at test and inference time?
  7. Pre-training: Does pre-training data leak information about test but not inference data?

2

3

4 of 28

Drug-target interaction prediction models

  • Yes/No, or
  • Type of binding, or
  • Strength of binding

Dataset

Model

Prediction

3

4

5 of 28

Common evaluation of drug-target interaction prediction models

random

cold-protein

cold-ligand

Random splits dominate but cold-splits are important

to test out-of-distribution performance

4

train

validation

test

5

6 of 28

Biochemical similarities enable different levels of coldness

similarity-based cold-protein

similarity-based cold-ligand

Biological molecules

are differently different.

Data splits have to account for that.

Myoglobin

Hemoglobin

Trypsin

5

6

7 of 28

What does a data splitter do?

Mathematically speaking:��Given dataset and sizes ��Find a partition of with

Solution:

There are many variants for :

  • Random
  • Cluster-based, e.g.:
    • Butina clustering (Butina, 1999)
    • Scaffolds
  • Similarity-based, e.g.:
    • Molecular fingerprints
    • Molecular weights
  • Optimization problems, e.g.:
    • LoHi (Steshin, 2023)
    • GraphPart (Teufel et al., 2023)
    • DataSAIL (Joeres et al. 2025)

Partitioning 1

Partitioning 2

Dataset

6

7

8 of 28

Existing algorithms fall short

Existing algorithms can have one or several shortcomings towards biological data:

  • No two-dimensional data, e.g., interaction data

  • No additional stratification, e.g., male vs. female samples

  • No data preservation, e.g., samples are removed

  • Only one types of data supported, e.g., specialization on proteins

one-dimensional data

two-dimensional data

custom data

7

8

9 of 28

Data splitting as a constraint optimization problem with DataSAIL

Objective:

are in

the same split

Minimize the inter-split similarities

8

similarity metric between data points

9

10 of 28

Data splitting as a constraint optimization problem with DataSAIL

Objective:

weights of a

data point

Minimize the inter-split similarities

8

10

11 of 28

Data splitting as a constraint optimization problem with DataSAIL

Objective:

subject to:

Minimize the inter-split similarities

Respect the requested split sizes

relative error for split sizes

8

11

12 of 28

Data splitting as a constraint optimization problem with DataSAIL

Objective:

subject to:

Minimize the inter-split similarities

Respect the requested split sizes

subset of D belonging to class c

relative error for class ratios

Keep the ratios between class

8

12

13 of 28

Data splitting as a constraint optimization problem with DataSAIL

Objective:

subject to:

Minimize the inter-split similarities

Respect the requested split sizes

This COP is NP-hard! The proof is in manuscript.

(Polynomial-time reduction from the Minimum k-Section Problem)

Keep the ratios between class

8

13

14 of 28

Full-scale DataSAIL pipeline

9

read any type of input ata

cluster the data

“solve” optimization problem

map results

14

15 of 28

Different types of splits for different types of datasets

10

15

16 of 28

Different types of splits for different types of datasets

10

16

17 of 28

Different types of splits for different types of datasets

10

17

18 of 28

Different types of splits for different types of datasets

10

18

19 of 28

Evaluation of DataSAIL

one-dimensional data

two-dimensional data

LP-PDBind:

Experimentally measured binding affinities of protein-ligand pairs

Tox21:

Predict the toxicity

of molecules in

different pathways

Datasets

Models

11

Random

Forest

SVM

Gradient

Boosting

MLP

DeepDTA

D-MPNN

for 2D data

for 1D data

19

20 of 28

Results for one-dimensional splits on Tox21

with stratification (here: active and inactive molecules in the SR-ARE assay)

without stratification

12

20

21 of 28

Results for two-dimensional splits on LP-PDBBind

This also works on the PLINDER benchmark,

better than the PLINDER algorithm

13

21

22 of 28

Summary & Outlook

David Blumenthal

FAU

Olga Kalinina

HIPS/UdS

Alex Gress, Anne Tolkmitt, Ilya Senatorov

all other colleagues and friends in the KalininaLab

and Daniel Bojar (Gothenburg University)

  • More versatile than existing splitters

14

Acknowledgements

22

23 of 28

Summary & Outlook

David Blumenthal

FAU

Olga Kalinina

HIPS/UdS

Alex Gress, Anne Tolkmitt, Ilya Senatorov

all other colleagues and friends in the KalininaLab

and Daniel Bojar (Gothenburg University)

  • More versatile than existing splitters
  • Using ILP to tackle data splitting

Objective:

subject to:

14

Acknowledgements

23

24 of 28

Summary & Outlook

David Blumenthal

FAU

Olga Kalinina

HIPS/UdS

Alex Gress, Anne Tolkmitt, Ilya Senatorov

all other colleagues and friends in the KalininaLab

and Daniel Bojar (Gothenburg University)

  • More versatile than existing splitters
  • Using ILP to tackle data splitting
  • Empirically demonstrated lower leakage
    • Harder splits for ML models

14

Acknowledgements

24

25 of 28

Summary & Outlook

Acknowledgements

David Blumenthal

FAU

Olga Kalinina

HIPS/UdS

Alex Gress, Anne Tolkmitt, Ilya Senatorov

all other colleagues and friends in the KalininaLab

and Daniel Bojar (Gothenburg University)

  • More versatile than existing splitters
  • Using ILP to tackle data splitting
  • Empirically demonstrated lower leakage
    • Harder splits for ML models
  • Outlook:
    • Expand framework to more splits
    • Split multi-dimensional data based on interactions, not infer them

14

25

26 of 28

SI – Integer Linear Program

Minimize inter-split similarities

Respect the requested split sizes

Keep the ratios between class

All samples to exactly one split

Auxiliary bound for Eq. 1

Optimization variable

Auxiliary variable

15

26

27 of 28

SI – Runtime

16

27

28 of 28

SI – Limitations

  • DataSAIL’s theory allows for n-dimensional splits
    • Yet, the implementation limits to two-dimensional data
  • Allow for custom clustering
    • Currently agglomerative and spectral clustering hardcoded
  • Clustering runtime is not controlled by DataSAIL
    • Usage of third-party tools, e.g., MMseqs2, FoldSeek, MASH, …
    • Molecule clustering based on pairwise Tanimoto => very time-consuming for >200k molecules
      • Idea: Simplify task by subsampling dataset (to be proven useful)

17

28