Language Models can Self-Lengthen to Generate Long Texts

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Quan, Shanghaoran, Tang, Tianyi, Yu, Bowen, Yang, An, Liu, Dayiheng, Gao, Bofei, Tu, Jianhong, Zhang, Yichang, Zhou, Jingren, Lin, Junyang
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929570250227712
author Quan, Shanghaoran
Tang, Tianyi
Yu, Bowen
Yang, An
Liu, Dayiheng
Gao, Bofei
Tu, Jianhong
Zhang, Yichang
Zhou, Jingren
Lin, Junyang
author_facet Quan, Shanghaoran
Tang, Tianyi
Yu, Bowen
Yang, An
Liu, Dayiheng
Gao, Bofei
Tu, Jianhong
Zhang, Yichang
Zhou, Jingren
Lin, Junyang
contents Recent advancements in Large Language Models (LLMs) have significantly enhanced their ability to process long contexts, yet a notable gap remains in generating long, aligned outputs. This limitation stems from a training gap where pre-training lacks effective instructions for long-text generation, and post-training data primarily consists of short query-response pairs. Current approaches, such as instruction backtranslation and behavior imitation, face challenges including data quality, copyright issues, and constraints on proprietary model usage. In this paper, we introduce an innovative iterative training framework called Self-Lengthen that leverages only the intrinsic knowledge and skills of LLMs without the need for auxiliary data or proprietary models. The framework consists of two roles: the Generator and the Extender. The Generator produces the initial response, which is then split and expanded by the Extender. This process results in a new, longer response, which is used to train both the Generator and the Extender iteratively. Through this process, the models are progressively trained to handle increasingly longer responses. Experiments on benchmarks and human evaluations show that Self-Lengthen outperforms existing methods in long-text generation, when applied to top open-source LLMs such as Qwen2 and LLaMA3. Our code is publicly available at https://github.com/QwenLM/Self-Lengthen.
format Preprint
id arxiv_https___arxiv_org_abs_2410_23933
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Language Models can Self-Lengthen to Generate Long Texts
Quan, Shanghaoran
Tang, Tianyi
Yu, Bowen
Yang, An
Liu, Dayiheng
Gao, Bofei
Tu, Jianhong
Zhang, Yichang
Zhou, Jingren
Lin, Junyang
Computation and Language
Recent advancements in Large Language Models (LLMs) have significantly enhanced their ability to process long contexts, yet a notable gap remains in generating long, aligned outputs. This limitation stems from a training gap where pre-training lacks effective instructions for long-text generation, and post-training data primarily consists of short query-response pairs. Current approaches, such as instruction backtranslation and behavior imitation, face challenges including data quality, copyright issues, and constraints on proprietary model usage. In this paper, we introduce an innovative iterative training framework called Self-Lengthen that leverages only the intrinsic knowledge and skills of LLMs without the need for auxiliary data or proprietary models. The framework consists of two roles: the Generator and the Extender. The Generator produces the initial response, which is then split and expanded by the Extender. This process results in a new, longer response, which is used to train both the Generator and the Extender iteratively. Through this process, the models are progressively trained to handle increasingly longer responses. Experiments on benchmarks and human evaluations show that Self-Lengthen outperforms existing methods in long-text generation, when applied to top open-source LLMs such as Qwen2 and LLaMA3. Our code is publicly available at https://github.com/QwenLM/Self-Lengthen.
title Language Models can Self-Lengthen to Generate Long Texts
topic Computation and Language
url https://arxiv.org/abs/2410.23933