Clever Hans in Chemistry: Chemist Style Signals Confound Activity Prediction on Public Benchmarks
Andrew D. Blevins, Ian K. Quigley
TL;DR
This work demonstrates a Clever Hans–style shortcut in public medicinal chemistry benchmarks: models can predict bioactivity largely by inferring chemist goals from structure, not by learning true structure–activity relationships. By linking ChEMBL assays to 1,815 authors, the authors show that a simple fingerprint-based classifier can identify the responsible chemist from structure with notable accuracy, and that an activity model using only author-probabilities and protein identity achieves performance close to structure-based baselines. The results reveal that provenance signals and lab-specific styles can confound benchmark interpretation, and they advocate author-aware splits and provenance-aware baselines to decouple chemist intent from biology. These findings underscore the need for better dataset practices and evaluation design to ensure that reported activity predictions reflect genuine chemistry rather than data provenance shortcuts.
Abstract
Can machine learning models identify which chemist made a molecule from structure alone? If so, models trained on literature data may exploit chemist intent rather than learning causal structure-activity relationships. We test this by linking CHEMBL assays to publication authors and training a 1,815-class classifier to predict authors from molecular fingerprints, achieving 60% top-5 accuracy under scaffold-based splitting. We then train an activity model that receives only a protein identifier and an author-probability vector derived from structure, with no direct access to molecular descriptors. This author-only model achieves predictive power comparable to a simple baseline that has access to structure. This reveals a "Clever Hans" failure mode: models can predict bioactivity largely by inferring chemist goals and favorite targets without requiring a lab-independent understanding of chemistry. We analyze the sources of this leakage, propose author-disjoint splits, and recommend dataset practices to decouple chemist intent from biological outcomes.
