UIO-LLMs: Unbiased Incremental Optimization for Long-Context LLMs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Wenhao, Lin, Mingbao, Zhong, Yunshan, Yan, Shuicheng, Ji, Rongrong
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915490621816832
author Li, Wenhao
Lin, Mingbao
Zhong, Yunshan
Yan, Shuicheng
Ji, Rongrong
author_facet Li, Wenhao
Lin, Mingbao
Zhong, Yunshan
Yan, Shuicheng
Ji, Rongrong
contents Managing long texts is challenging for large language models (LLMs) due to limited context window sizes. This study introduces UIO-LLMs, an unbiased incremental optimization approach for memory-enhanced transformers under long-context settings. We initially conceptualize the process as a streamlined encoder-decoder framework where the weights-shared encoder and decoder respectively encapsulate a context segment into memories and leverage these memories to predict outputs of the subsequent segment. Subsequently, by treating our memory-enhanced transformers as fully-connected recurrent neural networks (RNNs), we refine the training process using the Truncated Backpropagation Through Time (TBPTT) algorithm, which incorporates innovative incremental optimization techniques. These techniques not only diminish time complexity but also address the bias in gradient computation through an unbiased optimization process. UIO-LLMs successfully handle long context, such as extending the context window of Llama2-7b-chat from 4K to 100K tokens with minimal 2% additional parameters, while keeping the inference cost nearly linear as context length increases.
format Preprint
id arxiv_https___arxiv_org_abs_2406_18173
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle UIO-LLMs: Unbiased Incremental Optimization for Long-Context LLMs
Li, Wenhao
Lin, Mingbao
Zhong, Yunshan
Yan, Shuicheng
Ji, Rongrong
Computation and Language
Managing long texts is challenging for large language models (LLMs) due to limited context window sizes. This study introduces UIO-LLMs, an unbiased incremental optimization approach for memory-enhanced transformers under long-context settings. We initially conceptualize the process as a streamlined encoder-decoder framework where the weights-shared encoder and decoder respectively encapsulate a context segment into memories and leverage these memories to predict outputs of the subsequent segment. Subsequently, by treating our memory-enhanced transformers as fully-connected recurrent neural networks (RNNs), we refine the training process using the Truncated Backpropagation Through Time (TBPTT) algorithm, which incorporates innovative incremental optimization techniques. These techniques not only diminish time complexity but also address the bias in gradient computation through an unbiased optimization process. UIO-LLMs successfully handle long context, such as extending the context window of Llama2-7b-chat from 4K to 100K tokens with minimal 2% additional parameters, while keeping the inference cost nearly linear as context length increases.
title UIO-LLMs: Unbiased Incremental Optimization for Long-Context LLMs
topic Computation and Language
url https://arxiv.org/abs/2406.18173