NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Computing Weighted Set Covers with Heterogeneous Stochastic Oracles: Deadline-Constrained Token Complexity

Jie WangarXiv 2026

Imagine you’re managing a team of freelance AI agents to solve a massive logistics puzzle. Some agents are brilliant but expensive and slow; others are cheap and fast but prone to "hallucinating" or simply failing. You have a hard deadline, a limited budget of "tokens," and you need a solution that is guaranteed to be high-quality. How do you decide which agents to call, in what order, to get the job done without breaking the bank?

This paper provides the mathematical blueprint for that orchestration.

TL;DR

The authors introduce a framework for solving the Weighted Set Cover problem by treating AI models (like LLMs) as "stochastic oracles"—unreliable but potentially powerful tools that cost tokens and time. They prove that the optimal way to query these AIs under a deadline involves a surprisingly simple strategy: randomizing between at most two pre-planned schedules.

What Problem Does This Paper Address?

The Weighted Set Cover (WSC) problem is a classic "hard" problem in computer science (NP-hard). Think of it like trying to cover every city in a country with the fewest possible cell towers, where each tower has a different cost and coverage area. While we have standard algorithms (like "weighted greedy") that give decent results, they often miss the truly optimal, "lightest" covers.

Recent pilot studies show that LLMs can actually beat these traditional algorithms on specific instances. However, LLMs aren't like traditional functions; they are heterogeneous stochastic oracles (HSOs). They have different costs, different latencies, and they might fail to find a valid cover.

The challenge is: How do we minimize the expected token cost while meeting a success probability target and a strict time deadline?

Methods

The authors extend the classical Turing machine model into a Stochastic-Oracle Turing Machine (SOTM). This machine performs local logic but can "outsource" hard work to various AI oracles.

Key techniques include:

  • Linear Programming (LP): Used to characterize the "cost-success frontier." The authors show that even with many possible oracles, the optimal policy is a probability distribution over just two sequences of oracle batches.
  • Submodular Optimization: They prove that the "token-cost reduction" gained by splitting queries into two batches (waiting to see if the first batch succeeds before firing the second) follows the law of diminishing returns (submodularity).
  • FPTAS (Fully Polynomial-Time Approximation Scheme): They develop a fast algorithm to find a near-optimal two-batch strategy, even when oracles have different response times.
  • Dual Certification: To handle "partial covers" (where an AI only solves part of the problem), they use the math of LP duality to verify the quality of the AI's response without having to trust the AI blindly.

Datasets

The paper evaluates the capabilities of LLMs (specifically Anthropic's Opus 5.5) using:

  • OR-Library Railway Crew-Scheduling: Real-world instances of assigning crews to trains.
  • Defects4J Test-Coverage Matrices: Data from software engineering regarding which tests cover which lines of code.
  • Synthetic "All-But-One" Instances: Specially constructed mathematical cases used to demonstrate the theoretical limits of adaptive querying.

Key Insights and Ideas

  • LLMs as Heuristics: The pilot study confirmed that LLMs can outperform the standard "weighted greedy" algorithm on a substantial fraction of test cases, justifying the "AI-augmented" approach.
  • The Power of "Wait and See": If you query all your AIs at once (one-batch), you pay for all of them. If you query a cheap one first and it succeeds, you save the tokens you would have spent on the expensive one. The paper quantifies exactly how much you save.
  • The "Two-Schedule" Rule: In a world of infinite possibilities, the math dictates that you only ever need to flip a coin between two specific plans to be optimal.
  • Residual-Guided Querying: Instead of asking for a full solution upfront, it’s often cheaper to ask for a partial solution, see what’s left (the "residual"), and then issue a highly targeted follow-up query. This can reduce costs by a factor linear in the number of possible subproblems.

Key Results

  • Performance: In the pilot study, Opus 5.5 found optimal covers in 33 out of 36 calls at "medium" reasoning effort, frequently beating the local greedy baselines.
  • Complexity: They proved that finding the perfect two-batch selection is NP-hard, but they provided a "pseudopolynomial" algorithm that works efficiently if token costs are integers.
  • Token Savings: The authors demonstrated that adaptive selection (using the results of Turn 1 to decide Turn 2) can provide a "linear gap" in savings compared to non-adaptive strategies.

Limitations and Future Work

  • The "FICA" Assumption: The current model assumes that if an oracle fails, it doesn't change the probability of it (or others) succeeding later. In reality, if one LLM fails on a hard problem, others might be more likely to fail too (correlated failures).
  • Local Computation Costs: The paper focuses on "token complexity" (the cost of the AI calls) but doesn't factor in the electricity or time cost of the local machine running the coordination logic.
  • Scaling: The pilot study used "reduced" versions of massive real-world problems. Future work is needed to see how these strategies hold up on unreduced, million-set instances.

Final Thought: As we move toward "Agentic AI" workflows, we are essentially becoming managers of stochastic processes. This paper moves that management from "vibes and intuition" to rigorous, provable optimization.

Summary updated

BibTeX
@misc{wang2026computing,
  author = {Jie Wang},
  title = {{Computing Weighted Set Covers with Heterogeneous Stochastic Oracles: Deadline-Constrained Token Complexity}},
  year = {2026},
  eprint = {2611.26656},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.26656},
}
Figure