Protein Functional Semantic Alignment via Representation Rectification
Organizations: The University of Sydney · Shanghai Jiao Tong University
Abstract
Protein language models (PLMs) are commonly pretrained with likelihood-based objectives such as masked language modeling or denoising. These objectives capture sequence-level regularities, but can produce representations in which functional signals are entangled with non-functional variation (e.g., sequence identity, compositional bias, and frequent local motifs), creating a readout bottleneck for downstream function prediction. We introduce Functional Semantic Alignment via Representation Rectification (SAVR), a contrastive post-training method using Pfam family co-membership as a homology-guided discrete semantic signal to reshape PLM representations. SAVR reduces directional dominance and redistributes variance across embedding dimensions, decreasing variance concentration, and increasing effective dimensionality of the embedding covariance spectrum. Without observing any task-specific labels during post-training, SAVR achieves state-of-the-art results on Enzyme Commission (EC) benchmarks and competitive results on Gene Ontology (GO) benchmarks under frozen-backbone evaluation. These results suggest that homology-guided contrastive post-training can rectify PLM representation geometry and improve sequence-based protein function prediction.
Figures & tables
| Method | RankMe | Top-10 | |||
|---|---|---|---|---|---|
| ESM-2 | 77.9 | 0.503 | 1.110 | 1.108 | 2.434 |
| ESM-SAVR | 122.5 | 0.372 | 0.749 | 1.110 | 2.775 |
| ProtBert | 15.8 | 0.785 | – | 1.474 | 1.556 |
| PB-SAVR | 113.2 | 0.406 | 0.788 | 1.115 | 2.510 |
| New-392 | Price-149 | |||||
| Method | Precision | Recall | F1 Score | Precision | Recall | F1 Score |
| DEEPre [ 27 ] | – | – | – | 0.042 | 0.040 | 0.039 |
| BLASTp [ 28 ] | – | – | – | 0.508 | 0.375 | 0.385 |
| ECPred [ 29 ] | 0.178 | 0.095 | 0.100 | 0.020 | 0.020 | 0.020 |
| DeepEC [ 30 ] | 0.298 | 0.217 | 0.230 | 0.118 | 0.072 | 0.085 |
| ProtInfer [ 31 ] | 0.409 | 0.284 | 0.309 | 0.243 | 0.138 | 0.166 |
| GO-MF | GO-BP | GO-CC | |||||
| Method | In ference Input | F | AUPR | F | AUPR | F | AUPR |
| TALE [ 33 ] | single sequence | 0.446 | 0.365 | 0.270 | 0.199 | 0.547 | 0.534 |
| ATGO [ 34 ] | single sequence | 0.496 | 0.500 | 0.374 | 0.323 | 0.630 | 0.646 |
| BlastKNN [ 35 ] | retrieval | 0.591 | 0.495 | 0.411 | 0.290 | 0.580 | 0.451 |
| DeepGoZero [ 36 ] | GO prior | 0.608 | 0.552 | 0.397 | 0.329 | 0.616 | 0.597 |
| DeepGoSE [ 37 ] | GO prior | 0.588 | 0.578 | 0.422 | 0.371 | 0.648 | 0.633 |
| Method | RankMe | Top-10 | |
|---|---|---|---|
| Random CL | 10.9 (collapse) | 0.865 | – |
| SI 30% CL | 94.0 | 0.446 | 1.080 |
| SAVR | 122.5 | 0.372 | 0.749 |
| Model | FT | EC | GO-BP | GO-CC | GO-MF |
|---|---|---|---|---|---|
| ESM2 | Freeze | 0.843 | 0.484 | 0.577 | 0.640 |
| LoRA | 0.852 | 0.483 | 0.461 | 0.664 | |
| SES-Adpt | 0.848 | 0.466 | 0.526 | 0.634 | |
| SAVR | 0.865 | 0.518 | 0.568 | 0.687 | |
| ProtBert | Freeze | 0.701 | 0.420 | 0.546 | 0.523 |
| LoRA | 0.764 | 0.245 | 0.316 | 0.161 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | RankMe | Top-10 | |||
|---|---|---|---|---|---|
| ESM-2 | 53.1 | 0.574 | 1.617 | 1.067 | 2.363 |
| ESM-ECT | 93.4 | 0.441 | 1.107 | 1.036 | 2.727 |
| ProtBert | 9.93 | 0.835 | - | 1.799 | 1.528 |
| PB-ECT | 91.0 | 0.456 | 0.991 | 1.091 | 2.459 |
| Method | RankMe | Top-10 | EC New F1 | EC Price F1 | |
|---|---|---|---|---|---|
| Random CL | 10.9 (collapse) | 0.865 | – | 0.317 | 0.217 |
| SI 30% CL | 94.0 | 0.446 | 1.080 | 0.582 | 0.562 |
| SAVR | 122.5 | 0.372 | 0.749 | 0.616 | 0.607 |
| Test set | Reference | 50% | 70% | 90% |
|---|---|---|---|---|
| EC New-392 | SAVR | 38.0 | 12.0 | 4.1 |
| EC train | 53.8 | 25.0 | 9.9 | |
| EC Price-149 | SAVR | 36.9 | 8.7 | 1.3 |
| EC train | 30.9 | 18.1 | 1.3 | |
| GO-BP | SAVR | 41.8 | 18.7 | 7.0 |
| GO-BP train | 50.7 | 34.2 | 21.0 |
| Test set | SAVR post-training overlap | Benchmark train overlap |
|---|---|---|
| EC New | 99.5% | 100.0% |
| EC Price | 100.0% | 100.0% |
| GO-BP | 94.8% | 90.4% |
| GO-CC | 95.0% | 90.2% |
| GO-MF | 95.2% | 87.9% |
Protein Representation Learning
Protein representation learning builds computational features that capture sequence, structure, function, and molecular relationships.
See all 79 papers