arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.17994cs.CLcs.LG
收藏

InnerThoughts:解耦大型语言模型中的表示与预测

InnerThoughts: Disentangling Representations and Predictions in Large Language Models

Huawei Noah’s Ark Lab(华为诺亚方舟实验室);McGill University(麦吉尔大学)

Didier Chételat, Joseph Cotnareanu, Rylee Thompson, Yingxue Zhang, Mark Coates

AI总结:

提出独立小型神经网络预测器模块,利用LLM所有层的隐藏状态进行预测,解耦表示与预测能力,在困难基准上以极低计算成本实现媲美监督微调的性能提升。

摘要:

大型语言模型(LLMs)包含大量事实知识,通常通过多项选择问答提示来引出。在内部,此类模型通过多个 transformer 层处理提示,在其隐藏状态中构建出问题的不同表示。然而最终,仅使用与最后一层和 token 位置相对应的隐藏状态来预测答案标签。在此项工作中,我们提出在训练问题集合上学习一个独立的小型神经网络预测器模块,该模块以最后时间位置上所有层的隐藏状态作为输入并输出预测结果。实际上,该框架将 LLMs 的表示能力与其预测能力解耦。在一系列困难基准测试上,我们的方法取得了显著的性能提升,有时可与监督微调程序相媲美,但计算成本仅为其一小部分。

英文摘要:

Large language models (LLMs) contain substantial factual knowledge which is commonly elicited by multiple-choice question-answering prompts. Internally, such models process the prompt through multiple transformer layers, building varying representations of the problem within its hidden states. Ultimately, however, only the hidden state corresponding to the final layer and token position are used to predict the answer label. In this work, we propose instead to learn a small separate neural network predictor module on a collection of training questions, that take the hidden states from all the layers at the last temporal position as input and outputs predictions. In effect, such a framework disentangles the representational abilities of LLMs from their predictive abilities. On a collection of hard benchmarks, our method achieves considerable improvements in performance, sometimes comparable to supervised fine-tuning procedures, but at a fraction of the computational cost.

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

↑