Beyond Hard Tokens: Predictive Memory for Multimodal Protein Generation
Organizations: Shanghai Jiao Tong University · Fudan University · Shanghai Innovation Institute
Abstract
Multimodal protein language models unify sequence and discrete structural tokens via iterative masked decoding, offering a promising paradigm for joint protein design. However, standard decoders rely on a memoryless mask reset at each iteration: only a sparse subset of newly committed hard tokens is carried forward, while all remaining unresolved sites are reset to an identical [MASK] embedding. In open-ended co-generation where neither modality provides a fixed external anchor, this stateless transition limits single-step refinement depth and deprives both tracks of stable cross-step soft anchors, leading to slow convergence or degenerative repetitive collapse. Observing that uncommitted predictions evolve with pronounced temporal coherence rather than erratic noise, we introduce Predictive Memory (PredMem), a training-free self-conditioning recurrence that carries these soft beliefs across steps. At each step, PredMem summarizes raw logits into a probability-weighted Top- expectation embedding at every residue and affinely interpolates it into eligible masked inputs on the next step at zero extra denoiser cost. Across DPLM-2, DPLM-2.1, and ESM3, PredMem raises unconditional sequence-structure co-generation success by 3.6, 17.7, and 48.7 percentage points, respectively, while improving the quality-diversity trade-off and suppressing repetitive mode collapse. Controlled diagnostics show that these gains stem primarily from early trajectory stabilization in unanchored cross-modal co-evolution rather than extra compute or simple entropy reduction, establishing PredMem as an efficient inference mechanism for multimodal discrete generation.
Figures & tables
| Quality | Diversity | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Model | Method | Success (%) | pLDDT | scTM | scRMSD | #Clusters | |||||
| DPLM-2 | Vanilla | 29.80 | 82.00 | 0.852 | 4.95 | 78.0 | |||||
| PredMem | 33.40 | +3.60 | 82.47 | +0.47 | 0.852 | +0.000 | 4.79 | -0.16 | 81.0 | +3.0 | |
| CFG | 31.88 | 82.42 | 0.859 | 4.42 | 73.4 | ||||||
| CFG+PredMem | 34.20 | +2.32 | 82.99 | +0.57 | 0.862 | +0.003 | 4.37 | -0.05 | 74.6 | +1.2 | |
| DPLM-2.1 | Vanilla | 28.88 | 84.91 | 0.836 | 5.17 | 92.6 | |||||
| Quality | Coverage | Diversity | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Model | Method | Success (%) | scTM | scRMSD | Solved / 24 | #Clusters | |||||
| DPLM-2 | Vanilla | 20.60 | 0.666 | 4.95 | 16.8 | 37.8 | |||||
| PredMem | 21.71 | +1.11 | 0.668 | +0.002 | 4.95 | +0.00 | 17.0 | +0.2 | 41.0 | +3.2 | |
| CFG | 20.48 | 0.661 | 5.03 | 16.2 | 37.6 | ||||||
| CFG+PredMem | 21.25 | +0.77 | 0.669 | +0.008 | 4.95 | -0.08 | 16.4 | +0.2 | 38.2 | +0.6 | |
| DPLM-2.1 | Vanilla | 18.33 | 0.659 | 5.38 | 15.2 | 30.2 | |||||
| ESM3 | DPLM-2.1 | |||
|---|---|---|---|---|
| Method | Success (%) | Time (s) | Success (%) | Time (s) |
| Vanilla | 33.4 | 17.86 | 28.9 | 24.83 |
| Vanilla | 34.5 | 35.74 | 30.4 | 49.59 |
| PredMem+shift | 48.8 | — | 35.1 | — |
| PredMem+floor | 72.5 | — | 36.0 | — |
| PredMem | 82.1 | 18.42 | 46.6 | 28.02 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | Arm / dataset | DPLM-2 | DPLM-2.1 | ESM3 |
|---|---|---|---|---|
| Order | All | synchronous | synchronous | synchronous |
| Steps | All | 500 | 500 | |
| Unmasking | All | stochastic | stochastic | stochastic |
| Remasking | All | enabled | enabled | enabled |
| Temperature parameter | All | |||
| Memory | Vanilla / CFG |
| Setting | Arm / dataset | DPLM-2 | DPLM-2.1 | ESM3 |
|---|---|---|---|---|
| Order | All | synchronous | synchronous | synchronous |
| Steps | All | 500 | ||
| Unmasking | All | stochastic | stochastic | random |
| Remasking | All | enabled | enabled | enabled |
| Temperature parameter | All | |||
| Memory | Vanilla / CFG |
| Setting | Arm / dataset | DPLM-2 | DPLM-2.1 | ESM3 |
|---|---|---|---|---|
| Steps | Default | 100 | 100 | 1 |
| Unmasking | Default | deterministic | deterministic | deterministic |
| Temperature | Default | 0 | 0 | 0 |
| Remasking | Default | enabled | enabled | disabled |
| Steps | Vanilla | 8 | 8 | |
| Unmasking | Vanilla | random | deterministic | stochastic |
| Setting | Arm / dataset | DPLM-2 | DPLM-2.1 | ESM3 |
|---|---|---|---|---|
| Steps | Default | 100 | 100 | 8 |
| Unmasking | Default | deterministic | deterministic | random |
| Temperature parameter | Default | 0 | 0 | |
| Remasking | Default | enabled | enabled | disabled |
| Steps | Vanilla | 1 | 8 | 8 |
| Unmasking | Vanilla | random | stochastic | deterministic |
| Model | Method | Success (%) | pLDDT | scTM | scRMSD | Success clusters |
|---|---|---|---|---|---|---|
| DPLM-2 | Vanilla | |||||
| DPLM-2 | PredMem | |||||
| DPLM-2 | CFG | |||||
| DPLM-2 | CFG+PredMem | |||||
| DPLM-2.1 | Vanilla | |||||
| DPLM-2.1 | PredMem |
| Structure prediction | Inverse folding | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| CAMEO2022 | PDB Date Split | CAMEO2022 | PDB Date Split | ||||||
| Model | Method | RMSD | TM-score | RMSD | TM-score | scTM | AAR (%) | scTM | AAR (%) |
| DPLM-2 | Default | ||||||||
| DPLM-2 | Vanilla | ||||||||
| DPLM-2 | PredMem | ||||||||
| DPLM-2.1 | Default | ||||||||
| Model | Dataset ( ) | (External Ref.) | (Internal Self-Consistency) | Paired Gap [95% CI] |
|---|---|---|---|---|
| DPLM-2.1 | CAMEO2022 | |||
| PDB Date Split | ||||
| ESM3 | CAMEO2022 | |||
| PDB Date Split |
| Model | Read interface | Success (%) | pLDDT | scTM | scRMSD (Å) | Clusters |
|---|---|---|---|---|---|---|
| DPLM-2 | Pre-LN | |||||
| Post-LN | ||||||
| DPLM-2.1 | Pre-LN | |||||
| Post-LN |
| Model | Arm | Success (%) | vs. Vanilla | vs. PredMem |
|---|---|---|---|---|
| ESM3 | Vanilla | — | ||
| Vanilla | ||||
| PredMem+shift | ||||
| PredMem+floor | ||||
| PredMem | — | |||
| DPLM-2.1 | Vanilla | — |
| Model | Stage / Modality | Top-1 changed (%) | Full KL (nats) | Unexpl. ratio (%) |
|---|---|---|---|---|
| DPLM-2.1 | Early / Sequence | 63.74 | 0.1721 | 84.38 |
| Early / Structure | 94.28 | 0.4541 | 79.43 | |
| Mid-early / Sequence | 2.57 | 0.0034 | 64.76 | |
| Mid-early / Structure | 6.38 | 0.0038 | 90.63 | |
| DPLM-2 | Early / Sequence | 25.45 | 0.0104 | 96.79 |
| Early / Structure | 29.62 | 0.0207 | 98.49 |
Protein Language Models
Protein language models learn patterns in amino-acid sequences to predict protein properties, interpret mutations, and design new proteins.
See all 80 papers