potentialpaper

Nonlinearity Leaks Position Through the Mean Pool: A Mechanistic Account of Aggregation in Protein Representations

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:23 UTC · 287ced256513 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "lV50HfW0cL"
- }
- ],
- "title": "Nonlinearity Leaks Position Through the Mean Pool: A Mechanistic Account of Aggregation in Protein Representations",
- "authors": [],
- "abstract": "Mean pooling of protein language model (PLM) representations is a linear, permutation-invariant operation that is position-blind; the standard fix is attention pooling, which reweights residues non-uniformly. We start from a puzzle: on antimicrobial peptide activity data, a per-token MLP followed by \\emph{ordinary} mean pooling --- still permutation-invariant with respect to token order --- matches attention pooling and far exceeds linear mean pooling. We identify the mechanism: when a nonlinearity is applied to embeddings that encode position, it creates token--position cross-terms that survive averaging, so the pooled vector becomes sensitive to which residue sits where. We confirm this causally in a controlled synthetic model: a nonlinear-then-mean representation solves a position-relational task perfectly, but \\textbf{scrambling residue order collapses its accuracy from 1.000 to 0.507} (chance), while linear mean pooling is unaffected in both directions. A scaling analysis shows the effect operates at the $\\sim$20-symbol amino-acid alphabet ($\\Delta = +0.062$ over chance with an adequately powered probe, recovering 13\\% of the oracle's signal), diminishing only as the vocabulary grows far past biological scale. On GRAMPA, a multi-pathogen peptide dataset, the same signature appears: a per-token MLP and attention pooling both recover a pathogen-selectivity component ($\\rho = 0.148 \\pm 0.024$, 10-seed CI $[0.11, 0.18]$ for attention) that linear mean pooling ($\\rho = 0.00$) and a hand-crafted physicochemical baseline ($\\rho = -0.02$, CI includes zero) both miss, and this translates to a multi-seed-confirmed doubling of downstream predictive $R^2$ ($0.33 \\to 0.56$ for \\textit{E.\\ coli}, 5-seed, disjoint intervals). We situate the mechanism as a domain-specific instance of the Deep Sets representational result, and are explicit that the causal test is established synthetically; the corresponding real-embedding scrambling experiment is specified as the primary follow-up. The reframing is practical: the operative choice is not mean-vs-attention but linear-vs-nonlinear aggregation of position-carrying embeddings.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "7074e3a8-e7c9-4bfa-b309-6918327ba823"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Nonlinearity Leaks Position Through the Mean Pool: A Mechanistic Account of Aggregation in Protein Representations",
+ "authors": [],
+ "abstract": "Mean pooling of protein language model (PLM) representations is a linear, permutation-invariant operation that is position-blind; the standard fix is attention pooling, which reweights residues non-uniformly. We start from a puzzle: on antimicrobial peptide activity data, a per-token MLP followed by \\emph{ordinary} mean pooling --- still permutation-invariant with respect to token order --- matches attention pooling and far exceeds linear mean pooling. We identify the mechanism: when a nonlinearity is applied to embeddings that encode position, it creates token--position cross-terms that survive averaging, so the pooled vector becomes sensitive to which residue sits where. We confirm this causally in a controlled synthetic model: a nonlinear-then-mean representation solves a position-relational task perfectly, but \\textbf{scrambling residue order collapses its accuracy from 1.000 to 0.507} (chance), while linear mean pooling is unaffected in both directions. A scaling analysis shows the effect operates at the $\\sim$20-symbol amino-acid alphabet ($\\Delta = +0.062$ over chance with an adequately powered probe, recovering 13\\% of the oracle's signal), diminishing only as the vocabulary grows far past biological scale. On GRAMPA, a multi-pathogen peptide dataset, the same signature appears: a per-token MLP and attention pooling both recover a pathogen-selectivity component ($\\rho = 0.148 \\pm 0.024$, 10-seed CI $[0.11, 0.18]$ for attention) that linear mean pooling ($\\rho = 0.00$) and a hand-crafted physicochemical baseline ($\\rho = -0.02$, CI includes zero) both miss, and this translates to a multi-seed-confirmed doubling of downstream predictive $R^2$ ($0.33 \\to 0.56$ for \\textit{E.\\ coli}, 5-seed, disjoint intervals). We situate the mechanism as a domain-specific instance of the Deep Sets representational result, and are explicit that the causal test is established synthetically; the corresponding real-embedding scrambling experiment is specified as the primary follow-up. The reframing is practical: the operative choice is not mean-vs-attention but linear-vs-nonlinear aggregation of position-carrying embeddings.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}