arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.06245cs.CL
收藏

基于本征维度的大语言模型学习范式比较研究

A Comparative Study of Learning Paradigms in Large Language Models via Intrinsic Dimension

University of Virginia(弗吉尼亚大学)

Saahith Janapati, Yangfeng Ji

AI总结:

该研究以本征维度为工具,比较监督微调与上下文学习两种大语言模型学习范式对隐藏表示的影响,发现上下文学习诱导的本征维度更高,对应嵌入空间中更高维的表示流形。

摘要:

大语言模型(LLMs)在自然语言任务上的性能可通过监督微调(SFT)和上下文学习(ICL)两种机制不同的方式得到提升。监督微调通过最小化训练数据上的损失更新模型权重,而上下文学习则利用嵌入提示词中的任务示例完成学习,且不改变模型参数。本研究使用本征维度(Intrinsic Dimension, ID)探究这些学习范式对大语言模型隐藏表示的影响。我们用ID估计大语言模型执行特定自然语言任务时提取出的表示之间的自由度数量。我们首先探究了大语言模型表示的ID在SFT过程中的演变规律,以及其在ICL中如何随示例数量变化。随后我们比较了SFT和ICL诱导产生的ID,发现与SFT相比,ICL始终诱导出更高的ID,这表明ICL过程中生成的表示处于嵌入空间中更高维度的流形上。

英文摘要:

The performance of Large Language Models (LLMs) on natural language tasks can be improved through both supervised fine-tuning (SFT) and in-context learning (ICL), which operate via distinct mechanisms. Supervised fine-tuning updates the model's weights by minimizing loss on training data, whereas in-context learning leverages task demonstrations embedded in the prompt, without changing the model's parameters. This study investigates the effects of these learning paradigms on the hidden representations of LLMs using Intrinsic Dimension (ID). We use ID to estimate the number of degrees of freedom between representations extracted from LLMs as they perform specific natural language tasks. We first explore how the ID of LLM representations evolves during SFT and how it varies due to the number of demonstrations in ICL. We then compare the IDs induced by SFT and ICL and find that ICL consistently induces a higher ID compared to SFT, suggesting that representations generated during ICL reside in higher dimensional manifolds in the embedding space.

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

↑