arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.03389cs.LG

基于令牌图的改进句子表示

Towards Improved Sentence Representations using Token Graphs

University of Bonn(波恩大学);Lamarr Institute for Machine Learning and Artificial Intelligence(拉马尔人工智能与机器学习研究所);University of Cambridge(剑桥大学);Ben-Gurion University of the Negev(贝内-约尔大学)

Krishna Sri Ipsit Mantri, Carola-Bibiane Schönlieb, Zorah Lähner, Moshe Eliasof

AI总结:

GLOT通过构建令牌图并利用图神经网络提升句子表示的鲁棒性和效率,适用于冻结LLM的高效适应。

摘要:

从大型语言模型(LLM)的令牌级输出中获得单一向量表示是几乎所有句子级任务的关键步骤。然而,标准的池化方法如均值或最大聚合将令牌视为独立集合,丢弃了模型自注意力层所捕捉的丰富关系结构,使其容易受到信号稀释的影响。为了解决这个问题,我们引入了GLOT,一个轻量级、结构感知的池化模块,将池化重新定义为关系学习后跟聚合。在冻结的LLM输出上操作,GLOT首先构建一个潜在的令牌相似性图,然后用图神经网络细化令牌表示,最后用读出层进行聚合。实验表明,我们的方法在鲁棒性和效率上都很突出:在诊断压力测试中,当90%的令牌是随机干扰项时,GLOT保持超过97%的准确率,而基线方法则崩溃。此外,它在GLUE和MTEB等基准测试中与最先进的技术竞争,仅使用20倍更少的可训练参数,并将训练时间比参数高效微调方法加快了超过100倍。通过对其表达能力的理论分析,我们的工作表明,学习令牌图是一种强大的范式,用于冻结LLM的有效适应。我们的代码已发布在https://github.com/ipsitmantri/GLOT。

英文摘要:

Obtaining a single-vector representation from a Large Language Model's (LLM) token-level outputs is a critical step for nearly all sentence-level tasks. However, standard pooling methods like mean or max aggregation treat tokens as an independent set, discarding the rich relational structure captured by the model's self-attention layers and making them susceptible to signal dilution. To address this, we introduce GLOT, a lightweight, structure-aware pooling module that reframes pooling as relational learning followed by aggregation. Operating on the outputs of a frozen LLM, GLOT first constructs a latent token-similarity graph, then refines token representations with a graph neural network, and finally aggregates them using a readout layer. Experimentally, our approach is remarkably robust and efficient: on a diagnostic stress test where 90% of tokens are random distractors, GLOT maintains over 97% accuracy while baseline methods collapse. Furthermore, it is competitive with state-of-the-art techniques on benchmarks like GLUE and MTEB with 20x fewer trainable parameters and speeds up the training time by over 100x compared with parameter-efficient fine-tuning methods. Supported by a theoretical analysis of its expressive power, our work shows that learning over token graphs is a powerful paradigm for the efficient adaptation of frozen LLMs. Our code is published at https://github.com/ipsitmantri/GLOT.

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

↑