Efficient Chromosome Parallelization for Precision Medicine Genomic Workflows

Daniel Mas Montserrat, Ray Verma, Míriam Barrabés, Francisco M. de la Vega, Carlos D. Bustamante, Alexander G. Ioannidis

TL;DR

Genomic workflows often crash or stall due to massive, highly variable memory demands across different chromosomes. This paper introduces three complementary scheduling and prediction systems—including a dynamic knapsack-style scheduler and a lightweight symbolic regression model—that optimize memory allocation, eliminate out-of-memory errors, and cut execution time in half for real-world clinical pipelines.

What Problem Does This Paper Address?

Precision medicine increasingly relies on complex bioinformatics pipelines to calculate Polygenic Risk Scores (PRS) and perform Local Ancestry Inference (LAI) from whole-genome sequencing data. To handle datasets spanning hundreds of gigabytes, engineers typically split workloads by chromosome and parallelize them across compute cores.

However, human chromosomes vary drastically in size: Chromosome 1 is roughly four times larger than Chromosome 22 (as shown in Figure 1). Naively assigning one chromosome per thread leads to severe load imbalances, massive memory spikes, and frequent out-of-memory (OOM) crashes. Existing workflow managers rely on static resource allocation, which either wastes expensive cloud resources through over-provisioning or risks pipeline failures through under-provisioning.

Relationship between human chromosome number and its size.

Methods

The authors propose three distinct but complementary approaches to achieve RAM-efficient parallelization:

  1. Static Scheduler: Designed for environments with a fixed thread budget ($K$). It uses a simulation-based optimization framework driven by stochastic hill climbing to find the optimal order to process chromosomes.
  2. Dynamic Scheduler: Treats task batching as a 0-1 Knapsack problem. Instead of launching jobs greedily, it uses dynamic programming to maximize RAM utilization within the system's available capacity. It uses online polynomial regression to estimate memory usage on the fly and applies a conservative percentile bias to prevent OOMs.
  3. Symbolic Regression Predictor: To avoid the "cold start" problem of the dynamic scheduler (where memory needs are unknown at the beginning), the authors trained a heavy ensemble of tree-based machine learning models on software parameters and input file sizes. They then distilled this ensemble into a compact, single-line mathematical equation using symbolic regression (PySR). This equation acts as an accurate, zero-overhead "prior" for memory usage, calibrated with conformal prediction to ensure safety margins.

Datasets

  • 1000 Genomes Project: Used as the reference for chromosome sizes in the static scheduling simulation, and as the primary data source to generate various subsamples (varying numbers of variants and samples) for training, calibrating, and evaluating the Beagle genotype imputation RAM predictor.

Key Insights and Ideas

  • The "Zig-Zag" Strategy: The static scheduler naturally learns to alternate between large and small chromosomes (e.g., pairing Chromosome 1 with Chromosome 22). This simple reordering smooths out the peak memory footprint without sacrificing throughput.
Optimized chromosome processing order for different concurrency levels.
  • Distillation for Zero-Overhead Deployment: Instead of deploying a heavy machine learning model (like Random Forests or Neural Networks) into a production workflow manager—which introduces massive technical debt—the authors distilled the model into a simple algebraic formula. It can be implemented in a single line of code but retains 92% of the ensemble's predictive accuracy.
  • Priors Eliminate the Cold Start: Dynamic schedulers usually need a few sequential "warm-up" runs to learn resource requirements. Introducing symbolic regression predictions as priors allows full parallelization right from the start, nearly halving the total runtime (makespan).

Key Results

  • Static Scheduling: Reduced peak RAM usage by up to 40% compared to sequential chromosome ordering.
  • Dynamic Scheduling: Incorporating the polynomial regression bias term reduced overcommitments (OOM failures) by 38% while simultaneously decreasing the overall makespan by 0.5%.
  • Real-World Clinical Impact: When deployed in Galatea Bio’s StrataRisk™ production pipeline running Beagle for genotype imputation, the combined dynamic scheduler and symbolic regression priors achieved an almost 2-fold reduction in wall-clock makespan and achieved zero overcommitments (OOM crashes).

Limitations and Future Work

  • Scale Convergence: As individual chromosome file sizes grow to approach the total available system RAM, the scheduling problem naturally converges to a sequential setting, diminishing the benefits of parallel batching.
  • Future Directions: The authors suggest exploring more fine-grained parallelization strategies, such as dynamically splitting and processing subsequences within a single large chromosome to further smooth out resource demands.

Summary updated

BibTeX
@inproceedings{montserrat2026efficient,
  author = {Daniel Mas Montserrat and Ray Verma and Míriam Barrabés and Francisco M. de la Vega and Carlos D. Bustamante and Alexander G. Ioannidis},
  title = {{Efficient Chromosome Parallelization for Precision Medicine Genomic Workflows}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i47.41443},
}
Figure