2025-05-27 · 专家 · 机器学习 · 自然语言处理

StructEval: Benchmarking LLMs' Capabilities to Generate Structural Outputs

本文提出了StructEval,一个用于评估大型语言模型生成结构化输出的能力的新基准,通过两种范式(生成和转换任务)和多种指标,揭示了模型在结构化输出生成上的性能差距。

更新于 2025-05-27。作者: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。

中文摘要

随着大型语言模型(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 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.

解读

一句话总结

本文提出了StructEval,一个用于评估大型语言模型生成结构化输出的能力的新基准,通过两种范式(生成和转换任务)和多种指标,揭示了模型在结构化输出生成上的性能差距。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt