LongDA
收藏资源简介:
LongDA是一个用于评估大语言模型在文档密集型数据分析工作流程中性能的基准数据集。它基于真实的美国政府部门调查数据构建,并配备了完整且冗长的官方文档,旨在测试大语言模型在分析前理解和导航复杂现实世界数据集的能力。数据集包含从30份专家撰写的出版物中提取的505个自然语言分析查询,覆盖了来自美国6个联邦机构的17项国家调查,涉及健康、劳动力与经济、社会科学、科学与工程以及政府运营等多个领域。每个查询的平均上下文长度约为263K token,显著长于现有基准,要求模型进行多步骤推理并执行代码以完成任务。核心特征包括:长文档(如代码手册、技术报告、用户指南)、专家编写的真实分析问题、大规模表格数据(包含数千个变量)以及模拟真实分析工作流程。数据集结构分为两部分:benchmark.csv文件(包含查询、来源、答案等信息)和完整的调查文件夹(包含原始数据文件和详细文档)。
LongDA is a benchmark dataset for evaluating the performance of large language models (LLMs) in document-intensive data analysis workflows. It is constructed based on real U.S. government department survey data and includes comprehensive and lengthy official documents, aiming to test the ability of LLMs to understand and navigate complex real-world datasets before analysis. The dataset contains 505 natural language analysis queries extracted from 30 expert-written publications, covering 17 national surveys from 6 U.S. federal agencies across various fields such as health, labor and economy, social sciences, science and engineering, and government operations. The average context length per query is approximately 263K tokens, significantly longer than existing benchmarks, requiring models to perform multi-step reasoning and execute code to complete tasks. Core features include: 1) Long documents (e.g., codebooks, technical reports, user guides); 2) Expert-written queries (all based on real analysis questions posed by domain experts in actual publications); 3) Complex data (large-scale tabular data with thousands of variables requiring careful navigation); 4) Real workflow simulation (mimicking scenarios where document navigation is a major bottleneck in practical analysis). The dataset structure consists of two parts: 1) The `benchmark.csv` file, containing queries, corresponding survey sources, answer structures, additional information, and verified ground-truth answers; 2) Complete survey folders, each containing raw data files (e.g., CSV, DAT, XPT formats) and detailed documents (e.g., PDF, TXT formats). The full dataset is necessary for effective evaluation.
LongDA 数据集概述
LongDA 是一个用于评估基于大语言模型(LLM)的智能体在文档密集型分析工作流中表现的数据分析基准。它使用真实的美国政府调查数据及其完整的长文档,测试LLM在处理复杂真实数据集时的能力。
核心特性
- 505 个查询:从30篇由专家撰写的出版物中提取。
- 17 项美国全国性调查:涵盖健康、劳动、经济、教育和社会科学等领域。
- 约 263K tokens 平均上下文:每个查询的上下文长度远超现有基准。
- 真实分析任务:需要多步推理和代码执行。
主要功能
- 长文档:每项调查包含多份非结构化文档(如代码手册、技术报告、用户指南)。
- 专家验证的查询:所有查询均由领域专家从真实出版物中提取。
- 复杂数据:大规模的表格数据,包含数千列,需要仔细导航。
- 真实工作流:模拟真实分析实践,其中文档导航是主要瓶颈。
语言
- 代码:Python
- 文档:英语
- 数据:美国调查的数值和分类数据
数据集结构
要使用本基准,必须下载包含所有调查数据文件和文档的完整数据集。仅包含查询和真实答案的 benchmark.csv 文件是不够的。
数据字段(benchmark.csv)
survey:调查缩写(如 NHANES, CPS-ASEC)。source:来源出版物标题。internal_id:出版物的内部问题编号。query:自然语言分析查询。answer_structure:预期的答案格式(single_number或列表结构)。additional_info:上下文、单位和特殊要求。answer:真实答案(已验证与官方出版物一致)。
下载方法
- 通过 Git LFS 克隆完整仓库:
git clone https://huggingface.co/datasets/EvilBench/LongDA benchmark - 或使用 Python 库下载: python from huggingface_hub import snapshot_download snapshot_download( repo_id="EvilBench/LongDA", repo_type="dataset", local_dir="./LongDA_data" )
数据集创建
来源数据
所有数据来自公开的美国政府部门调查,涵盖以下领域:
- 健康:人口健康、营养、医疗保健可及性。
- 劳动与经济:就业、收入、时间使用。
- 社会科学:人口统计、药物使用、家庭结构。
- 科学与工程:劳动力、研究经费、设施。
- 政府运作:州财政、就业、养老金。
整理流程
- 调查选择:从6个联邦机构中挑选了17项多样化且文档完善的全国性调查。
- 出版物收集:收集了30篇由专家撰写的报告和出版物。
- 查询提取:手动提取了505个基于真实分析实践的查询。
- 真实答案验证:对照官方统计数据验证了所有答案。
- 文档汇编:包含了所有相关的调查文档(代码手册、指南、技术报告)。
使用注意事项
社会影响
基准使用包含健康、收入、药物使用和人口统计等敏感话题的真实政府数据。用户应尊重数据隐私与使用政策,注意调查数据和抽样方法中的潜在偏差,并负责任地使用结果。
局限性
- 查询聚焦于美国数据,可能不适用于其他背景。
- 需要大量计算资源(约263K tokens的长上下文窗口)。
- 部分调查包含复杂的抽样权重和方法。
- 即使对于人类,文档导航也具有一定挑战性。
附加信息
许可信息
- 代码与基准:MIT 许可证
- 调查数据:公共领域(美国政府部门数据)
- 文档:公共领域(美国政府出版物)
引用
bibtex @article{li2026longda, title={LongDA: Benchmarking LLM Agents for Long-Document Data Analysis}, author={Li, Yiyang and Zhang, Zheyuan and Ma, Tianyi and Wang, Zehong and Murugesan, Keerthiram and Zhang, Chuxu and Ye, Yanfang}, journal={arXiv preprint arXiv:2601.02598}, year={2026} }




