Abstract
Genome-Wide Association Studies (GWAS) aim to map the genetic architecture of complex human traits, yet the computational burden of accounting for genetic correlations—known as Linkage Disequilibrium (LD)—has historically limited the complexity of predictive models. Traditional methods often rely on simplified summary statistics, which sacrifice statistical efficiency and prevent the use of high-capacity neural networks. We present DeepWAS, a framework that leverages accelerated linear algebra and iterative solvers to optimize the full likelihood of genetic data. By reformulating the likelihood function to ensure numerical stability and utilizing GPU-accelerated iterative methods, DeepWAS enables the training of Transformer-CNN architectures on massive genomic datasets. Our results on the UK Biobank demonstrate that DeepWAS significantly outperforms existing linear methods, providing a scalable path for deep learning in human genetics.
Introduction
Understanding how genetic variants influence complex phenotypes like height, body mass index (BMI), or disease risk is a central goal of modern genomics. Most human traits are polygenic, meaning they are influenced by thousands of variants, many of which reside in non-coding regions of the genome. To improve predictive power, researchers use functional genomic annotations—such as DNA accessibility or protein-binding sites—to build functionally informed priors for variant effects.
However, a significant computational bottleneck exists: Linkage Disequilibrium (LD). Because genetic variants are inherited in blocks, they are highly correlated with their neighbors. To calculate the marginal likelihood of a trait given these variants, researchers must account for an $M \times M$ LD matrix (where $M$ represents millions of variants). Standard matrix inversion scales cubically ($O(M^3)$), making it computationally impossible to train flexible, deep learning models on the full likelihood of the data. Consequently, the field has largely relied on simplified summary statistics, such as LD Score Regression (LDSR), which are computationally cheaper but statistically less efficient.
Methods: Overcoming the LD Bottleneck
DeepWAS (Deep genome Wide Association Studies) introduces a suite of mathematical and computational innovations to make deep learning for GWAS feasible.
1. Mini-batching via Banded Approximation
Genetic correlation typically decays over physical distance. DeepWAS exploits this by partitioning the genome into large windows (e.g., 1 million base pairs) and assuming independence between these windows. This allows the genome to be processed in mini-batches, a prerequisite for modern deep learning workflows.
2. Reformulating the Likelihood
Even within a single window, the LD matrix is often singular or poorly conditioned. DeepWAS employs the Woodbury matrix identity and the matrix determinant lemma to rewrite the likelihood function. This transformation shifts the problem from inverting a massive, unstable matrix to inverting a smaller, strictly positive-definite, and well-conditioned matrix. This reformulation is critical for the stability of iterative solvers.
3. Accelerated Iterative Linear Algebra
Rather than using exact but expensive methods like Cholesky decomposition, DeepWAS utilizes iterative algorithms—specifically Stochastic Lanczos Quadrature (SLQ) and Conjugate Gradients (CG). Implemented via the CoLA PyTorch library, these methods reduce complexity from $O(M^3)$ to $O(M^2 K)$, where $K$ is a small number of iterations. These operations are highly parallelizable and achieve significant speedups on NVIDIA A100 GPUs.
4. Flexible Architectures
With the computational bottleneck removed, the authors implemented a Transformer-CNN hybrid model. This architecture, inspired by Enformer, processes functional annotations across wide genomic windows to predict the effect size of individual variants, capturing complex dependencies that linear models miss.
Experimental Setup
The model was trained using data from the UK Biobank (UKBB), involving over 300,000 individuals of European ancestry. The researchers focused on three primary traits: Height, BMI, and Asthma. To inform the model, they utilized a curated set of 165 functional features, including:
- ENCODE/FANTOM: DNA accessibility and enhancer annotations.
- Comparative Genomics: Conservation scores (PhyloP, phastCons) indicating evolutionary importance.
- Protein Modeling: ESM2 predictions for the effects of coding mutations.
Key Insights and Results
The Necessity of Full Likelihood
A pivotal finding of this research is that statistical efficiency dictates model scalability. When using traditional summary statistics (LDSR), increasing model complexity actually led to worse performance, likely due to the loss of information inherent in the summary statistic approximation. In contrast, when DeepWAS optimized the full likelihood, larger and more flexible models consistently outperformed simpler ones.
Performance on Real-World Phenotypes
On held-out chromosomes, the DeepWAS Transformer achieved substantial increases in likelihood per person compared to a null model:
- Height: 11.70% increase
- BMI: 3.02% increase
- Asthma: 0.694% increase
These results demonstrate that the model successfully captures meaningful biological signals from functional annotations that linear methods overlook. Furthermore, ablation studies confirmed that performance dropped significantly when the LD window size was reduced or conservation features were removed, highlighting the importance of high-dimensional genomic context.
Computational Efficiency
By moving from CPU-based exact solvers to GPU-accelerated iterative solvers, DeepWAS computed gradients an order of magnitude faster than traditional approaches. This efficiency makes it possible to iterate on deep learning architectures in a timeframe comparable to traditional genetic modeling.
Discussion and Future Work
DeepWAS represents a significant step toward integrating deep learning with statistical genetics. However, several avenues for improvement remain. The current iteration assumes a linear relationship with a normal prior for effect sizes; future work could incorporate non-linearities or multi-component priors. Additionally, the current study was limited to a European population. Expanding DeepWAS to diverse ancestries is essential for global health equity and for capturing a broader range of genetic variation.
Finally, the authors suggest that the framework could be extended to multi-trait learning or integrated with large-scale genomic foundation models (nucleotide embeddings) to further refine the prediction of variant effects. By bridging the gap between fast linear algebra and flexible neural networks, DeepWAS provides a robust foundation for the next generation of genomic discovery.
Summary updated