The standard workflow in protein machine learning has reached a consensus: take a massive protein language model (pLM), feed it a sequence, and extract a high-dimensional vector for every amino acid. However, a problem arises when we need to represent the entire protein as a single point in space for tasks like predicting solubility, binding affinity, or enzyme class.
The most common solution is Global Average Pooling (GAP)—simply taking the mean of all residue vectors. While computationally cheap, a growing body of research suggests that this "averaging" is a significant bottleneck that "washes out" the very biological signals we aim to capture.
The Information Dilution Problem
When we average the embeddings of a 500-residue protein, we treat every amino acid as equally important to the protein’s global identity. In reality, protein function is often driven by a tiny fraction of residues—the active site of an enzyme or the binding pocket of a receptor.
Maria Littmann and Burkhard Rost have shown that this compression obscures localized functional motifs, particularly in long sequences with multiple distinct domains Embeddings from deep learning transfer GO annotations beyond homology. By the time the vectors are averaged, the specific signal from a critical motif is diluted by the "noise" of hundreds of structural scaffold residues.
This dilution is especially problematic for detecting subtle changes. Howard Chang and James Zou found that global averaging makes it difficult to detect "immune escape" mutations, where a change in just one or two residues allows a virus to evade an antibody Predicting Immune Escape with Pretrained Protein Language Model Embeddings.
Beyond the Mean
To solve this, researchers are moving toward "granular aggregation" methods that preserve the distribution and locality of information.
Probabilistic Representations Instead of a single average vector, Kishan KC and Feng Cui proposed ProtGauss, which represents protein features as multivariate Gaussian distributions Machine learning predicts nucleosome binding modes of transcription factors. By capturing the variance and covariance of properties along the chain, the model can distinguish between "end-binders" and "middle-binders" on a nucleosome—a distinction that a simple mean would likely collapse.
Attention-Based Pooling If some residues are more important than others, the model should learn to focus on them. Andrew T. McNutt and David Ryan Koes developed SPRINT, which uses multi-head attention pooling to aggregate residue signals Scaling Structure Aware Virtual Screening to Billions of Molecules with SPRINT. This allows the model to "pick out" the residues forming a binding pocket from the rest of the sequence, enabling ultra-fast virtual screening across billions of molecules.
Learned Bottlenecks and Geometry Søren Hauberg and Nicki Skafte Detlefsen argue that the latent space of proteins is not a flat Euclidean plane but a curved Riemannian manifold Learning meaningful representations of protein sequences. They demonstrate that simple mean-pooling fails to capture the complex global dependencies required for high-fidelity summaries, suggesting that learned bottleneck aggregations are necessary to preserve biological relationships.
Function Prediction as Object Detection
Perhaps the most radical departure from global averaging is treating protein function prediction not as a classification task, but as a detection task.
In Interpretable Enzyme Function Prediction via Residue-Level Detection, Yang Zhao and colleagues introduced ProtDETR. Instead of squashing the protein into one vector, they use learnable "functional queries" that scan the sequence for specific active sites. This approach bypasses the global pooling bottleneck entirely, allowing the model to identify functional residues with high precision and providing a clear, interpretable reason for why a protein is assigned a specific function.
Why It Works
The shift toward granular aggregation works because it respects the hierarchical nature of biology. Proteins are not bags of amino acids; they are structured chains where local geometry dictates global behavior. By moving away from simple averaging, models like ProteinNPT Pascal Notin can maintain the residue-level spatial information and fine-grained dependencies necessary for precise protein design and fitness prediction ProteinNPT: Improving Protein Property Prediction and Design with Non-Parametric Transformers.
As Alex X. Lu and Alan M. Moses suggest, the success of a model often depends less on the scale of pretraining and more on how effectively we preserve the biophysical nuances of the sequence Random Embeddings and Linear Regression can Predict Protein Function. Granular aggregation ensures that the most important "words" in the protein language are never lost in the noise of the "sentence."