Correcting the Dropout-LayerNorm Expectation Gap Improves Protein Structure Models
Organizations: Department of Statistics, University of Oxford · Recursion
Abstract
Although , here we show that is not equal to . Accordingly, the pattern of a Dropout layer followed by a LayerNorm, which is common to many AlphaFold2-based protein structure predictors, produces a systematic bias at evaluation time that can hamper performance. To address this, we derive a closed-form, first-order correction for this gap, which we call a Dropout-LayerNorm Correction (DLC). DLC empirically matches the performance boost of large Monte Carlo dropout ensembles. We evaluate its effect across nine protein structure models (ESMFold, OpenFold, ABB3, FlashABB, Ibex, NbForge, Genie1, Genie2, Genie3) on both paired and single-chain antibody structures as well as one protein-ligand docking model (QuickBind). The correction is computationally negligible and improves accuracy in all ten models tested (), with a modest but consistent improvement in ESMFold and OpenFold and a substantial improvement in antibody-specific models. This work identifies the mathematical consequence of chaining together Dropout and LayerNorm and provides a free, principled adjustment to improve the evaluation performance of many pretrained models. Code to reproduce the experiments is available at https://github.com/oxpig/DLC.
Figures & tables
| Model | Condition | Full VHH | Impr. | CDR-H3 | Impr. |
|---|---|---|---|---|---|
| NBB2 (1 member) † | – | 1.241 | – | 2.374 | – |
| NBB2 (4-member ensemble) † | – | 1.189 | – | 2.202 | – |
| Ibex (1 member) ∗ | Raw | 1.123 | – | 2.057 | – |
| +DLC | 1.101 | +2.0% | 1.998 | +2.9% | |
| Ibex (8-member ensemble) ∗ | Raw | 1.099 | – | 2.011 | – |
| +DLC | 1.097 | +0.2% | 2.000 | +0.6% |
| Variable region | CDR-H3 | ||||||
|---|---|---|---|---|---|---|---|
| Model | Condition | MAE | Pearson | Spearman | MAE | Pearson | Spearman |
| ABB3 | Raw | 4.233 | 12.525 | ||||
| +DLC | 3.291 | 10.400 | |||||
| FlashABB | Raw | 4.641 | 11.002 | ||||
| +DLC | 3.579 | 10.035 | |||||
| Ibex (paired) ∗ | Raw | 3.271 | 11.997 | ||||
| Sites | Uncorrected loss | +DLC-corrected loss | Impr. | |
|---|---|---|---|---|
| Genie1 | 10 | 1.1444 | 1.1097 | |
| Genie2 | 16 | 0.8372 | 0.8145 | |
| Genie3 | 26 | 0.8064 | 0.7955 |
| Uncorrected RMSD threshold | Raw | +DLC | Impr. | Improved | ||
|---|---|---|---|---|---|---|
| Å | 70 | 1.332 | 1.313 | +1.40% | 46/70 | |
| Å | 120 | 1.815 | 1.787 | +1.54% | 76/120 | |
| Å | 204 | 2.668 | 2.655 | +0.50% | 119/204 | |
| None (full set) | 427 | 9.384 | 9.343 | +0.43% | 240/427 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Condition | Whole-Fv | Impr. | CDR-H3 | Impr. |
|---|---|---|---|---|---|
| ABB2 (1 member) † | – | 1.110 | – | 2.968 | – |
| ABB2 (4-member ensemble) † | – | 1.095 | – | 2.862 | – |
| ABB3 | Raw | 1.176 | – | 2.861 | – |
| +DLC | 1.019 | +13.3% | 2.741 | +4.2% | |
| FlashABB | Raw | 1.156 | – | 2.695 | – |
| +DLC | 1.029 | +10.9% | 2.656 | +1.5% |
| Model | Condition | Whole-Fv | Impr. | CDR-H3 | Impr. |
|---|---|---|---|---|---|
| Ibex (1 member) ∗ | Raw | 0.9070 | – | 1.479 | – |
| Both sites | 0.8800 | +3.0% | 1.419 | +4.1% | |
| Both sites + plm_in | 0.8793 | +3.1% | 1.411 | +4.6% | |
| Ibex (8-member ensemble) ∗ | Raw | 0.8926 | – | 1.431 | – |
| Both sites | 0.8786 | +1.6% | 1.408 | +1.6% | |
| Both sites + plm_in | 0.8760 | +1.9% | 1.388 | +3.0% |
| Model | Condition | Whole-domain | Impr. | CDR-H3 | Impr. |
|---|---|---|---|---|---|
| ESMFold (3 recycles) ∗ | Raw | 1.835 | – | 4.186 | – |
| +DLC | 1.827 | +0.4% | 4.160 | +0.6% | |
| OpenFold (3 recycles) | Raw | 1.721 | – | 3.654 | – |
| +DLC | 1.716 | +0.3% | 3.639 | +0.4% |
Protein Structure Prediction
Protein structure prediction uses computational models to infer three-dimensional protein shapes and complexes from sequences and other biological data.
See all 40 papers