arXiv:2608.29397cs.CLAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.29397

AlgoWorlds: Benchmarking Tool Use for Global Optimization in Algorithmic Worlds

Zixiang Xu, Jiaan Wang, Fandong Meng

Zixiang Xu1,2,†^{1,2,\dagger}, Jiaan Wang1,∗^{1,*} and Fandong Meng1,∗^{1,*}

1^{1}Weixin AI, Tencent, 2^{2}University of Southern California

Tool-use benchmarks generally evaluate whether an agent completes a workflow using appropriate tools and valid arguments. However, feasibility alone is insufficient in real-world decision settings such as route planning and fleet dispatch. Individual choices interact through shared constraints and costs, so a feasible solution may still be substantially suboptimal. This raises a harder question: can an agent turn information gathered through tools into a globally optimal decision? In this paper, we introduce ALGOWORLDS, a benchmark that transforms formally specified combinatorial optimization problems into partially observed decision environments with global optima. Each environment contains a hidden optimization instance that the agent observes only through sequential calls to task-specific information tools. The agent then commits to one structured decision, which an independent checker evaluates for feasibility, objective value, and optimality. ALGOWORLDS contains 240 such environments, covering ten combinatorial optimization families and four workload levels. To make these environments both controllable and auditable, family-specific deterministic programs generate hidden instances, while exact algorithms certify their global optima and determine their workload levels. Each instance is exposed through two structurally different multi-tool interfaces, which preserve the same decision problem under different information presentation. We evaluate seven leading LLMs, including Claude Opus 4.8 and GPT-5.6 Sol, on ALGOWORLDS. Results show that achieving global optimality remains highly challenging: although leading models achieve feasibility in most cases, the best-performing model achieves exact optimality in only 38.61% of cases. Further analysis shows that even when the LLM agents collect sufficient information to reconstruct the hidden instance, most failures end in feasible but suboptimal decisions. The challenge therefore extends beyond information acquisition to information integration, global constraint reasoning, and decision verification.

Homepage: https://xzx34.github.io/AlgoWorlds/

Code: https://github.com/xzx34/AlgoWorlds

1. Introduction

Tool-use benchmarks evaluate whether an agent selects appropriate tools and completes a prescribed workflow (Li et al., 2023; Yan et al., 2024; Lu et al., 2025b; Yao et al., 2025). These benchmarks generally assess correct tool use and task completion, but neglect whether the solution is globally optimal. In many real-world decision problems, such as route planning, fleet dispatch, and resource allocation, a feasible solution may still be far from optimal (Xie et al., 2024a; Zhang et al., 2026b; Qin et al., 2025). The difficulty is that individual decisions interact through shared constraints and aggregate costs. For example, in the fleet dispatch problem, a dispatcher must assign every job to a vehicle using job requirements, vehicle eligibility, capacities, route costs, and global activation costs distributed across separate information sources. Assigning each job to its cheapest eligible route can violate capacity constraints, while a capacity-feasible assignment can remain substantially suboptimal if it activates an unnecessarily costly set of vehicles. Solving such problems therefore requires multi-source information integration and joint reasoning rather than considering each tool use independently. We therefore ask: Can an LLM agent make a globally optimal decision?

We introduce ALGOWORLDS, a benchmark for evaluating whether LLM agents can turn information acquired through tools into globally optimal decisions. We define an algorithmic world as a

Corresponding author(s): Jiaan Wang (to rchwang@tencent.com); Fandong Meng (fandongmeng@tencent.com)

†^{\dagger}Work was done when Zixiang Xu was interning at Weixin AI, Tencent Inc, China.

(a) Exact-optimality rates

Figure

(b) Information sufficiency

GPT-5.6 Sol evaluations (n = 720)

• Sufficient information 89.86% (647)

• Information sufficiency not met 10.14% (73)

Among evaluations with sufficient information:

• Globally optimal 41.58% (269)

• Feasible but suboptimal 56.26% (364)

• Infeasible 2.16% (14)

(c) One Transit Routing evaluation

GPT-5.6 Sol

Figure

Transfer costs outweigh the travel-time savings.

Figure 1: Sufficient information does not guarantee global optimality. (a) Exact-optimality rates for the seven evaluated LLMs. (b) In the evaluation of GPT-5.6 Sol, trajectories are initially categorized based on whether they gather sufficient information. Those that meet this criterion are further classified according to their final-decision results. (c) An example evaluation of GPT-5.6 Sol on Transit Routing. The trajectory gathers sufficient information and ends with a feasible, albeit non-optimal, route.

decision environment comprising a query, a hidden problem instance, and a set of task-specific tools. Among them, the instance contains the case-specific information that determines the feasible decisions and their objective values, while the tools provide access to different parts of this information. When addressing the task, an LLM agent receives the query and the tools, but not the instance, and should obtain the information needed to make its decision through tool calls. To simulate the limitations of information access in real-world scenarios, each tool use incurs a specific cost within a predefined total access budget. Solving this task thus requires multi-turn interaction, in which the agent decides which tool to query next based on what it has already observed, and finally commits to a decision.

Building such worlds reliably requires hidden instances that can be scaled systematically and whose optima can be verified exactly, together with faithful informational tools. Following this recipe, we instantiate ALGOWORLDS from ten formally specified combinatorial optimization families, e.g., routing, exact cover, facility selection and constrained sequencing. Within each family, a human-written deterministic generator creates hidden instances based on specified size and structure configurations, enabling us to systematically vary the problem's scale and the underlying reasoning structure of its decisions. A tailored exact algorithm then solves each instance to global optimality. We also count the primitive operations the algorithm actually executes to identify four workload levels. We next build the informational tools that expose different parts of an instance, such as the travel distance between two cities. Specifically, we present each hidden instance through two structurally different multi-tool interfaces that expose the same underlying decision information. This paired design lets us assess sensitivity to tool presentation while holding the same optimization problem. To further ensure data quality, we independently confirm each instance's optimal decision, objective value, and uniqueness, verify that the paired interfaces encode the same hidden instance, and confirm that sufficient information can be acquired within the total access budget.

To evaluate LLM agents in ALGOWORLDS, we report three final-decision metrics and two trajectory-oriented diagnostics. (a) Final-decision metrics. Exact optimality, our primary metric, records whether a feasible decision attains the global optimum. Feasibility records whether the decision satisfies the task constraints. Reference utility assigns a feasible decision a continuous score ranging from 0 to 1, with the global optimum at 1 and a predefined suboptimal reference decision at 0. (b) Trajectory-oriented diagnostics. Information sufficiency is satisfied when the trajectory collects enough tool-provided information to reconstruct the hidden instance and determine its global optimum. Discovery coverage measures how close the information gathered along the trajectory comes to meeting that threshold.

Using ALGOWORLDS, we evaluate seven leading LLMs: Claude Opus 4.8 (Anthropic, 2026a),

Claude Sonnet 5 (Anthropic, 2026b), GPT-5.6 Sol, GPT-5.6 Terra (OpenAI, 2026), DeepSeek V4 Pro (DeepSeek-AI, 2026), Qwen 3.5 Plus (Qwen Team, 2026), and GLM 5.2 (Z.ai, 2026). As Figure 1(a) shows, Claude Opus 4.8 achieves the highest exact-optimality rate, at only 38.61%, followed closely by GPT-5.6 Sol at 38.19%. Notably, 89.86% of GPT-5.6 Sol's trajectories contain sufficient information, yet 58.42% of them still end without a globally optimal decision. Most of these failures end in feasible but suboptimal decisions, as Figure 1(b) shows. The Transit Routing example in Figure 1(c) illustrates this pattern. In this example, the trajectory gathers sufficient information, yet GPT-5.6 Sol constructs a feasible route that has lower travel time than the globally optimal route while incurring substantially higher transfer costs. As a result, its overall objective value is 63.3% higher. Together, these results expose a substantial gap between information availability and global optimization: current LLM agents often fail to reach the optimum even when they collect sufficient information.

Our main contributions are threefold. (1) We introduce ALGOWORLDS, a benchmark for evaluating whether LLM agents can turn information acquired through tools into globally optimal decisions. Its 240 algorithmic worlds span ten optimization families and four workload levels. (2) To build the benchmark, we provide a verified optimum and faithful information tools for every hidden instance. Paired tool interfaces further measure the sensitivity of information presentation while holding the same underlying decision problem. (3) Across seven leading LLMs, we identify a clear capability profile: agents are often effective at gathering information and producing feasible decisions, but remain much less reliable at finding the global optimum. This profile is relatively stable across paired interfaces but varies sharply across different optimization families in ways that do not follow classical asymptotic complexity alone.