Papers › Contextualizing Biological Language Models across Modalities via Logit-Space...
Contextualizing Biological Language Models across Modalities via Logit-Space Contrastive Alignment
Yanjun Shao, Yundi Chen, Yashvi Patel, Aurelien Pelissier, María Rodríguez Martínez
Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).
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 ∼0.55 to ∼0.65.
In Syntology For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2606.18703")
Code
Syntology Ran 39 of 44 code samples harvested from 7 repositories linked to this paper; 5 have no recorded run. Of those that ran: 3 ran · honoured contract; 3 ran · violated contract; 3 ran · our draft was wrong; 1 ran · fixture could not drive it; 29 ran with no contract checked.
By repository: found in paper text by Syntology: 44 samples from 7 repositories, 39 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.
Code Syntology ran Syntology
44 samples harvested; 39 ran; 3 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.
Licence: 21 of the 44 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.
Harvested from 7 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.
Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.
Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.
1e45ef7532242671 · report
041b01be726ffb14 · report
f6701ae421cbe0d4 · report
2a127d3ae372d7bd · report
5c8bd5b3e01c1ca9 · report
83a96f15e1b9da0c · report
1f7388a004a0c2d6 · report
42a4239b82d1373c · report
3204373aea14cb43 · report
742f4c7d2a61f054 · report
e0224b39d7f883e6 · report
4e7445da703222c3 · report
294ba20b052bfbc7 · report
2e7bd6c4ccd1ed68 · report
885d339055ac8edc · report
19e3c8488605a6f7 · report
0fd30f947d0ed52f · report
6c02dd5959fc45bd · report
4011eaaa1646ff63 · report
56d67c962efeb5f1 · report
25ffeffddf57d169 · report
ae893cdcdb84b2fc · report
776332c73e11eb1a · report
afdc6cbac5090332 · report
db723afedb949b33 · report
0e2bb5cf67615e24 · report
437c7011506995a3 · report
b72ae28227215c62 · report
098cde9f3278ee9e · report
d2efa398fa2ce9c3 · report
259731d21f806e98 · report
b385be9826c4a8b3 · report
348c1f85ae6c0f3b · report
b811a7f6db0be4b6 · report
38735f4bca7f8220 · report
07d7dab3e137136b · report
d0328e65d2e8a9ec · report
0aca52ff344beec0 · report
ee6aaaeaaec268cb · report
4b1455a15813caae · report
c91d6050997b3a65 · report
474618a56cd8cef4 · report
f41f5e2627df3d0f · report
37aed79e4a5cbc4f · report
Results from the paper
The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2606.18703, was issued in June 2026, after that date, so the archive has no leaderboard rows for it.
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections