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 ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 44 code samples harvested from 7 repositories linked to this paper: 39 ran (of which 1 constructed an object rather than computing a result; 17 with no instrument failure: 6 honoured, 3 violated, 8 with no contract checked; 22 where Syntology's instrument failed) · 5 unverified. Where Syntology's instrument failed: 17 where our contract draft was wrong; 5 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 44 samples from 7 repositories, 39 ran (17 with no instrument failure; 22 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 1 of the 39 samples that ran has no recorded date.

facebookresearch/esm found in paper text by SyntologySyntology: 13 samples, 11 ran (8 instrument-failed) · 2 unverified report
kexinhuang12345/MolTrans found in paper text by SyntologyBSD-3-ClauseSyntology: not harvested report
samsledje/ConPLex found in paper text by SyntologySyntology: 6 samples, 6 ran (2 instrument-failed) · 0 unverified report
peizhenbai/DrugBAN found in paper text by SyntologySyntology: 4 samples, 4 ran (3 instrument-failed) · 0 unverified report
bowen-gao/DrugCLIP found in paper text by SyntologyNOASSERTIONSyntology: 9 samples, 8 ran (5 instrument-failed) · 1 unverified report
Steven51516/SP-DTI found in paper text by SyntologySyntology: 6 samples, 4 ran (1 instrument-failed) · 2 unverified report
purvavideha/GSDTI found in paper text by SyntologySyntology: 1 sample, 1 ran (0 instrument-failed) · 0 unverified report
lihan97/KPGT found in paper text by SyntologyApache-2.0Syntology: not harvested report
zhangyumeng1sjtu/EPACT found in paper text by SyntologySyntology: 5 samples, 5 ran (3 instrument-failed) · 0 unverified 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 (of which 1 constructed an object rather than computing a result; 17 with no instrument failure: 6 honoured, 3 violated, 8 with no contract checked; 22 where Syntology's instrument failed) · 5 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

6ran · honoured contract
3ran · violated contract
17ran · our draft was wrong
5ran; the contract check could not run
8ran
5unverified

Licence: 24 of the 44 samples are pointer only, meaning Syntology does not serve that copy's text. For 3 of them, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. 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; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

facebookresearch/esm found in paper text by Syntology 13 samples, 11 ran (8 instrument-failed) · 2 unverified
apc in 6 papers esm/modules.py ran · our draft was wrong fingerprinted MIT (permissive) · f6701ae421cbe0d4 · report fixture: signature x:Tensor/4/float · returned Tensor · level recorded 2026-09-24
apply_rotary_pos_emb in 393 papers
census: 14 implementations from 15 papers, 8 distinct outputs across 7 buckets, one shared input per bucket
esm/rotary_embedding.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · 2a127d3ae372d7bd · report fixture: signature x:Tensor/3/float, cos:Tensor/3/float, sin:Tensor/3/float · returned Tensor · level recorded 2026-09-24
gelu in 308 papers
census: 43 implementations from 74 papers, 6 distinct outputs on one shared input
esm/modules.py ran · our draft was wrong fingerprinted MIT (permissive) · 2e7bd6c4ccd1ed68 · report fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-24
read_alignment_lines esm/data.py ran MIT (permissive) · 0e2bb5cf67615e24 · report fixture: signature lines:list/1/str, keep_gaps:bool/0/bool, keep_insertions:bool/0/bool, to_upper:bool/0/bool · returned generator · level recorded 2026-09-24
rotate_half in 424 papers
census: 24 implementations from 96 papers, 4 distinct outputs across 2 buckets, one shared input per bucket this sample: bucket 1 of 2, arg 1: rank 2, kind float, dtype float32
esm/rotary_embedding.py ran · honoured contract fingerprinted MIT (permissive) here; the stored copy is pointer only · 437c7011506995a3 · report fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-22
symmetrize in 19 papers esm/modules.py ran · violated contract fingerprinted MIT (permissive) · b385be9826c4a8b3 · report fixture: signature x:Tensor/3/float · returned Tensor · level recorded, date not recorded
tuple_index in 12 papers esm/inverse_folding/gvp_modules.py ran · our draft was wrong MIT (permissive) here; the stored copy is pointer only · 38735f4bca7f8220 · report fixture: signature x:tuple/1/Tensor, idx:int/0/int · returned tuple · level recorded 2026-09-22
tuple_size esm/inverse_folding/gvp_modules.py ran · our draft was wrong MIT (permissive) · 07d7dab3e137136b · report fixture: signature tp:tuple/1/Tensor · returned tuple · level recorded 2026-09-24
tuple_sum esm/inverse_folding/gvp_modules.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) here; the stored copy is pointer only · d0328e65d2e8a9ec · report fixture: signature tp1:tuple/1/Tensor, tp2:tuple/1/Tensor · returned tuple · level recorded 2026-09-22
utils_softmax esm/multihead_attention.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · 0aca52ff344beec0 · report fixture: signature x:Tensor/2/float, dim:int/0/int, onnx_trace:bool/0/bool · returned Tensor · level recorded 2026-09-24
with_incremental_state in 12 papers esm/multihead_attention.py ran · our draft was wrong MIT (permissive) · ee6aaaeaaec268cb · report fixture: signature cls:callable/0/? · returned type · level recorded 2026-09-24
load_hub_workaround esm/pretrained.py unverified MIT (permissive) · f41f5e2627df3d0f · report
load_regression_hub esm/pretrained.py unverified MIT (permissive) · 37aed79e4a5cbc4f · report
samsledje/ConPLex found in paper text by Syntology 6 samples, 6 ran (2 instrument-failed) · 0 unverified
MarginScheduledLossFunction conplex_dti/model/margin.py ran MIT (permissive) · 1e45ef7532242671 · report fixture: returned MarginScheduledLossFunction · level recorded 2026-09-22
cosine_anneal conplex_dti/model/margin.py ran · honoured contract fingerprinted MIT (permissive) · 3204373aea14cb43 · report fixture: signature M_0:float/0/float, N_epoch:int/0/int, x:int/0/int · returned float64 · level recorded 2026-09-22
cosine_distance_p conplex_dti/model/margin.py ran · our draft was wrong fingerprinted MIT (permissive) · 742f4c7d2a61f054 · report fixture: signature x:Tensor/2/float, y:Tensor/2/float, p:int/0/int · returned Tensor · level recorded 2026-09-22
no_decay conplex_dti/model/margin.py ran · violated contract fingerprinted MIT (permissive) · ae893cdcdb84b2fc · report fixture: signature M_0:float/0/float, N_epoch:int/0/int, x:Tensor/2/float · returned float · level recorded 2026-09-22
sigmoid_cosine_distance_p conplex_dti/model/margin.py ran · our draft was wrong fingerprinted MIT (permissive) · 098cde9f3278ee9e · report fixture: signature x:Tensor/2/float, y:Tensor/2/float, p:int/0/int · returned Tensor · level recorded 2026-09-22
tanh_decay conplex_dti/model/margin.py ran · honoured contract fingerprinted MIT (permissive) · 348c1f85ae6c0f3b · report fixture: signature M_0:float/0/float, N_epoch:int/0/int, x:int/0/int · returned float64 · level recorded 2026-09-22
peizhenbai/DrugBAN found in paper text by Syntology 4 samples, 4 ran (3 instrument-failed) · 0 unverified
binary_cross_entropy in 19 papers models.py ran · our draft was wrong MIT (permissive) · 83a96f15e1b9da0c · report fixture: signature pred_output:Tensor/2/float, labels:Tensor/1/float · returned tuple · level recorded 2026-09-24
cross_entropy_logits models.py ran · our draft was wrong MIT (permissive) · e0224b39d7f883e6 · report fixture: signature linear_output:Tensor/2/float, label:Tensor/1/int, weights:Tensor/1/float · returned tuple · level recorded 2026-09-24
entropy_logits models.py ran · our draft was wrong fingerprinted MIT (permissive) · 4e7445da703222c3 · report fixture: signature linear_output:Tensor/2/float · returned Tensor · level recorded 2026-09-24
integer_label_protein utils.py ran · honoured contract fingerprinted MIT (permissive) · 19e3c8488605a6f7 · report fixture: signature sequence:str/0/str, max_length:int/0/int · returned ndarray · level recorded 2026-09-24
bowen-gao/DrugCLIP found in paper text by Syntology 9 samples, 8 ran (5 instrument-failed) · 1 unverified
calc_re unimol/tasks/drugclip.py ran; the contract check could not run (RAISES) licence not identified · pointer only · 42a4239b82d1373c · report fixture: signature y_true:ndarray/1/int, y_score:ndarray/1/float, ratio_list:list/1/float · returned dict · level recorded 2026-09-24
gaussian in 218 papers
census: 8 implementations from 9 papers, 8 distinct outputs across 4 buckets, one shared input per bucket this sample: bucket 1 of 4, arg 1: rank 2, kind float, dtype float32 · arg 2: rank 2, kind float, dtype float32 · arg 3: rank 2, kind float, dtype float32
unimol/models/unimol.py ran · violated contract no licence file found · pointer only · 294ba20b052bfbc7 · report fixture: returned Tensor · level recorded 2026-09-22
get_time in 20 papers HomoAug/utils/misc.py ran · our draft was wrong licence not identified · pointer only · 885d339055ac8edc · report fixture: signature t:NoneType/0/? · returned str · level recorded 2026-09-24
re_new unimol/tasks/drugclip.py ran; the contract check could not run (RAISES) licence not identified · pointer only · db723afedb949b33 · report fixture: signature y_true:ndarray/1/int, y_score:ndarray/1/float, ratio:float/0/float · returned float64 · level recorded 2026-09-24
scoring unimol/utils/coordinate_model.py ran licence not identified · pointer only · b72ae28227215c62 · report fixture: signature predict_coords:Tensor/2/float, pocket_coords:Tensor/2/float, distance_predict:Tensor/2/float, holo_distance_predict:Tensor/2/float, dist_threshold:float/0/float · returned tuple · level recorded 2026-09-24
silent HomoAug/utils/misc.py ran · our draft was wrong licence not identified · pointer only · d2efa398fa2ce9c3 · report fixture: signature func:callable/0/? · returned function · level recorded 2026-09-24
single_SF_loss unimol/utils/coordinate_model.py ran licence not identified · pointer only · 259731d21f806e98 · report fixture: signature predict_coords:Tensor/2/float, pocket_coords:Tensor/2/float, distance_predict:Tensor/2/float, holo_distance_predict:Tensor/2/float, dist_threshold:float/0/float · returned Tensor · level recorded 2026-09-24
time2str HomoAug/utils/misc.py ran · our draft was wrong fingerprinted licence not identified · pointer only · b811a7f6db0be4b6 · report fixture: signature time_used:float/0/float · returned str · level recorded 2026-09-24
dock_with_gradient unimol/utils/coordinate_model.py unverified licence not identified · pointer only · 4b1455a15813caae · report
Steven51516/SP-DTI found in paper text by Syntology 6 samples, 4 ran (1 instrument-failed) · 2 unverified
load_DDI FlexMol/dataset/loader.py ran licence not identified · pointer only · 0fd30f947d0ed52f · report fixture: signature source:DataFrame/0/?, from_df:bool/0/bool, drug1:str/0/str, drug2:str/0/str, label:str/0/str, delimiter:str/0/str, split_frac:list/1/float, shuffle:bool/0/bool · returned tuple · level recorded 2026-09-24
load_DTI FlexMol/dataset/loader.py ran licence not identified · pointer only · 6c02dd5959fc45bd · report fixture: signature source:DataFrame/0/?, from_df:bool/0/bool, drug:str/0/str, target:str/0/str, label:str/0/str, delimiter:str/0/str, id:bool/0/bool, protein_id:str/0/str, split_frac:list/1/float, shuffle:bool/0/bool · returned tuple · level recorded 2026-09-24
load_PPI FlexMol/dataset/loader.py ran licence not identified · pointer only · 4011eaaa1646ff63 · report fixture: signature source:DataFrame/0/?, from_df:bool/0/bool, protein1:str/0/str, protein2:str/0/str, label:str/0/str, delimiter:str/0/str, id:bool/0/bool, protein1_id:str/0/str, protein2_id:str/0/str, split_frac:list/1/float, shuffle:bool/0/bool · returned tuple · level recorded 2026-09-24
process_configs FlexMol/encoder/FM_config.py ran · our draft was wrong licence not identified · pointer only · afdc6cbac5090332 · report fixture: signature model_class:callable/0/?, featurizer_class:callable/0/?, config:dict/0/? · returned tuple · level recorded 2026-09-24
init_inter_layer FlexMol/encoder/FM_config.py unverified licence not identified · pointer only · c91d6050997b3a65 · report
init_method in 5 papers FlexMol/encoder/FM_config.py unverified licence not identified · pointer only · 474618a56cd8cef4 · report
purvavideha/GSDTI found in paper text by Syntology 1 sample, 1 ran (0 instrument-failed) · 0 unverified
NTXentContrastiveLoss loss.py ran fingerprinted no licence file found · pointer only · 041b01be726ffb14 · report fixture: signature embeddings:Tensor/2/float, sim_matrix:Tensor/2/float · returned Tensor · level recorded 2026-09-24
zhangyumeng1sjtu/EPACT found in paper text by Syntology 5 samples, 5 ran (3 instrument-failed) · 0 unverified
atchley_factor_encoding EPACT/utils/encoding.py ran · honoured contract fingerprinted GPL-3.0 (copyleft) · pointer only · 5c8bd5b3e01c1ca9 · report fixture: signature seq:str/0/str · returned ndarray · level recorded 2026-09-24
bolossum_encoding EPACT/utils/encoding.py ran · our draft was wrong GPL-3.0 (copyleft) · pointer only · 1f7388a004a0c2d6 · report fixture: signature seq:str/0/str, matrix:ndarray/2/float · returned ndarray · level recorded 2026-09-24
load_paired_cdr123_feat_bank EPACT/utils/misc.py ran · our draft was wrong GPL-3.0 (copyleft) · pointer only · 56d67c962efeb5f1 · report fixture: signature tcr_feat_path:str/0/str, num_pmhc:int/0/int · returned dict · level recorded 2026-09-24
load_paired_tcr_feat_bank EPACT/utils/misc.py ran · our draft was wrong GPL-3.0 (copyleft) · pointer only · 25ffeffddf57d169 · report fixture: signature tcr_feat_path:str/0/str, num_pmhc:int/0/int · returned dict · level recorded 2026-09-24
one_hot_encoding in 8 papers EPACT/utils/encoding.py ran · honoured contract fingerprinted GPL-3.0 (copyleft) · pointer only · 776332c73e11eb1a · report fixture: signature seq:str/0/str · returned ndarray · level recorded 2026-09-24

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it. Siblings are assemblies lifted from this paper in the same batch for the same method: alternative readings kept side by side; none replaces or supersedes another.

2 assemblies on this paper: 2 harvested, 0 generated, listed in 1 groups (siblings lifted in one batch form one group).

2 sibling assemblies for LOGICA (harvested), lifted in the same batch on 2026-09-09: alternative readings kept side by side; none replaces or supersedes another.

harvested Assembly for LOGICA (graph method: LOGICA). 1 brick; individually on a fixture: 1 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.

one of 2 siblings

  1. NTXentContrastiveLoss entry · level 1 · ran · 041b01be726ffb14

harvested Assembly for LOGICA (graph method: LOGICA). 6 bricks; individually on a fixture: 6 ran (of which 1 constructed an object rather than computing a result; 4 with no instrument failure: 2 honoured, 1 violated, 1 with no contract checked; 2 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.

one of 2 siblings

  1. MarginScheduledLossFunction entry · level 1 · ran · 1e45ef7532242671
  2. sigmoid_cosine_distance_p metric · level 1 · ran · our draft was wrong · 098cde9f3278ee9e
  3. cosine_anneal scheduler · level 1 · ran · honoured contract · 3204373aea14cb43
  4. cosine_distance_p metric · level 1 · ran · our draft was wrong · 742f4c7d2a61f054
  5. no_decay scheduler · level 1 · ran · violated contract · ae893cdcdb84b2fc
  6. tanh_decay scheduler · level 1 · ran · honoured contract · 348c1f85ae6c0f3b

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2606.18703") returns these assemblies with each brick's role and wiring (how to connect).

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.

Placed on leaderboards by Syntology Syntology

Syntology's extractor, the model Claude Sonnet 4.5, judged this paper's tables to report on 1 leaderboard (a model's judgement, not a result) and has not placed the paper on it: Drug Discovery · BindingDB (refused by a rule: the number the model quoted is not the number printed in the cell it pointed at). What is not shown.

Syntology has checked 8,886 of the 18,637 papers on this site that are newer than the archive (for 3,717 of them no archive leaderboard matched the paper's tables, so there was nothing further to check); 733 were read and have nothing to place (arXiv has no HTML version of the paper, or that version has no tables), 41 could not be read (the extractor's reply could not be parsed), and results from the other 8,977 appear after they are checked.

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