lamm-mit/protein_secondary_structure_from_PDB
Viewer • Updated • 126k • 756 • 2
How to use knoxel/conformalesm-paper-starter with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("knoxel/conformalesm-paper-starter", dtype="auto")Cites: Lin et al. 2022, "Evolutionary Scale Prediction of Atomic Level Protein Structure with a Language Model", Science.
This is the first work to apply conformal prediction and temperature scaling to protein language models (PLMs). While 10+ papers apply these techniques to general LLMs (2023-2024), zero have ported them to the protein domain.
| Method | Accuracy | ECE | Avg Set Size (α=0.10) | Coverage |
|---|---|---|---|---|
| Baseline ESM-2 | 61.3% | 0.147 | — | — |
| + Temperature Scaling | 61.3% | 0.058 (-61%) | — | — |
| + Conformal Prediction | — | — | 1.79 | 89.9% |
| + Class-Conditional Conformal | — | — | 1.63 | 89.9% |
Per-class (α=0.10, class-conditional):
pip install transformers datasets torch scikit-learn
python conformalesm_full.py
No GPU required. Runs in ~5 minutes on CPU.
lamm-mit/protein_secondary_structure_from_PDB (125K sequences)