Manuscript Offprint

arXiv:2610.39050

BASILISC: Bayesian Alignment of Siamese-Integrated Latents for Inferring Single-cell Correspondence

Sepideh Saran, Mahsa Ghanbari, Uwe Ohler

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Sepideh Saran

The Berlin Institute for Medical Systems Biology, Max Delbrück Center for Molecular Medicine, Germany Department of Electrical Engineering and Computer Science, Technical University of Berlin, Germany

sepideh.saran@mdc-berlin.de

Mahsa Ghanbari

The Berlin Institute for Medical Systems Biology, Max Delbrück Center for Molecular Medicine, Germany Department of Biology, Humboldt University of Berlin, Germany

mahsa.ghanbari@mdc-berlin.de

Uwe Ohler

The Berlin Institute for Medical Systems Biology, Max Delbrück Center for Molecular Medicine, Germany Department of Biology, Humboldt University of Berlin, Germany Department of Computer Science, Humboldt University of Berlin, Germany

uwe.ohler@mdc-berlin.de

Abstract

Single-cell assays are the established method to study the genome one cell at a time. Unimodal assays measure one molecular layer, and the newer multimodal assays measure several. Most data are single-modality, so integrating them relies on models trained on the multimodal assays, where the cell correspondence across modalities is known. These models return a matching, but rarely a confidence measure. We present BASILISC (Bayesian Alignment of Siamese-Integrated Latents for Inferring Single-cell Correspondence), a framework for matching single-cell representations with uncertainty on the correspondence itself. A BASILISC model is a probabilistic siamese network over the two modalities with a predictive distribution over the correspondence for a cross-modal pair of cells. We instantiate it at two levels: at the cell-type level the question is whether the two cells share a cell type, and at the cell level which cell is the partner in the other modality. To our knowledge, this is the first uncertainty score on a learned cross-modal correspondence evaluated against a known ground-truth pairing. BASILISC learns a biologically meaningful similarity across modalities that reflects cell lineage: an unseen cell type is matched to its lineage relative, matching still works on such held-out cell types (balanced accuracy 0.86 on unseen against 0.93 on seen types, cross-batch pairs), and the predictive uncertainty rises on these out-of-distribution cells. The uncertainty score also selects high-quality matches for downstream multimodal analysis: discarding the least certain fifth of the pairs raises accuracy from 0.93 to 0.98. At the cell level, a deep ensemble of the deterministic matcher reaches 0.062 matching accuracy on the benchmark test set, above the competition winner; on the Bayesian matcher's assignment, the posterior flags the wrong matches that cross a cell-type boundary better than a deterministic read of the same scores (AUROC 0.68 against 0.64).

1 Introduction

In complex systems, a single measurement modality captures only part of an entity; to solve prediction problems that depend on the whole, the representations learned from each modality have to be brought into correspondence. The cell is such an entity, and to understand the biological processes that underlie cellular identity and disease, we need a meaningful multimodal representation of the cell state. Cross-modal matching models usually learn two encoders, one representing each data modality, and predict a point-estimate matching score for the correspondence of a given pair. Such a deterministic model can tell us which pairs are the best matches, but not how close the runner-up was, or whether the assignment would survive a different draw of the training data, or whether a data point lies where the encoders were never trained. In this work, we focus on the problem of multimodal representation matching. We place a posterior on the encoders and the uncertainty score on the correspondence itself, read the uncertainty of the assignment from the disagreement of the posterior draws, and evaluate that uncertainty where the true pairing is known: paired single-cell multi-omics data.

Single-cell assays are important means of studying the individual cell, in contrast to bulk assays, which average over all cells in a sample and thereby can report only general trends (Tanay & Regev, 2017; Luecken & Theis, 2019). Most single-cell datasets are unimodal, whereas multimodal datasets are more costly and have become available only recently (Stoeckius et al., 2017; Chen et al., 2019; Ma et al., 2020). A unimodal assay measures a single aspect of the cell, such as how much each gene is expressed (scRNA-seq) (Zheng et al., 2017) or which regions of the chromatin are accessible, that is, depleted of nucleosomes and therefore available for regulatory proteins to bind (scATAC-seq) (Buenrostro et al., 2013; 2015). With unimodal assays, each assay is run on a separate but comparable cell population and the two are matched computationally afterward; no true cell-level correspondence exists, so the matching cannot be checked against a ground truth. Multimodal assays instead measure two or more modalities simultaneously in the same cell, yielding a paired dataset in which the modalities are linked through their cell of origin, providing us with the ground truth for the cross-modal matching task. Therefore, paired datasets generated by multimodal single-cell assays are used to train models that can, in turn, be used to integrate unpaired unimodal datasets (Luecken et al., 2021; Lance et al., 2022).

The matching of cell populations across modalities that have been assayed in different cells is termed diagonal integration (Argelaguet et al., 2021). From a machine learning perspective the methods for diagonal integration fall into two categories. In the first, a representation is learned for each modality separately and the correspondence is established afterward as a separate step, by optimal transport couplings (Demetci et al., 2022; Cao et al., 2022; 2020), mutual nearest neighbors (Haghverdi et al., 2018; Stuart et al., 2019), or a mapping fitted between the two spaces (Wu et al., 2021). In the second, a single embedding space is learned for both modalities at once, either by a shared latent-variable generative model such as a multimodal variational autoencoder (Rautenstrauch & Ohler, 2024; Gayoso et al., 2021; Ashuach et al., 2023; Gong et al., 2021; Cao & Gao, 2022), by matrix factorization with shared factors (Welch et al., 2019; Argelaguet et al., 2020), or by manifold alignment (Liu et al., 2019; Cao et al., 2020), which matches the geometry of the two manifolds under objectives that preserve local neighborhood structure and require no cell-level correspondence. In both cases a correspondence score for a given cross-modal input pair is obtained from the learned space (Tu et al., 2022; Gossi et al., 2023; Liu et al., 2023), and in most existing methods it is obtained without measuring the confidence of the model in the predicted match score. On one benchmark dataset (Luecken et al., 2021) which we also use here, the strongest methods for the matching task are the models CLUE (Tu et al., 2022), MatchCLOT (Gossi et al., 2023), and the siamese matcher MinNet (Liu et al., 2023), all of which train two encoders with a contrastive objective and read the match off the similarity matrix, by argmax or by entropic optimal transport (Cuturi, 2013). A soft transport coupling looks like a distribution over partners, but it is a normalized similarity: it carries no posterior and no calibration, and it says nothing about how far the model would have to be wrong for the match to change.

Genomic measurements are high-dimensional, sparse, and noisy. Uncertainty quantification provides a measure of confidence in the model's prediction that can reflect the shortcomings of the data. The uncertainty score indicates which predictions are reliable enough to carry into downstream analysis (Abdar et al., 2021; Hüllermeier & Waegeman, 2021). Uncertainty quantification has been studied extensively for classification and regression in data-rich domains such as computer vision (Kendall & Gal, 2017; Filos et al., 2019; Nado et al., 2021; Franzen et al., 2024), but less so in computational genomics (Saran et al., 2026; Engelmann et al., 2022; Bajwa et al., 2024; Zhou et al., 2026). The standard methods place a distribution over the weights or over stochastic forward passes: deep ensembles (Lakshminarayanan et al., 2017), Monte Carlo dropout (Gal & Ghahramani, 2016), and mean-field variational inference (Blundell et al., 2015; Wen et al., 2018), and the resulting score is used to abstain on unreliable predictions (Geifman & El-Yaniv, 2017) and to flag inputs from outside the training distribution (Hendrycks & Gimpel, 2017; Ovadia et al., 2019). In single-cell analysis, where uncertainty is reported at all, it is placed on the cell type label (De Donno et al., 2023; Engelmann et al., 2022; López-De-Castro et al., 2025) or on the latent representation of one cell (Gayoso et al., 2021; Ashuach et al., 2023); none of these places it on the correspondence between two cells. Moreover, representation matching differs in that the prediction is a relation between two inputs, so the uncertainty is a property of the pair rather than of either element, and it may arise from either encoder or from the geometry of the space in which the two are compared. Related questions have been addressed in retrieval and metric learning through probabilistic embeddings and calibrated similarity scores (Oh et al., 2019; Chun et al., 2021), but uncertainty on a cross-modal correspondence has received limited attention, and is rarely evaluated against a known ground-truth pairing.

We present BASILISC, Bayesian Alignment of Siamese-Integrated Latents for Inferring Single-cell Correspondence. The BASILISC model learns biologically meaningful relations between single-cell modalities and places the uncertainty score on the correspondence itself, and we ask whether that score identifies the matches a model should decline to make. We build it at two levels of the same problem: matching at the cell-type level and the cell level. At both levels we report predictive performance for the matching tasks, compare it to the published benchmark methods, and report what the uncertainty score adds: whether it separates wrong matches from correct ones, whether highly uncertain matching pairs point to underlying biology, and whether it flags a cell type the model never saw during training (i.e. out-of-distribution detection).

Our main contributions are threefold: First, we place an uncertainty score on the correspondence between the learned representations of two modalities, rather than on a label, a latent, or a translated profile, and evaluate it against a known ground-truth pairing; to our knowledge this has not been done before. Second, we show what the uncertainty score can be useful for at two levels of granularity, the cell type and the cell, on three data types: The score is higher on wrongly matched pairs and on cells of a type the model never saw, so a matcher can filter out a low-confidence match and flag an out-of-distribution input; every comparison is against a deterministic model with equivalent architecture and the same assignment, and we state where the score is limited. Third, we show where the score reflects a source of uncertainty: the pairs the model is unsure of are cells of one lineage family, the learned similarity follows lineage, and the correct matches with the highest uncertainty are candidates to verify if the cells are in transition, where chromatin opens ahead of transcription.

The rest of the paper is organized as follows. Section 2 defines the matching task, Section 3 the two BASILISC models, and Section 4 the experimental setup. Section 5 reports our results on evaluating matching predictive performance and the uncertainty quantification at the cell-type level and at the cell level, on the multiome benchmark, with the cell-type-level replication on CITE-seq in the supplement (Section D). Section 6 concludes the paper, states what the uncertainty scores on correspondences do and do not deliver, the limitations of the study, and an outlook to future research.

References (73)