OPT-BENCH
收藏资源简介:
OPT-BENCH是一个全面的基准数据集,旨在评估大型语言模型(LLM)在大型搜索空间优化问题上的性能。它包括来自Kaggle的20个真实世界机器学习任务和10个经典的NP完全或NP难组合优化问题。这些任务涵盖了回归、分类等预测领域,以及图着色、汉密尔顿回路等组合复杂性计算挑战。OPT-BENCH还引入了OPT-Agent,一个端到端的优化框架,它通过生成、验证和迭代改进解决方案来模拟人类的推理过程。该数据集为LLM在机器学习和组合域中的迭代优化和推理研究提供了强大的平台。
OPT-BENCH is a comprehensive benchmark dataset designed to evaluate the performance of Large Language Models (LLMs) on large search-space optimization problems. It includes 20 real-world machine learning tasks sourced from Kaggle and 10 classic NP-complete or NP-hard combinatorial optimization problems. These tasks cover prediction domains such as regression and classification, as well as combinatorial computational challenges including graph coloring, Hamiltonian circuits, and others. OPT-BENCH also introduces OPT-Agent, an end-to-end optimization framework that simulates human reasoning processes by generating, validating, and iteratively improving solutions. This dataset provides a robust platform for research on iterative optimization and reasoning of LLMs in both machine learning and combinatorial domains.
OPT-BENCH 数据集概述
数据集简介
- 名称: OPT-BENCH
- 类型: 大型语言模型(LLM)评估基准
- 目的: 评估LLM在具有大搜索空间的问题上的解决能力,以及通过历史反馈改进解决方案的能力
数据集内容
- 任务类型:
- 20个机器学习任务
- 10个NP问题
- 评估重点:
- 模型通过历史反馈改进解决方案的能力
- 迭代推理和认知能力提升
数据集特点
- OPT-Agent框架: 端到端自动评估框架,支持LLM从历史反馈中学习
- 实验范围: 涵盖6个不同模型家族的9个最先进LLM
- 问题规模: 专门设计用于评估大规模搜索空间问题的解决能力
数据集统计
- 包含详细的任务案例和数据分析(具体统计图表见原始页面)
使用方式
环境准备
- Python版本要求: ≥3.10
- 安装依赖:
pip install -r requirements.txt
推理示例
-
API模型: bash export API_KEY="Your api key" export BASE_URL="Your api URL"
-
开源模型: bash export API_KEY=EMPTY export BASE_URL="Your model URL"
任务运行
-
机器学习任务: bash cd OPT-BENCH python run_exp.py --data_dir OPTAgent/example_tasks/spaceship-titanic --steps 1 --base_model gpt-4o-2024-08-06
-
NP问题: bash python run_exp.py --data_dir OPTAgent/example_tasks/hamiltonian-cycle --task_field NP --steps <your steps default is 10> --base_model <your model default is 4o>
任务扩展
- 数据准备: 在
OPTAgent/example_tasks目录中添加数据 - 任务描述: 需包含Description、Metric和Submission Format部分
- 验证脚本: 需准备
validation.py进行规则验证
相关资源
- 论文: Arxiv: OPT-BENCH
- 项目页面: GitHub
- 数据集: Hugging Face




