A2utoLPBench
收藏资源简介:
A2utoLPBench是由香港中文大学研究团队创建的一个线性规划(LP)问题生成基准,旨在为大型语言模型(LLM)驱动的智能体提供可扩展且抗污染的评估工具。该数据集通过逆KKT构造方法自动生成,包含无限供应的LP问题实例,其参考快照包含256个实例,每个实例均附带由KKT定理严格保证的数学真值,无需依赖外部求解器或人工标注。数据集创建过程完全自动化,通过采样原始-对偶系数三元组并利用逆KKT条件推导出LP问题及其最优解,同时结合LLM驱动的自然语言起草器生成文本描述。该数据集主要应用于评估LLM智能体在自然语言描述下的线性规划问题解决能力,旨在解决传统静态基准在数据泄露、难度固定和可扩展性方面的局限性,为AI代理提供可编程难度和可重复测量的评估环境。
A2utoLPBench is a linear programming (LP) problem generation benchmark created by the research team at The Chinese University of Hong Kong, designed to provide a scalable and pollution-resistant evaluation tool for large language model (LLM)-powered AI Agents. This dataset is automatically generated via the inverse KKT construction method and contains an unlimited supply of LP problem instances. Its reference snapshot includes 256 instances, each paired with mathematically rigorous ground truths strictly guaranteed by the KKT theorem, without relying on external solvers or manual annotations. The entire dataset creation process is fully automated: it samples primal-dual coefficient triples, derives LP problems and their optimal solutions using the inverse KKT conditions, and combines with LLM-powered natural language drafters to generate textual descriptions. This dataset is primarily used to evaluate the LP problem-solving capabilities of LLM-driven AI Agents when presented with natural language-described LP tasks, aiming to address the limitations of traditional static benchmarks including data leakage, fixed difficulty and scalability issues, and provide an evaluation environment with programmable difficulty and reproducibly measurable metrics for AI Agents.
数据集概述:AutoLPBench
AutoLPBench 是一个用于测试基于大语言模型(LLM)的智能体在纯文本描述的线性规划问题上的基准测试。其核心特点是不发布固定的数据集,而是发布一个 生成器 和一个 智能体可运行的评估环境。
核心组成
| 组成部分 | 说明 | 位置 |
|---|---|---|
| Auto(生成器) | 采用逆KKT(Karush-Kuhn-Tucker)条件生成器。通过选取最优解反向推导线性规划问题,KKT条件用于验证答案的正确性,无需求解器或人工标注。 | src/inverse_kkt.py |
| Agent(评估环境) | 包含一个参考求解器-评判器基线,以及一个Docker镜像。镜像中包含智能体可读的使用文档,方便任何LLM驱动的智能体一键接入。 | src/solver_critic.py、docker/ |
仓库布局
. ├── data/ │ └── autolpbench/ │ └── v1.0/ 论文引用的发布版本(256个线性规划实例) │ ├── instances.jsonl │ ├── croissant.json │ ├── README.md │ └── LICENSE ├── src/ Auto生成器 + Agent求解器-评判器基线 │ ├── inverse_kkt.py 逆KKT线性规划构建 │ ├── nl_drafter.py 单次自然语言起草器 │ ├── solver_critic.py 打包的求解器-评判器基线(提案/审核/优化) │ ├── executor.py 线程安全的Python沙箱 │ ├── answer_parser.py FINAL_ANSWER正则表达式 + 相对误差检查 │ ├── config.py 提供者配置 │ └── llm.py OpenAI兼容和Anthropic原生调度 ├── skills/lp_optimization/ +skill模式加载的LP建模技能提示 ├── docker/ 智能体可运行的评估环境 │ ├── Dockerfile │ ├── run_eval.py 命令行接口:--generate / --mode / --print-manual │ ├── AGENTS.md 使用手册,位于 /workspace/AGENTS.md │ └── README.md ├── environment.yml conda环境配置 ├── requirements.txt 最小pip依赖 └── LICENSE
数据集详情
论文引用的发布版本为 v1.0,包含 256 个线性规划实例,在8个不同规模类别(从 s2x3 到 s40x40)中均匀分布,每个类别32个实例。数据位于 data/autolpbench/v1.0/ 目录下。
- 数据文件格式:
instances.jsonl - 元数据文件:
croissant.json(采用 Croissant 1.1 标准,包含NeurIPS 2026数据集与基准测试赛道要求的AI责任字段) - 每个实例的详细模式:参见
data/autolpbench/v1.0/README.md
关键特性
- 生成器模式:AutoLPBench 是一个生成器,下游评估者可以通过调用
src/inverse_kkt.py或使用 Docker 的--generate标志,在任何规模和随机种子下生成新的批次,从结构上避免训练集泄露。 - 许可证:MIT 许可证。

- 1A$^{2}$utoLPBench: An Auto-Generated, Agent-Friendly LP Benchmark via Inverse-KKT Construction香港中文大学 · 2026年



