Abstract
Protein language models (PLMs) have become widely adopted as general-purpose models, demonstrating strong performance in protein engineering and de novo design. Like large language models (LLMs), they are typically trained as deep transformers with next-token or masked-token prediction objectives on massive sequence corpora and are scaled by increasing model depth. Recent work on autoregressive LLMs has identified the Curse of Depth: later layers contribute little to the final output predictions. These findings naturally raise the question of whether a similar depth inefficiency also appears in PLMs, where many widely used models are not autoregressive, and some are multimodal, accepting both protein sequence and structure as input. In this work, we present a depth analysis of six popular PLMs across model families and scales, spanning three training objectives, namely autoregressive, masked, and diffusion, and quantify how layer contributions evolve with depth using a unified set of probing- and perturbation-based measurements. Across all models, we observe consistent depth-dependent patterns that extend prior findings on LLMs: later layers depend less on earlier computations and mainly refine the final output distribution, and these effects are increasingly pronounced in deeper models. Taken together, our results suggest that PLMs exhibit a form of depth inefficiency, motivating future work on more depth-efficient architectures and training methods.
Introduction
In the field of artificial intelligence, the prevailing design philosophy has long favored increasing model depth to enhance capability. By stacking more Transformer layers, models generally capture more complex patterns. However, recent investigations into autoregressive Large Language Models (LLMs) have identified a phenomenon termed the "Curse of Depth." This refers to a point of diminishing returns where the final layers of a network perform minimal substantive computation, primarily refining or "polishing" the outputs generated by earlier layers.
Protein Language Models (PLMs), which are trained on amino acid sequences to facilitate protein engineering and drug discovery, share many architectural similarities with LLMs. However, they often employ different training objectives—such as Masked Language Modeling or Diffusion—and may incorporate structural data. This study investigates whether the Curse of Depth is a universal property of deep Transformers that persists in the biological domain or if it is specific to natural language processing.
Methodology and Data
To investigate depth inefficiency, researchers performed a "mechanistic autopsy" on six major PLM families, including ESM2, ESM3, and ProGen2. The analysis utilized several key datasets: UniRef50 provided input prompts for internal probing, while ProteinGym served as the primary benchmark for downstream evaluation. ProteinGym consists of 217 standardized assays covering millions of mutated sequences, measuring how well a model's zero-shot predictions correlate with experimental measurements of protein fitness.
The analysis employed three primary techniques:
- Propagated Layer Skipping: Specific layers were bypassed during the forward pass to measure the resulting disruption in subsequent layers and the final output. If skipping a layer late in the network has negligible impact on the final prediction, that layer is likely redundant.
- LogitLens (Internal Probing): The model's final output head was applied to intermediate layers to observe their "premature" predictions. The KL divergence between these intermediate guesses and the final output was measured to track the convergence of the model's internal state.
- Layer-wise Downstream Evaluation: The predictive power of individual layers was tested on real-world tasks, specifically predicting the functional effects of mutations.
Results: The Curse of Depth in PLMs
The study revealed several consistent patterns across the analyzed models, reinforcing the existence of the Curse of Depth in protein modeling.
The Refinement Phase and Scale
A clear functional division emerged across almost all models. Early layers focus on building fundamental features, while middle layers handle complex integration. The final 25–50% of layers typically provide only incremental refinement. This is evidenced by the "Output Change Norm" decreasing significantly for later layers, particularly in larger models. In the ESM2-15B variant, a substantial portion of the second half of the model can be skipped with minimal impact on the final prediction.
Performance Plateaus and Internal Convergence
On the ProteinGym benchmark, models like ProGen2-xlarge reached near-peak performance by the halfway point, with additional layers offering only marginal improvements in Spearman correlation. Furthermore, for ESM2 models larger than 150M parameters, the KL divergence between intermediate layers and the final output drops steadily. In many large variants, the most likely amino acid predicted by a middle layer matches the final layer's prediction over 60-80% of the time, suggesting that the model has essentially "made up its mind" long before the final layer.
Exceptions and Biological Context
Interestingly, the multimodal ESM3 model showed a different profile, with the earliest layers being the least impactful and significant gains occurring much later in the stack. This suggests that multimodal training might shift the computational bottleneck. Overall, the findings suggest that the Curse of Depth may be an inherent property of the residual stream in Transformers, regardless of whether the data is words or amino acids.
Discussion and Future Work
The identification of depth inefficiency in PLMs suggests significant opportunities for optimizing model architectures. The observation that later layers often perform redundant refinement tasks argues for the development of Adaptive Compute methods, where models can "exit" early when confidence is high. Additionally, layer-wise scaling strategies could lead to more efficient training and inference, reducing the environmental and financial costs associated with large-scale protein modeling.
While this study included multimodal models, it primarily focused on the sequence input pathway. Future work should extend these analyses to the structural pathways of multimodal models and the latest "all-atom" co-generation architectures to see if the Curse of Depth persists in those contexts.
Summary updated