arXiv:2508.12212cs.LGcs.AI2025-08被引 1

通过两阶段压缩提升蛋白质大模型的上下文学习能力

ProtTeX-CC: Activating In-Context Learning in Protein LLM via Two-Stage Instruction Compression

  • 在残基层面融合序列与结构信息,输入长度减半
  • 将示范样本压缩至平均16个词元,整体提示长度压缩93.68%
  • 无需改动主模型,仅新增少量参数即可显著提升泛化性能

近期的蛋白质大语言模型(如ProtTeX)将侧链氨基酸和骨架结构均表示为残基长度的离散词元序列。该设计虽实现多模态信息统一建模,但存在两大局限:(1) 序列与结构词元拼接使蛋白长度翻倍,并破坏模态间的残基级对齐;(2) 受限于训练语料与有限上下文窗口,ProtTeX通常仅训练单蛋白输入,难以支持上下文学习(ICL),制约泛化能力。为此,我们提出ProtTeX-CC,一种轻量级两阶段压缩框架,以增强ProtTeX在少样本场景下的表现。首先设计联合嵌入压缩机制,在残基层级融合序列与结构表征,有效将输入长度减半且不损失性能。其次提出自压缩模块,将每个完整示范聚合至最后几个语言词元的隐空间中,使示范平均长度从751词元降至不足16词元。相比原版ProtTeX,本方法在16样本设定下总提示长度压缩率达约93.68%。无需修改主干模型,ProtTeX-CC仅通过基于PEFT的调优引入少量额外参数(联合压缩阶段),以及单个可训练投影层(自压缩阶段)。在蛋白质功能预测任务上的大量实验表明,ProtTeX-CC在域内基准上性能提升2%,在域外数据集上更是获得11%的性能增益。

原文摘要 · Abstract (English)

Recent advances in protein large language models, such as ProtTeX, represent both side-chain amino acids and backbone structure as discrete token sequences of residue length. While this design enables unified modeling of multimodal protein information, it suffers from two major limitations: (1) The concatenation of sequence and structure tokens approximately doubles the protein length and breaks the intrinsic residue-level alignment between modalities. (2) Constrained by the training corpus and limited context window, ProtTeX is typically trained on single-protein inputs, rendering it incompatible with in-context learning (ICL) and thus limiting its generalization capability. To address these issues, we propose ProtTeX-CC, a lightweight two-stage compression framework designed to enhance ProtTeX under few-shot settings. We first design a joint embedding compression mechanism that fuses sequence and structure representations at the residue level, effectively reducing the protein input length by half without sacrificing performance. Then we propose a self-compression module that aggregates each full demonstration into the latent space of the last few linguistic tokens, reducing the average demonstration length from 751 tokens to less than 16 tokens. Compared to the original ProtTeX, our self-compression approach achieves a compression ratio of approximately 93.68% in the total prompt length under the 16-shot setting. Without modifying the backbone model, ProtTeX-CC introduces only a small number of additional parameters through PEFT-based tuning in the joint embedding compression stage and a single trainable projection layer in the self-compression stage. Extensive experiments on protein function prediction show that ProtTeX-CC improves performance on the in-domain benchmark by 2%, and generalizes well to the out-of-domain dataset with a performance gain of 11%.

蛋白质模型上下文学习压缩技术

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。