Papers › Contextualizing Biological Language Models across Modalities via Logit-Space...

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

17 Jun 2026arXiv:2606.18703added by Syntology

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.

PaperPDFCode Syntology ran

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.

facebookresearch/esm found in paper text by Syntology report
kexinhuang12345/MolTrans found in paper text by SyntologyBSD-3-Clause report
samsledje/ConPLex found in paper text by Syntology report
peizhenbai/DrugBAN found in paper text by Syntology report
bowen-gao/DrugCLIP found in paper text by SyntologyNOASSERTION report
Steven51516/SP-DTI found in paper text by Syntology report
purvavideha/GSDTI found in paper text by Syntology report
lihan97/KPGT found in paper text by SyntologyApache-2.0 report
zhangyumeng1sjtu/EPACT found in paper text by Syntology report

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.

3ran · honoured contract
3ran · violated contract
3ran · our draft was wrong
1ran · fixture could not drive it
29ran
5unverified

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.

MarginScheduledLossFunction samsledje/ConPLex/conplex_dti/model/margin.py found in paper text by Syntology ran MIT (permissive) · 1e45ef7532242671 · report
NTXentContrastiveLoss purvavideha/GSDTI/loss.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 041b01be726ffb14 · report
apc facebookresearch/esm/esm/modules.py found in paper text by Syntology ran fingerprinted MIT (permissive) · f6701ae421cbe0d4 · report
apply_rotary_pos_emb facebookresearch/esm/esm/rotary_embedding.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 2a127d3ae372d7bd · report
atchley_factor_encoding zhangyumeng1sjtu/EPACT/EPACT/utils/encoding.py found in paper text by Syntology ran fingerprinted GPL-3.0 (copyleft) · pointer only · 5c8bd5b3e01c1ca9 · report
binary_cross_entropy peizhenbai/DrugBAN/models.py found in paper text by Syntology ran MIT (permissive) · 83a96f15e1b9da0c · report
bolossum_encoding zhangyumeng1sjtu/EPACT/EPACT/utils/encoding.py found in paper text by Syntology ran GPL-3.0 (copyleft) · pointer only · 1f7388a004a0c2d6 · report
calc_re bowen-gao/DrugCLIP/unimol/tasks/drugclip.py found in paper text by Syntology ran licence not identified · pointer only · 42a4239b82d1373c · report
cosine_anneal samsledje/ConPLex/conplex_dti/model/margin.py found in paper text by Syntology ran · honoured contract fingerprinted MIT (permissive) · 3204373aea14cb43 · report
cosine_distance_p samsledje/ConPLex/conplex_dti/model/margin.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · 742f4c7d2a61f054 · report
cross_entropy_logits peizhenbai/DrugBAN/models.py found in paper text by Syntology ran MIT (permissive) · e0224b39d7f883e6 · report
entropy_logits peizhenbai/DrugBAN/models.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 4e7445da703222c3 · report
gaussian bowen-gao/DrugCLIP/unimol/models/unimol.py found in paper text by Syntology ran · violated contract no licence file found · pointer only · 294ba20b052bfbc7 · report
gelu facebookresearch/esm/esm/modules.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 2e7bd6c4ccd1ed68 · report
get_time bowen-gao/DrugCLIP/HomoAug/utils/misc.py found in paper text by Syntology ran licence not identified · pointer only · 885d339055ac8edc · report
integer_label_protein peizhenbai/DrugBAN/utils.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 19e3c8488605a6f7 · report
load_DDI Steven51516/SP-DTI/FlexMol/dataset/loader.py found in paper text by Syntology ran licence not identified · pointer only · 0fd30f947d0ed52f · report
load_DTI Steven51516/SP-DTI/FlexMol/dataset/loader.py found in paper text by Syntology ran licence not identified · pointer only · 6c02dd5959fc45bd · report
load_PPI Steven51516/SP-DTI/FlexMol/dataset/loader.py found in paper text by Syntology ran licence not identified · pointer only · 4011eaaa1646ff63 · report
load_paired_cdr123_feat_bank zhangyumeng1sjtu/EPACT/EPACT/utils/misc.py found in paper text by Syntology ran GPL-3.0 (copyleft) · pointer only · 56d67c962efeb5f1 · report
load_paired_tcr_feat_bank zhangyumeng1sjtu/EPACT/EPACT/utils/misc.py found in paper text by Syntology ran GPL-3.0 (copyleft) · pointer only · 25ffeffddf57d169 · report
no_decay samsledje/ConPLex/conplex_dti/model/margin.py found in paper text by Syntology ran · violated contract fingerprinted MIT (permissive) · ae893cdcdb84b2fc · report
one_hot_encoding zhangyumeng1sjtu/EPACT/EPACT/utils/encoding.py found in paper text by Syntology ran fingerprinted GPL-3.0 (copyleft) · pointer only · 776332c73e11eb1a · report
process_configs Steven51516/SP-DTI/FlexMol/encoder/FM_config.py found in paper text by Syntology ran licence not identified · pointer only · afdc6cbac5090332 · report
re_new bowen-gao/DrugCLIP/unimol/tasks/drugclip.py found in paper text by Syntology ran licence not identified · pointer only · db723afedb949b33 · report
read_alignment_lines facebookresearch/esm/esm/data.py found in paper text by Syntology ran MIT (permissive) · 0e2bb5cf67615e24 · report
rotate_half facebookresearch/esm/esm/rotary_embedding.py found in paper text by Syntology ran · honoured contract fingerprinted MIT (permissive) · 437c7011506995a3 · report
scoring bowen-gao/DrugCLIP/unimol/utils/coordinate_model.py found in paper text by Syntology ran licence not identified · pointer only · b72ae28227215c62 · report
sigmoid_cosine_distance_p samsledje/ConPLex/conplex_dti/model/margin.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · 098cde9f3278ee9e · report
silent bowen-gao/DrugCLIP/HomoAug/utils/misc.py found in paper text by Syntology ran licence not identified · pointer only · d2efa398fa2ce9c3 · report
single_SF_loss bowen-gao/DrugCLIP/unimol/utils/coordinate_model.py found in paper text by Syntology ran licence not identified · pointer only · 259731d21f806e98 · report
symmetrize facebookresearch/esm/esm/modules.py found in paper text by Syntology ran · violated contract fingerprinted MIT (permissive) · b385be9826c4a8b3 · report
tanh_decay samsledje/ConPLex/conplex_dti/model/margin.py found in paper text by Syntology ran · honoured contract fingerprinted MIT (permissive) · 348c1f85ae6c0f3b · report
time2str bowen-gao/DrugCLIP/HomoAug/utils/misc.py found in paper text by Syntology ran fingerprinted licence not identified · pointer only · b811a7f6db0be4b6 · report
tuple_index facebookresearch/esm/esm/inverse_folding/gvp_modules.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 38735f4bca7f8220 · report
tuple_size facebookresearch/esm/esm/inverse_folding/gvp_modules.py found in paper text by Syntology ran MIT (permissive) · 07d7dab3e137136b · report
tuple_sum facebookresearch/esm/esm/inverse_folding/gvp_modules.py found in paper text by Syntology ran · fixture could not drive it fingerprinted MIT (permissive) · d0328e65d2e8a9ec · report
utils_softmax facebookresearch/esm/esm/multihead_attention.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 0aca52ff344beec0 · report
with_incremental_state facebookresearch/esm/esm/multihead_attention.py found in paper text by Syntology ran MIT (permissive) · ee6aaaeaaec268cb · report
dock_with_gradient bowen-gao/DrugCLIP/unimol/utils/coordinate_model.py found in paper text by Syntology unverified licence not identified · pointer only · 4b1455a15813caae · report
init_inter_layer Steven51516/SP-DTI/FlexMol/encoder/FM_config.py found in paper text by Syntology unverified licence not identified · pointer only · c91d6050997b3a65 · report
init_method Steven51516/SP-DTI/FlexMol/encoder/FM_config.py found in paper text by Syntology unverified licence not identified · pointer only · 474618a56cd8cef4 · report
load_hub_workaround facebookresearch/esm/esm/pretrained.py found in paper text by Syntology unverified MIT (permissive) · f41f5e2627df3d0f · report
load_regression_hub facebookresearch/esm/esm/pretrained.py found in paper text by Syntology unverified MIT (permissive) · 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