TL;DR
Protein language models (pLMs) learn the 3D physics of folding purely by reading 1D strings of amino acids, yet how they store this knowledge internally remains largely a black box. By pairing Sparse Autoencoders with local 3D geometric descriptors, the authors show that many hidden features inside pLMs correspond directly to fine-grained structural shapes—like specific turns, twists, and spatial contacts—rather than just broad biological categories. This provides an automated microscope to interpret mysterious "dark matter" proteins where traditional database labels don't exist.
What Problem Does This Paper Address?
Imagine learning how to build a clock just by reading part numbers—never seeing a blueprint. That is essentially what protein language models like ESM-2 do: trained on raw sequences of amino acids (called residues), they somehow figure out how proteins fold into 3D shapes.
To understand what these models learn, researchers use Sparse Autoencoders (SAEs)—tools from mechanistic interpretability that untangle messy, overlapping neural activations into clean, single-concept "features." However, naming those features at scale is tough. Existing pipelines look at which proteins activate a feature and cross-reference biological databases (like InterPro) or ask an LLM to summarize the literature.
The catch? Database labels are often protein-wide and coarse, missing the localized, residue-by-residue physical shapes the model is actually tracking. Plus, if a feature fires on an unstudied protein, database lookups come up empty. The authors ask: can we automatically explain SAE features at the individual residue level using pure 3D geometry?
Methods
The authors build an automated, residue-level annotation pipeline, focusing primarily on the 6-layer ESM-2 (8M) model (with additional checks on ESM-2 35M and AMPLIFY 120M).
- Disentangling Activations (Standard): They train standard ReLU Sparse Autoencoders on each layer of ESM-2 8M, expanding its 320-dimensional internal state into 10,240 sparse features ($32\times$ overcomplete).
- Geometric Feature Extraction (Novel Integration): For proteins that strongly trigger an SAE feature, they pull the 3D $\text{C}_{\alpha}$ backbone (the central carbon trace of the protein). Around each residue, they slide a 21-residue window and compute a 44-dimensional vector capturing local curvature, torsion (twist), planarity, spatial contacts, and basic chemical priors.
- Predicting Firing Patterns: For each SAE feature, they train a Gradient Boosted Machine (GBM) to predict exact residue activations from that 44D geometric vector. They compare this against three baselines: residue-level InterPro database domains, local sequence motifs (via MEME), and simple sequence position.
- Statistical Rigor: Every annotation is tested against a permutation null (shuffling active labels within each protein) with Benjamini–Hochberg false-discovery rate (FDR) correction ($q < 0.05$).
Datasets
- SwissProt & AlphaFold DB: Used to train the SAEs and run inference across 50,000 sequence-diverse proteins (clustered at 30% identity so large protein families don't dominate), plus a disjoint 10,000-protein held-out test set. Corresponding 3D structures are pulled from AlphaFold DB.
- InterPro: Aggregated biological database used for domain/family baseline labels.
- NMPFams: A dataset of 50,000 unannotated metagenomic protein families (spanning ~10M sequences from environmental microbes/viruses) used to test whether geometric explanations generalize to biological "dark matter."
- Experimental PDB subset: A small set of experimentally solved structures used in the appendix to validate that AlphaFold structures aren't introducing circularity.
Key Insights and Ideas
- Geometry sees between the lines of biology's dictionary: Multiple SAE features often get slapped with the exact same database label (e.g., an ATPase domain). Geometric analysis reveals the pLM isn't being redundant—it is carving that single functional domain into distinct structural sub-pieces, such as helix caps, central cores, and connecting loops.
- Zero-shot translation for alien proteins: Because geometry relies on physical shape rather than human-curated literature, an SAE feature's geometric meaning transfers seamlessly to unannotated metagenomic proteins where database pipelines fail.
- Features aren't just passive observers—they steer structure: When you dial down ("ablate") a contact-related SAE feature inside the network, the model's internal residue-contact map predictably shifts in the exact geometric direction associated with that feature.
Key Results
- Broad Discovery Coverage: Across ESM-2 8M layers, 86.5% to 94.6% of SAE features show statistically significant alignment ($q < 0.05$) with at least one method. Local geometry provides the widest single-method discovery (up to 94.5% in Layer 6, vs. ~56.7% for protein-level InterPro).
- Strong Predictive Power: Moving beyond mere statistical significance to high predictive accuracy on held-out proteins, 18.29% of geometrically annotated features in Layer 4 achieve a strong PR-AUC $> 0.3$ (with 6.05% exceeding PR-AUC $> 0.6$, compared to a random baseline of ~0.01). Similar patterns hold in ESM-2 35M and AMPLIFY 120M.
- Sub-domain Resolution: Depending on the layer, 59.2% to 77.5% of SAE features that share an identical InterPro residue label are geometrically distinguishable (cosine similarity $< 0.5$ between their learned geometric importance vectors).
- Metagenomic Transfer: In Layer 6, SwissProt-trained geometric models accurately predict residue activations (median PR-AUC $> 0.5$) across 16.22% of tested metagenomic families—annotating roughly 1.59 million uncharacterized sequences.
- Causal Ablations: Across 200 top features and 947 proteins, zeroing out target geometric SAE features shifts ESM-2's predicted contact maps $1.17\times$ more (median) than matched-sparsity control features.
Limitations and Future Work
- Model Scale & Readouts: Compute constraints limited the main experiments to the tiny 8M-parameter ESM-2, which lacks an explicit 3D "folding head." Thus, causal interventions were measured on 2D contact maps rather than full 3D atomic coordinates.
- Predicted Structures: Relying on AlphaFold DB introduces potential circularity (using one AI's structural predictions to interpret another's), and metagenomic structure predictions generally suffer from lower confidence (pLDDT).
- Future Directions: The authors release GeoPedia, an interactive web explorer for biologists, and suggest scaling this pipeline to massive structure-aware pLMs. Ultimately, geometric SAE features could help identify structural "seams" for engineering chimeric proteins or enable "geometric steering" to design novel folds from scratch.
Summary updated