henhaobio
Sign in

bioRxivBioinformaticsPreprint

A cross-attention transformer encoder for paired sequence data

Ceder DensiD, Kris LaukensiD, Pieter MeysmaniD, Wout BittremieuxiD

PDFDOI

Abstract

Transformer-based sequence encoding architectures are often limited to a single-sequence input while some tasks require a multi-sequence input. For example, the peptide-MHCII binding prediction task where the input consists of two protein sequences. Current workarounds to solve this input-type mismatch lack resemblance with the biological mechanisms behind the task. As a solution, we propose a novel cross-attention transformer encoder that creates a cross-attended embedding of both input sequences. We compare its classification performance on the peptide-MHCII binding prediction task to a baseline logistic regression model and a default transformer encoder. Finally, we make visualizations of the attention layers to show how the different models learn different patterns.

Citations
1

Reproducibility ledger

Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.

Sign in to file a reproducibility report.

Similarity Map
SelectedSame fieldCross-field
THISWang '25Nambiar '20Cheng '21Kushwaha '24Lapin '25Gurvich '24
63% semantic matchBioinformatics
Wenbo Wang, Cong Qi, Zhi Wei·bioRxiv·Dec 2, 2025· 1 citations