Improving atlas-scale single-cell annotation models with hierarchical cross-entropy loss
Sebastiano Cultrera di Montesano1, Davide D'Ascenzo2,3, Srivatsan Raghavan4,5,6,7
1Broad Institute of MIT and Harvard, Cambridge, MA, USA. scultrer@broadinstitute.org.
Nature Computational Science
|January 30, 2026
Summary
We developed a hierarchical cross-entropy loss to improve cell type annotation in single-cell RNA sequencing (scRNA-seq) data. This method enhances model performance on new data without increasing computational cost, highlighting the importance of data generation for algorithm generalizability.
Area of Science:
- Computational biology
- Genomics
- Bioinformatics
Background:
- Accurate cell type annotation is crucial for single-cell RNA sequencing (scRNA-seq) data analysis.
- Existing computational models often fail to leverage the inherent hierarchical structure of cell type ontologies.
- This limitation hinders the generalizability of predictive models.
Purpose of the Study:
- To introduce a novel loss function that incorporates biological hierarchy into machine learning models for cell type annotation.
- To improve the performance of computational models on out-of-distribution scRNA-seq datasets.
- To guide future research towards data generation strategies that enhance algorithm generalizability.
Main Methods:
- Developed a hierarchical cross-entropy loss function.
- Applied the loss function to various machine learning architectures, including linear models and transformers.
- Evaluated model performance on out-of-distribution datasets to assess generalizability.
Main Results:
- The hierarchical cross-entropy loss improved out-of-distribution performance by 12-15% across different model architectures.
- The modification introduced no additional computational cost.
- Performance gains were achieved without increasing model complexity.
Conclusions:
- Incorporating biological hierarchy into model training objectives is an effective strategy for improving cell type annotation.
- Focusing on generating new data that strengthens connections between annotated cell types is critical for developing more generalizable algorithms.
- This approach offers a more promising avenue for advancing scRNA-seq analysis than solely increasing model complexity.
More Related Videos
Related Concept Videos
Entropy
36.0K
Salt particles that have dissolved in water never spontaneously come back together in solution to reform solid particles. Moreover, a gas that has expanded in a vacuum remains dispersed and never spontaneously reassembles. The unidirectional nature of these phenomena is the result of a thermodynamic state function called entropy (S). Entropy is the measure of the extent to which the energy is dispersed throughout a system, or in other words, it is proportional to the degree of disorder of a...
36.0K
Entropy
3.6K
The first law of thermodynamics is quantitatively formulated via an equation relating the internal energy of a system, the heat exchanged by it, and the work done on it. A quantitative formulation of the second law of thermodynamics leads to defining a state function, the entropy.
When an ideal gas expands isothermally, the disorder in the gas increases. From the molecular perspective, the gas molecules have more volume to move around in.
Consider an infinitesimal step in the expansion, which...
When an ideal gas expands isothermally, the disorder in the gas increases. From the molecular perspective, the gas molecules have more volume to move around in.
Consider an infinitesimal step in the expansion, which...
3.6K
Entropy within the Cell
12.9K
A living cell's primary tasks of obtaining, transforming, and using energy to do work may seem simple. However, the second law of thermodynamics explains why these tasks are harder than they appear. None of the energy transfers in the universe are completely efficient. In every energy transfer, some amount of energy is lost in a form that is unusable. In most cases, this form is heat energy. Thermodynamically, heat energy is defined as the energy transferred from one system to another that...
12.9K
Standard Entropy Change for a Reaction
24.4K
Entropy is a state function, so the standard entropy change for a chemical reaction (ΔS°rxn) can be calculated from the difference in standard entropy between the products and the reactants.
24.4K
Crossing Over
171.9K
Unlike mitosis, meiosis aims for genetic diversity in its creation of haploid gametes. Dividing germ cells first begin this process in prophase I, where each chromosome—replicated in S phase—is now composed of two sister chromatids (identical copies) joined centrally.
The homologous pairs of sister chromosomes—one from the maternal and one from the paternal genome—then begin to align alongside each other lengthwise, matching corresponding DNA positions in a process...
The homologous pairs of sister chromosomes—one from the maternal and one from the paternal genome—then begin to align alongside each other lengthwise, matching corresponding DNA positions in a process...
171.9K
Genome Annotation and Assembly
21.0K
The genome refers to all of the genetic material in an organism. It can range from a few million base pairs in microbial cells to several billion base pairs in many eukaryotic organisms. Genome assembly refers to the process of taking the DNA sequencing data and putting it all back together in a correct order to create a close representation of the original genome. This is followed by the identification of functional elements on the newly assembled genome, a process called genome annotation.
21.0K


