TensorX
返回文献探索

Paper · arXiv 2401.12522

BiTA: Bi-Directional Tuning for Lossless Acceleration in Large Language Models

Feng Lin, Hanling Yi, Hongbin Li, Yifan Yang, Xiaotian Yu, Guangming Lu, Rong Xiao

12 upvotesJanuary 23, 2024arXiv 预印本
AI 摘要

BiTA, a parameter-efficient bi-directional tuning method for LLMs, accelerates inference via parallel draft candidate generation and verification without additional memory costs.

autoregressive generationsemi-autoregressive generationdraft verificationprompt tuningparameter-efficient tuningtree-based decodingMT-Bench benchmark

Abstract

Large language models (LLMs) commonly employ autoregressive generation during inference, leading to high memory bandwidth demand and consequently extended latency. To mitigate this inefficiency, we present Bi-directional Tuning for lossless Acceleration (BiTA), an innovative method expediting LLMs via streamlined semi-autoregressive generation and draft verification. Inspired by the concept of prompt tuning, we enhance LLMs with a parameter-efficient design called bi-directional tuning for the capability in semi-autoregressive generation. Employing efficient tree-based decoding, the models perform draft candidate generation and verification in parallel, ensuring outputs identical to their autoregressive counterparts under greedy sampling. BiTA serves as a lightweight plug-in module, seamlessly boosting the inference efficiency of existing LLMs without requiring additional assistance models or incurring significant extra memory costs. Applying the proposed BiTA, LLaMA-2-70B-Chat achieves a 2.7times speedup on the MT-Bench benchmark. Extensive experiments confirm our method surpasses state-of-the-art acceleration techniques.

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

京ICP备2026059466号
BiTA: Bi-Directional Tuning for Lossless Acceleration in Large Language Models | TensorX