AlgoWorlds: Benchmarking Tool Use for Global Optimization in Algorithmic Worlds

Weixin AI

Abstract

Tool-use benchmarks generally evaluate whether an agent completes a workflow using appropriate tools and valid arguments. However, feasibility alone is insufficient in 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. AlgoWorlds evaluates whether LLM agents can turn information acquired through tools into globally optimal decisions. It transforms formally specified combinatorial optimization problems into partially observed decision environments with verifiable global optima. Each environment contains a hidden optimization instance that the agent observes only through sequential calls to task-specific information tools. The agent may then commit at most one structured decision, which an independent family-specific checker evaluates for feasibility and objective value; exact optimality is determined against a separately verified optimum. Family-specific deterministic programs generate 120 hidden instances, while exact algorithms certify their global optima and determine their workload levels. Each instance is exposed through paired Direct and Mediated interfaces that preserve the same decision problem under different information presentations, yielding 240 algorithmic worlds across ten optimization families and four workload levels. Independent offline checks confirm the optima and paired-interface equivalence. Across seven leading LLMs, the best-performing model reaches exact optimality in only 38.61% of cases. Even when recorded trajectories contain 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.

Exact-optimality rates for seven evaluated LLMs; GPT-5.6 Sol evaluations divided by information sufficiency, with the sufficient subset broken down by final-decision outcome; and a Transit Routing case where a feasible 24-leg route has 9.6% lower travel time but 241.5% higher transfer cost than the certified optimum, producing an objective 63.3% higher.
Sufficient information does not guarantee global optimality.View full-size figureScroll horizontally to inspect the figure.

Results

Exact optimality, the primary metric, remains low for every evaluated model: mean rates range from 5.42% for Qwen 3.5 Plus to 38.61% for Claude Opus 4.8, with GPT-5.6 Sol close behind at 38.19%. By contrast, Opus and Sol produce feasible decisions in 96.25% and 97.50% of evaluations, respectively. Information sufficiency and discovery coverage are also higher than exact optimality for every model.

Observed exact-optimality rates vary substantially across optimization families. Every model records lower exact optimality and reference utility at L4 than at L1, although the intermediate levels are not uniformly monotonic. Workload indexes the executed work of the offline exact methods; it is not a deterministic ranking of LLM difficulty.

Sufficient information does not guarantee global optimality

For GPT-5.6 Sol, 647 evaluations have trajectories satisfying information sufficiency. Of these, 41.6% reach the global optimum, 56.3% end in a feasible but suboptimal decision, and 2.2% are infeasible. Information sufficiency means that joint normalization of the recorded fact-revealing responses recovers at least one verified sufficient fact set in full; it does not establish that the agent recognized, reconstructed, or correctly used that information.

Globally optimal
41.6%
Feasible but suboptimal
56.3%
Infeasible
2.2%

Overall Performance

Models are ranked by mean exact optimality across three trials on the same set of 240 algorithmic worlds. Values are the mean ± sample standard deviation of the trial-level summaries.

ModelFinal-decision metricsTrajectory diagnostics
Exact optimalityFeasibilityReference utilityInformation sufficiencyDiscovery coverage
AnthropicClaude Opus 4.838.61 ± 4.6596.25 ± 2.8973.14 ± 11.8181.53 ± 8.7497.33 ± 1.45
OpenAIGPT-5.6 Sol38.19 ± 1.3497.50 ± 0.0074.98 ± 1.7789.86 ± 0.6499.10 ± 0.13
AnthropicClaude Sonnet 532.36 ± 3.8592.08 ± 0.8367.20 ± 9.5386.39 ± 7.3698.59 ± 1.08
OpenAIGPT-5.6 Terra26.39 ± 1.3487.78 ± 0.8754.10 ± 1.9579.72 ± 3.1396.65 ± 0.25
Z.aiGLM 5.224.86 ± 0.6464.58 ± 3.1535.48 ± 2.6783.33 ± 3.8293.91 ± 1.49
DeepSeekDeepSeek V4 Pro16.11 ± 1.0583.89 ± 1.3428.49 ± 0.9179.58 ± 1.6797.74 ± 0.11
QwenQwen 3.5 Plus5.42 ± 0.4248.89 ± 1.7315.82 ± 0.8737.92 ± 1.2581.55 ± 0.42

Exact optimality, feasibility, information sufficiency, and discovery coverage are percentages; reference utility is reported as 100 × U. Bold marks the highest mean in each metric and does not imply statistical significance.

Benchmark Details

An algorithmic world combines a textual decision problem, a hidden optimization instance, and a suite of task-specific tools with per-call costs and a total access budget. The agent receives the question, tool schemas, per-call costs, and access budget—but not the hidden instance—and may submit at most one terminal structured decision.

AlgoWorlds contains 120 hidden instances across ten formally specified combinatorial optimization families and four algorithm-grounded workload levels. Each instance is presented through paired Direct and Mediated interfaces that preserve the question, tool-call costs, access budget, and final-decision format while changing the relational organization of the returned information.

Benchmark Structure

Hidden instances
120
Algorithmic worlds
240
Optimization families
10
Algorithm-grounded workload levels
4
Paired interfaces per instance
2
Terminal structured decision
≤1

Data Quality

Before model evaluation, every world is checked for scoring validity, in-budget information access, and paired-interface equivalence.

hidden instances with independently confirmed unique optima
120
algorithmic worlds passing scoring checks
240
validated in-budget acquisition plans
480
channel-level counterfactual checks
648
response-level counterfactual checks
1,464
equivalent Direct–Mediated pairs
120

Benchmark Construction

For each optimization family, construction proceeds in three stages.

  1. 01

    Deterministic instance generation

    A human-written deterministic generator produces each hidden instance from explicit size and structural parameters.

  2. 02

    Exact solution and workload calibration

    A family-specific exact algorithm solves each instance and records the executed work used to assign one of four shared workload levels.

  3. 03

    Tool-mediated world construction

    The same hidden instance is exposed through paired Direct and Mediated interfaces with fixed call costs and an access budget.

Optimization Families

Each family defines its decision space, hidden instance data, exact solution method, and suite of information tools. Tool counts exclude the final-decision tool.

Task familyDecisionInstance dataExact solution methodInformation tools
Transit RoutingOne route leg per stageStage-specific legs, travel times, line labels, directed transfer costs, and residuesResidue and last-line dynamic program6
Basket AssemblyA ticket set forming an exact coverRequirements, ticket-item incidence, and pricesFirst-uncovered-item bitmask dynamic program5
Station SitingOne site per zoneShared capacity, site costs, and bounded-span pairwise demand rewardsResource-aware band-frontier dynamic program4
Authorization PlanningA package sequenceAuthorization relations, policy adjustments, handoffs, and clearance residueProduct-state dynamic program6
Series PortfolioOne lot per titleLot values, scopes, and overlapping signed factorsBounded-span factor dynamic program6
Machine LayoutA machine-to-slot permutationMachine flows, a unit-spaced slot order, and placement adjustmentsCut-identity subset dynamic program8
Sequential MatchingAn ordered perfect matchingCompatibility, pair costs, and directed handoffsUsed-set and last-match dynamic program6
Fleet DispatchA job-to-vehicle assignmentJob loads, eligible vehicle-job pairs, capacities, route costs, and activation costsMixed-radix capacity dynamic program6
Evidence-Joined RoutingA layered source-to-target pathLayered graph with source and target, quantities, exceptions, tariffs, and residuesExpanded-state shortest path6
Migration PortfolioOne package per component group and an activated domain setPackage costs, support domains, activation costs, and signed interactionsActivated-domain mask enumeration8

What Each World Requires

These capabilities are jointly required; AlgoWorlds evaluates the resulting trajectory and decision without attributing an individual failure to any single stage.

  1. 01

    Information acquisitionSelect sequential information calls under positive per-call costs and a fixed access budget.

  2. 02

    Cross-tool integrationJoin entities, relations, constraints, and objective terms distributed across returned records.

  3. 03

    Coupled optimizationCompare complete decisions whose components interact through shared constraints and aggregate costs.

  4. 04

    Final verificationCheck feasibility and objective value before committing a terminal structured decision, which can be submitted at most once.

Evaluation Metrics

Three final-decision metrics score the submitted decision, while two trajectory diagnostics characterize the decision information recoverable from fact-revealing tool responses. The diagnostics do not establish that the agent recognized, reconstructed, or correctly used that information.

AspectMetricDefinition
Final decisionExact optimalityBinary; the decision is feasible and attains the verified global optimum. This is the primary metric.
Final decisionFeasibilityBinary; the family-specific checker accepts the submitted structured decision as feasible.
Final decisionReference utilityA feasible decision receives U in [0,1]; results report 100 × U, so the global optimum is 100 and the fixed suboptimal reference decision is 0.
TrajectoryInformation sufficiencyBinary; joint normalization of the fact-revealing tool responses recovers at least one verified sufficient fact set in full.
TrajectoryDiscovery coverageThe largest fraction, in [0,1], of any verified sufficient fact set recovered through joint normalization of the fact-revealing tool responses.