Towards Interpretable Protein Structure Prediction with Sparse Autoencoders

Nithin Parsan, David J. Yang, John J. Yang
3/11/2025
q-bio.BMcs.AIcs.LG

Official code: johnyang101/reticular-sae (17 stars, last commit 2025-03-13).

Abstract

Protein language models have revolutionized structure prediction, but their nonlinear nature obscures how sequence representations inform structure prediction. While sparse autoencoders (SAEs) offer a path to interpretability here by learning linear representations in high-dimensional space, their application has been limited to smaller protein language models unable to perform structure prediction. In this work, we make two key advances: (1) we scale SAEs to ESM2-3B, the base model for ESMFold, enabling mechanistic interpretability of protein structure prediction for the first time, and (2) we adapt Matryoshka SAEs for protein language models, which learn hierarchically organized features by forcing nested groups of latents to reconstruct inputs independently. We demonstrate that our Matryoshka SAEs achieve comparable or better performance than standard architectures. Through comprehensive evaluations, we show that SAEs trained on ESM2-3B significantly outperform those trained on smaller models for both biological concept discovery and contact map prediction. Finally, we present an initial case study demonstrating how our approach enables targeted steering of ESMFold predictions, increasing structure solvent accessibility while fixing the input sequence. To facilitate further investigation by the broader community, we open-source our code, dataset, pretrained models https://github.com/johnyang101/reticular-sae , and visualizer https://sae.reticular.ai .

View on arXivView PDF

Code Implementations(1)

Official repo of "Towards Interpretable Protein Structure Prediction with Sparse Autoencoders" published at ICLR 2025 GEM workshop.

173Shell, PythonMar 10, 20251 years agoNOASSERTION

Similar Papers

Cite this paper

@article{parsan2025towards,
  title  = {Towards Interpretable Protein Structure Prediction with Sparse Autoencoders},
  author = {Nithin Parsan and David J. Yang and John J. Yang},
  year   = {2025},
  eprint = {2503.08764},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.08764v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.08764.svg)](https://codeofpaper.com/paper/2503.08764)

Discussion