TensorX
返回文献探索

Paper · arXiv 2308.03421

RecycleGPT: An Autoregressive Language Model with Recyclable Module

Yufan Jiang, Qiaozhi He, Xiaomin Zhuang, Zhihua Wu, Kunpeng Wang, Wenlai Zhao, Guangwen Yang

9 upvotesAugust 7, 2023arXiv 预印本
AI 摘要

RecycleGPT enhances language model decoding speed by reusing previous model states, reducing inference time with minimal performance loss.

generative language modelfast decoding speedrecycling pre-generated model statesadjacent tokensstrong correlationstoken inferencetheoretical evaluationsdownstream text generation tasksinference latencyspeedup

Abstract

Existing large language models have to run K times to generate a sequence of K tokens. In this paper, we present RecycleGPT, a generative language model with fast decoding speed by recycling pre-generated model states without running the whole model in multiple steps. Our approach relies on the observation that adjacent tokens in a sequence usually have strong correlations and the next token in a sequence can be reasonably guessed or inferred based on the preceding ones. Through theoretical evaluations and practical tests on downstream text generation tasks, we demonstrate the effectiveness of our approach in lowering inference latency, achieving up to 1.4x speedup while preserving high performance.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号