GroundAnnot: a closed-vocabulary contract for grounding LLM gene-set annotation in live enrichment backends
Year: 2026
Type: preprint
Abstract: Motivation LLM agents increasingly draft functional interpretations of gene lists, but can cite Gene Ontology (GO) terms that no current enrichment backend returned for that list, and can pair real GO accessions with fabricated labels. Results We present GroundAnnot, a client for PANTHER, Enrichr, and g:Profiler that returns a closed vocabulary of GO term IDs and their backend labels, and enforces two contracts: Contract A (no ID or label outside the backend payload) and Contract B (no enrichment claim outside the backend’s significant set). Across three open-weight models (Qwen2.5-7B local; Qwen3.8-27B and GPT-OSS-120B via Groq) on six curated disease gene lists, mean valid-enriched rates were 15.3%, 20.1%, and 35.1%. All unsupported IDs were real GO terms classified by QuickGO as wrong-biology, obsolete, or wrong-branch (zero fabricated accessions). A distinct failure mode emerged: for the Alzheimer’s gene list, the local 7B model paired every one of its ten stable picks with a label that does not match the current GO term for that accession (10/10 mismatches), producing a coherent synaptic-signalling narrative that the IDs do not support. Mean overlap with the backends’ FDR top-10 union was 0.33–0.67/10. On 50 MSigDB Hallmark gene sets, the strongest model named the defining pathway in 21/44 (47.7%) directly named cases. When an enriched shortlist was placed in the prompt, all three models complied fully (60/60 for each model; 180/180 overall), showing that a bounded vocabulary removes these output classes when the downstream agent is required to use it. Availability and Implementation GroundAnnot is implemented in Python 3.9+ and is freely available on GitHub at https://github.com/Maano-gen/groundannot under the MIT license, together with the six disease gene lists, 50 Hallmark gene lists, all 215 disease-list and 150 Hallmark runs, two dated backend snapshots, and the analysis scripts. Contact [email protected] Supplementary Information Supplementary data are available online.
Author: Maano Malima
Institution: South African Medical Research Council
Language: English
Subfield: Molecular Biology
Domain: Life Sciences
Open Access status: green
OpenAlex ID: W7216473828
