Nested Bandits

Matthieu Martin, Panayotis Mertikopoulos, Thibaud Rahier, Houssam Zenati

Standard multi-armed bandit algorithms often struggle when faced with many similar choices, wasting valuable time exploring irrelevant alternatives. The "Nested Bandits" paper introduces the Nested Exponential Weights (NEW) algorithm, which exploits hierarchical similarities between options to drastically reduce exploration time. This approach achieves tighter regret bounds that scale with the "effective" number of choices rather than the total number.

The "Red Bus / Blue Bus" Paradox

Imagine you are commuting and have two choices: a car (takes 30 minutes) or a red bus (takes 60 minutes). A standard choice model will strongly prefer the car. Now, suppose the city adds a blue bus that also takes 60 minutes. Standard discrete choice models—and the bandit algorithms built on them, like EXP3—treat the blue bus as a completely independent, brand-new option. Consequently, the algorithm's probability of choosing the car drops simply because a new, irrelevant alternative was introduced. This phenomenon is known in economics as the "red bus / blue bus paradox."

In online learning scenarios like ad recommendation or product catalogs, algorithms frequently choose between thousands of items with shared attributes (e.g., genre, artist, brand). Standard adversarial bandit algorithms treat every single item independently. If they learn that a "red bus" is a bad choice, they don't generalize that knowledge to the "blue bus." As a result, they suffer high regret by spending excessive time exploring a sea of similar, suboptimal options.

The Nested Exponential Weights (NEW) Algorithm

To solve this inefficiency, the authors propose the Nested Exponential Weights (NEW) algorithm. NEW leverages a known hierarchical structure of attributes (e.g., Category $\rightarrow$ Subcategory $\rightarrow$ Specific Item) to guide its exploration.

Hierarchical tree structure used by the NEW algorithm

NEW relies on two novel components:

  1. Nested Logit Choice (NLC): Instead of selecting an arm directly from a flat list, the algorithm makes decisions step-by-step down the hierarchy. It first chooses a broad category, then a subcategory, and finally a specific item, using conditional probabilities at each level.
  2. Nested Importance Weighted Estimator (NIWE): In standard algorithms, pulling an arm only updates the estimated score for that specific arm. NIWE updates scores hierarchically. If you pick a red bus and observe a 60-minute delay, NIWE updates the cost estimate for the entire "bus" category, instantly applying that learned penalty to the blue bus as well.

By combining these components, NEW operates as a "Follow the Regularized Leader" (FTRL) algorithm equipped with a specialized nested entropy function.

Key Insights and Results

The authors evaluated their approach using synthetic environments designed to simulate nested similarity partitions, including a generalized "Red Bus / Blue Bus" environment and symmetric tree structures.

Breaking the IIA Assumption

Standard exponential weights algorithms suffer from the "Independence from Irrelevant Alternatives" (IIA) axiom. By structuring choice probabilities hierarchically, NEW breaks free from IIA, ensuring that flooding the system with identical bad options doesn't distract the learner. Layered cost estimation allows the algorithm to update a parent node's cost, effectively updating all its children simultaneously.

Theoretical and Empirical Regret

The authors mathematically prove that NEW achieves a regret bound of $\mathcal{O}(\sqrt{n_{\text{eff}} \log n \cdot T})$. This is a massive theoretical improvement over the standard EXP3 algorithm, which is bounded by $\mathcal{O}(\sqrt{n \log n \cdot T})$. The performance gap is quantified by the "Price of Affinity" (PoAf) ratio $\sqrt{n/n_{\text{eff}}}$. In highly categorized environments, the effective number of arms ($n_{\text{eff}}$) can be exponentially smaller than the total number of arms ($n$), allowing NEW to learn exponentially faster.

Regret comparison between EXP3 and NEW in the Red Bus/Blue Bus environment

Empirically, NEW demonstrates immunity to irrelevant alternatives. In the synthetic Red Bus/Blue Bus experiment, as the number of buses ($N$) increased from 2 to 50, EXP3's regret scaled up significantly. In contrast, NEW's regret remained remarkably flat, proving it successfully ignored the irrelevant color variations. Furthermore, in deep, symmetric tree environments, NEW consistently outperformed EXP3, with the performance gap widening as tree depth increased.

Limitations and Future Work

While NEW offers significant improvements, it currently has a few limitations:

  • Semi-Bandit Feedback Requirement: NEW requires observing specific "intra-class" cost increments at each level of the hierarchy, akin to a "semi-bandit" setting, rather than just the final total cost. Adapting this nested approach for a strict "full bandit" setting remains an important open question.
  • Non-Nested Attributes: The current model assumes a strict tree hierarchy. Extending this to overlapping, non-nested attributes (e.g., tags or combinatorial features) is unsolved.
  • Stochastic Environments: The paper focuses on adversarial environments. Applying these nested concepts to stochastic algorithms (like UCB) or "universal" algorithms that handle both stochastic and adversarial settings would be a fruitful direction for future research.

Summary updated

BibTeX
@inproceedings{martin2022nested,
  author = {Matthieu Martin and Panayotis Mertikopoulos and Thibaud Rahier and Houssam Zenati},
  title = {{Nested Bandits}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
}
Figure