APAR: LLMs Can Do Auto-Parallel Auto-Regressive Decoding
Authors: Mingdao Liu, Aohan Zeng, Bowen Wang, Peng Zhang, Jie Tang, Yuxiao Dong
AI-generated Key Points
- Introduction of parallel auto-regressive generation method to enhance efficiency of large language models (LLMs) in serving scenarios
- Instruction-tuning on general domain data with hierarchical structures allows LLMs to independently plan and perform auto-parallel auto-regressive (APAR) generation
- Up to 2x speed-up achieved, up to 4x when combined with speculative decoding
- APAR reduces key-value cache consumption and attention computation during generation, leading to throughput increase of 20-70% and latency reduction of 20-35%
- Structuring paragraphs in root-and-details format for accurate extraction of hierarchical structures from LLM responses
- Excluding unstructured data like code and math content from structure extraction but using as negative examples during model training
- Experimental setup involves fine-tuning APAR on vicuna-v1.3-{7B,13B} models for Vanilla-APAR, Medusa-APAR, and Batched-APAR implementations
- Training samples drawn from structured and unstructured data sources at a ratio of 1:1; specific batch sizes and learning rates used before training additional medusa heads for improved performance
- Highlighting how APAR enhances LLM generation efficiency by enabling parallel decoding threads while maintaining coherence and accuracy in text prediction across serving scenarios
Abstract: The massive adoption of large language models (LLMs) demands efficient deployment strategies. However, the auto-regressive decoding process, which is fundamental to how most LLMs generate text, poses challenges to achieve efficient serving. In this work, we introduce a parallel auto-regressive generation method. By instruct-tuning on general domain data that contains hierarchical structures, we enable LLMs to independently plan their generation process and perform auto-parallel auto-regressive (APAR) generation, significantly reducing the number of generation steps. APAR alone can achieve up to 2x speed-up, and when combined with speculative decoding, the speed-up can reach up to 4x. In addition, APAR reduces the key-value cache consumption and attention computation during generation. This leads to a throughput increase of 20-70% and a latency reduce of 20-35% in high-throughput scenarios, compared to state-of-the-art serving frameworks.
Tools for this paper
Ask questions about this paper to our AI assistant
You can also chat with multiple papers at once here.
The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.
Similar papers summarized with our AI tools
Navigate through even more similar papers through a
tree representationLook for similar papers (in beta version)
We compare the title and abstract with papers indexed in our database. For arXiv papers, we search within the same category; for DOI and other sources, we search across sources and subjects. You can rerun the search as our database grows.
Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.