arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.11862cs.CL
收藏

通过使用大语言模型预测编辑操作来减少序列长度

Reducing Sequence Length by Predicting Edit Operations with Large Language Models

MBZUAI(穆罕默德·本·扎耶德人工智能大学);Tokyo Institute of Technology(东京工业大学)

Masahiro Kaneko, Naoaki Okazaki

AI总结:

本文提出预测源文本编辑跨度以减少局部序列转换任务的目标序列长度和推理成本,在四项任务中达到基线相当甚至最先进的性能。

摘要:

大型语言模型(LLMs)在各种任务中表现出色并受到广泛关注。LLMs也用于局部序列转换任务,包括语法错误纠正(GEC)和正式性风格转换,其中源文本中的大多数词元保持不变。然而,在此类任务中生成所有目标词元的模型倾向于直接原样复制输入文本,而不做必要的修改,因为在训练数据中输入和输出文本之间的差异极小。这也很低效,因为使用Transformer时,计算成本随目标序列长度呈二次方增长。本文提出针对局部序列转换任务预测源文本的编辑跨度。通过使用源文本的位置和纠正后的词元来表示编辑跨度,我们可以减少目标序列的长度及推理的计算成本。我们在编辑跨度的监督数据上对LLMs应用了指令微调。实验表明,尽管将目标文本的长度减少了至少21%,所提出的方法在改写、正式性风格转换、GEC和文本简化四项任务中取得了与基线相当的性能。此外,我们报告称,结合所提方法的特定任务微调在这四项任务中达到了最先进的性能。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable performance in various tasks and gained significant attention. LLMs are also used for local sequence transduction tasks, including grammatical error correction (GEC) and formality style transfer, where most tokens in a source text are kept unchanged. However, the models that generate all target tokens in such tasks have a tendency to simply copy the input text as is, without making needed changes, because the difference between input and output texts is minimal in the training data. This is also inefficient because the computational cost grows quadratically with the target sequence length with Transformer. This paper proposes predicting edit spans for the source text for local sequence transduction tasks. Representing an edit span with a position of the source text and corrected tokens, we can reduce the length of the target sequence and the computational cost for inference. We apply instruction tuning for LLMs on the supervision data of edit spans. Experiments show that the proposed method achieves comparable performance to the baseline in four tasks, paraphrasing, formality style transfer, GEC, and text simplification, despite reducing the length of the target text by as small as 21%. Furthermore, we report that the task-specific fine-tuning with the proposed method achieved state-of-the-art performance in the four tasks.

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

↑