TL;DR
Aptamers are short, programmable strands of DNA or RNA that can bind to small molecules with high specificity, making them promising tools for diagnostics and therapeutics. However, machine learning models that predict aptamer–molecule binding often look much better on paper than they perform in reality because they are trained and tested on leaky, fragmented datasets with synthetic "non-binding" examples. AptaBench fixes this by introducing a standardized, leakage-aware benchmark of 6,289 experimentally verified interactions, revealing that current models struggle to generalize to truly new molecules or aptamer families.
What Problem Does This Paper Address?
If you want to build a biosensor for a toxin, drug, or metabolite, you need a receptor that latches onto it. Aptamers—single-stranded DNA or RNA molecules that fold into 3D shapes—are attractive because they can be chemically synthesized rather than grown in animals like antibodies.
Traditionally, finding a good aptamer relies on SELEX, a slow, labor-intensive lab process. Machine learning could speed this up, but computational aptamer discovery for small molecules lags behind protein-binder design. The authors argue the bottleneck isn't just a lack of data—it's unreliable evaluation:
- Fragmented annotations: Existing databases use different sequence formats, ligand identifiers, and affinity units.
- Fake negatives: Many prior models create negative training examples by randomly pairing aptamers with molecules they haven't been tested against—treating "untested" as "does not bind."
- Data leakage: Standard random train/test splits allow similar chemical structures or aptamer families to appear in both sets, meaning models can memorize local patterns rather than learn generalizable binding rules.
Methods
To separate true generalization from memorization, AptaBench defines two tasks—binding classification (active vs. inactive) and affinity regression (predicting $\text{p}K_d$, the negative log of the dissociation constant)—under three fixed five-fold evaluation protocols:
- In-distribution: Stratified random splits where aptamers and molecules can recur across train and test sets (testing interpolation).
- Molecule-disjoint: Ligands are grouped by Bemis–Murcko scaffolds (their core chemical ring/linker backbones) so that test molecules have unseen scaffolds.
- Aptamer-disjoint: Aptamers are clustered by sequence similarity (threshold $\ge 0.8$), holding out entire sequence families from training.
Using these splits, the authors systematically screened 35 combinations of aptamer encoders (from simple one-hot and $k$-mer counts to pretrained nucleotide models like DNABERT2 and GENA-LM) and molecule encoders (Morgan fingerprints, RDKit physicochemical descriptors, SMILES language models like ChemBERTa and MolFormer, 3D-aware UniMol, and contrastive CLAMP). They compared LightGBM baselines against deep neural architectures (CNNs, Cross-Attention, and MultiTask models).
Datasets
AptaBench is a newly curated, open-source benchmark integrating eight sources: six existing repositories (RSAPred, AptamerBase, AptaGen, UTexas, RiboCentre, AptaDB), an experimental DNA specificity dataset, and 639 records manually extracted from primary literature.
After standardizing sequences (excluding entries $>200$ nucleotides), canonicalizing ligands via PubChem/RDKit, and harmonizing $\text{p}K_d$ values, AptaBench contains:
- 6,289 interaction records (6,052 unique aptamer–ligand pairs), preserving source provenance even for conflicting measurements.
- 1,610 unique DNA/RNA aptamers and 942 unique small-molecule ligands.
- 3,240 active and 3,049 inactive records, all experimentally grounded (using $\text{p}K_d < 4$ as an operational inactivity threshold where applicable).
- 2,087 quantitative $\text{p}K_d$ annotations (33.2% of the dataset).
Key Insights and Ideas
- Random splits flatter models: High performance on random splits reflects interpolation over familiar ligands and sequence motifs, not the ability to discover binders for novel targets.
- Experimental negatives matter: Training with curated, experimentally reported inactive pairs yields much stronger supervision than using randomly shuffled cross-pair negatives.
- Models rely on entity-level shortcuts: Ablating either the aptamer or molecule embedding in a top model (GENA + UniMol) still leaves ROC-AUC above 0.84. Models are picking up on general properties of "sticky" ligands or binder-like aptamers rather than purely pair-specific compatibility.
- Deep learning doesn't automatically beat tabular baselines: On this data scale, LightGBM remains highly competitive with—and often slightly outperforms—neural architectures like CNNs and Cross-Attention, though tuned CNNs can match them under aptamer-disjoint splits.
- The same leakage problem plagues aptamer–protein prediction: Re-evaluating a published aptamer–protein predictor (APIPred) under cluster-disjoint splits caused its F1 score to plummet from 0.960 to 0.342–0.381.
Key Results
- Generalization gap: Across all models, the best classification ROC-AUC drops from 0.952 (in-distribution) to 0.886 (molecule-disjoint) and 0.867 (aptamer-disjoint). Affinity regression suffers even more, with $R^2$ falling from 0.668 to 0.298 and 0.323 respectively.
- Encoder rankings shift under distribution shift: Under molecule-disjoint evaluation, simple OneHot + Morgan fingerprints perform best (ROC-AUC 0.886). Under aptamer-disjoint evaluation, Kmer4 + ChemBERTa leads (ROC-AUC 0.867).
- Curated vs. shuffled negatives: Replacing curated negatives with shuffled cross-pairings drops ROC-AUC from 0.940 to 0.725 and PR-AUC from 0.946 to 0.753 (a +0.215 and +0.193 advantage for curated negatives).
Limitations and Future Work
The authors note that AptaBench is still constrained by available experimental data: chemical coverage is sparse, quantitative affinities are missing for two-thirds of the pairs, and $K_d$ values carry inter-study noise from differing assay conditions (buffer, temperature, etc.). Furthermore, while scaffold and sequence-cluster splits block major leakage, they cannot eliminate all residual 3D shape or pharmacophore similarity. Future versions should expand chemical diversity, include assay metadata, and incorporate structure-aware diagnostics.
Summary updated