arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.15685cs.CLcs.AI
收藏

RewriteLM:一种面向文本重写的指令调优大语言模型

RewriteLM: An Instruction-Tuned Large Language Model for Text Rewriting

Google Research(谷歌研究院)

Lei Shu, Liangchen Luo, Jayakumar Hoskere, Yun Zhu, Yinxiao Liu, Simon Tong, Jindong Chen, Lei Meng

AI总结:

针对LLM在跨句子重写任务中的不足,提出指令调优与强化学习新策略,并构建OpenRewriteEval基准,显著提升重写性能。

摘要:

大语言模型(LLMs)在创意任务(如讲故事和电子邮件生成)中展现了令人印象深刻的能力。然而,由于LLMs主要基于最终文本结果而非中间修订版本进行训练,它们在执行文本重写任务时可能面临挑战。大多数重写研究聚焦于单句边界内的特定转换类型。在本工作中,我们开发了指令调优和强化学习的新策略,以更好地使LLMs对齐跨句子重写任务,这些任务使用自然语言表达的各种措辞和结构,包括:1)通过指令生成和思维链提示,从Wiki编辑和公共语料库生成重写指令数据;2)通过新的排序函数收集用于奖励模型训练的对比数据。为促进这项研究,我们引入了OpenRewriteEval,这是一个新颖的基准,涵盖了通过自然语言指令表达的多种重写类型。我们的结果显示,相对于多种基线方法有显著改进。公共代码库已在GitHub上的Google Research下提供(https://github.com/google-research/google-research/tree/master/rewritelm)。

英文摘要:

Large Language Models (LLMs) have demonstrated impressive capabilities in creative tasks such as storytelling and E-mail generation. However, as LLMs are primarily trained on final text results rather than intermediate revisions, it might be challenging for them to perform text rewriting tasks. Most studies in the rewriting tasks focus on a particular transformation type within the boundaries of single sentences. In this work, we develop new strategies for instruction tuning and reinforcement learning to better align LLMs for cross-sentence rewriting tasks using diverse wording and structures expressed through natural languages including 1) generating rewriting instruction data from Wiki edits and public corpus through instruction generation and chain-of-thought prompting; 2) collecting comparison data for reward model training through a new ranking function. To facilitate this research, we introduce OpenRewriteEval, a novel benchmark covers a wide variety of rewriting types expressed through natural language instructions. Our results show significant improvements over a variety of baselines. The public repository is available on GitHub under Google Research (https://github.com/google-research/google-research/tree/master/rewritelm).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑