Abstract
Identifying accessible chromatin regions is a fundamental problem in epigenomics with ATAC-seq being a commonly used assay. Exponential rise in single cell ATAC-seq experiments has made it critical to accelerate processing of ATAC-seq data. ATAC-seq data can have a low signal-to-noise ratio for various reasons including low coverage or low cell count. To denoise and identify accessible chromatin regions from noisy ATAC-seq data, use of deep learning on 1D data – using large filter sizes, long tensor widths, and/or dilation - has recently been proposed. Here, we present ways to accelerate the end-to-end training performance of these deep learning based methods using CPUs. We evaluate our approach on the recently released AtacWorks toolkit. Compared to an Nvidia DGX-1 box with 8 V100 GPUs, we get up to 2.27× speedup using just 16 CPU sockets. To achieve this, we build an efficient 1D dilated convolution layer and demonstrate reduced precision (BFloat16) training.
Introduction
Identifying "accessible" regions of chromatin (the mixture of DNA and proteins in a cell) is vital for understanding gene regulation and diseases. ATAC-seq is the standard assay for this, but data from single-cell experiments is often "noisy" due to low coverage.
Recent deep learning tools like AtacWorks use Convolutional Neural Networks (CNNs) to denoise this data and identify peaks. However, these models rely on 1D convolutions with specific requirements—large filter sizes, long tensor widths, and high dilation—that are poorly optimized in standard CPU and GPU libraries. While GPUs are the traditional choice for deep learning, their limited onboard memory (VRAM) makes it difficult to process the very long genomic sequences necessary to capture long-range biological relationships.
Methods
The authors implemented three primary optimizations to make CPUs competitive for this workload:
- Custom 1D Dilated Convolution Layer: Instead of relying on standard libraries like oneDNN (which are often tuned for 2D image data), the team built a custom layer using Tensor Processing Primitives (TPP) from the LIBXSMM library. This uses Just-In-Time (JIT) code generation to create hardware-specific kernels that utilize "batch-reduce generalized matrix multiplication" (BRGEMM).
- Architecture-Aware Multi-threading: To prevent compute cores from sitting idle while waiting for data, the authors reserved specific CPU cores solely for data loading and MPI communication, ensuring the remaining cores could focus entirely on neural network computation.
- BFloat16 (BF16) Training: They demonstrated the first end-to-end training of AtacWorks using BF16 reduced precision. By leveraging AVX-512 BF16 instructions on Intel "Cooper Lake" CPUs, they effectively doubled the throughput compared to standard FP32 math without losing model accuracy.
Key Results
The custom LIBXSMM-based implementation showed dramatic performance gains over standard libraries. On a single CPU socket, the optimized implementation was 6.86× faster than the standard Intel oneDNN baseline.
When scaling to multi-socket configurations, the CPU-based approach outperformed high-end GPU clusters. Using 16 CPU sockets (Cooper Lake), the team achieved a 2.27× speedup over the 8-GPU NVIDIA DGX-1 box for BF16 training. Even using standard FP32, the 16-socket CPU setup was 1.83× faster than the GPU cluster. Importantly, moving from FP32 to BF16 precision maintained model accuracy (AUROC) while significantly increasing training speed.
Beyond raw speed, the CPU-based approach offers a significant advantage in memory capacity. The authors successfully trained models on sequences of 600,000 base pairs—a length that caused the 16GB/32GB V100 GPUs to crash due to out-of-memory (OOM) errors. This memory flexibility allows researchers to capture long-range biological relationships that are often truncated in GPU-based training.
Conclusion and Future Work
This work demonstrates that modern CPUs, when properly optimized for 1D dilated convolutions, are highly effective for deep learning in genomics. By addressing the "1D gap" in standard libraries and leveraging reduced precision, the researchers achieved superior performance and memory scalability compared to traditional GPU setups. Future work could involve applying these optimizations to other genomic tasks like variant calling or gene expression prediction, further expanding the utility of CPU-based deep learning in bioinformatics.
Summary updated