我们探究了当代大语言模型(Large Language Models,LLMs)具备探索能力的程度,探索是强化学习与决策领域的一项核心能力。我们聚焦于现有LLMs的原生性能,不施加任何训练干预。我们将LLMs作为智能体部署在简单的多臂老虎机环境中,将环境描述与交互历史完全通过上下文(即LLM的提示词内)提供。我们对GPT-3.5、GPT-4和Llama2开展实验,采用多种提示词设计,结果发现:若没有实质性干预,这些模型无法稳定地进行探索:i)在我们所有实验中,仅有一种配置产生了令人满意的探索行为:搭配思维链推理、且以充分统计量形式呈现外部总结的交互历史的GPT-4;ii)其余所有配置均未产生稳定的探索行为,包括采用思维链推理但未对历史进行总结的配置。尽管这些结果可被解读为积极信号,但它们表明外部总结——在更复杂的场景中可能无法实现——对于从LLM智能体获得理想行为至关重要。我们得出结论:要在复杂场景中赋能基于LLM的决策智能体,可能需要非平凡的算法干预,例如微调或数据集整理。
英文摘要:
We investigate the extent to which contemporary Large Language Models (LLMs) can engage in exploration, a core capability in reinforcement learning and decision making. We focus on native performance of existing LLMs, without training interventions. We deploy LLMs as agents in simple multi-armed bandit environments, specifying the environment description and interaction history entirely in-context, i.e., within the LLM prompt. We experiment with GPT-3.5, GPT-4, and Llama2, using a variety of prompt designs, and find that the models do not robustly engage in exploration without substantial interventions: i) Across all of our experiments, only one configuration resulted in satisfactory exploratory behavior: GPT-4 with chain-of-thought reasoning and an externally summarized interaction history, presented as sufficient statistics; ii) All other configurations did not result in robust exploratory behavior, including those with chain-of-thought reasoning but unsummarized history. Although these findings can be interpreted positively, they suggest that external summarization -- which may not be possible in more complex settings -- is important for obtaining desirable behavior from LLM agents. We conclude that non-trivial algorithmic interventions, such as fine-tuning or dataset curation, may be required to empower LLM-based decision making agents in complex settings.
Intrinsic Entropy of Context Length Scaling in LLMs
Institute for Interdisciplinary Information Sciences, Tsinghua University(清华大学交叉信息研究院);Carnegie Mellon University(卡内基梅隆大学);CPHOS;University of Washington(华盛顿大学)
Beyond the Parameters: A Technical Survey of Contextual Enrichment in Large Language Models: From In-Context Prompting to Causal Retrieval-Augmented Generation
Natural Language based Context Modeling and Reasoning for Ubiquitous Computing with Large Language Models: A Tutorial
Big Data Lab, Baidu, Inc.(百度大数据实验室);Beijing University of Posts and Telecommunications(北京邮电大学);Baidu, Inc.(百度公司);Shanghai Jiaotong University(上海交通大学);Télécom SudParis, Institut Polytechnique de Paris(巴黎综合理工学院电信南巴黎)
Comparative Analysis of Listwise Reranking with Large Language Models in Limited-Resource Language Contexts
Simon Fraser University(西蒙菲莎大学);Duke University(杜克大学);University of California San Diego(加利福尼亚大学圣迭戈分校);University of Amsterdam(阿姆斯特丹大学);Johns Hopkins University(约翰斯·霍普金斯大学)
What Kinds of Tokens Benefit from Distant Text? An Analysis on Long Context Language Modeling
Wangxuan Institute of Computer Technology, Peking University(北京大学王选计算机研究所);School of Intelligence Science and Technology, Peking University(北京大学智能科学与技术学院);School of Electronics Engineering and Computer Science, Peking University(北京大学电子与计算机工程学院)
预训练语言模型在自然语言理解(NLU)任务中取得了巨大的成功,因为它能够通过对大规模语料库的预训练来捕获文本中的深层语境信息。在这份技术报告中,我们介绍了我们在中文语料库上预训练语言模型NEZHA(NEural contextualiZed representation for CHinese语言理解)的实践,并为中文NLU任务进行了微调。NEZHA的当前版本基于BERT,并进行了一系列改进,其中包括作为有效位置编码方案的功能相对位置编码,全字掩码策略,混合精度训练和LAMB优化器。实验结果表明,NEZHA在命名实体识别(人民日报NER)、句子匹配(LCQMC)、中文情感分类(ChnSenti)和自然语言推理(XNLI)等典型中文任务上均达到了最佳性能。
Bi-directional Context-Enhanced Speech Large Language Models for Multilingual Conversational ASR
Alibaba-NTU Global e-Sustainability CorpLab(阿里巴巴-国立科技大学全球可持续发展公司实验室);Nanyang Technological University(国立科技大学);College of Computing and Data Science(计算与数据科学学院)
Long-Short Range Context Neural Networks for Language Modeling
Spoken Language Systems (LSV)(口语语言系统(LSV));Collaborative Research Center on Information Density and Linguistic Encoding(信息密度与语言编码合作研究中心)
语言建模技术的目标是从训练语料库中获取自然语言的统计和结构特性。该任务通常涉及学习短程依赖关系,其通常对语言的句法属性和/或长程依赖关系进行建模,其本质上是语义的。本文提出了一种新的多跨度体系结构,它分别对短和长上下文信息进行建模,同时动态地合并它们来执行语言建模任务。这是通过一种新的经常性长短范围上下文(LSRC)网络来实现的,该网络使用两个随时间演变的独立隐藏状态来显式地对局部(短)和全局(长)上下文进行建模。这种新架构是对长短期记忆网络(LSTM)的适应,以考虑语言属性。在Penn Treebank(PTB)和Large Text Compression Benchmark(LTCB)语料库上进行的大量实验表明,与最先进的语言建模技术相比,该方法显着减少了困惑。
L$^2$M: Mutual Information Scaling Law for Long-Context Language Modeling
NSF AI Institute for Artificial Intelligence and Fundamental Interactions(NSF人工智能与基础相互作用研究院);Massachusetts Institute of Technology(麻省理工学院);Polytechnic University of Catalonia(加泰罗尼亚理工大学);Harvard University(哈佛大学);University of California, Los Angeles(加州大学洛杉矶分校)