GroundAnnot: a closed-vocabulary contract for grounding LLM gene-set annotation in live enrichment backends
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…
GroundAnnot is a restricted contract designed to ensure that large language model (LLM) agents properly ground gene-set annotation in real-time enrichment backends. This system presents a closed vocabulary of Gene Ontology (GO) term identifiers and their corresponding backend labels, enforcing two key contracts.
The first contract, Contract A, specifies that no GO ID or label should be present outside the payload returned by the enrichment backend. The second contract, Contract B, prohibits any enrichment claims beyond the significant set provided by the backend.
Across three open-source models—Qwen2.5-7B running locally, Qwen3.8-27B, and GPT-OSS-120B via Groq—GroundAnnot was tested on six curated disease gene lists. The mean valid-enriched rate for these models was 15.3%, 20.1%, and 35.1%, respectively. Notably, none of the unsupported IDs were fabricated; they were all real GO terms classified by QuickGO as wrong-biology, obsolete, or wrong-branch.
However, a unique failure mode emerged when testing the local 7B model on an Alzheimer's disease gene list. Out of ten stable picks, all ten produced labels that did not match the current GO term for that accession, resulting in a coherent narrative about synaptic signaling that was not supported by the IDs. This led to a mean overlap of 0.33-0.67/10 with the backends' FDR top-10 union.
On 50 MSigDB Hallmark gene sets, the strongest model correctly identified the defining pathway in 21 out of 44 cases (47.7%). When an enriched shortlist was included in the prompt, all three models adhered to the restrictions fully, with 60/60 correct instances for each model and 180/180 overall. This demonstrates that a bounded vocabulary effectively eliminates unsupported output classes when the downstream agent is required to use it.
Rewritten by urgent.news; may contain errors — check the original.
Source: biorxiv.org