AlgoWorlds: Benchmarking Tool Use for Global Optimization in Algorithmic Worlds
Organizations: Weixin AI, Tencent · University of Southern California
Abstract
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? We introduce AlgoWorlds, a benchmark that transforms formally specified combinatorial optimization problems into partially observed decision environments with verifiable global optima. Each environment contains a hidden instance observed only through task-specific information tools, after which the agent commits to one structured decision evaluated for feasibility and optimality. AlgoWorlds contains 240 environments covering ten combinatorial optimization families and four workload levels. Family-specific deterministic programs generate the instances, exact algorithms certify their optima and determine workload levels, and two structurally different tool interfaces present each underlying instance. We evaluate seven leading LLMs, including Claude Opus 4.8 and GPT-5.6 Sol. Achieving global optimality remains highly challenging: although leading models produce feasible decisions in most cases, the best-performing model reaches exact optimality in only 38.61% of cases. Even when 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. The project homepage is available at https://xzx34.github.io/AlgoWorlds/, and the code is available at https://github.com/xzx34/AlgoWorlds.
Figures & tables
| Task family | Decision | Instance data in | Exact solution method | |
| Transit Routing | One route leg per stage | Stage-specific legs, travel times, line labels, directed transfer costs, and residues | Residue and last-line dynamic program | 6 |
| Basket Assembly | A ticket set forming an exact cover | Requirements, ticket–item incidence, and prices | First-uncovered-item bitmask dynamic program | 5 |
| Station Siting | One site per zone | Shared capacity, site costs, and bounded-span pairwise demand rewards | Resource-aware band-frontier dynamic program | 4 |
| Authorization Planning | A package sequence | Authorization relations, policy adjustments, handoffs, and clearance residue | Product-state dynamic program | 6 |
| Series Portfolio | One lot per title | Lot values, scopes, and overlapping signed factors | Bounded-span factor dynamic program | 6 |
| Machine Layout | A machine-to-slot permutation | Machine flows, a unit-spaced slot order, and placement adjustments | Cut-identity subset dynamic program | 8 |
| Final-decision metrics | Trajectory diagnostics | ||||
| Model | Exact optimality | Feasibility | Reference utility | Information sufficiency | Discovery coverage |
| Qwen 3.5 Plus | 5.42 0.42 | 48.89 1.73 | 15.82 0.87 | 37.92 1.25 | 81.55 0.42 |
| DeepSeek V4 Pro | 16.11 1.05 | 83.89 1.34 | 28.49 0.91 | 79.58 1.67 | 97.74 0.11 |
| GLM 5.2 | 24.86 0.64 | 64.58 3.15 | 35.48 2.67 | 83.33 3.82 | 93.91 1.49 |
| GPT-5.6 Terra | 26.39 1.34 | 87.78 0.87 | 54.10 1.95 | 79.72 3.13 | 96.65 0.25 |
| GPT-5.6 Sol | 38.19 1.34 | 97.50 0.00 | 74.98 1.77 | 89.86 0.64 | 99.10 0.13 |
| Information sufficiency | Three final results in informative trajectories | |||
| Model | Globally optimal | Feasible but suboptimal | Other failure | |
| Qwen 3.5 Plus | 37.9 | 3.3 | 49.9 | 46.8 |
| DeepSeek V4 Pro | 79.6 | 17.8 | 69.4 | 12.8 |
| GLM 5.2 | 83.3 | 26.0 | 40.5 | 33.5 |
| GPT-5.6 Terra | 79.7 | 29.2 | 59.8 | 11.0 |
| GPT-5.6 Sol | 89.9 | 41.6 | 56.3 | 2.1 |
| Task family | Terra | Sol | Qwen | DeepSeek | Opus | Sonnet | GLM |
| Transit Routing | 0.0 | 1.4 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| Basket Assembly | 100.0 | 100.0 | 47.2 | 88.9 | 100.0 | 100.0 | 97.2 |
| Station Siting | 83.3 | 98.6 | 0.0 | 8.3 | 97.2 | 90.3 | 58.3 |
| Authorization Planning | 18.1 | 72.2 | 0.0 | 4.2 | 62.5 | 59.7 | 19.4 |
| Series Portfolio | 0.0 | 0.0 | 0.0 | 0.0 | 9.7 | 1.4 | 0.0 |
| Machine Layout | 1.4 | 1.4 | 0.0 | 0.0 | 4.2 | 0.0 | 0.0 |
| Workload level | ||||
| Model | L1 | L2 | L3 | L4 |
| GPT-5.6 Terra | 27.2 / 68.4 | 30.6 / 61.0 | 21.7 / 47.2 | 26.1 / 39.8 |
| GPT-5.6 Sol | 42.2 / 87.8 | 38.9 / 81.3 | 35.0 / 69.2 | 36.7 / 61.7 |
| Qwen 3.5 Plus | 4.4 / 20.3 | 10.0 / 17.1 | 4.4 / 15.3 | 2.8 / 10.6 |
| DeepSeek V4 Pro | 19.4 / 35.9 | 18.3 / 27.6 | 11.7 / 22.3 | 15.0 / 28.1 |
| Claude Opus 4.8 | 44.4 / 84.0 | 41.1 / 76.7 | 32.2 / 69.8 | 36.7 / 62.1 |
| Exact-optimality comparison | Matched outcomes | ||||||
| Model | Direct | Mediated | 95% paired bootstrap interval | Direct wins | Mediated wins | Ties | |
| GPT-5.6 Terra | 27.2 | 25.6 | +1.7 | 19 | 13 | 328 | |
| GPT-5.6 Sol | 40.6 | 35.8 | +4.7 | 25 | 8 | 327 | |
| Qwen 3.5 Plus | 6.1 | 4.7 | +1.4 | 11 | 6 | 343 | |
| DeepSeek V4 Pro | 16.4 | 15.8 | +0.6 | 15 | 13 | 332 | |
| Claude Opus 4.8 | 39.2 | 38.1 | +1.1 | 17 | 13 | 330 | |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| Tool | Arguments | Returned information or effect | |
| read_fleet_policy | None | Vehicle capacities and the complete vehicle and job rosters | 2 |
| read_job | One job | Its load and eligible vehicles, without route costs | 1 |
| read_vehicle_contract | One vehicle | Its fixed activation cost, without capacity or assigned jobs | 4 |
| read_route_row | One vehicle | Interface-specific route records associated with that vehicle | 3 |
| read_dispatch_window | Start job and length 2 or 3 | Loads, eligible vehicles, and interface-specific route records for consecutive jobs | 14 |
| evaluate_assignment | One complete mapping | Feasibility and, when feasible, its objective value | 5 |
| Task family | Principal scale-bearing quantities | Structure producing global coupling |
| Transit Routing | Numbers of stages, candidate legs, and lines | Residue condition and directed transfer costs between consecutive lines |
| Basket Assembly | Item-group and ticket-catalog sizes | Ticket–item incidence and exact-cover overlap |
| Station Siting | Numbers of zones and demand relations | Shared site-count constraint and bounded-span pairwise demand terms |
| Authorization Planning | Numbers of stages, packages, and authorized transitions | Authorized transitions, handoffs, and the global clearance residue |
| Series Portfolio | Numbers of titles, lots, and factors | Overlapping bounded factor scopes |
| Machine Layout | Numbers of machines and slots | Permutation feasibility and pairwise flow terms |
| Construction artifact | Template action | Paired-world relation and agent visibility |
| Hidden instance | Supplies the constraints, objective terms, and case-specific values | Shared by the paired worlds and not provided directly to the agent. |
| Textual question | Instantiates the family task statement and the public identifiers needed to describe and submit a decision | Identical in the paired worlds and provided to the agent. |
| Private interface records | Maps the fields of into the relational records queried by an interface’s tools | Organized differently in the Direct and Mediated worlds; selected records appear only through executed tool responses. |
| Information tools | Defines the callable operations, argument schemas, and record queries | The agent receives the tool schemas and the responses to executed calls, but not the complete private record collection. |
| Cost function and budget | Assigns per-call costs and the total amount available for one trajectory | Identical in the paired worlds and provided to the agent. |
| Final-decision tool | Defines the family’s structured decision format and records the submitted decision | Identical in the paired worlds; its schema is provided to the agent, and an executed call commits the final decision. |
| Task family | Independent verification algorithm |
| Transit Routing | Represents the computation as exhaustive relaxation over the dense stage–line–residue graph rather than as the construction run’s ordered predecessor scan. |
| Basket Assembly | Uses a forward-mask recurrence over the tripartite coverage state rather than the first-uncovered-item recurrence. |
| Station Siting | Uses a top-down recurrence with the generic at-most- capacity semantics rather than the construction run’s saturation reduction. |
| Authorization Planning | Uses a reverse suffix recurrence rather than the forward prefix recurrence. |
| Series Portfolio | Scans from right to left and closes each factor at its leftmost position rather than scanning left to right and closing it at its rightmost position. |
| Machine Layout | Builds the layout from the first slot by choosing the next machine rather than choosing the final machine of each prefix. |
| Task family | Info. groups | Sufficient set size | Call count | Call cost | Budget / exhaustive | Algorithmic work |
| Transit Routing | 3 | 1,755–6,963 | 59–147 | 226–634 | 524–884 / 637–1,558 | 50,737–47,619,285 |
| Basket Assembly | 2 | 262–640 | 38–180 | 172–764 | 260–780 / 1,020–2,554 | 35,646–39,098,995 |
| Station Siting | 2 | 284–326 | 172–234 | 558–774 | 577–779 / 915–1,293 | 55,391–34,318,974 |
| Authorization Planning | 3 | 2,633–7,781 | 17–73 | 99–291 | 120–296 / 729–1,257 | 43,747–35,313,268 |
| Series Portfolio | 2 | 381–1,458 | 24–141 | 196–924 | 1,228–1,924 / 1,491–5,658 | 54,587–34,402,415 |
| Machine Layout | 3 | 444–1,300 | 10–42 | 93–370 | 129–377 / 963–3,166 | 111,668–46,226,237 |
| Validated property | Validation unit | Count | Pass criterion |
| Fixed construction membership | Hidden instance | 120 | Each predetermined family–level–index coordinate yields its reproducible instance. |
| Optimum agreement and uniqueness | Hidden instance | 120 | The construction and independent verification algorithms agree on the optimal decision and value and confirm a unique optimum. |
| Decision checking | Algorithmic world | 240 | The checker accepts the verified optimal decision and reproduces its objective value. |
| Reference decision | Algorithmic world | 240 | The reference is feasible and has . |
| Sufficient information acquisition | Acquisition plan | 480 | The responses reconstruct , recover its verified optimum, span multiple information channels, and fit within budget with the candidate-evaluation reserve and within the information-call cap. |
| Full-catalog budget | Algorithmic world | 240 | Issuing every request in the finite fact-revealing catalog exceeds . |
| Quantity | Per-evaluation value | Within-trial summary |
| Exact optimality | ; one only for a feasible decision at the verified optimum. | Percentage with value one. |
| Feasibility | ; one when the family-specific checker accepts the submitted decision. | Percentage with value one. |
| Reference utility | , defined in Equation 4 . | Arithmetic mean on its – scale. |
| Information sufficiency | ; one when the information-tool responses contain at least one sufficient information set in full. | Percentage with value one. |
| Discovery coverage | ; the largest fraction of any sufficient information set contained in those responses. | Arithmetic mean multiplied by 100. |
| Counter | Executed operation represented |
| A recurrence, graph, frontier, subset, or mask state visited by the exact algorithm. | |
| A predecessor, successor, assignment, or other candidate transition examined from a state. | |
| A feasibility, capacity, compatibility, residue, or other constraint condition checked during the computation. | |
| An update to a stored objective or dynamic-programming value. | |
| A component of the structured optimal decision recovered during reconstruction. |
| Task family | Complexity parameters | Worst-case running time |
| Transit Routing | Stages , legs per stage , lines , and residue modulus | |
| Basket Assembly | Items per group and examined ticket extensions | |
| Station Siting | Zones , counter range for , and frontier width | |
| Authorization Planning | Residue modulus and authorization-graph vertex and edge counts | |
| Series Portfolio | Titles , factor span , and factors closing per position | |
| Machine Layout | Machines and machine-subset states |
| Task family | Level 1 | Level 2 | Level 3 | Level 4 |
| Transit Routing | 50,737–54,053 | 1,132,766–1,201,734 | 8,922,755–9,191,138 | 45,715,806–47,619,285 |
| Basket Assembly | 35,646–56,392 | 773,416–1,558,838 | 6,430,549–7,063,570 | 32,683,874–39,098,995 |
| Station Siting | 55,391–55,424 | 1,196,297–1,214,030 | 5,829,214–6,245,492 | 34,289,268–34,318,974 |
| Authorization Planning | 43,747–44,176 | 994,240–999,048 | 7,036,179–7,045,627 | 35,238,569–35,313,268 |
| Series Portfolio | 54,587 | 973,647 | 6,698,087 | 34,402,415 |
| Machine Layout | 111,668–113,178 | 1,093,813–1,107,918 | 10,405,214–10,470,928 | 46,053,123–46,226,237 |
| Model | Model ID / API | Thinking / reasoning | Output cap | Temperature |
| GPT-5.6 Terra | gpt-5.6-terra Responses API | reasoning.effort=max | 128K | Omitted |
| GPT-5.6 Sol | gpt-5.6-sol Responses API | reasoning.effort=max | 128K | Omitted |
| Qwen 3.5 Plus | qwen3.5-plus Chat Completions API | thinking=true; budget=81,920 | 65,536 | 0.6 |
| DeepSeek V4 Pro | deepseek-v4-pro-202606 Chat Completions API | thinking=true; reasoning_effort=max | 128K | Omitted |
| Claude Opus 4.8 | claude-opus-4-8 Anthropic Messages API | adaptive thinking; effort=max | 128K | Omitted |
| Claude Sonnet 5 | claude-sonnet-5 Anthropic Messages API | adaptive thinking; effort=max | 128K | Omitted |
| Model | Globally optimal | Feasible suboptimal | Infeasible | No decision | Protocol violation |
| GPT-5.6 Terra | 63.3 | 147.3 | 29.3 | 0.0 | 0.0 |
| GPT-5.6 Sol | 91.7 | 142.3 | 6.0 | 0.0 | 0.0 |
| Qwen 3.5 Plus | 13.0 | 104.3 | 121.7 | 0.0 | 1.0 |
| DeepSeek V4 Pro | 38.7 | 162.7 | 33.7 | 5.0 | 0.0 |
| Claude Opus 4.8 | 92.7 | 138.3 | 5.7 | 3.3 | 0.0 |
| Claude Sonnet 5 | 77.7 | 143.3 | 17.7 | 1.3 | 0.0 |
| Model | Reference utility | Median regret | 90th percentile regret | Globally optimal | Better than reference | Reference or worse | Infeasible, absent, or protocol violation |
| GPT-5.6 Terra | 54.10 1.95 | 0.526 | 1.582 | 63.3 | 91.3 | 56.0 | 29.3 |
| GPT-5.6 Sol | 74.98 1.77 | 0.214 | 1.000 | 91.7 | 119.3 | 23.0 | 6.0 |
| Qwen 3.5 Plus | 15.82 0.87 | 1.000 | 4.277 | 13.0 | 30.7 | 73.7 | 122.7 |
| DeepSeek V4 Pro | 28.49 0.91 | 1.000 | 2.582 | 38.7 | 55.7 | 107.0 | 38.7 |
| Claude Opus 4.8 | 73.14 11.81 | 0.354 | 1.000 | 92.7 | 107.0 | 31.3 | 9.0 |
| Claude Sonnet 5 | 67.20 9.53 | 0.357 | 0.973 | 77.7 | 118.7 | 24.7 | 19.0 |
| Conditioning count | Final-decision outcomes | |||||
| Model | Information sufficiency | Globally optimal | Feasible suboptimal | Infeasible | No decision | Protocol violation |
| GPT-5.6 Terra | 191.3 | 56.0 | 114.3 | 21.0 | 0.0 | 0.0 |
| GPT-5.6 Sol | 215.7 | 89.7 | 121.3 | 4.7 | 0.0 | 0.0 |
| Qwen 3.5 Plus | 91.0 | 3.0 | 45.3 | 42.3 | 0.0 | 0.3 |
| DeepSeek V4 Pro | 191.0 | 34.0 | 132.7 | 21.3 | 3.0 | 0.0 |
| Claude Opus 4.8 | 195.7 | 71.7 | 116.3 | 4.3 | 3.3 | 0.0 |
| Reference utility / discovery coverage | |||||||
| Task family | Terra | Sol | Qwen | DeepSeek | Opus | Sonnet | GLM |
| Transit Routing | 40.0/90.6 | 77.1/98.4 | 0.5/55.2 | 3.6/98.2 | 53.5/98.2 | 19.8/99.7 | 1.3/98.6 |
| Basket Assembly | 100.0/99.3 | 100.0/99.5 | 59.0/80.9 | 91.6/98.7 | 100.0/89.6 | 100.0/95.7 | 98.5/94.8 |
| Station Siting | 88.8/94.9 | 99.9/100.0 | 2.5/48.7 | 10.0/99.1 | 98.8/95.6 | 92.1/96.3 | 59.5/97.9 |
| Authorization Planning | 18.9/96.9 | 75.6/100.0 | 0.0/99.2 | 4.2/99.2 | 65.0/100.0 | 65.7/100.0 | 19.4/98.6 |
| Series Portfolio | 20.8/96.9 | 34.5/100.0 | 0.2/68.2 | 1.2/100.0 | 48.9/100.0 | 49.6/98.3 | 7.4/98.6 |
| Trial exact-optimality rate | Trials attaining exact optimality per world | Pairwise agreement | ||||||
| Model | T1 | T2 | T3 | 0/3 | 1/3 | 2/3 | 3/3 | |
| GPT-5.6 Terra | 27.9 | 25.4 | 25.8 | 164 | 8 | 22 | 46 | 91.7 |
| GPT-5.6 Sol | 39.2 | 38.8 | 36.7 | 135 | 16 | 8 | 81 | 93.3 |
| Qwen 3.5 Plus | 5.8 | 5.4 | 5.0 | 218 | 9 | 9 | 4 | 95.0 |
| DeepSeek V4 Pro | 17.1 | 16.2 | 15.0 | 187 | 14 | 15 | 24 | 91.9 |
| Claude Opus 4.8 | 33.3 | 40.4 | 42.1 | 127 | 18 | 25 | 70 | 88.1 |
| Trajectory-level summaries | Tool use | Conditional and termination summaries | |||||
| Model | Discovery | Grounding | Sufficiency | Calls | Exact given sufficiency | Info.-call cap | Budget cap |
| GPT-5.6 Terra | 96.65 | 100.00 | 79.72 | 54.9 | 29.24 | 0.0 | 0.0 |
| GPT-5.6 Sol | 99.10 | 100.00 | 89.86 | 57.4 | 41.57 | 0.0 | 0.0 |
| Qwen 3.5 Plus | 81.55 | 97.91 | 37.92 | 34.6 | 3.31 | 0.0 | 0.0 |
| DeepSeek V4 Pro | 97.74 | 97.27 | 79.58 | 69.0 | 17.82 | 2.0 | 0.7 |
| Claude Opus 4.8 | 97.33 | 98.60 | 81.53 | 58.2 | 36.33 | 3.3 | 0.0 |
| Overall acquisition | Conditional spend | ||||
| Model | Calls | Spend | Spend / budget | Given information sufficiency | Given exact optimality |
| GPT-5.6 Terra | 54.9 | 335.4 | 68.1% | 360.1 | 367.3 |
| GPT-5.6 Sol | 57.4 | 448.2 | 80.6% | 464.0 | 323.8 |
| Qwen 3.5 Plus | 34.6 | 291.9 | 66.5% | 273.4 | 311.7 |
| DeepSeek V4 Pro | 69.0 | 424.5 | 83.0% | 455.1 | 335.4 |
| Claude Opus 4.8 | 58.2 | 367.6 | 73.3% | 353.7 | 328.9 |
| Field | Recorded trajectory |
| Archetype | Tool responses do not contain a sufficient information set in full |
| World | Station Siting, Mediated, L2, instance 1; DeepSeek V4 Pro, trial 2 |
| Recorded calls | read zone window (8); read zone (3); read demand (11) |
| Final result | No final decision; discovery coverage 35.0%. |
| Archetype | Sufficient information, infeasible |
| World | Evidence-Joined Routing, Mediated, L1, instance 2; GPT-5.6 Terra, trial 1 |
AI Agent Benchmarks
AI agent benchmarks measure how reliably autonomous systems plan, use tools, interact, and complete tasks across controlled and real-world settings.
See all 1,482 papers