A Polynomial-Time Best-of-Both-Worlds Algorithm for Matroid Semi-Bandit Problems

Botao Chen, Junya HondaarXiv 2026

This paper tackles a classic dilemma in machine learning: do you prepare for a predictable world or a chaotic one? In the realm of "bandit" problems—where you must make a sequence of choices to minimize loss—you usually have to pick your poison. You can use an algorithm optimized for a stochastic environment (where losses follow a stable, random pattern) or one built for an adversarial environment (where a malicious opponent chooses losses to trip you up).

The "Best-of-Both-Worlds" (BOBW) approach aims to do both: perform optimally in a stable world while remaining robust in a hostile one. This paper finally brings that ideal to the complex world of Matroid Semi-Bandits with an algorithm that is actually fast enough to use.

TL;DR

The authors present the first polynomial-time algorithm for matroid semi-bandits that achieves optimal performance in both predictable (stochastic) and worst-case (adversarial) settings. By combining a "Follow-the-Perturbed-Leader" strategy with heavy-tailed noise and a clever resampling trick, they’ve bridged the gap between theoretical perfection and computational reality.

What Problem Does This Paper Address?

Imagine you are managing a network and need to pick a set of paths (a "spanning tree") to route data. Every day, some paths are slower than others. You want to pick the fastest set, but you only learn the speed of the paths you actually used. This is a matroid semi-bandit problem. "Matroid" refers to the mathematical structure of your choices (like spanning trees or independent tasks), and "semi-bandit" means you get feedback on each individual component of your choice.

The challenge is twofold:

  1. The Environment: You don't know if the network delays are just random noise (stochastic) or if a hacker is intentionally slowing down specific nodes to mess with your algorithm (adversarial).
  2. The Computation: Existing "Best-of-Both-Worlds" algorithms for this problem were mathematically beautiful but computationally nightmarish. They required solving a complex optimization problem every single round, which is a deal-breaker for real-time systems.

Methods

The authors move away from the standard "Follow-the-Regularized-Leader" (FTRL) framework, which is the source of the computational heavy lifting. Instead, they use Follow-the-Perturbed-Leader (FTPL).

Here is the intuitive breakdown of their approach:

  • Perturbation with "Heavy Tails": In FTPL, you look at the total loss each option has incurred so far, add some random noise (perturbation), and pick the leader. The authors discovered that using specific heavy-tailed distributions—Fréchet or Pareto—is the secret to achieving BOBW guarantees. These distributions have "long tails," meaning they occasionally produce very large values, which helps the algorithm stay flexible.
  • Geometric Resampling (GR): Because you only see the losses for the items you picked, you have to estimate the losses for everything else. Calculating these probabilities exactly is hard. The authors use "Geometric Resampling," a technique that repeatedly simulates the decision process with fresh noise to create an unbiased estimate of the losses without needing a supercomputer.
  • Greedy Selection: Because the problem has a matroid structure, the "best" choice can be found using a simple greedy algorithm (just pick the best available items one by one). This keeps the per-round calculation very fast.

Datasets

This is a theoretical paper focused on establishing mathematical proofs and regret bounds. Consequently, no empirical datasets were used for training or evaluation. The "results" are rigorous mathematical proofs that the algorithm will perform within specific bounds.

Key Insights and Ideas

  • The $\alpha=2$ Sweet Spot: The authors found that setting the "shape parameter" ($\alpha$) of their noise distributions to 2 is the magic number that allows the algorithm to achieve logarithmic regret in stable settings while maintaining the standard $O(\sqrt{T})$ safety net in adversarial ones.
  • Symmetry Breaking: Previous proofs for simpler problems (like picking the top $m$ items) relied on the fact that all items were essentially interchangeable. Matroids are much "spikier" and more structured. The authors developed new analytical tools to handle these structural constraints without relying on item symmetry.
  • Optimization-Free Efficiency: By proving that FTPL works here, they’ve replaced a "solve a complex convex optimization" step with a "run a simple greedy search" step. This is the difference between an algorithm that stays in a textbook and one that gets deployed in a router.

Key Results

The paper proves that their algorithm achieves:

  • Adversarial Setting: A regret of $O(\sqrt{mdT})$, where $m$ is the number of items you pick, $d$ is the total number of items, and $T$ is time. This is minimax-optimal, meaning no algorithm can do better in the worst case.
  • Stochastic Setting: A logarithmic regret (specifically $O(\frac{\log T}{\Delta})$), which is the gold standard for stable environments.
  • Polynomial Time: The average computational complexity per round is $O(d^2 (\log d + T_{ind}))$, making it the first BOBW algorithm for this class of problems that is computationally efficient.

Limitations and Future Work

  • Computational Scaling: While $O(d^2)$ is polynomial and much better than before, it might still be a bit heavy for extremely high-dimensional problems (where $d$ is in the millions). The authors suggest that "conditional geometric resampling" could potentially shave off more time.
  • Beyond Matroids: Matroids are a broad class, but they don't cover everything. Future work could explore if these FTPL techniques can be extended to even more complex combinatorial structures, like those found in general graphs or scheduling problems.
  • Parameter Sensitivity: The performance depends on the learning rate and the shape of the noise. Finding ways to make the algorithm "self-tuning" for these parameters would be a significant practical win.

Summary updated

Abstract

Follow-the-Perturbed-Leader (FTPL) offers a computationally attractive framework for online learning, with recent advances establishing Best-of-Both-Worlds (BOBW) guarantees for various bandit settings. For matroid semi-bandits, existing methods offering such guarantees primarily rely on Follow-the-Regularized-Leader (FTRL), which requires solving an optimization problem at each round. We establish BOBW guarantees for FTPL with Fréchet and Pareto distributions with a certain parameter with geometric resampling in the matroid semi-bandit problem, showing that FTPL can simultaneously achieve the minimax-optimal $O(\sqrt{mdT})$ regret in adversarial setting and a logarithmic regret in stochastic setting. To the best of our knowledge, this is the first polynomial-time algorithm for matroid semi-bandits that achieves BOBW guarantees.
BibTeX
@misc{chen2026polynomial,
  author = {Botao Chen and Junya Honda},
  title = {{A Polynomial-Time Best-of-Both-Worlds Algorithm for Matroid Semi-Bandit Problems}},
  year = {2026},
  eprint = {2611.30104},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30104},
}
Figure