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

StructEval: 对LLMs生成结构化输出能力的基准测试

StructEval: Benchmarking LLMs' Capabilities to Generate Structural Outputs

University of Waterloo(滑铁卢大学);University of Toronto(多伦多大学);HKUST(香港科技大学);Shanghai University(上海大学);Independent Contributor(独立贡献者);Vector Institute(向量研究所);University of British Columbia(不列颠哥伦比亚大学)
Jialin Yang, Dongfu Jiang, Lipeng He, Sherman Siu, Yuxuan Zhang, Disen Liao, Zhuofeng Li, Huaye Zeng, Yiming Jia, Haozhe Wang, Benjamin Schneider, Chi Ruan, Wen… 展开作者

Jialin Yang, Dongfu Jiang, Lipeng He, Sherman Siu, Yuxuan Zhang, Disen Liao, Zhuofeng Li, Huaye Zeng, Yiming Jia, Haozhe Wang, Benjamin Schneider, Chi Ruan, Wentao Ma, Zhiheng Lyu, Yifei Wang, Yi Lu, Quy Duc Do, Ziyan Jiang, Ping Nie, Wenhu Chen

AI总结:

StructEval通过生成和转换任务评估LLMs生成JSON、YAML等结构化格式的能力,揭示了先进模型在结构正确性上的显著差距。

摘要:

随着大型语言模型(LLMs)成为软件开发工作流的重要组成部分,其生成结构化输出的能力变得至关重要。我们介绍了StructEval,一个全面的基准,用于评估LLMs在生成非渲染(JSON、YAML、CSV)和渲染(HTML、React、SVG)结构化格式方面的能力。与以往的基准不同,StructEval通过两种范式系统地评估结构忠实度:1)生成任务,从自然语言提示生成结构化输出;2)转换任务,翻译不同结构化格式。我们的基准涵盖18种格式和44种任务类型,包含新的格式符合度和结构正确性度量标准。结果揭示了显著的性能差距,即使最先进的模型如o1-mini也仅获得75.58的平均分数,开源替代品落后约10分。我们发现生成任务比转换任务更具挑战性,生成正确的视觉内容比生成纯文本结构更困难。

英文摘要:

As Large Language Models (LLMs) become integral to software development workflows, their ability to generate structured outputs has become critically important. We introduce StructEval, a comprehensive benchmark for evaluating LLMs' capabilities in producing both non-renderable (JSON, YAML, CSV) and renderable (HTML, React, SVG) structured formats. Unlike prior benchmarks, StructEval systematically evaluates structural fidelity across diverse formats through two paradigms: 1) generation tasks, producing structured output from natural language prompts, and \textbf{2)} conversion tasks, translating between structured formats. Our benchmark encompasses 18 formats and 44 types of task, with novel metrics for format adherence and structural correctness. Results reveal significant performance gaps-even state-of-the-art models like o1-mini achieve only 75.58 average score, with open-source alternatives lagging approximately 10 points behind. We find generation tasks more challenging than conversion tasks, and producing correct visual content more difficult than generating text-only structures.

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

↑