{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2607-19376","title":"Refnd: Preventing Data Leakage in Relational Datasets","arxiv_id":"2607.19376","date":"2026-06-30","proceeding":null,"authors":["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.","url_abs":"https://arxiv.org/abs/2607.19376","url_pdf":"https://arxiv.org/pdf/2607.19376","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2607.19376","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2607.19376"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/anthol42/refnd","reach":{"status":"ok","spdx":"Apache-2.0"}},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/JacobCote/refnd_experimental_code","reach":null},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/anthol42/QMAP","reach":null}],"summary":{"ran":5,"unverified":4},"by_repo_kind":{"found_in_text":{"samples":9,"ran":5,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":9,"samples":[{"code_sha256_prefix":"a3eb318b477460b3","entry":"clean_signature","repo":"anthol42/QMAP","repo_kind":"found_in_text","path":"QMAP/build_doc.py","file_url":"https://github.com/anthol42/QMAP/blob/HEAD/QMAP/build_doc.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a3eb318b477460b3"}},{"code_sha256_prefix":"600c0d9cc1fd5d21","entry":"extract_params_and_clean_docstring","repo":"anthol42/QMAP","repo_kind":"found_in_text","path":"QMAP/build_doc.py","file_url":"https://github.com/anthol42/QMAP/blob/HEAD/QMAP/build_doc.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"600c0d9cc1fd5d21"}},{"code_sha256_prefix":"d8c82ae85818b13b","entry":"extract_returns_and_clean_docstring","repo":"anthol42/QMAP","repo_kind":"found_in_text","path":"QMAP/build_doc.py","file_url":"https://github.com/anthol42/QMAP/blob/HEAD/QMAP/build_doc.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d8c82ae85818b13b"}},{"code_sha256_prefix":"d6d7394ba4353320","entry":"index","repo":"JacobCote/refnd_experimental_code","repo_kind":"found_in_text","path":"code.py","file_url":"https://github.com/JacobCote/refnd_experimental_code/blob/HEAD/code.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d6d7394ba4353320"}},{"code_sha256_prefix":"fb3ad267dcf31bbd","entry":"r2_score","repo":"anthol42/QMAP","repo_kind":"found_in_text","path":"QMAP/src/qmap/benchmark/dataset/metrics.py","file_url":"https://github.com/anthol42/QMAP/blob/HEAD/QMAP/src/qmap/benchmark/dataset/metrics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fb3ad267dcf31bbd"}},{"code_sha256_prefix":"418bb71db35e977b","entry":"filter_bacteria","repo":"anthol42/QMAP","repo_kind":"found_in_text","path":"QMAP/src/qmap/benchmark/dataset/filters.py","file_url":"https://github.com/anthol42/QMAP/blob/HEAD/QMAP/src/qmap/benchmark/dataset/filters.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"418bb71db35e977b"}},{"code_sha256_prefix":"34b27e0d3a584a33","entry":"filter_efficiency_below","repo":"anthol42/QMAP","repo_kind":"found_in_text","path":"QMAP/src/qmap/benchmark/dataset/filters.py","file_url":"https://github.com/anthol42/QMAP/blob/HEAD/QMAP/src/qmap/benchmark/dataset/filters.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"34b27e0d3a584a33"}},{"code_sha256_prefix":"24c0a2c2ea7f7697","entry":"filter_terminal_modification","repo":"anthol42/QMAP","repo_kind":"found_in_text","path":"QMAP/src/qmap/benchmark/dataset/filters.py","file_url":"https://github.com/anthol42/QMAP/blob/HEAD/QMAP/src/qmap/benchmark/dataset/filters.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"24c0a2c2ea7f7697"}},{"code_sha256_prefix":"b389563dc1ac25a0","entry":"load_embeddings","repo":"JacobCote/refnd_experimental_code","repo_kind":"found_in_text","path":"code.py","file_url":"https://github.com/JacobCote/refnd_experimental_code/blob/HEAD/code.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b389563dc1ac25a0"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}