arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.07204cs.IRcs.LG
收藏

论弹性语言模型

On Elastic Language Models

Beijing Institute of Technology(北京理工大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳))

Chen Zhang, Benyou Wang, Dawei Song

AI总结:

本文提出弹性语言模型ElasticLM,通过计算弹性动态调整延迟-性能权衡,适应请求流变化,在GLUE及多个检索任务上验证了其有效性和竞争力。

摘要:

大规模预训练语言模型在广泛的语言理解和信息检索任务中取得了令人瞩目的性能。知识蒸馏提供了一种将大型语言模型压缩为小型模型的机会,以达到合理的延迟-性能权衡。然而,对于请求数量(例如提交给搜索引擎的查询)高度变化的场景,压缩语言模型所达到的静态权衡可能并不总是适用。一旦模型被赋予静态权衡,当请求数量较大时延迟过高,或当请求数量较小时性能过低,它可能是不充分的。为此,我们提出了一种弹性语言模型(ElasticLM),它根据请求流弹性地调整权衡。基本思想是向压缩语言模型引入计算弹性,使得权衡可以随着可扩展和可控的计算而实时变化。具体来说,我们施加弹性结构以使ElasticLM具备计算弹性,并设计弹性优化以在计算弹性下学习ElasticLM。为了服务ElasticLM,我们应用弹性调度。考虑到信息检索的特殊性,我们将ElasticLM适配到密集检索和重排序,并分别提出了ElasticDenser和ElasticRanker。离线评估在语言理解基准GLUE上进行;以及几个信息检索任务,包括Natural Question、Trivia QA和MS MARCO。结果表明,ElasticLM以及ElasticDenser和ElasticRanker与一系列静态基线相比,可以正确且具有竞争力地执行。此外,还进行了并发性的在线模拟。结果表明,ElasticLM可以针对变化的请求流提供弹性权衡。

英文摘要:

Large-scale pretrained language models have achieved compelling performance in a wide range of language understanding and information retrieval tasks. Knowledge distillation offers an opportunity to compress a large language model to a small one, in order to reach a reasonable latency-performance tradeoff. However, for scenarios where the number of requests (e.g., queries submitted to a search engine) is highly variant, the static tradeoff attained by the compressed language model might not always fit. Once a model is assigned with a static tradeoff, it could be inadequate in that the latency is too high when the number of requests is large or the performance is too low when the number of requests is small. To this end, we propose an elastic language model (ElasticLM) that elastically adjusts the tradeoff according to the request stream. The basic idea is to introduce a compute elasticity to the compressed language model, so that the tradeoff could vary on-the-fly along scalable and controllable compute. Specifically, we impose an elastic structure to enable ElasticLM with compute elasticity and design an elastic optimization to learn ElasticLM under compute elasticity. To serve ElasticLM, we apply an elastic schedule. Considering the specificity of information retrieval, we adapt ElasticLM to dense retrieval and reranking and present ElasticDenser and ElasticRanker respectively. Offline evaluation is conducted on a language understanding benchmark GLUE; and several information retrieval tasks including Natural Question, Trivia QA, and MS MARCO. The results show that ElasticLM along with ElasticDenser and ElasticRanker can perform correctly and competitively compared with an array of static baselines. Furthermore, online simulation with concurrency is also carried out. The results demonstrate that ElasticLM can provide elastic tradeoffs with respect to varying request stream.

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

↑