NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A General Single-Cell Analysis Framework via Conditional Diffusion Generative Models

Wenzhuo Tang, Renming Liu, Hongzhi Wen, Xinnan Dai, Jiayuan Ding, Hang Li, Wenqi Fan, Yuying Xie, Jiliang Tang

Abstract

The fast-growing single-cell analysis community extends the horizon of quantitative analysis to numerous computational tasks. While the tasks hold vastly different targets from each other, existing works typically design specific model frameworks according to the downstream objectives. In this work, we propose a general single-cell analysis framework by unifying common computational tasks as posterior estimation problems. In light of conditional diffusion generative models, we introduce scDiff through the proposed framework and study different conditioning strategies. With data-specific conditions, scDiff achieves competitive performance against state-of-the-art in various benchmarking tasks. In addition, we illustrate the flexibility of scDiff by incorporating prior information through large language models and graph neural networks. Additional few-shot and zero-shot experiments prove the effectiveness of the prior conditioner on scDiff.

Introduction

The field of single-cell analysis is currently characterized by a fragmented landscape of specialized tools. Researchers typically develop bespoke architectures for distinct tasks: classification for cell type annotation, imputation for filling technical dropouts, and predictive modeling for cellular perturbations. This lack of a unified approach hinders the development of "foundation models" capable of cross-task generalization. Furthermore, existing models often struggle with "unseen" biological conditions, such as identifying rare cell types or predicting the effects of novel genetic edits.

Methodology: The scDiff Framework

To address these challenges, we introduce scDiff, a unified framework that reformulates diverse single-cell tasks as conditional posterior distribution estimation problems. Instead of task-specific architectures, scDiff asks: What is the probability of a cell’s gene expression given a specific condition?

Technical Innovations

  1. Predict-$x_0$ Diffusion: Traditional diffusion models predict added noise. However, due to the extreme sparsity of single-cell data (>95% zeros), predicting noise is often ineffective. scDiff is designed to predict the clean gene expression ($x_0$) directly.
  2. Versatile Conditioning: The model employs a cross-attention encoder-decoder architecture. It can integrate "internal" conditions (e.g., cell labels) or "external" prior knowledge.
  3. Knowledge Integration:
  4. LLM Conditioner: Uses BioLinkBERT to encode text descriptions of cell types. This enables the model to "understand" rare cell types by reading their biological definitions.
  5. GNN Conditioner: Incorporates gene-gene interaction networks via Graph Neural Networks to improve the prediction of genetic perturbations.
The scDiff framework architecture, utilizing a conditional diffusion model with cross-attention for diverse single-cell tasks.

Experimental Results

We validated scDiff across a comprehensive suite of benchmarks, including annotation (PBMC12K, HLCA, Brain, etc.), imputation (Jurkat, PBMC1K), and perturbation prediction (Salmonella, H.poly).

State-of-the-Art Performance

scDiff achieved top-tier performance in cell type annotation, frequently surpassing specialized discriminative tools like scANVI and CellTypist. This suggests that learning the underlying data distribution is more robust than simply learning decision boundaries.

Performance comparison of scDiff against state-of-the-art methods in cell type annotation across six datasets.

Robustness in Few-Shot and Zero-Shot Scenarios

A key strength of scDiff is its ability to leverage semantic information. By using an LLM to process cell type definitions, the model can perform effective "one-shot" learning, identifying rare cell types with high accuracy even with minimal training examples. In gene perturbation tasks, scDiff outperformed previous state-of-the-art methods like GEARS in predicting the effects of novel genetic edits.

Discussion and Future Work

Our results demonstrate that a single training objective—minimizing reconstruction error in a diffusion model—is sufficient to handle classification, generation, and imputation simultaneously.

While scDiff shows significant promise, its iterative nature makes it computationally more expensive than simpler VAE or MLP models. Future work will focus on improving computational efficiency, enhancing representation learning for low-dimensional visualization, and extending the framework to multi-omics data (e.g., integrating RNA-seq with chromatin accessibility).

Summary updated

BibTeX
@misc{tang2024general,
  author = {Wenzhuo Tang and Renming Liu and Hongzhi Wen and Xinnan Dai and Jiayuan Ding and Hang Li and Wenqi Fan and Yuying Xie and Jiliang Tang},
  title = {{A General Single-Cell Analysis Framework via Conditional Diffusion Generative Models}},
  year = {2024},
  url = {https://openreview.net/forum?id=IcbC9F9xJ7},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2024},
}
Figure