评测大模型生成文档的结构化能力,提升代码与聊天回复的可读性。
MDEval: Evaluating and Enhancing Markdown Awareness in Large Language Models
- 构建20,000条中英文混合数据集,评估模型对Markdown语法的理解。
- 与人工判断相关性达0.791,准确率达84.1%,显著优于现有方法。
- 开源可复现,适配中文场景,助力开源模型对标GPT-4o表现。
大型语言模型(LLMs)应能生成结构化的Markdown内容,以提高网页聊天机器人中的可读性。尽管已有大量评估指标,但它们未能从输出内容结构角度衡量可读性。为此,本文关注被忽视却至关重要的指标——Markdown Awareness,直接影响模型生成内容的结构与可读性。我们提出MDEval,一个涵盖10个主题的20,000条实例中英文数据集,用于全面评估该能力。不同于传统基于模型的评估方式,MDEval结合生成任务与统计分析,具备良好可解释性。实验结果表明,其与人工评价的斯皮尔曼相关系数达0.791,准确率为84.1%,显著优于现有方法。大规模实验还显示,通过在本数据集上微调,性能较弱的开源模型可达到与GPT-4o相当的Markdown Awareness水平。为保障可复现性与透明度,MDEval已开源至https://github.com/SWUFE-DB-Group/MDEval-Benchmark。
原文摘要 · Abstract (English)
Large language models (LLMs) are expected to offer structured Markdown responses for the sake of readability in web chatbots (e.g., ChatGPT). Although there are a myriad of metrics to evaluate LLMs, they fail to evaluate the readability from the view of output content structure. To this end, we focus on an overlooked yet important metric -- Markdown Awareness, which directly impacts the readability and structure of the content generated by these language models. In this paper, we introduce MDEval, a comprehensive benchmark to assess Markdown Awareness for LLMs, by constructing a dataset with 20K instances covering 10 subjects in English and Chinese. Unlike traditional model-based evaluations, MDEval provides excellent interpretability by combining model-based generation tasks and statistical methods. Our results demonstrate that MDEval achieves a Spearman correlation of 0.791 and an accuracy of 84.1% with human, outperforming existing methods by a large margin. Extensive experimental results also show that through fine-tuning over our proposed dataset, less performant open-source models are able to achieve comparable performance to GPT-4o in terms of Markdown Awareness. To ensure reproducibility and transparency, MDEval is open sourced at https://github.com/SWUFE-DB-Group/MDEval-Benchmark.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。