CQIL:利用准独立层并发计算优化推理延迟
CQIL: Inference Latency Optimization with Concurrent Computation of Quasi-Independent Layers
AI总结:
本文针对大语言模型因层数累积导致的高推理延迟问题,提出识别并并发计算准独立层的方法CQIL,并引入旁路技术减少信息损失,在LLaMA-33B上实现最高48.3%的延迟降低且性能接近原模型。
摘要:
快速增长的大规模语言模型在几乎所有自然语言处理任务上都展现出前所未有的性能。然而,大语言模型的有效性依赖于指数级增长的参数量。巨大的计算复杂度导致较高的推理延迟,从而对用户体验产生负面影响。现有的提升推理效率的方法,如张量并行和量化,旨在降低每层的计算延迟,却忽视了由层数累积带来的延迟。近期一些通过移除层来降低累积延迟的工作则会导致性能显著下降。受相邻层输入相似性的启发,我们提出识别准独立层,这些层可以并发计算,从而显著降低推理延迟。我们还引入了一种旁路技术,以缓解信息损失的影响。在LLaMA模型上对所提方法进行的实证实验证实,准独立层并发计算(CQIL)在LLaMA-33B上可将延迟降低最多48.3%,同时保持接近的性能水平。
英文摘要:
The fast-growing large scale language models are delivering unprecedented performance on almost all natural language processing tasks. However, the effectiveness of large language models are reliant on an exponentially increasing number of parameters. The overwhelming computation complexity incurs a high inference latency that negatively affects user experience. Existing methods to improve inference efficiency, such as tensor parallelism and quantization, target to reduce per-layer computing latency, yet overlook the cumulative latency due to the number of layers. Recent works on reducing the cumulative latency through layer removing, however, lead to significant performance drop. Motivated by the similarity of inputs among adjacent layers, we propose to identify quasi-independent layers, which can be concurrently computed to significantly decrease inference latency. We also introduce a bypassing technique to mitigate the effect of information loss. Empirical experiments of the proposed approach on the LLaMA models confirm that Concurrent Computation of Quasi-Independent Layers (CQIL) can reduce latency by up to 48.3% on LLaMA-33B, while maintaining a close level of performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。