Correcting the Dropout-LayerNorm Expectation Gap Improves Protein Structure Models
Isaac Ellmen, David Errington, Matthew I. J. Raybould, Charlotte M. Deane
Abstract
Although E[dropout(x)] = x, here we show that E[LayerNorm(dropout(x))] is not equal to LayerNorm(x). 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 (0.3\%-13\%), 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.
Create a lesson
Related papers
Atom-level Protein Representation Learning Improves Protein Structure Prediction
Shared title terminology · Taewon Kim, Hyosoon Jang, Hyunjin Seo et al.
Confident and Wrong: Structure Confidence Is a Poor Selection Filter for Protein Function
Shared title terminology · Eric LoPrete, Pavle Jeremić
Ablating Design Choices for Protein Ensemble Generators Across Structural Regimes
Shared title terminology · Eoin Quinn, Oliver Bent
Predicting protein structures at any folding stage from sequence
Shared title terminology · Lisheng Zhang, Qingsong Li, Zinan Xie et al.
Accurate structural modelling of protein-glycan recognition with GlycoWeave
Shared title terminology · Huifeng Zhao, Jintu Zhang, Yifei Xiao et al.
Is Retrieval All You Need? Assessment and Emergence of Novelty in Protein Structure Generation
Shared title terminology · Tongyue Xu, Yijie Zhang, Mutian He et al.