Contextualizing Biological Language Models across Modalities via Logit-Space Contrastive Alignment

📅 2026-06-17
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Existing biological language models struggle to naturally integrate their predictive distributions into task-specific biological contexts—such as interaction partners or therapeutic interventions—often compromising their native token-level likelihood interface. To address this, this work proposes LOGICA, a framework that introduces contrastive alignment and gated cross-modal adapters in logit space, enabling cross-modal contrastive learning without requiring shared vocabularies or decoders for the first time. LOGICA effectively handles sparse paired data while preserving model interpretability and generative capabilities. The method significantly outperforms current approaches on protein–ligand binding, TCR–peptide activity, and drug-induced resistance prediction tasks, improving the AUC for leave-one-gene-out single-mutation resistance prediction from approximately 0.55 to 0.65.
📝 Abstract
Pretrained biological language models expose per-token probability distributions through masked-token prediction, providing the likelihood interface central to sequence design, variant scoring, and mechanistic interpretation. Yet these distributions are learned from broad unlabeled corpora and are not naturally conditioned on task-specific biological contexts such as interaction partners, cellular environments, or therapeutic interventions. Existing contextual matching methods often distort this interface through pooled embeddings, contrastive latent spaces, or task-specific prediction heads. We introduce LOGICA (Logit-space Contrastive Alignment), a framework for context-conditioned prediction that performs contrastive learning directly in output-logit space. Using gated cross-modal adapters compatible with each model's native token head, LOGICA preserves the pretrained likelihood interface and converts contextualized token log-likelihoods into matching scores. Alignment is defined through context-sensitive token probabilities rather than proximity in a shared embedding space, enabling learning from sparse paired data across models with distinct vocabularies, without a shared tokenizer or decoder. LOGICA is particularly effective for mutation-local variant ranking, where comparisons reduce to context-conditioned likelihoods of mutant tokens at perturbed sites. Across protein--ligand binding, TCR--peptide activity, and drug-conditioned resistance prediction, LOGICA improves over prior state-of-the-art methods, including matched latent-contrastive and conditional MLM baselines, while retaining a token-level interface for interpretation and generation. On held-out-gene single-mutation drug-resistance prediction, LOGICA improves AUC from near-random latent-space baselines of $\sim$0.55 to $\sim$0.65.
Problem

Research questions and friction points this paper is trying to address.

biological language models
contextual alignment
logit-space
variant scoring
cross-modal conditioning
Innovation

Methods, ideas, or system contributions that make the work stand out.

logit-space contrastive learning
context-conditioned prediction
biological language models
cross-modal alignment
token-level likelihood interface
💼 Related Jobs
Postdoctoral Fellow – AI-Driven Multi-Omics Integration for Predictive Toxicology
Pfizer
The annual base salary for this position ranges from $64,600.00 to $107,600.00. In addition, this position is eligible for participation in Pfizer’s Global Performance Plan with a bonus target of 7.5% of the base salary. We offer comprehensive and generous benefits and programs to help our colleagues lead healthy lives and to support each of life’s moments. Benefits offered include a 401(k) plan with Pfizer Matching Contributions and an additional Pfizer Retirement Savings Contribution, paid vacation, holiday and personal days, paid caregiver/parental and medical leave, and health benefits to include medical, prescription drug, dental and vision coverage. Learn more at Pfizer Candidate Site – U.S. Benefits | (uscandidates.mypfizerbenefits.com). Pfizer compensation structures and benefit packages are aligned based on the location of hire. The United States salary range provided does not apply to Tampa, FL or any location outside of the United States. Relocation assistance may be available based on business needs and/or eligibility.
Hybrid
Y
Yanjun Shao
Biomedical Informatics and Data Science, Yale School of Medicine, United States
Y
Yundi Chen
Biomedical Informatics and Data Science, Yale School of Medicine, United States
Y
Yashvi Patel
Biomedical Informatics and Data Science, Yale School of Medicine, United States
Aurelien Pelissier
Aurelien Pelissier
IBM Research Zurich, ETH Zurich
AIComputational BiologyPhysics
M
María Rodríguez Martínez
Biomedical Informatics and Data Science, Yale School of Medicine, United States