Saved in:
Bibliographic Details
Main Authors: Wang, Quandong, Yuan, Yuxuan, Yang, Xiaoyu, Zhang, Ruike, Zhao, Kang, Liu, Wei, Luan, Jian, Povey, Daniel, Wang, Bin
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2406.06571
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929470869340160
author Wang, Quandong
Yuan, Yuxuan
Yang, Xiaoyu
Zhang, Ruike
Zhao, Kang
Liu, Wei
Luan, Jian
Povey, Daniel
Wang, Bin
author_facet Wang, Quandong
Yuan, Yuxuan
Yang, Xiaoyu
Zhang, Ruike
Zhao, Kang
Liu, Wei
Luan, Jian
Povey, Daniel
Wang, Bin
contents While Large Language Models (LLMs) have achieved remarkable success in various fields, the efficiency of training and inference remains a major challenge. To address this issue, we propose SUBLLM, short for Subsampling-Upsampling-Bypass Large Language Model, an innovative architecture that extends the core decoder-only framework by incorporating subsampling, upsampling, and bypass modules. The subsampling modules are responsible for shortening the sequence, while the upsampling modules restore the sequence length, and the bypass modules enhance convergence. In comparison to LLaMA, the proposed SUBLLM exhibits significant enhancements in both training and inference speeds as well as memory usage, while maintaining competitive few-shot performance. During training, SUBLLM increases speeds by 26% and cuts memory by 10GB per GPU. In inference, it boosts speeds by up to 37% and reduces memory by 1GB per GPU. The training and inference speeds can be enhanced by 34% and 52% respectively when the context window is expanded to 8192. Our code is available at https://github.com/XiaoMi/subllm.
format Preprint
id arxiv_https___arxiv_org_abs_2406_06571
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SUBLLM: A Novel Efficient Architecture with Token Sequence Subsampling for LLM
Wang, Quandong
Yuan, Yuxuan
Yang, Xiaoyu
Zhang, Ruike
Zhao, Kang
Liu, Wei
Luan, Jian
Povey, Daniel
Wang, Bin
Computation and Language
Artificial Intelligence
I.2.7
While Large Language Models (LLMs) have achieved remarkable success in various fields, the efficiency of training and inference remains a major challenge. To address this issue, we propose SUBLLM, short for Subsampling-Upsampling-Bypass Large Language Model, an innovative architecture that extends the core decoder-only framework by incorporating subsampling, upsampling, and bypass modules. The subsampling modules are responsible for shortening the sequence, while the upsampling modules restore the sequence length, and the bypass modules enhance convergence. In comparison to LLaMA, the proposed SUBLLM exhibits significant enhancements in both training and inference speeds as well as memory usage, while maintaining competitive few-shot performance. During training, SUBLLM increases speeds by 26% and cuts memory by 10GB per GPU. In inference, it boosts speeds by up to 37% and reduces memory by 1GB per GPU. The training and inference speeds can be enhanced by 34% and 52% respectively when the context window is expanded to 8192. Our code is available at https://github.com/XiaoMi/subllm.
title SUBLLM: A Novel Efficient Architecture with Token Sequence Subsampling for LLM
topic Computation and Language
Artificial Intelligence
I.2.7
url https://arxiv.org/abs/2406.06571