arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.21876cs.LGcs.AI
收藏

蛋白质接触已经存在于注意力中:分类雅可比矩阵的单次前向替代方案

Protein contacts are already in the attention: a single-forward-pass alternative to the Categorical Jacobian

Independent Researcher(独立研究员)

Rome Thorstenson

AI总结:

提出通过选择少量注意力头(仅需10个标记蛋白质)平均即可在一次前向传播中恢复蛋白质接触,在无泄漏数据上优于分类雅可比矩阵,并发现该信号依赖于双向预训练。

摘要:

Zhang等人(2024)的分类雅可比矩阵(CJ)通过用每种替代氨基酸扰动每个残基(约19L次前向传播)从语言模型中读取蛋白质接触。我们表明,它重建的信号已经集中在少量注意力头中:平均前K个接触相关头(仅需10个标记蛋白质选择)可在一次前向传播中恢复接触,并在所有定义了CJ的双向模型上,在无泄漏数据上击败CJ,在分布内数据上与之匹配或击败(例外是最小的8M模型和ESM Cambrian上的统计平局)。消融实验将增益归因于标记头选择,而非平均:在匹配的标记预算下,无权重平均与同一头上的监督L1逻辑回归持平,因此无参数平均是选择的最小形式,而非优势来源。我们的主要测试是无泄漏的:在CAMEO分割中,选择和评估均不触及模型可能记忆的数据,头读取在ESM-2-650M上比CJ高出9个百分点(N=29,p<0.001),且模型内差距在更广泛的预训练感知集上跨架构重现。两种方法从分布内Zhang数值到无泄漏数值下降了30-36个百分点,这与大量预训练重叠膨胀了先前数值一致(CAMEO与Zhang的难度差异也有贡献,因此我们将其视为泄漏分量的上界)。我们还引入了表示-CJ,一种针对无掩码LM头架构的雅可比矩阵隐藏状态泛化;表明最优K追踪模型扩散其接触头的程度;并发现两种方法在我们测试的两个因果LM(ProGen2)上都丢失了接触信号,这表明注意力编码的配对结构可能依赖于双向预训练。

英文摘要:

The Categorical Jacobian of Zhang et al. (2024) reads protein contacts from a language model by perturbing every residue with every alternative amino acid, about $19L$ forward passes. We show the signal it reconstructs is already concentrated in a small subset of attention heads: averaging the top-$K$ contact-relevant heads -- selected on as few as 10 labeled proteins, with no fitted per-pair or per-head weights -- recovers contacts in a single forward pass and matches or beats the Categorical Jacobian for every bidirectional model where it is defined (bar the smallest, 8M). Our primary test is leakage-clean: on a CAMEO split where neither selection nor evaluation touches data the models have plausibly memorized, the head readout beats the Categorical Jacobian on ESM-2-650M by +9pp ($N = 29$, $p < 0.001$), with the within-model margin reproducing across architectures. Ablations localize the gain to labeled head selection, not to averaging: at a matched label budget the unweighted mean ties a supervised $L_1$ logistic regression on the same heads. Both methods fall 30-36pp from their in-distribution Zhang numbers to the leakage-clean split, which we read as an upper bound on how much prior numbers reflect pretraining overlap. We additionally introduce representation-CJ, a hidden-state generalization of the Jacobian to architectures without a masked-LM head (the output-head-independent analogue of logit-CJ), agreeing with the Categorical Jacobian where both are defined (per-protein Pearson $r \approx 0.95$); show that the optimal $K$ tracks how diffusely a model spreads its contact heads; and find both methods lose the signal on the two causal LMs we test, suggesting attention-encoded pair structure may depend on bidirectional pretraining.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑