RecycleGPT: An Autoregressive Language Model with Recyclable Module

Yufan Jiang, Qiaozhi He, Xiaomin Zhuang, Zhihua Wu, Kunpeng Wang +2 more
8/7/2023
cs.CLcs.AI

No confident code implementation found for this paper.

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. Experiments and analysis demonstrate the effectiveness of our approach in lowering inference latency, achieving up to 1.4x speedup while preserving high performance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jiang2023recyclegpt,
  title  = {RecycleGPT: An Autoregressive Language Model with Recyclable Module},
  author = {Yufan Jiang and Qiaozhi He and Xiaomin Zhuang and Zhihua Wu and Kunpeng Wang and Wenlai Zhao and Guangwen Yang},
  year   = {2023},
  eprint = {2308.03421},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.03421v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.03421.svg)](https://codeofpaper.com/paper/2308.03421)

Discussion