# StoBasket: Joint Upsell and Cross-Sell Optimization for Contribution Margin

arXiv: https://arxiv.org/abs/2610.22768 · HTML: https://mlsanity.com/paper/2610.22768/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Builds on 7 of its 38 references that are in the map.
- Submitted 16 Oct 2026.

## Builds on (most cited first, 7 of 7)

- [Inferring Networks of Substitutable and Complementary Products](https://mlsanity.com/paper/1506.08839/) (2015)
- [Open Bandit Dataset and Pipeline: Towards Realistic and Reproducible Off-Policy Evaluation](https://mlsanity.com/paper/2008.07146/) (2020)
- [Modeling Personalized Item Frequency Information for Next-basket Recommendation](https://mlsanity.com/paper/2006.00556/) (2020)
- [A Next Basket Recommendation Reality Check](https://mlsanity.com/paper/2109.14233/) (2021)
- [SHOPPER: A Probabilistic Model of Consumer Choice with Substitutes and Complements](https://mlsanity.com/paper/1711.03560/) (2017)
- [Online Assortment and Price Optimization Under Contextual Choice Models](https://mlsanity.com/paper/2503.11819/) (2025)
- [A Markovian Approach for Cross-Category Complementarity in Choice Modeling](https://mlsanity.com/paper/2508.18566/) (2025)

## Abstract (arXiv)

Retail recommenders rank relevance, but retailers earn contribution margin: an upsell earns the margin difference over the item it replaces, whereas a cross-sell earns its full margin. We introduce joint stochastic basket editing, a formulation in which one policy selects replacement and addition offers for an existing basket, values them by expected incremental contribution margin, and couples them through displayed-offer, accepted-offer, and joint-acceptance response channels. To our knowledge, it is the first formulation in which upsell and cross-sell responses are coupled; prior separable treatments are its zero-coupling special case. In real-data-calibrated simulations on five public basket datasets, StoBasket captures essentially all attainable offer margin: within 0.5% in every default-price setting and within 0.7% when the true response lies outside its model family. Correct economic accounting is the broadest gain: margin-weighted popularity leaves up to 11% of attainable margin unrealized, and a published next-basket recommender leaves 11-52%. Joint selection adds 10.2% of attainable margin on Instacart, where premium tiers and add-ons are strongly linked. When offers pay only together, the best heuristics lose 64% while exact search stays within 0.5%. For a structured subclass, we characterize when staged policies fail and give an exact optimizer that solves every tested real basket in 0.13 ms median and at most 111 ms. Profit saturates long before prediction accuracy: a correctly structured predictor trained on 5,000 randomized sessions comes within 0.06% of perfect prediction, while a signal-free one loses 38%. The same estimates yield a decision-aware market-basket analysis whose cost does not grow with association order.
