# Online Decision-Focused Learning under Semi-Bandit Feedback

*Aabhash Dhakal, Tim Lachner, Jayanta Mandi, Marco Foschini, Christoph M Flath*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150539) · [OpenReview](https://openreview.net/forum?id=hOOVrWbGun) · [Open on the map](../papers.html#p150539)

Category: [Bandits, Online Learning & Economics](../pcat/12.md) › [Fair Allocation and Lottery Mechanisms](../pgroup/265.md) · Type: new method · Keywords: online decision-focused learning, semi-bandit feedback, imputation degeneracy, Bayesian last-layer head, masked decision-focused learning, online optimization

## Summary
BayesianSPO addresses online decision-focused learning under semi-bandit feedback by combining a Bayesian last-layer head with masked decision-focused learning to avoid imputation degeneracy and achieve lower regret.

## Explained to a 5-year-old
In a game, you have to pick items and only see the cost of the ones you choose. The computer wants to learn how to pick the best items without making mistakes. It uses a special trick that guesses the hidden costs carefully and only updates its guesses based on what it sees. This helps it get better at picking over many rounds. The result is that it makes fewer bad choices than other methods.

## Explained to a 5-year-old, longer
Imagine you are playing a game where you can collect many toys, but you only know how heavy each toy is after you pick it up. Usually, you have to guess the weight of all toys before you start, but that can be wrong. In this new idea, the computer only learns from the toys it actually picks, not from the ones it ignores. It makes a guess about the hidden weights, but it also checks how sure it is about those guesses. The computer uses a clever way to keep its guesses stable, so mistakes don't spread. It also hides the updates for the toys it didn't pick, so those guesses don't mess up the learning. This way, the computer can try many rounds of picking toys and improve slowly. Over time, it learns which toys are worth picking and which are not. The computer also balances trying new toys with using what it already knows, which helps it avoid bad choices. As a result, it ends up picking the best toys more often than other methods that guess everything at once.

## For a technical reader
The paper tackles decision-focused learning when only the costs of selected actions are observed. It shows that naïvely filling in missing costs can cause unstable updates. The proposed solution uses a Bayesian head to model uncertainty and produce reliable imputations, while masking gradients for unobserved components to protect the model. This yields better regret performance on knapsack, shortest-path, and portfolio problems.

## Problem
Decision-focused learning for online optimization problems with only partial feedback (semi-bandit) suffers from imputation degeneracy, where errors in unobserved cost estimates can corrupt gradient updates and degrade decision performance.

## Method
The approach combines a Bayesian last-layer head that provides uncertainty estimates and stable imputations for unobserved costs with masked decision-focused learning, where gradients for unobserved components are masked to prevent imputation errors from corrupting representation updates. This yields both exploration-exploitation balance and stable training in the online semi-bandit setting.

## Results
The approach achieves the lowest mean cumulative regret on all five benchmark instances across knapsack, shortest-path, and portfolio problems, with statistically significant improvements on four of them.

## Contributions
The paper formalizes online semi-bandit decision-focused learning, identifies imputation degeneracy in naive extensions, and proposes a Bayesian last-layer head with masked decision-focused learning to provide stable imputations and prevent gradient corruption. This yields a practical solution for decision-focused learning under partial feedback.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150539)
