Abstract
Single-cell RNA sequencing (scRNA-seq) has revolutionized our ability to analyze gene expression at the resolution of individual cells. A fundamental step in scRNA-seq analysis is unsupervised clustering, which identifies distinct cell types and provides the basis for downstream biological interpretation. In this paper, we introduce Cluster-aware Iterative Contrastive Learning (CICL), a novel framework that integrates representation learning and clustering into a unified, iterative process. By employing a cluster-aware contrastive loss, CICL overcomes the "sampling bias" inherent in traditional contrastive learning methods. Extensive evaluation across 25 real-world datasets demonstrates that CICL significantly outperforms state-of-the-art (SOTA) methods, improving Adjusted Rand Index (ARI) by up to 280% and Normalized Mutual Information (NMI) by up to 133% on average.
Introduction
Identifying cell types is the cornerstone of scRNA-seq analysis. However, the high dimensionality, extreme sparsity (due to "dropout" events), and inherent noise of scRNA-seq data make accurate clustering a persistent challenge. While deep learning and Contrastive Learning (CL) have shown promise in learning robust data representations, standard CL approaches often suffer from sampling bias when applied to biological clustering.
In traditional CL, a data point and its augmented version are treated as a "positive pair," while all other points in a batch are treated as "negatives." In the context of scRNA-seq, many of these "negatives" are actually cells of the same biological type. Forcing the model to push these similar cells apart in the feature space degrades the clustering structure. CICL addresses this by incorporating cluster-level information directly into the contrastive loss function, ensuring that cells belonging to the same predicted cluster are treated as positives rather than negatives.
The CICL Framework
CICL utilizes an iterative architecture consisting of four primary modules designed to refine cell representations and clustering assignments simultaneously.
1. Transformer Encoder
Unlike traditional autoencoders, CICL employs a Transformer-based encoder to extract feature vectors from both the original gene expression data and augmented versions (created via Gaussian noise). The Transformer architecture is particularly effective at capturing complex, non-linear dependencies between genes, which is vital for handling the sparse nature of scRNA-seq data.
2. Clustering Head
The clustering head performs K-means on the learned features to identify initial cluster centroids. It then applies a Student’s t-distribution to calculate the similarity between cells and centroids, assigning "pseudo-labels" to every cell. These pseudo-labels serve as a proxy for the ground-truth cell types during the training process.
3. Projection Head
A Multi-Layer Perceptron (MLP) maps the high-dimensional features into a lower-dimensional space specifically optimized for the contrastive loss calculation. This projection helps the model focus on the most discriminative features for cell-type separation.
4. Cluster-aware Contrastive Loss
This is the core innovation of the CICL framework. The loss function is composed of two distinct parts:
- Instance-wise Loss: Ensures that a specific cell and its noisy augmentation remain close in the feature space.
- Cluster-aware Loss: Uses the pseudo-labels from the clustering head to identify other cells within the same cluster. These cells are treated as positive pairs, preventing the model from mistakenly pushing similar cell types apart.
Iterative Optimization
CICL operates through an iterative synergy: as the Transformer encoder learns better feature representations, the clustering head produces more accurate pseudo-labels. These improved labels, in turn, provide a cleaner supervisory signal for the cluster-aware contrastive loss, further refining the features. This feedback loop continues until the clustering structure stabilizes.
Experimental Results
Datasets and Benchmarking
The authors evaluated CICL on 25 real-world scRNA-seq datasets, representing a diverse range of sequencing platforms (10X Genomics, Smart-seq2, Drop-seq, inDrop) and scales (from 90 cells in the yan dataset to over 48,000 cells in the hrvatin dataset). The complexity of these datasets varied significantly, with cell subtypes ranging from 2 to 15.
CICL was compared against eight SOTA methods, including Seurat, scVI, and scDHA.
Performance Metrics
CICL demonstrated substantial performance gains across the board:
- ARI Improvements: CICL outperformed existing methods by 14% to 280% on average.
- NMI Improvements: The model showed gains of 5% to 133% on average.
- Scalability: The framework maintained high performance on large-scale datasets like Bach (23k cells) and hrvatin (48k cells), proving its utility for modern, high-throughput experiments.
Visualization
t-SNE visualizations confirmed that CICL produces tighter, more distinct clusters compared to competing methods. Even in datasets where other models struggled to separate closely related subtypes, CICL maintained clear boundaries between cell populations.
Discussion and Future Work
While CICL represents a significant step forward, it currently relies on K-means for pseudo-labeling, which assumes roughly spherical cluster shapes. Future iterations may benefit from incorporating more flexible clustering algorithms. Additionally, the researchers plan to extend the CICL framework to other critical bioinformatics tasks, such as data imputation (filling in missing expression values) and trajectory inference (modeling the developmental paths of cells).
By successfully mitigating sampling bias through cluster-aware learning, CICL provides a robust and scalable solution for the foundational task of cell-type identification in single-cell genomics.
Summary updated