Transformers trained on proteins can learn to attend to Euclidean distance

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Ellmen, Isaac, Schneider, Constantin, Raybould, Matthew I. J., Deane, Charlotte M.
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912513972502528
author Ellmen, Isaac
Schneider, Constantin
Raybould, Matthew I. J.
Deane, Charlotte M.
author_facet Ellmen, Isaac
Schneider, Constantin
Raybould, Matthew I. J.
Deane, Charlotte M.
contents While conventional Transformers generally operate on sequence data, they can be used in conjunction with structure models, typically SE(3)-invariant or equivariant graph neural networks (GNNs), for 3D applications such as protein structure modelling. These hybrids typically involve either (1) preprocessing/tokenizing structural features as input for Transformers or (2) taking Transformer embeddings and processing them within a structural representation. However, there is evidence that Transformers can learn to process structural information on their own, such as the AlphaFold3 structural diffusion model. In this work we show that Transformers can function independently as structure models when passed linear embeddings of coordinates. We first provide a theoretical explanation for how Transformers can learn to filter attention as a 3D Gaussian with learned variance. We then validate this theory using both simulated 3D points and in the context of masked token prediction for proteins. Finally, we show that pre-training protein Transformer encoders with structure improves performance on a downstream task, yielding better performance than custom structural models. Together, this work provides a basis for using standard Transformers as hybrid structure-language models.
format Preprint
id arxiv_https___arxiv_org_abs_2502_01533
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Transformers trained on proteins can learn to attend to Euclidean distance
Ellmen, Isaac
Schneider, Constantin
Raybould, Matthew I. J.
Deane, Charlotte M.
Machine Learning
Artificial Intelligence
Biomolecules
While conventional Transformers generally operate on sequence data, they can be used in conjunction with structure models, typically SE(3)-invariant or equivariant graph neural networks (GNNs), for 3D applications such as protein structure modelling. These hybrids typically involve either (1) preprocessing/tokenizing structural features as input for Transformers or (2) taking Transformer embeddings and processing them within a structural representation. However, there is evidence that Transformers can learn to process structural information on their own, such as the AlphaFold3 structural diffusion model. In this work we show that Transformers can function independently as structure models when passed linear embeddings of coordinates. We first provide a theoretical explanation for how Transformers can learn to filter attention as a 3D Gaussian with learned variance. We then validate this theory using both simulated 3D points and in the context of masked token prediction for proteins. Finally, we show that pre-training protein Transformer encoders with structure improves performance on a downstream task, yielding better performance than custom structural models. Together, this work provides a basis for using standard Transformers as hybrid structure-language models.
title Transformers trained on proteins can learn to attend to Euclidean distance
topic Machine Learning
Artificial Intelligence
Biomolecules
url https://arxiv.org/abs/2502.01533