Optimal and Efficient Contextual Combinatorial Semi-bandits with General Function Approximation

Hao Qin, Chicheng ZhangNeurIPS 2026

TL;DR

Picking the best route through evening traffic or curating a homepage of articles requires making complex, bundled choices using rich, non-linear context. Previously, algorithms for these problems either forced you to assume the world is strictly linear, ran at a glacial pace, or threw away valuable granular feedback. This paper introduces SquareCB.Comb, the first algorithm to handle complex, non-linear reward functions in combinatorial decision-making while achieving both computational efficiency and mathematically optimal performance.

What Problem Does This Paper Address?

Imagine building a navigation app. A user wants a route (a bundle of road segments) given current weather and traffic (context). After the drive, you don't just learn total trip time; you see the exact delay on every individual street they drove down.

In machine learning, this is a Contextual Combinatorial Semi-Bandit (CCSB). It’s "contextual" because side information matters, "combinatorial" because you pick a subset of $m$ items out of $A$ total options, and a "semi-bandit" because you observe individual rewards for each chosen item rather than just one summed score.

Historically, algorithms here assumed expected rewards were simple linear functions of the context. Real-world behavior—like user clicks or traffic bottlenecks—is rarely linear. Yet, moving to general function approximation (like decision trees or neural networks) created a painful dilemma:

  1. Policy-search methods require searching massive policy spaces, which is computationally intractable or relies on clunky classification oracles.
  2. Naive bandit reductions sum the individual item rewards into one number, throwing away granular semi-bandit feedback and slowing down learning.

The authors ask: Can we use flexible, general reward models in CCSB while staying computationally fast and statistically optimal?

Comparison of SquareCB.Comb against prior works, highlighting its optimal regret guarantee under general value function approximation.

Methods

The authors propose SquareCB.Comb, extending the classical SquareCB contextual bandit algorithm to combinatorial semi-bandits.

First, the algorithm uses a standard batch-mode online regression oracle—essentially any off-the-shelf predictor trained on past (context, item, reward) tuples—to estimate the reward of all $A$ base items for the current context.

The novel magic lies in balancing exploitation (picking high-predicted-reward bundles) and exploration without enumerating an exponentially large number of subsets (e.g., $\binom{A}{m}$ slates). Instead of computing probabilities over bundles, SquareCB.Comb drops down into the much smaller, $A$-dimensional space of individual item marginal probabilities. It offers two execution modes depending on the problem's geometry:

  • Mode 1 (Log-Barrier + Custom Sampler): It solves an $A$-dimensional convex optimization problem maximizing predicted reward plus a log-barrier regularizer (which forces probability mass onto uncertain items so nothing is ignored). It then feeds these target item probabilities into a problem-specific sampling routine (like dependent rounding or network flow decomposition) to draw a valid bundle.
  • Mode 2 (Frank-Wolfe + Linear Optimization): If no custom sampler exists, it only requires a standard linear optimization oracle (like Dijkstra's shortest-path algorithm). A Frank-Wolfe style subroutine iteratively builds a valid bundle distribution directly by maximizing predicted rewards plus an exploration bonus.

Datasets

No new benchmarks are introduced; the authors evaluate on two synthetic setups and two public learning-to-rank benchmarks recast as semi-bandits:

  • Non-contextual $m$-set: Selecting $m$ out of $A=10$ Bernoulli arms over $T=30,000$ rounds.
  • Contextual Grid-Path: Finding optimal paths of length $m=8$ across a $5 \times 5$ directed grid ($A=40$ edges, $70$ valid paths) with context-dependent rewards ($T=30,000$).
  • MSLR-WEB30k: Microsoft webpage ranking ($T=30,846$ queries), picking $m=3$ documents from $A=10$ candidates using relevance scores $\{0,\dots,4\}$ as semi-bandit feedback.
  • Yahoo! Learning-to-Rank Set 1: Web search dataset ($T=27,630$ queries), picking $m=2$ documents out of $A=6$.

Key Insights and Ideas

  • Escaping the Curse of Dimensionality via Marginals: Analyzing exploration-exploitation trade-offs across combinatorial subsets usually blows up exponentially with $m$. By formulating a new Combinatorial Square-Loss Decision-Estimation Coefficient (CS-DEC), the authors prove that the entire min-max game between regret and estimation error collapses cleanly into the $A$-dimensional space of marginal item probabilities.
  • Don't Sum Your Feedback: Reducing semi-bandits to standard bandits by summing a bundle's rewards starves the regression model of detail, costing an extra $\sqrt{m}$ factor in regret. Updating on per-item feedback in batches preserves sharp $\sqrt{m}$ scaling.
  • Regression Beats Classification: Unlike prior general-function methods that rely on hard-to-optimize cost-sensitive classification oracles, SquareCB.Comb relies on square-loss regression—meaning you can seamlessly plug in standard gradient-boosted trees.

Key Results

  • Minimax Optimality: For a finite function class $\mathcal{F}$ over $T$ rounds, SquareCB.Comb achieves an expected regret of $\widetilde{O}(\sqrt{m A T \log |\mathcal{F}|})$. The authors prove a matching $\widetilde{\Omega}(\sqrt{m A T \log |\mathcal{F}|})$ lower bound, making this the first minimax-optimal guarantee for CCSB beyond linear rewards.
  • Graph Routing Gains: On a DAG with $N$ nodes and $M$ edges, casting shortest-path as a contextual MDP yields $\widetilde{O}(\sqrt{N^7 T \log |\mathcal{F}|})$ regret; SquareCB.Comb slashes this to $\widetilde{O}(\sqrt{N M T \log |\mathcal{F}|})$.
  • Empirical Wins: Instantiated with depth-5 gradient-boosted trees (gb5) on MSLR-WEB30k and Yahoo! LTR, SquareCB.Comb achieved the highest per-round average reward among all online baselines (beating LinUCB, VCEE, $\varepsilon$-greedy, and SquareCB.Lin), closely tracking the supervised ceiling. Meanwhile, SquareCB.Lin—which aggregates bundle rewards—trailed all other online learners.

Limitations and Future Work

  • Realizability Penalty: Optimal bounds assume the true reward function lives inside $\mathcal{F}$. Under $\varepsilon$-misspecification, regret incurs an unavoidable additive $\varepsilon m \sqrt{AT}$ penalty.
  • Independent Noise Question: The matching lower bound relies on correlated item rewards given the context. The authors conjecture that if item rewards are conditionally independent given the context, the true minimax regret might be strictly smaller than $\widetilde{O}(\sqrt{m A T \log |\mathcal{F}|})$, leaving an intriguing open theoretical question.

Summary updated

Abstract

We study the contextual combinatorial semi-bandit (CCSB) problem, where at each round, the learner observes a context, selects a combinatorial action consisting of a subset of basic arms, and receives the reward of each selected arm; its goal is to maximize its cumulative reward over time. While many previous works focus on CCSB problems with linear reward function approximation, the design of efficient algorithms for the CCSB problem with general reward function approximation is limited. In this work, we study the realizable setting where the learner has access to a reward function class $\mathcal{F}$ that contains the true reward function, and propose the SquareCB.Comb algorithm. We prove that SquareCB.Comb achieves a minimax optimal regret bound of $O(\sqrt{m A T \log |\mathcal{F}|})$, where $A$ is the number of arms, $m$ is the maximum number of arms in a combinatorial action, and $T$ is the time horizon. In addition, SquareCB.Comb is computationally efficient when we have an online regression oracle that can efficiently predict rewards of all arms given contexts, and the combinatorial action set admits either efficient linear optimization or efficient sampling given any target marginal probability on arms. We empirically verify the effectiveness of our algorithm in webpage recommendation and contextual shortest path problems.
BibTeX
@inproceedings{qin2026optimal,
  author = {Hao Qin and Chicheng Zhang},
  title = {{Optimal and Efficient Contextual Combinatorial Semi-bandits with General Function Approximation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=1XBZJBTBc2},
}
Figure