arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.12061cs.LGcs.AIcs.CL
收藏

所有大大小小的语言模型

All Language Models Large and Small

Kings College London(伦敦国王学院);Queen Mary University, London(伦敦玛丽女王大学)

Zhixun Chen, Yali Du, David Mguni

AI总结:

提出LONDI框架,通过强化学习切换控制,仅在复杂推理时调用大型LM,其余使用低资源LM,在保持预算约束下显著降低计算成本并解决复杂任务。

摘要:

许多领先的语言模型(LMs)在训练和执行期间都使用高强度的计算资源。这带来了降低部署资源成本和加快决策任务执行等挑战。我们引入了一个名为语言优化网络分布(LONDI)框架的新型即插即用LM框架。LONDI学习仅在需要复杂决策和推理的地方选择性地使用大型LM,而在其他所有地方使用低资源LM(即需要较少GPU使用,但可能无法单独解决问题的LMs)。LONDI由两个(离)策略网络系统组成,一个LM,一个大型LM(LLM),以及一个强化学习模块,该模块使用切换控制来快速学习在哪些系统状态下调用LLM。然后,我们引入了LONDI的一个变体,该变体维持对LLM调用的预算约束,从而也约束了其资源使用。在理论上,我们证明LONDI学习到了为解决任务而需要激活LLM的系统状态子集。然后,我们证明LONDI收敛到最优解,同时几乎肯定地保持对LLM调用的预算约束,使其能够在显著降低计算成本的同时解决各种任务。我们在ScienceWorld和BabyAI-Text中的一系列任务中测试了LONDI的性能,并证明LONDI可以解决只有资源密集型LLMs才能解决的任务,同时将GPU使用量减少多达30%。

英文摘要:

Many leading language models (LMs) use high-intensity computational resources both during training and execution. This poses the challenge of lowering resource costs for deployment and faster execution of decision-making tasks among others. We introduce a novel plug-and-play LM framework named Language Optimising Network Distribution (LONDI) framework. LONDI learns to selectively employ large LMs only where complex decision-making and reasoning are required while using low-resource LMs (i.e. LMs require less GPU usage, but may not be able to solve the problem alone) everywhere else. LONDI consists of a system of two (off-)policy networks, an LM, a large LM (LLM), and a reinforcement learning module that uses switching controls to quickly learn which system states to call the LLM. We then introduce a variant of LONDI that maintains budget constraints on LLM calls and hence its resource usage. Theoretically, we prove LONDI learns the subset of system states to activate the LLM required to solve the task. We then prove that LONDI converges to optimal solutions while also preserving budgetary constraints on LLM calls almost surely enabling it to solve various tasks while significantly lowering computational costs. We test LONDI's performance in a range of tasks in ScienceWorld and BabyAI-Text and demonstrate that LONDI can solve tasks only solvable by resource-intensive LLMs while reducing GPU usage by up to 30%.

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

↑