arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.11422cs.CLcs.AIcs.LG
收藏

大型语言模型是有偏的强化学习者

Large Language Models are Biased Reinforcement Learners

Binghamton University(宾汉姆顿大学);École Normale Supérieure(巴黎高等师范学院)

William M. Hayes, Nicolas Yax, Stefano Palminteri

AI总结:

本文通过多老虎机任务、提示操控、计算认知建模与隐藏层分析,发现LLM存在相对价值编码偏差,并由纳入相对价值的简单RL机制解释。

摘要:

上下文学习使大型语言模型(LLM)能够执行多种任务,包括在简单的老虎机任务中学习作出奖励最大化的选择。鉴于它们有可能被用作(自主)决策智能体,理解这些模型如何执行此类强化学习(RL)任务,以及它们在多大程度上容易受到偏差影响,具有重要意义。在人类中已有大量文献证明,一个结果的价值取决于它与其他局部结果的比较;受这一事实启发,本研究聚焦于类似的价值编码偏差是否也适用于LLM对奖励结果的编码方式。在多个老虎机任务和模型上的实验结果表明,LLM表现出相对价值偏差的行为特征。在提示中加入显式的结果比较会对表现产生相反的影响:它增强了在已训练选择集上的最大化行为,但损害了向新选择集的泛化。计算认知建模显示,LLM的行为可由一个在结果编码阶段纳入相对价值的简单RL算法很好地描述。最后,我们提供了初步证据,表明观察到的偏差并不局限于经过微调的LLM,并且在原始预训练模型的最终隐藏层激活中可以检测到相对价值加工。这些发现对LLM在决策应用中的使用具有重要意义。

英文摘要:

In-context learning enables large language models (LLMs) to perform a variety of tasks, including learning to make reward-maximizing choices in simple bandit tasks. Given their potential use as (autonomous) decision-making agents, it is important to understand how these models perform such reinforcement learning (RL) tasks and the extent to which they are susceptible to biases. Motivated by the fact that, in humans, it has been widely documented that the value of an outcome depends on how it compares to other local outcomes, the present study focuses on whether similar value encoding biases apply to how LLMs encode rewarding outcomes. Results from experiments with multiple bandit tasks and models show that LLMs exhibit behavioral signatures of a relative value bias. Adding explicit outcome comparisons to the prompt produces opposing effects on performance, enhancing maximization in trained choice sets but impairing generalization to new choice sets. Computational cognitive modeling reveals that LLM behavior is well-described by a simple RL algorithm that incorporates relative values at the outcome encoding stage. Lastly, we present preliminary evidence that the observed biases are not limited to fine-tuned LLMs, and that relative value processing is detectable in the final hidden layer activations of a raw, pretrained model. These findings have important implications for the use of LLMs in decision-making applications.

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

↑