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

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Lin, Feng, Yi, Hanling, Li, Hongbin, Yang, Yifan, Yu, Xiaotian, Lu, Guangming, Xiao, Rong
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915367098515456
author Lin, Feng
Yi, Hanling
Li, Hongbin
Yang, Yifan
Yu, Xiaotian
Lu, Guangming
Xiao, Rong
author_facet Lin, Feng
Yi, Hanling
Li, Hongbin
Yang, Yifan
Yu, Xiaotian
Lu, Guangming
Xiao, Rong
contents 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.7$\times$ speedup on the MT-Bench benchmark. Extensive experiments confirm our method surpasses state-of-the-art acceleration techniques.
format Preprint
id arxiv_https___arxiv_org_abs_2401_12522
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle BiTA: Bi-Directional Tuning for Lossless Acceleration in Large Language Models
Lin, Feng
Yi, Hanling
Li, Hongbin
Yang, Yifan
Yu, Xiaotian
Lu, Guangming
Xiao, Rong
Computation and Language
Artificial Intelligence
Machine Learning
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.7$\times$ speedup on the MT-Bench benchmark. Extensive experiments confirm our method surpasses state-of-the-art acceleration techniques.
title BiTA: Bi-Directional Tuning for Lossless Acceleration in Large Language Models
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2401.12522