Fast and Low-Cost Genomic Foundation Models via Outlier Removal
Haozheng Luo, Chenghao Qiu, Maojiang Su, Zhihan Zhou, Zoe Mehta, Guo Ye, Jerry Yao-Chieh Hu, Han Liu
TL;DR
The paper tackles the challenge of deploying genomic foundation models under limited compute by mitigating outlier effects in transformer attention. It introduces Germ, an outlier-free Hopfield-layer-based architecture that replaces vanilla attention, enabling quantization-friendly, fast adaptation, and Germ-T as a continual-learning variant to avoid full retraining. Empirically, Germ delivers substantial gains, with average improvements of $37.98\%$ in fine-tuning and $64.34\%$ in quantization over a baseline DNABERT-2, while dramatically reducing outlier metrics (average kurtosis by $92.14\%$ and max infinity norm by $82.77\%$) across 27 datasets; Germ-T also provides notable robustness, though with some trade-offs at very low-bit quantization. These results hold across multiple tasks and models, including NT-500M-human and NT-2.5B-multi, and translate into practical benefits for deployment on edge and CPU-only environments. The work thus offers a scalable, resource-efficient path for genomic modeling with durable quantization robustness and rapid adaptation, while acknowledging limitations of Germ-T in extreme quantization scenarios and outlining future directions for robust QAT strategies.
Abstract
To address the challenge of scarce computational resources in genomic modeling, we introduce GERM, a genomic foundation model with strong compression performance and fast adaptability. GERM improves upon models like DNABERT-2 by eliminating outliers that hinder low-rank adaptation and post-training quantization, enhancing both efficiency and robustness. We replace the vanilla attention layer with an outlier-free mechanism inspired by associative memory models. By removing outliers during both pre-training and fine-tuning, this approach accelerates adaptation, reduces computational costs, and enhances quantization robustness within acceptable loss margins. Additionally, we propose GERM-T, a strategy that employs small-step continual learning within the outlier-free framework, leveraging original checkpoints to avoid retraining from scratch. Empirically, GERM improves fine-tuning performance by 37.98% and quantization by 64.34% over the baseline model. It also reduces average kurtosis by 92.14% and maximum infinity norm by 82.77%. Compared to leading methods, GERM consistently delivers superior performance, offering a practical solution for genomic modeling in resource-constrained settings. Code is available at https://github.com/MAGICS-LAB/GERM.
