Hierarchical Skip Decoding for Efficient Autoregressive Text Generation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhu, Yunqi, Yang, Xuebing, Wu, Yuanyuan, Zhang, Wensheng
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909146376306688
author Zhu, Yunqi
Yang, Xuebing
Wu, Yuanyuan
Zhang, Wensheng
author_facet Zhu, Yunqi
Yang, Xuebing
Wu, Yuanyuan
Zhang, Wensheng
contents Autoregressive decoding strategy is a commonly used method for text generation tasks with pre-trained language models, while early-exiting is an effective approach to speedup the inference stage. In this work, we propose a novel decoding strategy named Hierarchical Skip Decoding (HSD) for efficient autoregressive text generation. Different from existing methods that require additional trainable components, HSD is a plug-and-play method applicable to autoregressive text generation models, it adaptively skips decoding layers in a hierarchical manner based on the current sequence length, thereby reducing computational workload and allocating computation resources. Comprehensive experiments on five text generation datasets with pre-trained language models demonstrate HSD's advantages in balancing efficiency and text quality. With almost half of the layers skipped, HSD can sustain 90% of the text quality compared to vanilla autoregressive decoding, outperforming the competitive approaches.
format Preprint
id arxiv_https___arxiv_org_abs_2403_14919
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Hierarchical Skip Decoding for Efficient Autoregressive Text Generation
Zhu, Yunqi
Yang, Xuebing
Wu, Yuanyuan
Zhang, Wensheng
Computation and Language
Artificial Intelligence
Autoregressive decoding strategy is a commonly used method for text generation tasks with pre-trained language models, while early-exiting is an effective approach to speedup the inference stage. In this work, we propose a novel decoding strategy named Hierarchical Skip Decoding (HSD) for efficient autoregressive text generation. Different from existing methods that require additional trainable components, HSD is a plug-and-play method applicable to autoregressive text generation models, it adaptively skips decoding layers in a hierarchical manner based on the current sequence length, thereby reducing computational workload and allocating computation resources. Comprehensive experiments on five text generation datasets with pre-trained language models demonstrate HSD's advantages in balancing efficiency and text quality. With almost half of the layers skipped, HSD can sustain 90% of the text quality compared to vanilla autoregressive decoding, outperforming the competitive approaches.
title Hierarchical Skip Decoding for Efficient Autoregressive Text Generation
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2403.14919