bioRxiv · 10.1101/2023.12.11.571066
A cross-attention transformer encoder for paired sequence data
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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Dens, C., Laukens, K., Meysman, P., Bittremieux, W.. 2023-12-12. A cross-attention transformer encoder for paired sequence data. https://doi.org/10.1101/2023.12.11.571066
Cite the original work for its findings. Save a collection to share your selection of sources.