数据集:

akoksal/LongForm

英文

LongForm

LongForm 数据集是通过增强指令来利用英语语料库示例创建的。我们从现有的语料库(如C4和维基百科)中选择了多样化的人工编写文档,并通过语言模型生成相应的指令。然后,我们通过结构化语料库示例(如Stack Exchange和WikiHow)以及各种自然语言处理任务示例(如问答、写邮件、语法错误纠正、故事/诗生成和文本摘要)扩展这些示例。

分布

LongForm 数据集的来源分布如下。它包含通过语言模型从原始文本语料库生成的示例,结构化语料库示例,以及各种自然语言处理任务示例(如写邮件、语法错误纠正、故事/诗生成和文本摘要)。

Type Source Number of Examples
Corpora C4 10,000
Wikipedia 5,000
Structured Corpora Stack Exchange 4,380
WikiHow 2,500
Tasks NIv2 3,684
Big Bench 600
BEA-GEC 1,203
Enron 372
Total 27,739
Train 23,652
Validation 2,042
Test 2,045

模型

All Recipe Generation ELI5 Writing Prompts
T0++ 10.9 18.7 3.8 10.2
Tk-Instruct 6.3 12.9* 3.6 2.4
Flan-T5 10.6 20.9* 3.5 7.4
Alpaca-LLaMA-7B 14.6 19.5 12.5 11.8
OPT-30B 11.1 18.6 12.2 2.6
1231321 16.3 20.2 18.3 10.6
1232321 17.8 15.5 17.9 19.9
1233321 17.7 16.9 17.2 19.0
1234321 ‡ 19.7 21.7 18.6 18.9

‡: 由于LLaMA模型的限制,我们只能公开发布LongForm-LLaMA-7B和预训练LLaMA-7B之间的差异。

示例

Source Instruction Output
C4 What is the likelihood that Donald Trump's HHS secretary nominee, Alex Azar, will push policies that benefit pharmaceutical companies' pocketbooks? His record suggests he’s unlikely to push pricing policies that would hit pharmaceutical companies’ pocketbooks. President Donald Trump tweeted Monday that his nominee for HHS secretary, Alex Azar will “be a star for … lower drug prices!” But the record of the former top executive for Eli Lilly, which tripled the price of a top-selling insulin drug while he led its U.S. operation, suggests a different story. Lilly is one of three drug companies targeted by a class-action lawsuit that accuses the company[...] “This nominee has impeccable big pharma credentials but non-existent credentials when it comes to concerns on drug prices,” said Peter Welch, co-chair of the House Democrats Drug Pricing Task Force.
Wikipedia "Where is San Saba located in Rome, Italy?" Respond in 2 sentences. San Saba is an ancient basilica church in Rome, Italy. It lies on the so-called "Piccolo Aventino", which is an area close to the ancient Aurelian Walls next to the Aventine Hill and Caelian Hill.

许可

LongForm 项目受 MIT 许可证的约束,其中对于 OpenAI(指令生成部分)以及语言模型(OPT、LLaMA 和 T5)的限制有自定义的限制。

引用

@misc{koksal2023longform,
      title={LongForm: Optimizing Instruction Tuning for Long Text Generation with Corpus Extraction}, 
      author={Abdullatif Köksal and Timo Schick and Anna Korhonen and Hinrich Schütze},
      year={2023},
      eprint={2304.08460},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}