RuleTrek:在复杂场景中对智能体规则推理进行基准测试
研究论文 · 2026/10/15
大型语言模型(LLM)日益处理专业领域中的复杂现实任务,但当场景信息分布在多个文件中时,识别并正确应用领域特定规则仍具挑战性。现有规则推理基准通常仅用少量事实陈述表示场景,简化了相关规则的识别与应用。为弥补这一空白,本文提出RuleTrek,一个用于复杂场景中智能体规则推理的多领域基准。其基于规则的构建流程提取结构化规则图,生成并增量组合规则特定的子场景,同时确保一致性和可解性。为系统评估复杂场景中的智能体规则推理,RuleTrek在交互式工作空间中评估三项能力:规则识别(RI)、规则演绎(RD)和端到端规则推理(E2E)。对11个前沿LLM的实验表明,最高的RI和RD得分分别仅为62.47%和60.43%,而E2E得分在26.97%至55.29%之间。这些结果表明,当前LLM智能体在复杂场景的规则推理上面临重大挑战。代码和数据集公开于https://github.com/yuan247/RuleTrek。
该研究填补了复杂场景下智能体规则推理基准的空白,揭示了当前前沿LLM在规则识别、演绎和端到端推理上的显著不足,为未来研究提供了可公开使用的数据集和评估框架。
Large language models (LLMs) increasingly tackle complex real-world tasks in specialized domains. However, identifying and correctly applying domain-specific rules remains challenging when scenario information is distributed across multiple files. Existing rule-reasoning benchmarks typically represent scenarios using only a few factual statements, simplifying the identification and application of relevant rules. To address this gap, this paper introduces RuleTrek, a multi-domain benchmark for agentic rule reasoning in complex scenarios. Its rule-grounded construction pipeline extracts structured rule graphs, generates and incrementally composes rule-specific sub-scenarios while ensuring consistency and solvability. To systematically evaluate agentic rule reasoning in complex scenarios, RuleTrek assesses three capabilities in interactive workspaces: Rule Identification (RI), Rule Deduction (RD), and End-to-End Rule Reasoning (E2E). Experiments on 11 frontier LLMs show that the highest RI and RD scores are only 62.47\% and 60.43\%, respectively, while E2E scores range from 26.97\% to 55.29\%. These results demonstrate that current LLM agents face substantial challenges in rule reasoning over complex scenarios. We make our code and dataset publicly available at https://github.com/yuan247/RuleTrek{RuleTrek}.