Abstract
Developing a unified model of cellular systems is a foundational challenge in biology. While large language models (LLMs) have benefited from rapid parameter scaling, similar attempts in cellular modeling have been limited by the computational complexity of processing the full human transcriptome. We present AIDO.Cell, a family of dense Transformer models (3M to 650M parameters) pretrained on 50 million human cells. By leveraging FlashAttention-2 and a read-depth-aware pretraining objective, AIDO.Cell processes the entire 20,000-gene context without truncation. Our model achieves state-of-the-art results in zero-shot clustering, cell-type classification, and perturbation modeling, while providing new insights into the scaling behaviors of biological representations.
Introduction: The Scaling Frontier in Biology
In artificial intelligence, "scaling laws" suggest that increasing data and model parameters leads to emergent capabilities. In single-cell biology, however, the standard Transformer's quadratic attention mechanism has historically forced researchers to truncate inputs to only the most variable genes (typically 1,000–2,000). This truncation ignores the "dark matter" of the transcriptome—repressed or lowly expressed genes that are vital for understanding complex regulatory networks.
Overcoming the Context Bottleneck
Existing models often resort to context truncation or "approximate" attention mechanisms to manage computational costs. While efficient, these approximations often fail to capture the dense, non-linear dependencies found in gene expression data. AIDO.Cell addresses this by using a "pure" dense Transformer architecture capable of handling a context length of 19,264 genes—the full protein-coding human transcriptome.
AIDO.Cell: Architecture and Optimization
The AIDO.Cell framework utilizes a bidirectional Transformer encoder. To make the quadratic complexity of dense attention feasible at a 20,000-gene scale, the authors employed several systems-level optimizations:
- FlashAttention-2: Optimized memory usage and speed for long sequences.
- Mixed-Precision Training (BF16): Reduced memory footprint on H100 GPUs.
- Auto-Discretization: Instead of simple binning, continuous gene expression values are mapped to a weighted combination of learned token embeddings, preserving high dynamic range.
Read-Depth-Aware Pretraining on 50 Million Cells
AIDO.Cell was pretrained on a curated dataset of 50 million human cells across 100+ tissue types. A key innovation is the Read-Depth-Aware (RDA) pretraining objective. Unlike standard masked language modeling, RDA tasks the model with predicting high-quality (high read-depth) expression profiles from noisy, downsampled versions of the same cell. This forces the model to learn robust biological signals rather than technical artifacts.
Benchmarking and Results
The 100M parameter version of AIDO.Cell demonstrated superior performance across multiple tasks:
- Cell-Type Classification: On the Zheng68K dataset, AIDO.Cell achieved a Macro F1 score of 0.761, outperforming previous models like scFoundation (0.736) and scBERT (0.67).
- Zero-Shot Clustering: The model produced biologically distinct clusters without task-specific fine-tuning, highlighting the strength of its learned representations.
- Perturbation Modeling: Combined with GEARS, AIDO.Cell achieved a state-of-the-art Mean Squared Error (MSE) of 0.187 on unseen genetic perturbations, demonstrating its grasp of gene-gene regulatory logic.
Discussion: The Scaling Plateau
Interestingly, the authors observed that biological data does not follow the exact same power-law curves as natural language. While performance improved significantly up to 100M parameters, the gains began to diminish at 650M. This "scaling ceiling" may be due to inherent biological noise or the limitations of the Mean Squared Error (MSE) loss function in handling the high sparsity of single-cell data. Future work will focus on refining data quality and exploring alternative loss functions to push past this plateau.
Models and code are available at https://github.com/genbio-ai/AIDO.
Summary updated