-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspectralbio.tex
More file actions
432 lines (380 loc) · 21.8 KB
/
spectralbio.tex
File metadata and controls
432 lines (380 loc) · 21.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
% ============================================================================
% SpectralBio -- Claw4S Conference 2026 (Stanford--Princeton)
% 4-page paper -- Compile: pdflatex spectralbio.tex (run twice for refs)
% ============================================================================
\documentclass[10pt,twocolumn,letterpaper]{article}
% ---------- Encoding & fonts ------------------------------------------------
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{microtype}
% ---------- Page geometry ----------------------------------------------------
\usepackage[
top=0.66in, bottom=0.70in, left=0.60in, right=0.60in,
columnsep=0.24in
]{geometry}
% ---------- Math, tables, graphics -------------------------------------------
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{caption}
% ---------- Hyperlinks -------------------------------------------------------
\usepackage[
colorlinks=true,
linkcolor={blue!70!black},
citecolor={green!50!black},
urlcolor={blue!60!black},
pdftitle={SpectralBio: Covariance-Aware Hidden-State Geometry Adds Recoverable Zero-Shot Pathogenicity Signal Beyond Likelihood},
pdfauthor={Davi Bonetto; Claw4S AI Co-author},
pdfsubject={Claw4S Conference 2026 four-page paper},
pdfkeywords={SpectralBio, BRCA2, TP53, protein language model, covariance, zero-shot variant pathogenicity, ESM2, ESM-1v, reproducibility}
]{hyperref}
% ---------- More helpers -----------------------------------------------------
\usepackage{titlesec}
\usepackage{enumitem}
\usepackage[numbers,sort&compress]{natbib}
% ---------- Compact spacing --------------------------------------------------
\setlength{\parskip}{0.3pt plus 0.2pt}
\setlength{\parindent}{1em}
\setlength{\abovecaptionskip}{3pt}
\setlength{\belowcaptionskip}{1pt}
\setlength{\textfloatsep}{5pt plus 1pt minus 1pt}
\setlength{\floatsep}{4pt plus 1pt minus 1pt}
\setlength{\intextsep}{4pt plus 1pt minus 1pt}
\setlength{\dbltextfloatsep}{5pt plus 1pt minus 1pt}
\setlength{\dblfloatsep}{4pt plus 1pt minus 1pt}
\setlength{\bibsep}{0pt plus 0.2ex}
\setlist{nosep,leftmargin=1.3em}
\titlespacing*{\section}{0pt}{6pt}{3pt}
\titlespacing*{\subsection}{0pt}{4pt}{1.5pt}
\titleformat{\section}{\large\bfseries}{\thesection}{0.6em}{}
\titleformat{\subsection}{\normalsize\bfseries}{\thesubsection}{0.5em}{}
% ---------- Colors & commands ------------------------------------------------
\definecolor{linkblue}{HTML}{2980B9}
\newcommand{\methodname}{\textsc{SpectralBio}}
\newcommand{\claw}{\raisebox{-2pt}{\includegraphics[height=1.1em]{assets/lobster.png}}}
% ============================================================================
\begin{document}
% ===== FULL-WIDTH HEADER =====================================================
\twocolumn[{%
%
% --- Icon ribbon ---
\noindent
{\footnotesize\color{gray}Claw4S Conference 2026~~$\bullet$~~Stanford--Princeton}%
\hfill
{\footnotesize%
\raisebox{-2pt}{\includegraphics[height=10pt]{assets/github_logo.png}}\,%
\href{https://github.com/DaviBonetto/SpectralBio}{\textcolor{linkblue}{Code}}\quad
\raisebox{-2pt}{\includegraphics[height=10pt]{assets/hf_logo.png}}\,%
\href{https://huggingface.co/spaces/DaviBonetto/spectralbio-demo}{\textcolor{linkblue}{Demo}}\quad
\raisebox{-2pt}{\includegraphics[height=10pt]{assets/hf_logo.png}}\,%
\href{https://huggingface.co/datasets/DaviBonetto/spectralbio-clinvar}{\textcolor{linkblue}{Dataset}}%
}%
\par\vspace{1pt}%
\noindent\rule{\textwidth}{0.4pt}%
\vspace{5pt}%
%
% --- Title ---
\begin{center}
{\LARGE\bfseries \methodname{}: Covariance-Aware Hidden-State Geometry\\[3pt]
Adds Recoverable Zero-Shot Pathogenicity Signal\\[3pt]
Beyond Likelihood\par}
\vspace{6pt}
%
% --- Authors ---
{\large
Claw~\claw\textsuperscript{1}\qquad
Davi Bonetto\textsuperscript{2}%
}\par\vspace{3pt}
{\small
\textsuperscript{1}\textit{AI Co-author \& Reproducibility Verifier, Claw4S 2026}\par
\textsuperscript{2}\textit{Independent Researcher, Brazil}\par\vspace{2pt}
\texttt{\href{mailto:[email protected]}{[email protected]}}\quad
\texttt{\href{https://github.com/DaviBonetto}{github.com/DaviBonetto}}%
}\par\vspace{2pt}
{\footnotesize \claw~AI Agent co-author under Claw4S 2026 competition rules.}
\end{center}
\vspace{2pt}%
\noindent\rule{\textwidth}{0.4pt}%
\vspace{3pt}%
%
% --- Abstract ---
\begin{center}
\parbox{0.93\textwidth}{\small
\textbf{Abstract.}\quad
Zero-shot missense scoring with protein language models is usually framed as a
sequence-likelihood problem. \methodname{} tests a narrower alternative:
mutation-induced perturbations in the local full-matrix covariance geometry of
ESM2 hidden states may carry pathogenicity signal that likelihood-only and
eigenvalue-only summaries do not exhaust. The manuscript centers a stronger-baseline
BRCA2 audit, while the public executable replay center remains the TP53 canonical
benchmark. On BRCA2, adding covariance-aware geometry to a five-model ESM-1v
ensemble improves AUC from \textbf{0.6324} to \textbf{0.6890}, for paired gain
\textbf{0.0566}, paired 95\% bootstrap CI \textbf{[0.0131, 0.1063]}, and
empirical permutation \textbf{$p=0.0010$}. On the frozen TP53 canonical benchmark,
the released pair \textbf{$0.55\cdot\text{FrobDist}+0.45\cdot\text{LL Proper}$}
reaches \textbf{AUC=0.7498}, and repeated nested cross-validation places the fixed
released weight on a stable out-of-fold plateau (\textbf{0.7510} vs.\ \textbf{0.7485}
for re-tuned alpha). Across a support-ranked top-25 feasible panel derived from a
15,752-gene ClinVar scan, 10 genes show positive pair-versus-likelihood lower bounds,
2 are clearly negative, and 13 are ambiguous. \methodname{} is therefore a
bounded representational result and reproducibility artifact: covariance-aware
hidden-state geometry can improve a stronger baseline in a benchmark-qualified gene,
survives executable audit on TP53, and behaves as a structured rather than universal
phenomenon.%
}
\end{center}
\vspace{4pt}%
}]% end \twocolumn[{...}]
% ============================================================================
\section{Introduction}
% ============================================================================
Zero-shot missense prediction is usually reduced to sequence likelihood:
a mutation is scored by how surprising the mutant residue appears under a protein
language model (PLM)~\cite{meier2021language}. This framing has been highly useful,
but it leaves open a narrower mechanistic question. A missense change may be only
moderately surprising at the token level while still reorganizing the local geometry
of hidden states. If that geometry carries benchmark-relevant pathogenicity signal,
then scalar likelihood alone is an incomplete readout.
\methodname{} studies this question through local covariance analysis of ESM2 hidden
states. For each mutation, we compare wild-type and mutant covariance matrices in a
window centered on the altered residue and derive full-matrix spectral features that
can be combined with likelihood-based scores. The repository deliberately separates
the manuscript scientific center from the frozen executable replay center. The
flagship scientific result is a stronger-baseline augmentation audit on BRCA2; the
only frozen public replay surface remains TP53; the support-ranked top-25 feasible
panel is the performance-blind breadth surface; and protocol sweep plus BRCA1 failure
analysis define the current boundaries of the method.
The contribution is therefore bounded and multi-surface. On BRCA2, covariance-aware
geometry improves a stronger external ESM-1v baseline. On TP53, the released pair is
stable under nested validation and remains machine-checkable through a frozen public
artifact. Across the support-ranked top-25 panel, outcomes are heterogeneous rather
than uniformly favorable. Together these surfaces support a representational claim
about covariance-aware hidden-state geometry, not a universal pathogenicity or
clinical-deployment claim.
% ============================================================================
\section{Related Work}\label{sec:related}
% ============================================================================
Large PLMs such as ESM-2 have become strong zero-shot baselines for mutation-effect
prediction~\cite{lin2023evolutionary,meier2021language}. ProteinGym broadened this
benchmarking culture by emphasizing explicit comparable evaluation surfaces rather
than anecdotal gene-specific wins~\cite{notin2023proteingym}. In that literature,
the dominant readout remains sequence likelihood or closely related scalar summaries.
Closely related work showed that transformer protein language models encode structural
information beyond surface likelihoods~\cite{rao2021structure}. \methodname{} narrows
that intuition to zero-shot missense scoring and asks whether local full-matrix
covariance perturbations provide usable pathogenicity signal beyond both
likelihood-only and eigenvalue-only summaries.
% ============================================================================
\section{Method}\label{sec:method}
% ============================================================================
\subsection{Evidence Surfaces and Backbone}
The public canonical backbone is ESM2-150M
(\texttt{esm2\_t30\_150M\_UR50D}; 30 layers, hidden size 640) in inference mode
with no fine-tuning~\cite{lin2023evolutionary}. Missense variants are sourced from
ClinVar after binary pathogenic/benign filtering~\cite{landrum2018clinvar}. The
frozen executable replay surface is TP53 ($N=255$; 115 pathogenic, 140 benign),
with an auxiliary bounded transfer surface on a fixed BRCA1 subset ($N=100$) without
retraining. The manuscript-facing flagship surface is a BRCA2 stronger-baseline audit
against a five-model ESM-1v ensemble, complemented by a support-ranked top-25 feasible
panel derived from a 15,752-gene ClinVar scan and by protocol/boundary analyses.
\subsection{Covariance Features and Score Construction}
For a wild-type sequence $\mathbf{S}_{\text{WT}}$ and mutant sequence
$\mathbf{S}_{\text{MUT}}$ at position $p$, we extract a $\pm 40$ residue local window
around the mutation and compute hidden states for each ESM2 layer. For layer
$\ell \in \{1,\dots,L\}$ with hidden matrix
$\mathbf{H}^{(\ell)} \in \mathbb{R}^{w \times d}$, we form residue-level covariance
$\mathbf{C}^{(\ell)} = \mathrm{Cov}(\mathbf{H}^{(\ell)})$. Three features are then
averaged across layers:
\begin{equation}\label{eq:frob}
\text{FrobDist} = \frac{1}{L}\sum_{\ell=1}^{L}
\bigl\|\mathbf{C}^{(\ell)}_{\text{MUT}} - \mathbf{C}^{(\ell)}_{\text{WT}}\bigr\|_F
\end{equation}
\vspace{-10pt}
\begin{equation}\label{eq:trace}
\text{TraceRatio} = \frac{1}{L}\sum_{\ell=1}^{L}
\biggl|\frac{\mathrm{tr}(\mathbf{C}^{(\ell)}_{\text{MUT}})}
{\mathrm{tr}(\mathbf{C}^{(\ell)}_{\text{WT}})} - 1\biggr|
\end{equation}
\vspace{-10pt}
\begin{equation}\label{eq:sps}
\text{SPS-log} = \frac{1}{L}\sum_{\ell=1}^{L}
\bigl\|\log|\boldsymbol{\lambda}^{(\ell)}_{\text{MUT}}|
- \log|\boldsymbol{\lambda}^{(\ell)}_{\text{WT}}|\bigr\|_2^2
\end{equation}
where $\boldsymbol{\lambda}^{(\ell)}$ denotes the covariance eigenvalues.
FrobDist and TraceRatio retain matrix-level information; SPS-log keeps only
eigenvalue summaries.
The likelihood branch uses the masked-language-model score
\begin{equation}\label{eq:ll}
\begin{aligned}
\text{LL Proper}(v)=&\ \log P_{\text{ESM2}}\!(r_p^{\text{wt}} \mid \mathbf{S}_{\text{WT}}) \\
&- \log P_{\text{ESM2}}\!(r_p^{\text{mut}} \mid \mathbf{S}_{\text{WT}})
\end{aligned}
\end{equation}
Within a scored surface, features are MinMax-normalized and combined as
$s=\alpha f_1 + (1-\alpha)f_2$ over an alpha grid with step 0.05. The released
TP53 pair is fixed at $0.55\cdot\text{FrobDist}+0.45\cdot\text{LL Proper}$.
\subsection{Evaluation}
We report AUC-ROC with 95\% nonparametric bootstrap intervals ($B=1000$, seed 42).
Pair-versus-baseline deltas use paired bootstrap resampling of the same variant
indices. TP53 and BRCA2 validation audits use repeated $5\times5$ stratified
cross-validation, comparing the released fixed weight against re-tuned alpha on
held-out folds. The BRCA2 stronger-baseline falsification test permutes covariance
alignment against the ESM-1v branch while holding labels fixed, yielding an empirical
tail probability for the observed gain.
% ============================================================================
\section{Results}\label{sec:results}
% ============================================================================
\subsection{Flagship Stronger-Baseline Result on BRCA2}
The strongest single result in the manuscript is the BRCA2 augmentation audit.
Replacing the internal likelihood comparator with a five-model ESM-1v ensemble makes
the question harder and cleaner: does covariance still add signal against a stronger
external zero-shot baseline? On BRCA2, the answer is yes. The fixed covariance-plus-
ESM-1v score improves AUC from 0.6324 to 0.6890, for paired gain 0.0566 with paired
95\% CI [0.0131, 0.1063]. Under covariance permutation, that gain disappears
($p=0.0010$), arguing that the improvement is not a generic metric artifact. In the
separate benchmark-qualification audit, BRCA2 also reaches fixed nested mean AUC
0.7448 versus 0.6938 for likelihood-only, making it the only current non-anchor gene
that satisfies the repository's benchmark-promotion rule.
\begin{table*}[t]
\centering
\caption{\textbf{Headline evidence surfaces in the final manuscript.} The manuscript
center is BRCA2, the frozen executable center is TP53, and the remaining surfaces test
breadth and boundaries rather than replacing the canonical replay contract.}
\label{tab:evidence}
\vspace{3pt}
\small
\begin{tabular}{@{}p{0.21\textwidth}p{0.30\textwidth}p{0.38\textwidth}@{}}
\toprule
\textbf{Surface} & \textbf{Key Result} & \textbf{Interpretation} \\
\midrule
BRCA2 stronger-baseline audit &
ESM-1v 0.6324 $\rightarrow$ covariance + ESM-1v 0.6890; paired gain 0.0566; CI [0.0131, 0.1063]; $p=0.0010$ &
Flagship evidence that covariance-aware geometry can improve a stronger external baseline \\
TP53 canonical replay &
Released pair AUC 0.7498; nested fixed 0.7510 vs.\ 0.7485 for re-tuned alpha &
Executable validation anchor showing the released score is stable rather than a same-surface spike \\
Support-ranked top-25 panel &
10 positive lower bounds, 2 clearly negative, 13 ambiguous across 10,992 variants &
Performance-blind breadth surface showing structured heterogeneity rather than hand-picked favorable transfer \\
Protocol and BRCA1 boundary analyses &
192 scored configurations; BRCA1 remains structured boundary case; fixed BRCA1 transfer AUC 0.9174 is auxiliary only &
Boundary evidence defining where the method is sensitive, not a co-primary flagship benchmark \\
\bottomrule
\end{tabular}
\end{table*}
\subsection{TP53 Canonical Validation Anchor}
TP53 remains the only frozen public canonical replay surface and the executable
validation anchor of the paper. On that benchmark, the released pair
$0.55\cdot\text{FrobDist}+0.45\cdot\text{LL Proper}$ reaches AUC 0.7498 with
reproducibility delta 0.0. Repeated nested cross-validation places the fixed released
weight on a stable out-of-fold plateau (mean AUC 0.7510) rather than below the
re-tuned alternative (0.7485), which directly addresses the simplest same-surface
overfitting criticism.
The TP53 surface also clarifies what part of covariance is useful. Matrix-level
features outperform eigenvalue-only summaries: TraceRatio reaches 0.6242 and FrobDist
0.6209, while SPS-log reaches 0.5988 and other SPS variants are lower. The best TP53
pair also exceeds either branch alone, with FrobDist and LL Proper combining
mechanistically distinct information: representational displacement and sequence-level
surprisal.
\begin{figure}[t]
\centering
\includegraphics[width=\columnwidth]{assets/tp53_nested_cv_auc_comparison.png}
\caption{%
\textbf{TP53 nested validation stability.}
The fixed released weight ($\alpha=0.55$) matches or slightly exceeds the re-tuned
alternative on held-out folds and remains above either branch alone. This is the
compact visual summary of the claim that the released TP53 pair sits on a stable
out-of-fold plateau rather than a same-surface spike.
}
\label{fig:tp53_nested}
\end{figure}
\subsection{Breadth and Boundary Surfaces}
The manuscript no longer relies on a favorable companion-gene narrative. The
performance-blind breadth surface begins from a 15,752-gene ClinVar scan, applies
predeclared support thresholds, yields 446 threshold-passing genes, and realizes a
support-ranked feasible top-25 panel with 10,992 scored variants. Within that panel,
10 genes show positive pair-versus-likelihood lower confidence bounds, 2 are clearly
negative, and 13 are ambiguous. This is weaker than universal transfer, but stronger
than a hand-built all-positive companion panel because heterogeneity is now explicit.
Boundary analyses make the hard cases interpretable instead of hidden. A 192-configuration
sweep across checkpoints, window radii, layer protocols, and alpha handling shows that
covariance utility is checkpoint-, window-, and layer-sensitive rather than a trivial
150M-only artifact. BRCA1 remains the most visible hard-negative surface, but its
behavior is structured rather than uniformly contradictory. The released BRCA1 transfer
AUC of 0.9174 is kept as bounded auxiliary evidence on a fixed subset without retraining;
it is not promoted to a co-primary manuscript center.
% ============================================================================
\section{Discussion}\label{sec:discussion}
% ============================================================================
Taken together, these results support a bounded representational claim. The strongest
evidence is not that covariance beats every baseline everywhere, but that it survives a
stronger-baseline test on BRCA2, remains executable and auditable on TP53, appears on a
performance-blind breadth surface with mixed outcomes, and behaves under protocol
perturbation as a structured phenomenon rather than a universal law. This is why the
paper is framed as a research reproducibility artifact plus scientific audit surfaces,
not as a universal pathogenicity predictor or clinical deployment recipe.
The role split across surfaces is important. BRCA2 is the manuscript's flagship
scientific result and the clearest direct evidence that covariance-aware hidden-state
geometry can add signal beyond a stronger external baseline. TP53 remains the only
frozen public canonical replay surface and therefore the validation anchor that makes
the claim challengeable. The top-25 panel shows that the paper is not built from
favorable hand-selection, while the protocol sweep and BRCA1 analysis define concrete
boundary conditions. BRCA2 is therefore best understood as the next canonicalization
target under the stated promotion rule, not as an already-frozen replacement for TP53.
% ============================================================================
\section{Reproducibility}
% ============================================================================
The cold-start public replay path is \texttt{uv sync --frozen} followed by
\texttt{uv run spectralbio canonical}, which materializes the frozen TP53 artifact from
bundled inputs and bundled score references. Optional auxiliary validation then runs
\texttt{uv run spectralbio transfer}, \texttt{uv run spectralbio verify}, and
\texttt{python -m uv run python scripts/preflight.py}. The BRCA2 flagship result, the
support-ranked top-25 panel, the protocol sweep, and the BRCA1 failure analysis are
released as public scientific audit surfaces through the repository's paper-facing text
and notebooks rather than through the default CPU-only canonical replay path.
% ============================================================================
\section{Conclusion}
% ============================================================================
\methodname{} shows that full-matrix covariance geometry of PLM hidden states can carry
recoverable zero-shot pathogenicity signal beyond likelihood-only and eigenvalue-only
summaries. The strongest evidence is the BRCA2 stronger-baseline audit, where
covariance-aware augmentation improves a five-model ESM-1v ensemble and survives a
permutation falsification test. TP53 keeps that claim executable and auditable through a
frozen public replay surface, while the support-ranked top-25 panel and the boundary
analyses define where the current method generalizes and where it does not. The paper
therefore advances a bounded, falsifiable representational result with a clear next
canonicalization path rather than a broad generalization claim.
\paragraph{Acknowledgments.}
Conducted under the Claw4S 2026 competition (Stanford--Princeton). Thanks to the
organizers and to the Claw4S AI co-author for reproducibility-focused co-authorship
under the competition rules.
% ============================================================================
\bibliographystyle{plainnat}
\begin{thebibliography}{5}
\scriptsize
\bibitem{lin2023evolutionary}
Lin, Z., Akin, H., Rao, R., et al.\ (2023).
Evolutionary-scale prediction of atomic-level protein structure with a language model.
\textit{Science}, 379(6637), 1123--1130.
\bibitem{meier2021language}
Meier, J., Rao, R., Verkuil, R., et al.\ (2021).
Language models enable zero-shot prediction of the effects of mutations on protein
function.
\textit{NeurIPS}, 34.
\bibitem{landrum2018clinvar}
Landrum, M.\,J., Lee, J.\,M., Benson, M., et al.\ (2018).
ClinVar: improving access to variant interpretations and supporting evidence.
\textit{Nucleic Acids Res.}, 46(D1), D1062--D1067.
\bibitem{rao2021structure}
Rao, R., Meier, J., Sercu, T., Ovchinnikov, S., and Rives, A.\ (2021).
Transformer protein language models are unsupervised structure learners.
\textit{ICLR}.
\bibitem{notin2023proteingym}
Notin, P., Dias, M., Frazer, J., et al.\ (2023).
ProteinGym: Large-scale benchmarks for protein fitness prediction and design.
\textit{NeurIPS}, 36.
\end{thebibliography}
\end{document}