Benchmarking cell type and gene set annotation by large language models with AnnDictionary
We develop an open-source package called AnnDictionary to facilitate the parallel, independent analysis of multiple anndata. AnnDictionary is built on top of LangChain and AnnData and supports all common large language model (LLM) providers. AnnDictionary only requires 1 line of code to configure or switch the LLM backend and it contains numerous multithreading optimizations to support the analysis of many anndata and large anndata. We use AnnDictionary to perform the first benchmarking study of all major LLMs at de novo cell-type annotation. LLMs vary greatly in absolute agreement with manual annotation based on model size. Inter-LLM agreement also varies with model size. We find that LLM annotation of most major cell types to be more than 80-90% accurate, and will maintain a leaderboard of LLM cell type annotation. Furthermore, we benchmark these LLMs at functional annotation of gene sets, and find that Claude 3.5 Sonnet recovers close matches of functional gene set annotations in over 80% of test sets.
Authors
- Thomas A. Rando (ORCID: https://orcid.org/0000-0001-5843-8564)
- Ke Ding (ORCID: https://orcid.org/0000-0001-9016-812X)
- Aris Taychameekiatchai
- Baoxiang Li (ORCID: https://orcid.org/0009-0009-4490-2157)
- Thomas H. Slone
- Madhav Mantri
- James Zou (ORCID: https://orcid.org/0000-0001-8880-4764)
- William Harper (ORCID: https://orcid.org/0000-0003-2131-7384)
- Elvira Mennillo (ORCID: https://orcid.org/0000-0002-3210-1004)
- Elena Montauti (ORCID: https://orcid.org/0000-0002-7760-2830)
- Hanbing Song (ORCID: https://orcid.org/0000-0002-2164-8813)
- Sean P. Spencer (ORCID: https://orcid.org/0000-0002-7328-5399)
- Alkis J. Psaltis (ORCID: https://orcid.org/0000-0003-2967-1855)
- Wenfei Sun (ORCID: https://orcid.org/0000-0001-5762-6010)
- Robrecht Cannoodt (ORCID: https://orcid.org/0000-0003-3641-729X)
- Angela M. Detweiler (ORCID: https://orcid.org/0000-0001-7026-5467)
- Simon Bucher (ORCID: https://orcid.org/0000-0003-3282-7435)
- Patrick Neuhöfer (ORCID: https://orcid.org/0000-0003-3936-383X)
- Annie Jensen
- Antoine de Morrée (ORCID: https://orcid.org/0000-0002-8316-4531)
- Sheela Crasta
- J. Quintanilla (ORCID: https://orcid.org/0000-0003-2883-9556)
- Xiaochen Fan (ORCID: https://orcid.org/0000-0002-4316-0616)
- Rebecca N. Culver (ORCID: https://orcid.org/0000-0002-3963-193X)
- Michelle Griffin (ORCID: https://orcid.org/0000-0001-7162-5444)
- Robert C. Jones (ORCID: https://orcid.org/0000-0001-7235-9854)
- Bruce Wang (ORCID: https://orcid.org/0000-0003-3486-5494)
- Elisa B. Caffrey
- Maurizio Morri (ORCID: https://orcid.org/0009-0003-5577-4265)
- Gyehyun Lee (ORCID: https://orcid.org/0000-0003-3789-3319)
- Keliana Hui
- Patricia K. Nguyen (ORCID: https://orcid.org/0000-0001-7170-9787)
- William R. Goodyer (ORCID: https://orcid.org/0000-0002-3252-1180)
- Kim Chi Vo (ORCID: https://orcid.org/0000-0001-5581-1642)
- I Rusu (ORCID: https://orcid.org/0000-0002-7146-0499)
- Justin Hong (ORCID: https://orcid.org/0000-0003-2115-9101)
- Frank M. McCarthy (ORCID: https://orcid.org/0000-0002-7933-6847)
- Linda C. Giudice (ORCID: https://orcid.org/0000-0002-1677-0822)
- Varun Ramanan Subramaniam
- A.D. Choudhury
- Emily Trimm (ORCID: https://orcid.org/0000-0001-8610-3075)
- Francisco X. Galdos (ORCID: https://orcid.org/0000-0002-7985-4521)
- Nir Yosef (ORCID: https://orcid.org/0000-0001-9004-1225)
- Lauren Duan (ORCID: https://orcid.org/0000-0002-0715-0824)
- Albert Y. Wu (ORCID: https://orcid.org/0000-0002-1360-8248)
- Douglas E. Henze (ORCID: https://orcid.org/0000-0002-6326-5503)
- Michael Swift (ORCID: https://orcid.org/0000-0001-6391-0050)
- Alexander J. Tarashansky (ORCID: https://orcid.org/0000-0002-5185-6293)
- Luca Ghita (ORCID: https://orcid.org/0000-0001-6736-6355)
- Sheryl Paul (ORCID: https://orcid.org/0009-0008-7063-2026)
- Julian Berg
- Kyle Awayan (ORCID: https://orcid.org/0000-0002-4442-3270)
- Matthew Choi (ORCID: https://orcid.org/0000-0002-7849-1861)
- Haibing Hua (ORCID: https://orcid.org/0000-0001-9346-9972)
- Sevahn K. Vorperian (ORCID: https://orcid.org/0000-0003-0418-5260)
- Steven E. Artandi (ORCID: https://orcid.org/0000-0001-5580-7512)
- Mark A. Krasnow (ORCID: https://orcid.org/0000-0002-1976-5471)
- Lynn Yang (ORCID: https://orcid.org/0000-0003-2325-6423)
- Philip A. Beachy (ORCID: https://orcid.org/0000-0003-1098-9046)
- Hyun Kang (ORCID: https://orcid.org/0000-0003-2844-5880)
- Jun He (ORCID: https://orcid.org/0000-0002-5998-5225)
- Karen Gabriel Gonzales
- David Seong (ORCID: https://orcid.org/0000-0002-8980-5731)
- Wan-Jin Lu (ORCID: https://orcid.org/0000-0002-2186-9800)
- Shravani Mukherjee
- Andres Gottfried‐Blackmore (ORCID: https://orcid.org/0000-0002-3563-3727)
- Bronwyn Scott (ORCID: https://orcid.org/0000-0002-4836-1636)
- Bhavani A. Sanagavarapu
- Serena Y. Tan (ORCID: https://orcid.org/0000-0001-5409-0695)
- Ivana Cvijović (ORCID: https://orcid.org/0000-0002-6272-2979)
- R. Ponnusamy
- James M. Gardner (ORCID: https://orcid.org/0000-0003-3470-9520)
- Stewart J. Kim (ORCID: https://orcid.org/0000-0001-7196-0541)
- Sivakamasundari Vijayakumar
- Samuel D’Souza (ORCID: https://orcid.org/0009-0003-2607-3742)
- Abhishek Murti (ORCID: https://orcid.org/0000-0003-0198-9933)
- Leah C. Dorman (ORCID: https://orcid.org/0000-0002-5511-887X)
- Christin S. Kuo (ORCID: https://orcid.org/0000-0001-9227-5578)
- Zue Zhang
- Angela H. Ling
- Yuchao Gu (ORCID: https://orcid.org/0000-0003-0728-9620)
- George Crowley (ORCID: https://orcid.org/0000-0002-0473-6934)
- Karim Mrouj (ORCID: https://orcid.org/0000-0002-8066-9833)
- Aaron McGeever (ORCID: https://orcid.org/0000-0003-1596-207X)
- Zev J. Gartner (ORCID: https://orcid.org/0000-0001-7803-1219)
- Soochi Kim (ORCID: https://orcid.org/0000-0003-2054-6097)
- Taha Adnan Jan (ORCID: https://orcid.org/0000-0001-8971-7769)
- Lindsay S. Moore (ORCID: https://orcid.org/0000-0002-2623-8602)
- Rebeca Arroyo Hornero (ORCID: https://orcid.org/0000-0001-7026-7358)
- Stefan Veizades (ORCID: https://orcid.org/0000-0002-3829-3537)
- Dhruv Bhatt
- Norma Neff (ORCID: https://orcid.org/0000-0001-7141-5420)
- David Yoonsuk Oh (ORCID: https://orcid.org/0000-0002-3310-0994)
- Hala Shakib Dhowre (ORCID: https://orcid.org/0000-0003-4326-3890)
- SoRi Jang (ORCID: https://orcid.org/0000-0002-9156-552X)
- Mariko H. Foecke (ORCID: https://orcid.org/0000-0002-9205-940X)
- Deana R.C. Colburg (ORCID: https://orcid.org/0000-0002-8287-9455)
- Pierre Boyeau (ORCID: https://orcid.org/0000-0003-4549-3972)
- Sara Billings (ORCID: https://orcid.org/0000-0001-5512-8675)
- Rebecca Chen (ORCID: https://orcid.org/0000-0003-4581-8204)
- Mallory A. Laboulaye
- Juan C. Irwin (ORCID: https://orcid.org/0000-0002-5647-4331)
- Saswati Karmakar (ORCID: https://orcid.org/0000-0003-0315-5924)
- Eliza A. Gaylord (ORCID: https://orcid.org/0000-0003-2986-4630)
- Honey Mekonen (ORCID: https://orcid.org/0009-0001-7959-1151)
- Aditi Swarup
- Michael G. Kattah (ORCID: https://orcid.org/0000-0002-6067-6585)
- Aditi Agrawal (ORCID: https://orcid.org/0000-0001-8731-9003)
- Sean M. Wu (ORCID: https://orcid.org/0000-0002-0000-3821)
- Kiet T. Phong (ORCID: https://orcid.org/0000-0002-9273-4276)
- Astrid Gillich (ORCID: https://orcid.org/0000-0002-7016-0494)
- Marcus L. Forst (ORCID: https://orcid.org/0000-0002-2087-1255)
- Juliana Idoyaga (ORCID: https://orcid.org/0000-0002-4430-8862)
- Hayley M. Raquer-McKay (ORCID: https://orcid.org/0000-0002-7404-8221)
- Angela Oliveira Pisco (ORCID: https://orcid.org/0000-0003-0142-2355)
- Kavita Murthy
- Michael F. Clarke (ORCID: https://orcid.org/0000-0001-6889-4926)
- Ahmad Salehi (ORCID: https://orcid.org/0000-0001-8257-3280)
- Gregory L. Szot (ORCID: https://orcid.org/0000-0002-3921-049X)
- Jennifer Parker (ORCID: https://orcid.org/0000-0003-2206-4120)
- Diana J. Laird (ORCID: https://orcid.org/0000-0002-4930-0560)
- Julia Salzman (ORCID: https://orcid.org/0000-0002-7397-4354)
- Franklin W. Huang (ORCID: https://orcid.org/0000-0001-5447-0436)
- Balint Forgo (ORCID: https://orcid.org/0000-0003-4905-7975)
- Ryan M. Samuel (ORCID: https://orcid.org/0000-0002-9473-1378)
- Can Ergen (ORCID: https://orcid.org/0000-0002-3096-2927)
- C. S. Tang (ORCID: https://orcid.org/0000-0002-5972-3647)
- Paul V. Heinrich (ORCID: https://orcid.org/0000-0003-4899-8343)
- Alan Gi-Lun Cheng (ORCID: https://orcid.org/0000-0002-4702-8401)
- Alina A. Isakova (ORCID: https://orcid.org/0000-0003-1113-6889)
- Honor Paine
- Luise A. Seeker (ORCID: https://orcid.org/0000-0001-6375-6372)
- Santiago Guerrero (ORCID: https://orcid.org/0000-0003-3473-7214)
- Ting-Hsuan Wu (ORCID: https://orcid.org/0000-0002-6869-362X)
- Stephen R. Quake (ORCID: https://orcid.org/0000-0002-1613-0809)
- Juliane Winkler (ORCID: https://orcid.org/0000-0002-9762-1721)
- Pratima Prabala (ORCID: https://orcid.org/0000-0001-6436-6907)
- Yinghua Xie
- Daniel Lee (ORCID: https://orcid.org/0000-0001-9447-4175)
- Tian Wang (ORCID: https://orcid.org/0000-0003-1867-5850)
- Dong Hua
- Zhen Qi (ORCID: https://orcid.org/0000-0003-1822-6975)
- Bo Yu
- Chen Dong (ORCID: https://orcid.org/0000-0002-6335-5197)
- Anping Li (ORCID: https://orcid.org/0000-0001-9860-0984)
- Jia Yan (ORCID: https://orcid.org/0000-0002-6203-0016)
- Shuo Han (ORCID: https://orcid.org/0000-0001-8383-7348)
- Jengmin Kang (ORCID: https://orcid.org/0000-0002-5539-3070)
- Julia H. Pham
- Siyu He (ORCID: https://orcid.org/0000-0001-7187-3034)
- Zifa Wang (ORCID: https://orcid.org/0000-0002-1288-5032)
- Sunny Nguyen
- Amanda Seng
- R.C. Garner
- Sandy Mahfouz (ORCID: https://orcid.org/0000-0002-6332-3283)
- Jaeyoon Lee (ORCID: https://orcid.org/0000-0003-4973-0859)
- Burnett S. Kelly
- J. L. Corrales Aguirre
- Amber Casillas
- William Kong
- Kristy Red-Horse
- Ivan Sampson
- Ho‐Su Sin
- William Yue
- Michael T. Longaker
- Nikita Sajai
- Bikem Soyur
- Resham Irfan
- Marcela Alcántara-Hernádez
- Jamie Bozeman
- Kenneth Donaville
- Elise Lelou
- Ali Reza Rais Sadati
Institutions
- San Francisco VA Medical Center (US)
- Howard Hughes Medical Institute (US)
- Palo Alto University (US)
- University of California, San Francisco (US)
- Aarhus University (DK)
- VA Palo Alto Health Care System (US)
- Cardiovascular Institute of the South (US)
- California Department of Health Care Services (US)
- Ragon Institute of MGH, MIT and Harvard (US)
- Ghent University (BE)
- Reproductive Science Center (US)
- Stanford Health Care (US)
- Donor Network West (US)
- Chan Zuckerberg Initiative (United States) (US)
- Stanford Medicine (US)
- VIB-UGent Center for Inflammation Research (BE)
- Fluidda (Belgium) (BE)
- San Francisco VA Health Care System (US)
- Broad Center (US)
- San Diego Unified School District (US)
- Medical University of Vienna (AT)
- Columbia University (US)
- Vanderbilt University Medical Center (US)
- University of California, Berkeley (US)
- Stanford University (US)
Publication Details
- Journal
- Nature Communications
- Published
- 2025-10-28
- DOI
- https://doi.org/10.1038/s41467-025-64511-x
- Citations
- 4
- Primary Topic
- Machine Learning and Algorithms
- Type
- article
- Field-Weighted Citation Impact
- 9.92