Refnd: Preventing Data Leakage in Relational Datasets
Anthony Lavertu, Jacob Cote, Jacques Corbeil, Sophie Gobeil, Pascal Germain
Abstract
Machine learning models trained on biochemical data are routinely evaluated using splits that fail to account for relational structure, causing information leakage and over-optimistic performance estimates. Existing splitting methods lack theoretical grounding and scale at best quadratically. We introduce the Relational Generative Process (RGP), a mathematical formalization explaining why relational structure arises in biochemical datasets, and Refnd, a splitting algorithm that leverages a proximity graph computed in loglinear time using Hierarchical Navigable Small World (HNSW). We validate on an antimicrobial peptide dataset, showing that Refnd splits yield lower but more realistic evaluation performance than traditional splits. Refnd is applicable to any dataset arising from an RGP such as protein sequences and structures, small molecules, and nucleotide sequences, and is openly available as a Rust accelerated Python package: pip install refnd.
Create a lesson
Related papers
Inferring Relative Consequences of Mechanical Ventilation from Observational Data Using Game-Based Comparisons
Shared title terminology · David J. Albers, Tell D. Bennett, Jana de Wiljes et al.
PDO Drug Screening Data for Evaluating and Training AI Drug Response Prediction Models
Shared title terminology · Y. Zhu, K. Marlor, V. Lavelle et al.
Data-Driven Discovery of a Hyperelastic Strain-Energy Function for Veins Using Constitutive Artificial Neural Networks
Shared title terminology · Marisa Bazzi, Divya Adil, Gavin Mays et al.
Cohort Effects, Not Treatment Response, Dominate Public Immunotherapy Cohorts: Evidence from Microbiome and Tumor Genomic Data
Shared title terminology · Amey Garg
A Multimodal Machine Learning Framework Integrating Genomic, Epidemiological, Environmental, and Clinical Imaging Data for Accelerated Measles Detection and Transmission Inference
Shared title terminology · Jiada Li
Disease-level drug approval forecasting from trial-agnostic public data
Shared title terminology · Samir Townsley, Pagkratios Tagkopoulos, Ilias Tagkopoulos