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

ScrapeGraphAI-100k:用于模式约束LLM生成的数据集

ScrapeGraphAI-100k: Dataset for Schema-Constrained LLM Generation

Slovak University of Technology(斯洛伐克技术大学);ScrapeGraphAI

William Brach, Francesco Zuppichini, Marco Vinciguerra, Lorenzo Padoan

AI总结:

本文提出ScrapeGraphAI-100k数据集,包含93695个模式约束提取事件,通过真实用户数据和结构化标注,用于评估LLM在模式约束下的生成能力。

摘要:

在现代大语言模型中,生成符合指定JSON模式的输出是工具使用、结构化提取和知识库构建的基础。尽管其重要性,公开数据集仍然小、合成或仅文本,且很少将真实页面内容与实际使用的提示和模式配对。我们介绍了ScrapeGraphAI-100k,93,695个模式约束提取事件通过Opt-in ScrapeGraphAI telemetry在2025年Q2-Q3收集,经过去重和平衡后,来自9M原始事件。该语料库涵盖18,000多个唯一模式,覆盖15种命名语言及长尾Other类别,英语和繁体中文占检测内容的88%,每个实例配对Markdown转换的页面内容、提示、模式、LLM响应及每例jsonschema-rs结构符合标签(语义正确性不在此范围内,原始HTML将在v1.0之后延迟)。我们分析了语料库中的结构多样性,并识别出随着模式复杂性增加而出现的尖锐失败阈值。作为案例研究,一个170亿参数的学生模型在该数据上训练后,其输出分布接近其GPT-5-nano教师模型,尽管仍落后于30B-A3B参考模型(3.3B活跃参数)在模式符合性上的表现。我们提供此提炼结果作为初步证据,表明在大规模真实从业者工作负载中将模式约束生成接地,能够实现训练和基准测试,这之前合成或纯文本语料库无法支持。

英文摘要:

Producing output that conforms to a specified JSON schema underlies tool use, structured extraction, and knowledge base construction in modern large language models. Despite this centrality, public datasets for the task remain small, synthetic, or text-only, and rarely pair real page content with the prompts and schemas used in practice. We introduce ScrapeGraphAI-100k, 93,695 schema-constrained extraction events collected via opt-out ScrapeGraphAI telemetry in Q2--Q3 2025, deduplicated and balanced by schema from 9M raw events. The corpus spans 25,453 unique schemas, across 15 named languages, with English covering 89% of detected content. Each instance pairs Markdown-converted page content with a prompt, schema, LLM response, and per-example jsonschema-rs structural conformance labels. We characterize structural diversity across the corpus and identify sharp failure thresholds as schema complexity grows. As a case study, a 1.7B student fine-tuned on this data closely tracks the output distribution of its GPT-5-nano teacher, though it still trails a 30B-A3B reference (3.3B active parameters) on schema compliance. We offer this distillation result as preliminary evidence that grounding schema-constrained generation in real practitioner workloads at scale enables training and benchmarking that prior synthetic or text-only corpora could not support. ScrapeGraphAI-100k is publicly available on HuggingFace.

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

↑