NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Anytime Differential Methylation Calling on Preemptible Compute

Genome-wide scans for differentially methylated regions (DMRs: stretches of DNA whose chemical methylation marks differ between, say, diseased and healthy tissue) are run as large batch jobs. The best statistical callers behave like contract algorithms. A contract algorithm must be told its time budget in advance and produces nothing if it is stopped early. A Bayesian model fitted by nested Laplace approximation either finishes and returns posteriors or returns nothing. A change-point segmentation either completes or leaves regions unsegmented. On cloud spot instances, cluster walltime limits, or under a clinical turnaround deadline, the job can be killed at a time nobody knows in advance. Contract-scheduling theory has a precise answer to "how do I turn an all-or-nothing procedure into one that always has some answer ready." It runs a sequence of contracts whose lengths grow geometrically. That costs at most a factor of 4 in time on one processor, and less when the interruption time can be predicted. This theory has never been tested on a real statistical workload.

This note proposes that test, and it is built around the one competitor that could make it pointless: simply analyzing the genome block by block at full fidelity and saving each finished block. Our claim is narrower and more falsifiable than "make DMR callers anytime." DMR calling is a multi-problem contract task: the problems are genomic blocks, and the effort per block is statistical fidelity. Whether a geometric round-robin schedule over fidelity levels beats block-by-block saving is decided by the shape of the measured quality-versus-effort curve of the caller. A schedule that places contract lengths at the jumps of that curve, and stays oblivious to the data, should beat both strategies while keeping the false discovery rate valid at every possible interruption time.

Core Claim

Treat the genome as $n$ blocks run on $m$ cores. For block $b$, let $q_b(e)$ be the quality of its DMR calls after a completed contract of effort $e$. Quality means recall of reference DMRs at a fixed nominal false discovery rate. Effort is the knob a caller exposes: read-depth fraction, the fineness of the approximate-Bayes integration, or the number of simulated null draws. A schedule $S$ assigns contracts to cores. If the job is killed at time $T$, each block reports its best completed contract $e_b^S(T)$. When interruptions come from a distribution $\mu$, we score schedules by

$$U(S)=\mathbb{E}_{T\sim\mu}\Big[\tfrac{1}{n}\textstyle\sum_{b=1}^{n} q_b\big(e_b^S(T)\big)\Big],$$

the expected genome-wide quality at the moment of interruption. Block-by-block saving is the schedule that gives each block one contract at full effort, in sequence. It wins when $q_b$ is a late step, meaning low-effort fits are useless. Geometric round-robin wins when $q_b$ is concave, meaning cheap fits already recover most DMRs. Our hypothesis is that real DMR callers have staircase profiles: flat stretches broken by jumps, for example when Monte Carlo p-values first become fine enough to pass a Benjamini–Hochberg threshold. A schedule that puts contract lengths at those jumps converts the profile into something like the "multiple advice" setting, where a few candidate times are known. That setting has better guarantees than blind doubling.

Relation to Prior Work

The theory supplies the method. Real-Time Problem-Solving with Contract Algorithms defines contract versus interruptible algorithms and shows that doubling contract lengths costs at most a factor of 4 in time. That paper also flags monotone, smooth quality profiles as an assumption. The 4 bound is a statement about time, so staircase profiles do not void it. They do make it a poor proxy for the quality actually delivered at interruption, and that is the gap we target.

Optimal Scheduling of Contract Algorithms for Anytime Problems gives the optimal cyclic geometric schedule for $n$ problems on $m$ processors. Interruptible algorithms for multiproblem solving shows that when every problem must be answered at interruption, the right yardstick is "deficiency." Under that yardstick, exponential round-robin achieves at most 3.74 when $n>m$. It also lists partial queries over subsets of problems as open. Our genome-block setting is exactly that regime, but with heterogeneous, measured profiles instead of identical abstract ones, which those papers assume.

Contract Scheduling with Predictions and Contract Scheduling with Distributional and Multiple Advice show how a predicted or distributional interruption time lowers the ratio below 4 while staying 4-robust. The limit is $4\ln 2\approx 2.77$ with perfect distributional knowledge, and $2^{2-1/k}$ with $k$ expert hints. We reuse their schedules as baselines and as the advice channel for preemption distributions. Our addition is a second source of advice that comes from the workload rather than the environment: the jump locations of $q_b$. Those papers evaluate only synthetic distributions over abstract contracts.

The genomics papers supply the workloads and constrain the design. ABBA is a hierarchical latent Gaussian model fitted with INLA, a deterministic approximation to Bayesian inference. It borrows strength across replicates and neighboring CpG sites, and it already has to chunk the genome to run at all. MethCP runs circular binary segmentation on per-cytosine statistics and then aggregates segments into region-level tests. FFW tests Haar-wavelet coefficients against simulated null Bayes-factor distributions. That gives a natural effort knob in the number of null draws, and its dyadic scales echo doubling.

All three are batch tools. None reports what fraction of its output survives an early stop. The ABBA paper's finding that window-and-smooth heuristics are parameter-sensitive is a negative result we must respect: our low-effort rungs must be lower-fidelity versions of the same model, not substitute heuristics.

Research Program

We will build three things. The first is a scheduling layer that wraps ABBA, MethCP and FFW as black boxes. Each call is a contract on one genomic block at one effort level, and blocks overlap slightly so that DMRs at block boundaries are not split. The second is a profile-measurement study: for each caller, dataset and effort knob, we trace $q_b(e)$ on held-out blocks. The third is a profile-aware schedule. It picks a small set of contract lengths per block class, chosen at the measured jumps. It is combined with the distributional-advice schedule of Angelopoulos et al., so that robustness against an adversarial interruption time is preserved.

The statistical constraint that shapes all of this is error control at interruption. Every schedule we propose is data-oblivious: which block receives which effort never depends on the methylation data. Because the interruption time is also independent of the data, the merged collection of valid per-block p-values stays valid, and Benjamini–Hochberg applied at any $T$ keeps its guarantee. Adaptive "refine where the hits are" schedules lose this property. We study them as a baseline and measure their inflation rather than assuming it.

Baselines

The naive reference point is the unmodified pipeline run once over the whole genome. Under interruption its utility is zero until completion, so its $U$ is just the probability that the job finishes before $T$ times full quality.

The strongest practical competitor is block-by-block saving. Each block gets one full-effort contract, results are written to disk as blocks finish, and blocks are spread across the $m$ cores by longest-first list scheduling. This is what a careful bioinformatician would do with Slurm or Nextflow, and it is the real threat. If profiles are late steps, it is close to optimal.

The strongest theoretical competitor is the cyclic exponential round-robin of Optimal Scheduling of Contract Algorithms for Anytime Problems, using the effort knob as contract length. Its distribution-advised variant is the SELn-style schedule from Contract Scheduling with Distributional and Multiple Advice, whose reported empirical consistency on synthetic distributions is 2.51 against a theoretical limit of 2.77. On synthetic point predictions with 10% error, Contract Scheduling with Predictions reports an average acceleration ratio of 2.23 against 4.0 for plain doubling. These are time ratios on abstract contracts. For quality at interruption on any DMR workload, we found no reported result on Lacuna, so our own runs of these schedules form the bar.

We add one ablation. It uses the same advice and the same contract budget, but places contract lengths on a plain geometric grid instead of at measured profile jumps. This isolates whether profile awareness is the ingredient that matters. A final baseline is adaptive screen-then-refine, which runs cheap fits everywhere and then full fits only where hits appear.

All methods see the same data, the same core count, and the same interruption draws. The two parameters set by tuning are the block size and the geometric base. Each gets the same tuning grid, chosen on held-out chromosomes. "Beating" block-by-block saving means a higher $U$ under each tested $\mu$, with empirical FDR within the nominal level. It also means no worse than a factor of about 4 in worst-case time to match the full-effort reference.

Why not just…?

Why not just checkpoint block by block? Because it is itself a contract schedule with constant contract length, and its weakness is specific. At interruption it delivers full answers for some blocks and none for others. A genome-wide question — every locus of a panel answered, every chromosome covered — then has unbounded deficiency. That is exactly the failure mode analyzed in Interruptible algorithms for multiproblem solving. The threat is real, though. If measured profiles show that low-effort fits recover almost nothing, block-by-block saving wins, and we will report that as the finding.

Why not just run a fast screen such as FFW and stop? FFW is very fast: it screened 1,213 regions in about a minute against more than six hours for WFMM (FFW). But that paper also notes that the slower functional mixed model retains power for small-effect regions, so a one-shot screen fixes quality at its lowest rung. Our schedules include the screen as rung zero and ask whether continuing to refine pays off before the expected interruption.

Why not just refine adaptively where the screen finds hits? This is likely to look best on raw recall, because effort goes where DMRs are. However, it selects regions using the same data it then tests, which can inflate the false discovery rate. We run it with and without a held-out split for selection. If the split version matches our oblivious schedules at valid FDR, it becomes the recommended method, and the profile-aware schedule reduces to a choice of rung lengths inside it.

Proposed Experiments

The data are those already characterized in the file. For simulation we use the 216-scenario WGBS design of ABBA, regenerated from its published description. In that design ABBA had the best partial AUC in 64% of scenarios, which makes it our full-effort reference caller. We also use MethCP's change-point simulations. The real data are the rat WKY versus LEW macrophage WGBS set, the Arabidopsis germination time course, and the chromosome 3 colorectal array data used by FFW. In every case the reference truth is the full-effort, uninterrupted call set, or the simulated truth where it exists.

Interruption times are drawn from uniform and truncated-normal $\mu$, matching the advice papers. We add an empirical preemption trace that we log on spot instances while running these jobs. Metrics are $U$, empirical FDR at every interruption time, and the empirical time ratio to reach full-effort quality.

The first decisive check is the profile study itself. If $q_b$ is roughly concave for at least one caller and effort knob, geometric round-robin should beat block-by-block saving there, and the margin should be predictable from curvature. If every profile is a late step, the anytime approach has no case for that caller.

The second decisive check is the ablation. Profile-aware placement must beat plain geometric placement under identical advice, or the workload-advice idea fails.

The third decisive check is FDR. Oblivious schedules must hold nominal FDR at all interruption times, and the inflation of adaptive refinement must be measured, not assumed.