arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.03850cs.LGcs.NE
收藏

无坍缩原型读出层用于Transformer编码器

Collapse-Free Prototype Readout Layer for Transformer Encoders

Institute of Energy and Resources, Charles Darwin University(能源与资源研究所,查尔斯·达尔文大学)

Giansalvo Cirrincione, Rahul Ranjeev Kumar

AI总结:

DDCL-Attention通过学习压缩机制替代传统池化方法,提供紧凑的token总结,避免原型坍塌并提升稳定性,适用于多任务场景。

摘要:

DDCL-Attention是一种基于原型的读出层,用于Transformer编码器,替代简单的池化方法,如均值池化或类token。它使用少量全局原型向量,并通过软概率匹配将token分配给它们,在线性复杂度内生成紧凑的token总结。该方法有三个主要优势:首先,通过精确分解训练损失为重构项和多样性项,避免原型坍塌,确保原型保持独特;其次,其与编码器的联合训练在实际时间尺度条件下表现出稳定性,利用Tikhonov的奇异摄动理论和显式学习率约束;第三,相同框架支持三种用途:最终的读出层、可微的代码本扩展VQ-VAE以及层次化文档压缩器。在四个数据集上的实验验证了理论预测:损失分解精确成立,原型分离在稳定性条件满足时按预期增长,且代码本达到完全利用,优于标准硬向量量化。此外,对轨道碎片分类的额外研究显示,该方法不仅适用于标准NLP和视觉任务,还适用于科学表格数据。

英文摘要:

DDCL-Attention is a prototype-based readout layer for transformer encoders that replaces simple pooling methods, such as mean pooling or class tokens, with a learned compression mechanism. It uses a small set of global prototype vectors and assigns tokens to them through soft probabilistic matching, producing compact token summaries at linear complexity in sequence length. The method offers three main advantages. First, it avoids prototype collapse through an exact decomposition of the training loss into a reconstruction term and a diversity term, ensuring that prototypes remain distinct. Second, its joint training with the encoder is shown to be stable under a practical timescale condition, using Tikhonov's singular perturbation theory and explicit learning-rate constraints. Third, the same framework supports three uses: a final readout layer, a differentiable codebook extending VQ-VAE, and a hierarchical document compressor. Experiments on four datasets confirm the theoretical predictions: the loss decomposition holds exactly, prototype separation grows as expected when the stability condition is met, and the codebook reaches full utilization, outperforming standard hard vector quantization. An additional study on orbital debris classification shows that the method also applies beyond standard NLP and vision tasks, including scientific tabular data.

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

↑