CiMBA: Accelerating Genome Sequencing through On-Device Basecalling via Compute-in-Memory

William Andrew Simon, Irem Boybat, Riselda Kodra, Elena Ferro, Gagandeep Singh, Mohammed Alser, Shubham Jain, Hsinyu Tsai, Geoffrey W. Burr, Onur Mutlu, Abu Sebastian · DOI

TL;DR

CiMBA is a novel hardware/software co-design that brings real-time genome sequencing directly to edge devices using analog Compute-in-Memory (CiM). By pairing a compact 25mm² accelerator with a custom-optimized deep learning model (AL-Dorado), CiMBA eliminates massive data transfer bottlenecks, achieving 24× the throughput required for real-time operation at a fraction of the power of traditional embedded GPUs.

What Problem Does This Paper Address?

Modern handheld genome sequencers, like Oxford Nanopore Technology’s (ONT) MinION, have revolutionized field biology by allowing researchers to sequence DNA anywhere—from remote coal mines to outer space. However, these devices generate an overwhelming torrent of raw electrical signal data (up to 0.5 GB per minute).

To make sense of this data, it must undergo "basecalling"—the computationally heavy process of translating raw electrical "squiggles" into nucleotide sequences (A, C, G, T). Basecalling typically consumes over 40% of total genome analysis time. Because portable sequencers lack the onboard computational muscle to handle this in real-time, researchers must stream massive raw datasets to power-hungry workstations or cloud servers. This creates severe communication, storage, and privacy bottlenecks.

Pipeline of data generation and the memory reduction achieved by on-device basecalling.

Methods

The authors introduce CiMBA (Compute-in-Memory Basecalling Accelerator), an edge-optimized architecture designed to sit directly alongside the sequencing hardware.

1. Hardware Architecture

CiMBA utilizes Phase-Change Memory (PCM) crossbar arrays to perform analog Vector-Matrix Multiplications (VMMs) directly inside the memory structure. This eliminates the energy-expensive process of constantly moving neural network weights back and forth. The chip features:

  • 11 CiM Tiles: 512×512 crossbar arrays capable of executing over 262,000 Multiply-Accumulate (MAC) operations simultaneously per tile.
  • Digital Processing Units (DPUs): Custom blocks that handle non-linear activation functions (like Swish and Tanh) and batch normalization with 16-bit floating-point precision.
  • 2D Mesh Interconnect: A highly parallel routing network that connects tiles and DPUs, ensuring smooth data pipelining without standard, high-overhead handshake protocols.

2. Algorithmic Co-Design: AL-Dorado

Standard basecalling networks suffer severe accuracy drops when deployed on analog hardware due to device noise and conductance drift (where programmed memory values shift over time). To counter this, the authors designed AL-Dorado, a hardware-amenable family of Deep Neural Networks trained using noise-aware offline simulation.

3. LookAround Decoding

Traditional basecallers use global CRF-CTC decoding, which requires looking at an entire sequence before translating it—creating a massive "pipeline bubble." CiMBA introduces a LookAround (LA) Decoder that uses a localized sliding window (Lookbehind and Lookahead) to continuously stream decoded bases in real-time.

Fig. 3. CRF-CTC decoding (state length=1 for simplicity): DNN outputs rep- resent log-likelihoods of state-transitions (❶). Path likelihood is accumulated across timesteps (❷/❹), and gradient of the final value w.r.t. the inputs (❸) is iteratively evaluated to identify each timestep’s most likely transition (❺).

Datasets

The architecture and models were evaluated using:

  • Training & Validation: Human DNA datasets from the open-source Bonito repository, collected on ONT R9.4.1 flow cells (65,000 reads for training, 1,000 for validation).
  • Downstream Analysis: Nine publicly available microbial/bacterial datasets (including Acinetobacter, Haemophilus, and Klebsiella) to test real-world genome assembly performance.

Key Insights and Ideas

  • The Small-Kernel Vulnerability: The authors discovered that the first convolutional layer of the network was exceptionally sensitive to analog noise. Why? It uses a tiny 1×5 kernel. Because only 5 PCM cells contribute to each calculation, any single-cell noise is magnified.
  • Hybrid Digital-Analog Execution: Armed with this insight, the authors made a crucial design choice: they kept the first layer entirely in the digital domain. Because it only contains 80 weights, computing it digitally incurs virtually zero latency overhead but dramatically stabilizes the network against analog drift.
  • Data Movement is King: Even in an in-memory computing chip, data routing between tiles accounts for roughly 60% of the runtime. Pipelining tokens across a deterministic 2D mesh is vital to maintaining peak throughput.

Key Results

  • Performance: CiMBA achieves a throughput of 4.77 million bases per second, which is 24× faster than the speed required to process data from a live MinION sequencer in real-time.
  • Efficiency Gains: Compared to a state-of-the-art embedded GPU (NVIDIA Jetson Xavier AGX), CiMBA delivers 17× better power efficiency and 27× higher compute density (throughput per mm²).
  • Physical Footprint: The entire accelerator draws just 1.17W of power and fits within a tiny 25mm² area footprint.
  • Data Reduction: By basecalling on-device and discarding the raw "squiggle" data, CiMBA reduces device-to-workstation communication overhead by >40×.
  • Accuracy: AL-Dorado on CiMBA maintains a high basecalling accuracy of ~91%, proving that analog non-idealities can be successfully mitigated through smart co-design.
Size and efficiency comparison between the GPU-based MinION Mk1C and the proposed CiMBA processor.

Limitations and Future Work

While CiMBA marks a massive step forward for edge genomics, a few hurdles remain:

  • Decoder State Constraints: The LookAround decoder is currently limited to a state size of 1. Scaling this strategy to larger state sizes is necessary to close the remaining accuracy gap with top-tier server software.
  • Chemistry Updates: The evaluation relied on older ONT R9.4.1 chemistry. The authors note that validating the system on newer pore chemistries (like Duplex reads, which inherently push raw accuracy past 99%) is an important next step.
  • Long-Term Drift: Although mitigated by network design, PCM conductance drift still degrades accuracy over multiple days, meaning the chip requires periodic weight reloads to maintain peak performance.

Summary updated

BibTeX
@misc{simon2025cimba,
  author = {William Andrew Simon and Irem Boybat and Riselda Kodra and Elena Ferro and Gagandeep Singh and Mohammed Alser and Shubham Jain and Hsinyu Tsai and Geoffrey W. Burr and Onur Mutlu and Abu Sebastian},
  title = {{CiMBA: Accelerating Genome Sequencing through On-Device Basecalling via Compute-in-Memory}},
  year = {2025},
  eprint = {2504.07298},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.07298},
}
Figure