Nk ⚡data engineering · analytics · ml
Preprint · Research Square · 2026

Apparent sequence-model contribution depends strongly on negative-set construction

Across 94 ENCODE eCLIP datasets, how much a sequence model appears to add beyond nucleotide composition shifts by a factor of nearly five depending solely on how the negative examples are constructed, with the model, source peaks, and fold design held fixed.


Key numbers

4.84×span in apparent 4-mer contribution across three negative-set protocols
94ENCODE eCLIP datasets, held constant across all protocol arms
1156/1156numeric assertions verified against committed evidence (golden.yaml)
3model classes tested: 4-mer, 7K-param CNN, and fine-tuned SpliceBERT

The finding

Primary result

With the model class, source peaks, chromosome-blocked fold design, and estimator held fixed, the estimated incremental contribution of a 4-mer model beyond composition spans 4.84-fold (95% CI 3.98 to 5.81) across three negative-set protocols. The apparent AUROC moves in the opposite direction: stricter composition matching lowers it in 94 of 94 datasets while the estimated contribution rises.

The movement survives five estimands including unbounded deviance, holds for a 7089-parameter CNN and a fine-tuned SpliceBERT, and replicates directionally on 135 held-out datasets from Horlacher et al. 2023 covering 108 proteins.

Practical implication: report a composition-only AUROC under the same negative-set protocol as the sequence-model AUROC. Incremental contributions computed under different protocols are not comparable.

Three negative-set protocols

Across all three arms the positives, model architecture, source peaks, and fold design stay fixed. Protocols A and B vary the composition-matching constraint on randomly sampled windows. Protocol C changes the candidate pool entirely, drawing from other proteins' binding sites.

Protocol ADinucleotide-matched negatives

Negatives are matched to positives on dinucleotide frequencies. This is the strictest composition constraint: it achieves a lower median GC gap than GC-matching and cuts dinucleotide mismatch 2.27-fold. Composition baseline: 0.627. Most headroom for a sequence model to contribute.

+0.0663 incremental AUROC
Protocol BGC-matched negatives

Negatives are matched on overall GC content only. GC is a single summary statistic, so dinucleotide patterns can remain mismatched, making this a looser constraint than Protocol A. Composition baseline rises to 0.783 and measured incremental contribution falls accordingly.

+0.0265 incremental AUROC
Protocol CBias-aware negatives

Negatives are drawn from other proteins' binding sites rather than randomly sampled windows. Only 20% of pairs end up composition-matched, and not by design. The high composition baseline (0.825) leaves little headroom for a model to add anything.

+0.0122 incremental AUROC

Reproducibility

Every number in the paper is committed alongside the code that produces it. A standalone verifier checks 1156 numeric assertions against a golden-value file and fails loudly on any disagreement. Works offline with no cloud credentials or GPU.

# clone, install, verify git clone https://github.com/NirmalKumar31/rbp-protocol-calibration.git cd rbp-protocol-calibration pip install -e . -c constraints.txt PYTHONPATH=src python scripts/verify.py --local results/tables # 1156/1156 PASSED

Infrastructure

CPU-heavy preprocessing and fold scoring ran on GCP Batch with results written to GCS. GPU fine-tuning used Modal. Final analysis and figure generation ran locally against the downloaded tables.

PythonGCP BatchGoogle Cloud StorageModalPyTorchscikit-learnZenodopytest