bioRxiv · 10.1101/2020.06.26.174417
BERTology Meets Biology: Interpreting Attention in Protein Language Models
Abstract
Transformer architectures have proven to learn useful representations for protein classification and generation tasks. However, these representations present challenges in interpretability. Through the lens of attention, we analyze the inner workings of the Transformer and explore how the model discerns structural and functional properties of proteins. We show that attention (1) captures the folding structure of proteins, connecting amino acids that are far apart in the underlying sequence, but spatially close in the three-dimensional structure, (2) targets binding sites, a key functional component of proteins, and (3) focuses on progressively more complex biophysical properties with increasing layer depth. We also present a three-dimensional visualization of the interaction between attention and protein structure. Our findings align with known biological processes and provide a tool to aid discovery in protein engineering and synthetic biology. The code for visualization and analysis is available at https://github.com/salesforce/provis.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Vig, J., Madani, A., Varshney, L. R., Xiong, C., Socher, R., Rajani, N. F.. 2020-06-28. BERTology Meets Biology: Interpreting Attention in Protein Language Models. https://doi.org/10.1101/2020.06.26.174417
Cite the original work for its findings. Save a collection to share your selection of sources.