LTEM:面向LLM的表格增强型Markdown,用于表格理解与生成
LTEM: LLM-Friendly Table-Enhanced Markdown for Table Understanding and Generation
AI总结:
该研究针对LLM处理表格时的格式权衡问题,提出LTEM格式、STB基准及分类法,实验显示LTEM在准确率-token权衡等方面表现优异,可支持LLM表格交互研究。
摘要:
现实文档中的表格,包括科学论文、财务报告和统计摘要,常使用合并单元格、多级表头和分块布局。然而大语言模型(LLM)最易处理的轻量格式(Markdown、CSV)无法表达这些结构,而表现力强的格式(HTML、LaTeX)会带来过高的token成本和解析复杂度。为系统分析这种权衡,我们提出一种分类法,将表格结构分解为6个原子特征(F1-F6)及对应的复杂度等级(L1-L6),并构建了STB(合成表格基准),这是一个包含1089个表格、按复杂度等级系统分布的受控基准。基于该框架,我们提出LTEM(面向LLM的表格增强型Markdown),这是一种形式化定义的、对Markdown的最小扩展,可显式编码跨度和分层表头。对5种最先进LLM的实验表明,LTEM的准确率可与HTML相当,相比HTML和LaTeX具有更优的准确率-token权衡,且产生的无效响应远少于LaTeX;在表格生成任务中,LTEM的表现与MultiMarkdown相当,尽管HTML是最优的。我们发布了该分类法、基准和格式规范,以支持未来关于LLM-表格交互的研究。
英文摘要:
Tables in real-world documents, including scientific papers, financial reports, and statistical summaries, frequently use merged cells, multi-level headers, and sectioned layouts. Yet the lightweight formats LLMs handle best (Markdown, CSV) cannot express these structures, while expressive formats (HTML, LaTeX) impose excessive token cost and parsing complexity. To enable systematic analysis of this trade-off, we introduce a taxonomy decomposing table structure into six atomic features (F1-F6) and corresponding complexity levels (L1-L6), and construct STB (Synthetic Table Benchmark), a controlled benchmark with 1,089 tables systematically distributed across complexity levels. Using this framework, we propose LTEM (LLM-friendly Table-Enhanced Markdown), a formally specified, minimal extension of Markdown that explicitly encodes spans and hierarchical headers. Experiments across five state-of-the-art LLMs show that LTEM achieves accuracy comparable to HTML, offers a favorable accuracy-token trade-off relative to HTML and LaTeX, and produces substantially fewer invalid responses than LaTeX; for table generation, LTEM is comparable to MultiMarkdown though HTML is best. We release our taxonomy, benchmark, and format specification to support future research on LLM-table interaction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。