BACE: Biological Annotation-Guided Key-Value Cache Eviction for Protein Language Models
BACE: Biological Annotation-Guided Key-Value Cache Eviction for Protein Language Models
Abstract:
Autoregressive protein language models are promising for computational protein generation and design, but their inference is bottlenecked by the key-value (KV) cache. Existing cache-compression methods, including H2O, ScissorHands, and SnapKV, use attention or redundancy heuristics and do not model the biochemical importance of residues. We propose Biological Annotation-Guided Cache Eviction (BACE), a lightweight actor-critic ranking policy trained with a proximal policy optimization (PPO)-inspired objective. BACE makes per-token eviction decisions from a 25-dimensional state vector combining 14 live attention/cache statistics with 11 protein residue-level biological features derived from National Center for Biotechnology Information (NCBI) GenBank annotations and AlphaFold predicted local distance difference test (pLDDT) scores. We train on 1,442 feature-complete proteins with NCBI RefSeq records and matched AlphaFold confidence scores, split into 1,009 training, 216 validation, and 217 held-out test proteins. We report two operating points. The 25% operating point is safety-first, achieving positive reward, 100% active site preservation rate (ASPR), and zero critical evictions, with lower cache reduction. The 40% operating point is high-compression, removing 37.19% of KV-cache tokens while maintaining 99.95% ASPR. In the 40% benchmark, BACE evicts only one critical residue, while random eviction, H2O, ScissorHands, and SnapKV evict 12 to 347 critical residues. At the same operating point, BACE achieves the highest relative reward, reduces reward damage by 73.9 to 83.7%, and has the lowest perplexity among compressed-cache methods. Feature-sensitivity analysis show separable contributions: removing biological features increases critical evictions from 1 to 13, while removing AlphaFold pLDDT increases perplexity (PPL) from 224.74 to 1405.65. These results demonstrate the potential of annotation-guided KV cache eviction for compressed protein language model inference and highlight the need to evaluate cache reduction jointly with sequence fluency and biological preservation. Code is available at https://github.com/prasathlab/BACE.
Reference:
R. Gelal, B. Aronow, V. B. S. Prasath. Biological annotation-guided key-value cache eviction for protein language models. Submitted, August 2026. [Code]