Beyond Conditional Computation: Retrieval-Augmented Genomic Foundation Models with Gengram

Huinan Xu, Xuyang Feng, Junhong Chen, Junchen Liu, Kaiwen Deng +7 more
1/29/2026
q-bio.GNcs.AI
rag

Official code: zhejianglab/Genos (27 stars, Python, Apache-2.0, last commit 2026-01-30).

Abstract

Current genomic foundation models (GFMs) rely on extensive neural computation to implicitly approximate conserved biological motifs from single-nucleotide inputs. We propose Gengram, a conditional memory module that introduces an explicit and highly efficient lookup primitive for multi-base motifs via a genomic-specific hashing scheme, establishing genomic "syntax".

Show full abstract

Integrated into the backbone of state-of-the-art GFMs, Gengram achieves substantial gains (up to 14%) across several functional genomics tasks. The module demonstrates robust architectural generalization, while further inspection of Gengram's latent space reveals the emergence of meaningful representations that align closely with fundamental biological knowledge. By establishing structured motif memory as a modeling primitive, Gengram simultaneously boosts empirical performance and mechanistic interpretability, providing a scalable and biology-aligned pathway for the next generation of GFMs. The code is available at https://github.com/zhejianglab/Genos, and the model checkpoint is available at https://huggingface.co/ZhejiangLab/Gengram.

View on arXivView PDF

Code Implementations(1)

zhejianglab/GenosOfficial100%
Apache-2.0

Official release of Genos models.

271Python, Jupyter NotebookDec 17, 202510 months agoApache-2.0

Similar Papers

Cite this paper

@article{xu2026beyond,
  title  = {Beyond Conditional Computation: Retrieval-Augmented Genomic Foundation Models with Gengram},
  author = {Huinan Xu and Xuyang Feng and Junhong Chen and Junchen Liu and Kaiwen Deng and Kai Ding and Shengning Long and Jiaxue Shuai and Zhaorong Li and Shiping Liu and Guirong Xue and Zhan Xiao},
  year   = {2026},
  eprint = {2601.22203},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.22203v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.22203.svg)](https://codeofpaper.com/paper/2601.22203)

Discussion