遇见数据集

RioLee/TRBench-BFCL

收藏
Hugging Face2025-11-10 更新2025-11-15 收录
官方服务:

资源简介:

--- license: apache-2.0 language: - en tags: - function-calling - LLM agent - reward model task_categories: - text-classification --- # TRBench-BFCL <p align="left"> <a href="https://arxiv.org/abs/2510.26167">[Paper]</a> | <a href="https://huggingface.co/RioLee/ToolRM-Qwen3-4B-Thinking-2507">[Model]</a> | <a href="https://huggingface.co/datasets/RioLee/TRBench-BFCL">[Benchmark]</a> | <a href="https://github.com/lirenhao1997/ToolRM">[Code]</a> </p> ## 💡 Summary This dataset is a part of [One Model to Critique Them All: Rewarding Agentic Tool-Use via Efficient Reasoning](https://arxiv.org/abs/2510.26167) and serves as **a dedicated benchmark for evaluating reward models in tool-use settings**. It comprises 2,983 preference annotations buit upon [BFCL V3](https://gorilla.cs.berkeley.edu/blogs/13_bfcl_v3_multi_turn.html), with assistant responses extracted from archived trajectories available in this [github repo](https://github.com/HuanzhiMao/BFCL-Result). ## 🌟 Overview ToolRM is a family of lightweight generative reward models tailored for general tool-use scenarios. To build these models, we propose a novel pipeline that constructs pairwise preference data using rule-based scoring and multidimensional sampling. This yields [ToolPref-Pairwise-30K](https://huggingface.co/datasets/RioLee/ToolPref-Pairwise-30K), a diverse, balanced, and challenging dataset of critique tasks that supports reinforcement learning with verifiable feedback. To evaluate tool-use RMs, we also introduce [TRBench-BFCL](https://huggingface.co/datasets/RioLee/TRBench-BFCL), a benchmark built on the agentic evaluation suite BFCL. Trained on our constructed data, models from the Qwen3-4B/8B series outperform several giant LLMs in pairwise reward judgments. Beyond training objectives, ToolRM generalizes to broader critique tasks, including Best-of-N sampling and self-correction. ## 🔧 Usage The datasets are saved as parquet files. You can easily load them with `datasets` library: ```python from datasets import load_dataset dataset = load_dataset('parquet', data_files=<your_local_dataset_path>) data_list = dataset['train'].to_list() ``` Each data sample is duplicated, with the response order swapped in the second half of the dataset, to minimize position bias in LLM evaluation. For each JSON-formatted data sample, you can either use the templated prompt in the `prompt` field for the critique task or use the original messages in `chat_history`, `chosen_response`, and `reject_response`, as you prefer. The ground truth answer of each sample is saved as a string in `reward_model`->`ground_truth`. Please refer to this [github repo](https://github.com/lirenhao1997/ToolRM) for evaluating different reward models on this benchmark. Note that we respectively use the `think` and `no_think` prompt templates to create the datasets. Upon evaluations, use the `*_think` dataset for reasoning models and the `*_no_think` dataset for non-reasoning models. ## 📊 Evaluation Results On TRBench-BFCL, we evaluate and report the weighted-average classification accuracy for the following reward models: | Models | W-Avg. | |--------|--------| | *--------Proprietary & Open-source Frontier LLMs--------* || | DeepSeek-AI/DeepSeek-R1-0528 | 57.93 | | OpenAI/GPT-4o-2024-11-20 | 59.00 | | OpenAI/o3-2025-04-16 | 59.40 | | Google/Gemini-2.5-Flash | 59.87 | | Google/Gemini-2.5-Pro | 59.94 | | Qwen/Qwen3-235B-A22B-Thinking-2507 | 60.64 | | DeepSeek-AI/DeepSeek-V3-0324 | 61.45 | | Qwen/Qwen2.5-Max | 62.39 | | Anthropic/Claude-3.7-Sonnet | 62.45 | | Anthropic/Claude-4-Sonnet | 64.23 | | *--------Open-source Reward Models--------* || | [Databricks/CLoud-RM-Llama-3-8B](https://huggingface.co/ankner/Llama3-8B-CLoud-RM) | 37.34 | | [Unbabel/M-Prometheus-7B](https://huggingface.co/Unbabel/M-Prometheus-7B) | 51.19 | | [Microsoft-Research/RRM-7B](https://huggingface.co/Reward-Reasoning/RRM-7B) | 56.05 | | [UIUC/RM-R1-DeepSeek-Distilled-Qwen-32B](https://huggingface.co/gaotang/RM-R1-DeepSeek-Distilled-Qwen-32B) | 56.25 | | [Unbabel/M-Prometheus-14B](https://huggingface.co/Unbabel/M-Prometheus-14B) | 56.32 | | [Skywork/Skywork-Critic-Llama-3.1-8B](https://huggingface.co/Skywork/Skywork-Critic-Llama-3.1-8B) | 56.92 | | [Skywork/Skywork-Critic-Llama-3.1-70B](https://huggingface.co/Skywork/Skywork-Critic-Llama-3.1-70B) | 60.31 | | [Microsoft-Research/RRM-32B](https://huggingface.co/Reward-Reasoning/RRM-32B) | 64.50 | | [Skywork/Skywork-Reward-Llama-3.1-8B-v0.2](https://huggingface.co/Skywork/Skywork-Reward-Llama-3.1-8B-v0.2) | 70.23 | | [InternLM/InternLM2-7B-Reward](https://huggingface.co/internlm/internlm2-7b-reward) | 71.17 | | *--------Models Trained on ToolPref-Pairwise-30K--------* || | [Qwen/Qwen3-4B-Instruct-2507](https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507) | 59.67 | | ToolRM-Qwen3-4B-Instruct-2507 | 66.85 (+7.18) | | [Qwen/Qwen3-4B (Thinking mode)](https://huggingface.co/Qwen/Qwen3-4B) | 59.34 | | ToolRM-Qwen3-4B | 68.89 (+9.55) | | [Qwen/Qwen3-8B (Thinking mode)](https://huggingface.co/Qwen/Qwen3-8B) | 59.44 | | ToolRM-Qwen3-8B | 68.92 (+9.48) | | [Qwen/Qwen3-4B-Thinking-2507](https://huggingface.co/Qwen/Qwen3-4B-Thinking-2507) | 57.59 | | **[ToolRM-Qwen3-4B-Thinking-2507](https://huggingface.co/RioLee/ToolRM-Qwen3-4B-Thinking-2507)** | **71.87 (+14.28)** | Please refer to our paper for more detailed evaluation results. ## 🙏 Acknowledgments We are grateful to [BFCL](https://github.com/ShishirPatil/gorilla/tree/main/berkeley-function-call-leaderboard) for providing a high-quality foundation for this reward-model benchmark, and to [fc-reward-bench](https://huggingface.co/datasets/ibm-research/fc-reward-bench) for pioneering evaluation in this field. ## 📝 Citation If you find our work helpful, feel free to give us a cite. ``` @misc{li2025modelcritiqueallrewarding, title={One Model to Critique Them All: Rewarding Agentic Tool-Use via Efficient Reasoning}, author={Renhao Li and Jianhong Tu and Yang Su and Hamid Alinejad-Rokny and Derek F. Wong and Junyang Lin and Min Yang}, year={2025}, eprint={2510.26167}, archivePrefix={arXiv}, primaryClass={cs.AI}, url={https://arxiv.org/abs/2510.26167}, } ```

TRBench-BFCL is a dedicated benchmark for evaluating reward models in tool-use settings, comprising 2,983 preference annotations based on BFCL V3.

提供机构:
RioLee
搜集汇总
数据集介绍
构建方式
TRBench-BFCL 是 ToolRM 框架中专门用于评估工具使用场景下奖励模型性能的基准数据集。其构建基于 Berkeley Function Calling Leaderboard (BFCL V3) 的智能体评估套件,从该平台存档的交互轨迹中提取助手的响应,并构建了共计 2,983 条偏好标注样本。数据构建过程中采用了规则化评分与多维采样相结合的流水线,生成了具有成对偏好结构的数据集 ToolPref-Pairwise-30K,在此基础上进一步筛选与整合,最终形成 TRBench-BFCL。数据集以 parquet 格式存储,每个样本被复制并交换响应顺序,以缓解位置偏差对评估结果的影响。
使用方法
使用者可通过 HuggingFace 的 datasets 库加载 parquet 格式的 TRBench-BFCL 数据集,调用 load_dataset 函数并指定本地文件路径即可获取数据列表。每个样本包含 prompt 字段(提供模板化提示)以及 chat_history、chosen_response、reject_response 等原始消息字段,可根据评估需求灵活选用。真实标签存储于 reward_model 字段下的 ground_truth 中。评估时,需根据模型类型选择对应的数据集版本:推理模型使用 *_think 数据集,非推理模型使用 *_no_think 数据集。详细的评估流程与代码示例可参考 ToolRM 的官方 GitHub 仓库。
背景与挑战
背景概述
TRBench-BFCL是由Renhao Li等研究人员于2025年提出、面向工具使用场景中奖励模型评估的专用基准。该数据集隶属于ToolRM项目,旨在填补大语言模型在函数调用与智能体工具使用领域缺乏标准化奖励模型评估体系的空白。研究团队基于BFCL V3构建了包含2983条偏好标注的高质量数据集,并从中提取辅助响应,为评估生成式与判别式奖励模型提供了可靠平台。TRBench-BFCL的出现不仅推动了轻量级奖励模型在工具使用场景中的发展,也为后续基于强化学习的工具调用优化奠定了方法论基础,在智能体系统评估领域产生了重要影响。
当前挑战
该数据集面临的核心挑战首先在于工具使用场景中奖励模型的评估标准尚未统一,现有的通用奖励模型难以准确捕捉函数调用的细微语义差异与多步操作的正确性。其次,构建过程中需处理BFCL轨迹数据中响应顺序偏差、多轮对话中的上下文依赖性以及不同模型输出风格的不一致性,这些因素增加了偏好标注的复杂性与噪声。此外,如何在有限标注规模下平衡数据多样性、难度与代表性,并避免模型在评估时因位置偏差而产生虚假关联,也是构建该基准时需克服的重要难题。
常用场景
经典使用场景
TRBench-BFCL作为工具使用场景下奖励模型的专用评测基准,其最经典的使用场景在于系统性地评估各类奖励模型在智能体工具调用任务中的偏好判断能力。该数据集基于BFCL V3构建,包含2983条偏好标注样本,覆盖了工具调用轨迹中助手响应的多维质量评估维度。研究者可通过该基准对比生成式与判别式奖励模型在加权平均分类准确率上的表现,从而筛选出最适合工具使用场景的奖励信号模型。
解决学术问题
该数据集有效解决了工具使用场景中奖励模型缺乏标准化评测基准的学术难题。在ToolRM框架提出前,学界对工具调用任务中的奖励建模缺乏统一评估指标,导致不同模型间难以进行公平比较。TRBench-BFCL通过提供包含真实偏好标注的测试集,使得研究者能够量化评估奖励模型在复杂工具交互场景中的泛化能力,推动了奖励模型从通用文本评价向专用工具使用评价的范式转变。
实际应用
在实际应用中,TRBench-BFCL评测体系直接服务于智能体系统的质量保障环节。开发人员可利用该基准筛选最优奖励模型,用于强化学习训练中的反馈信号生成、最佳-of-N采样策略优化以及智能体自我纠错能力提升。尤其在构建需要调用外部工具的对话系统、自动化工作流引擎和机器人流程自动化平台时,该基准能够帮助工程师选择最可靠的奖励模型,从而提升智能体在真实工具调用场景中的决策准确性。
数据集最近研究
最新研究方向
在大型语言模型(LLM)智能体工具调用能力快速演进的背景下,奖励模型(Reward Model)的评估与优化成为前沿焦点。TRBench-BFCL作为专为工具使用场景设计的奖励模型基准,其研究紧跟智能体系统对可靠反馈机制的需求。该数据集基于BFCL V3构建,包含近三千条偏好标注,旨在评估奖励模型在复杂工具调用任务中的判断能力。当前,相关研究聚焦于如何通过规则化评分与多维采样生成高质量偏好数据,并探索轻量级生成式与判别式奖励模型(如ToolRM系列)在最佳N采样、自我纠错及下游强化学习中的泛化表现。这一方向不仅推动了奖励模型从通用文本评判向工具使用场景的迁移,也为提升LLM智能体的可靠性与自主性提供了关键支撑,在AI代理与工具集成领域具有深远影响。
以上内容由遇见数据集搜集并总结生成
二维码
社区交流群
二维码
科研交流群
商业服务