A Deterministic Cluster-Level Abstention Layer for LLM-Based Single-Cell RNA-seq Annotation
Background and Objective: Large language models (LLMs) can assign single-lineage labels despite warnings of conflicting lineage signals. We developed a deterministic gate that withholds automated annotation from flagged single-cell RNA-sequencing clusters. Methods: The gate screens tissue-specific marker panels mined from CellMarker 2.0 and PanglaoDB. We evaluated six LLM endpoints on 91 blinded cases, separated gate effects from LLM reinvocation, and compared gates with annotator outputs held fixed. We audited two clustering resolutions in two blood cohorts with experimental multiplet labels and assessed single-donor performance. Results: Three endpoints overrode warnings on 5--14 of 22 simulated doublet clusters. Enforcing abstention increased fixed-output concordance by 0.044--0.137 for these endpoints and reduced it by 0.011 for the other three. With LLM reinvocation, Arm 4 improved over Arm 3 in two of six endpoints after multiplicity adjustment. With advisory predictions fixed, mean concordance was 0.945 for the gate and 0.950 for cluster-aggregated scDblFinder at a 0.50 cutoff (all adjusted $p=1.000$). At resolution 0.80, the gate and scDblFinder (0.30) each flagged 3/3 highly enriched and 0/4 moderately enriched doublet clusters. Adding the gate to three-median-absolute-deviation quality control plus scDblFinder (0.30) increased review from 721 to 4,463 expression profiles without adding flags in either stratum. In single-donor solid-organ analyses, the gate passed 50/69 valid cases (72.5%). Conclusions: Pre-annotation routing prevents overrides on flagged inputs. The PBMC review volume and the solid-organ pass rate indicate costs that should be assessed before use. A standalone Python tool implements the gate. \
Authors
- Yingkun Huang
Institutions
- Wenzhou Medical University (CN)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.5281/zenodo.24706993
- Primary Topic
- Single-cell and spatial transcriptomics
- Type
- preprint