Paper commentary
ProSST: Protein Language Modeling with Quantized Structure and Disentangled Attention
ProSST encodes protein structure as tokens and models them alongside residues
- Problem Structure-aware protein language models encode each residue from only its neighbors in sequence, which can miss small local differences such as catalytic sites or binding pockets. Standard Transformers also have no explicit way to relate residue tokens to structure tokens.
- Method ProSST turns each residue's local 3D neighborhood into a discrete token using a GVP encoder and k-means codebook. Its disentangled attention scores residue and structure tokens as linked but separate streams, replacing self-attention.
- Results On ProteinGYM zero-shot prediction, ProSST reaches a Spearman correlation of 0.504, compared to 0.457 for SaProt.
Why sequence-only models miss structure
Most protein language models learn from residue sequences alone, yet a protein's function follows from its three-dimensional structure. Structure predictors such as AlphaFold and RoseTTAFold made large structure sets available, so pre-training with structure became practical. Existing structure-aware models, SaProt among them, convert each structure into discrete tokens with Foldseek and feed those tokens into a Transformer.
The authors raise two objections to that pipeline. Foldseek describes a residue using only its previous and next residues, which can miss small local differences such as catalytic sites or binding pockets. A standard Transformer also has no explicit way to model how residue tokens relate to structure tokens.
ProSST addresses both objections with a structure quantizer and a Transformer whose attention is disentangled. The quantizer uses a GVP encoder over each residue's neighborhood, so it sees more of the local micro-environment than Foldseek's view. The attention module replaces self-attention, so residue and structure tokens are modeled as linked but distinct streams.
From local structure to a structure token
The unit of representation is the local structure, which describes the environment of one residue. The authors build it as a graph whose edges connect each residue to its top-40 nearest neighbors by Cα distance. Nodes carry only structural information with no residue type, so the encoder sees shape alone.
The GVP encoder is trained as the encoder half of an auto-encoder, with a position-wise MLP decoder on top. Training perturbs Cα coordinates with 3D Gaussian noise and applies Brownian motion on rotation matrices, following RF-Diffusion, and the model must recover the clean structure. After training on CATH, the decoder is discarded and the mean-pooled encoder output serves as the structure representation.
For a whole protein, the representation is the average of the per-node encoder outputs, \( r = \frac{1}{l}\sum_{i=1}^{l}\pi_\theta(g_i) \), where l is the number of nodes.
To build the codebook, the trained encoder embeds local structures from the residues of CATH, roughly 5 million of them. k-means then picks K centroids in that latent space, and the centroids form the codebook. Each new local structure is assigned to its nearest centroid, and that centroid's index becomes its structure token. K is the structure vocabulary size, and the default setting is 2048.
Each residue's local graph is embedded and quantized in turn, so a protein becomes a sequence of structure tokens with values from 1 to K. The result is one structure token per residue, aligned with the residue sequence.
Splitting the attention score into residue, structure and position parts
The authors base the design on DeBERTa's disentangled attention and extend it to structure. Each residue i carries three items: its residue hidden state, its local structure embedding, and a relative position embedding for the token at position j. Expanding the cross product between residue i and residue j gives nine pairwise components.
Four of the nine components pair structure or position with structure or position, and the authors drop them because they carry no residue information.
Each type uses its own query and key projections, built from the residue, structure or position representation. Relative position is indexed by a clipped distance δ(i,j), which equals i − j + L_max inside the window, saturates at 0 or 2L_max − 1 outside it, and uses L_max = 1024. The attention score is the sum of five products: \[ \hat{A}_{i,j} = Q^r_i (K^r_j)^\top + Q^r_i (K^s_j)^\top + Q^r_i (K^p_{\delta(i,j)})^\top + K^r_j (Q^s_i)^\top + K^r_j (Q^p_{\delta(j,i)})^\top \]
The scores are scaled before the softmax, and the residue values are weighted by the result to give the residue hidden state R^o for the next layer. This module replaces self-attention inside the Transformer stack.
What the masked objective asks the model to predict
Pre-training uses masked language modeling on 18.8 million protein structures, with the structure token sequence supplied as context. Of the residues, 15% of indices are selected; each selected residue becomes a mask token with 80% probability, a random residue with 10%, and stays unchanged otherwise.
The loss is the negative log-likelihood of each selected residue, given the partially noised sequence and the un-noised structure tokens. Because the structure tokens are not noised, the model learns how residues depend on structure as well as on other residues. Pre-training validation perplexity serves as the common yardstick for the ablations that follow.
Zero-shot mutation ranking on ProteinGYM
Zero-shot scoring runs on ProteinGYM, with AlphaFold2 supplying the structures of the wild-type sequences. The baselines cover sequence-based models, a sequence-structure model (SaProt), inverse-folding models, evolutionary models and ensemble models. Models are compared on Spearman rank correlation ρs, NDCG and Top-recall as printed in Table 1.
ProSST's Spearman rank correlation is 0.504, compared to 0.457 for SaProt, GEMME and Trancepiton-EVE. On NDCG the order changes: ProSST scored 0.777, while EVE reached 0.781 and Trancepiton-EVE 0.786.
The authors ran a non-parametric bootstrap with 10,000 bootstrap samples over ProteinGYM proteins to estimate the standard errors of the Spearman differences. They report every standard error below 0.01. Because ProSST is not first on NDCG, the broad claim of leading all baselines rests on the Spearman column.
The authors also split ProteinGYM by function and report their best results on the stability, binding and expression subsets. They single out stability and tie it to the known benefit of structure information for that property. A version of ProSST without structure scores close to other sequence-based models, which the authors read as evidence that the gain comes from structure modeling rather than a stronger backbone.
Supervised transfer to function tasks
Four downstream tasks are fine-tuned: thermostability, Metal Ion Binding, DeepLoc and GO annotation in the MF, BP and CC settings.
On Metal Ion Binding it reached 76.37 (±0.02), compared to 75.75 for SaProt-650M. On thermostability its Spearman rank correlation was 0.726, compared to 0.724 for SaProt-650M.
ProSST has the best result in four of the six settings, and it ties SaProt-650M on GO-MF at 0.682. ESM-GearNet scored 0.516 on GO-BP and 0.507 on GO-CC, compared to 0.492 and 0.501 for ProSST.
The authors read the pattern as showing that sequence-structure models, ESM-GearNet, SaProt and ProSST, beat their counterparts. They argue that ProSST integrates sequence and structure information more effectively than SaProt does.
How the structure vocabulary size and quantizer matter
The authors vary K over 4096, 2048, 1024, 512, 128, 20, 1 and 0, where K=0 removes the structure token sequence. K=2048 gives the best DeepLoc accuracy at 94.32 (±0.10), the highest Spearman at 0.504, and the highest NDCG and Top-recall in the sweep. K=4096 gives the lowest pre-training perplexity at 8.880, so the best perplexity does not coincide with the best downstream score.
With K=1 and K=0 the results are close, for example 89.48 (±0.24) and 89.77 (±0.26) DeepLoc accuracy. The authors read this as the gain not coming from extra disentangled-attention parameters. The exception to all K>0 models beating K=0 is DeepLoc accuracy, where K=1 is slightly lower than K=0.
Perplexity curves show that convergence improves as K grows.
Swapping in Foldseek tokens gives 93.08 (±0.22) DeepLoc accuracy and perplexity 10.049, compared to 94.32 (±0.10) and 9.033 for K=2048. DSSP gives 93.16 (±0.16) accuracy, perplexity 10.009 and ρs 0.439, compared to 0.504 for K=2048. The authors conclude that their quantizer performs better than both under the same network architecture.
Which attention terms carry the gain
Removing a single term from the full model, which has perplexity 9.033, changes perplexity by different amounts. Removing the position-to-residue term changes perplexity least, to 9.173, while removing the residue-to-structure term raises it to 12.142. Removing the residue-to-position term gives 9.410, and removing the structure-to-residue term gives 9.355.
Removing positional encoding is the most damaging case, with perplexity 13.885 and ρs 0.095. Replacing the attention with standard self-attention, while keeping structure tokens, gives ρs 0.401 and DeepLoc accuracy 90.37 (±0.21), compared to 0.504 and 94.32 (±0.10) for ProSST.
The authors read the removals as showing that each term in the attention formulation is needed. A removal that hurts performance supports keeping that term, but it doesn't show the term alone drives the gain.
Limitations
The authors state that building and encoding local structures is computationally heavy. They plan to speed up the protein structure quantization process in future work.
ProSST needs both structure and sequence data to derive its representations. The authors note that structure data is scarcer than sequence data and point to a later section for ways around this.
The zero-shot scores rely on AlphaFold2 structures of wild-type sequences, and the paper doesn't report a test of how structure prediction errors affect them. The authors plan larger structure datasets and a larger parameter count to improve performance.
Paper info
- Authors
- Li, Mingchen, Tan, Yang, Ma, Xinzhu, Zhong, Bozitao, Yu, Huiqun, Zhou, Ziyi, Ouyang, Wanli, Zhou, Bingxin, Tan, Pan, Hong, Liang
- Venue
- Advances in Neural Information Processing Systems · Published
- First published
- 2024-12-16
- Added
- 2026-11-25
- DOI
- 10.52202/079017-1126
- Original paper terms
- Check in the original ↗
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Li, Mingchen, Tan, Yang, Ma, Xinzhu, Zhong, Bozitao, Yu, Huiqun, Zhou, Ziyi, Ouyang, Wanli, Zhou, Bingxin, Tan, Pan, Hong, Liang (2024). ProSST: Protein Language Modeling with Quantized Structure and Disentangled Attention. Advances in Neural Information Processing Systems. https://doi.org/10.52202/079017-1126
BibTeX
@article{mingchen2024prosst,
title = {{ProSST: Protein Language Modeling with Quantized Structure and Disentangled Attention}},
author = {Li, Mingchen and Tan, Yang and Ma, Xinzhu and Zhong, Bozitao and Yu, Huiqun and Zhou, Ziyi and Ouyang, Wanli and Zhou, Bingxin and Tan, Pan and Hong, Liang},
year = {2024},
journal = {Advances in Neural Information Processing Systems},
doi = {10.52202/079017-1126},
url = {https://papers.nips.cc/paper_files/paper/2024/hash/3ed57b293db0aab7cc30c44f45262348-Abstract-Conference.html}
}