arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.09025cs.AI
收藏

SpreadsheetLLM:为大型语言模型编码电子表格

SpreadsheetLLM: Encoding Spreadsheets for Large Language Models

Microsoft Corporation(微软公司)

Haoyu Dong, Jianbo Zhao, Yuzhang Tian, Junyu Xiong, Shiyu Xia, Mengyu Zhou, Yun Lin, José Cambronero, Yeye He, Shi Han, Dongmei Zhang

AI总结:

针对电子表格二维网格与格式对大型语言模型的挑战,提出高效编码方法SpreadsheetLLM与SheetCompressor压缩框架,大幅提升表格检测与QA任务性能并创下新F1纪录。

摘要:

电子表格以其庞大的二维网格、灵活的布局和多样的格式选项为特征,这对大型语言模型(LLMs)构成了重大挑战。作为回应,我们引入了SpreadsheetLLM,这是一种开创性的高效编码方法,旨在释放并优化LLMs在电子表格上强大的理解与推理能力。最初,我们提出了一种包含单元格地址、值和格式的普通序列化方法。然而,该方法受限于LLMs的token限制,使其在大多数应用中不切实际。为应对这一挑战,我们开发了SheetCompressor,这是一个为LLMs有效压缩电子表格的创新编码框架。它包含三个模块:基于结构锚点的压缩、倒排索引翻译和数据格式感知聚合。它在电子表格表格检测任务中显著提升了性能,在GPT4的上下文学习设置中比普通方法高出25.6%。此外,使用SheetCompressor微调的LLM平均压缩比为25倍,并达到了最先进的78.9% F1分数,超越了现有的最佳模型12.3%。最后,我们提出了Chain of Spreadsheet用于电子表格理解的下游任务,并在一个全新且高难度的电子表格QA任务中对其进行了验证。我们系统地利用了电子表格固有的布局和结构,证明SpreadsheetLLM在各种电子表格任务中均极为有效。

英文摘要:

Spreadsheets are characterized by their extensive two-dimensional grids, flexible layouts, and varied formatting options, which pose significant challenges for large language models (LLMs). In response, we introduce SpreadsheetLLM, pioneering an efficient encoding method designed to unleash and optimize LLMs' powerful understanding and reasoning capability on spreadsheets. Initially, we propose a vanilla serialization approach that incorporates cell addresses, values, and formats. However, this approach was limited by LLMs' token constraints, making it impractical for most applications. To tackle this challenge, we develop SheetCompressor, an innovative encoding framework that compresses spreadsheets effectively for LLMs. It comprises three modules: structural-anchor-based compression, inverse index translation, and data-format-aware aggregation. It significantly improves performance in the spreadsheet table detection task, outperforming the vanilla approach by 25.6% in GPT4's in-context learning setting. Moreover, fine-tuned LLM with SheetCompressor has an average compression ratio of 25 times, and achieves a state-of-the-art 78.9% F1 score, surpassing the best existing models by 12.3%. Finally, we propose Chain of Spreadsheet for downstream tasks of spreadsheet understanding and validate it in a new and demanding spreadsheet QA task. We methodically leverage the inherent layout and structure of spreadsheets, demonstrating that SpreadsheetLLM is highly effective across a variety of spreadsheet tasks.

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

↑