arXiv:2610.22768cs.AIOct 2026

Manuscript Offprint

arXiv:2610.22768

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

Xin Heng

Abstract

Retail recommenders rank relevance, but retailers realize contribution margin: an upsell earns the margin difference over a displaced item, whereas a cross-sell earns an incremental margin. We introduce joint stochastic basket editing, a formulation in which one policy selects typed replacement and addition offers for an existing basket, values them by expected incremental contribution margin, and couples their values through distinct 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 joint treatments assume this coupling away, which makes the two decisions separable, and are recovered here as the zero-coupling special case. This integrated action-level formulation is the central contribution of StoBASKET: it places full-price recommendations, optional promotion terms, display and inventory constraints, and stochastic customer response in one decision. Real-data-calibrated simulations on five public basket datasets measure every policy against attainable offer margin: the expected extra contribution margin that the best possible offers would earn under the simulated customer response (about $0.47 per basket on Instacart). All percentages below are shares of it. With a correctly structured response model fit to a few thousand or more randomized offer sessions, StoBASKET captures essentially all of it: within 0.5% in every default-price setting of all five markets, including high display costs, and within 0.7% when the true response lies outside its model family. Its remaining losses come from the response model, not the search: omitting cannibalization and offer fatigue costs 11–19%. The economic layer is first-order: a margin-weighted popularity rule leaves as much as 11% unrealized at ordinary display costs and up to 98% when display is costly. On the three datasets that are also standard next-basket benchmarks, a published history-based recommender leaves 11–52% unrealized even when reranked by margin, yet the same forecast adds up to 6% when StoBASKET uses it as an input. Joint selection pays most where premium tiers and add-ons are strongly linked: on Instacart it beats independent upsell and cross-sell selection by 10.2% of attainable margin after empirical-Bayes noise correction and label placebos. Because coupling is measurable from a retailer's own baskets, the same analysis tells an operator where joint selection will pay, and active, randomized offer programs generate exactly the data that let it pay more broadly. When display friction makes actions profitable only together, the best heuristic portfolio loses 64% under default Instacart prices while exact search stays within 0.5%; across alternative price assumptions the heuristic loss ranges from 2% to 89%. For a factor-local subclass of the formulation, we characterize when staged policies succeed or fail and synthesize established geometric and graphical techniques into an exact optimizer. The two exact methods agree on all 8,040

checked real-basket instances. With up to 20 upsell groups and four displayed upsells, vectorized exact enumeration solves every tested real basket in 0.13 ms at the median, 30 ms at the 99th percentile, and at most 111 ms in Python. Holding the optimizer fixed, a signal-free propensity model loses 38%, while a correctly structured one trained on 5,000 randomized sessions comes within 0.06% of perfect prediction: profit saturates long before accuracy does. Separately, randomized fashion slates show that a same-category neighbor causally lowers focal-item clicks by 12%, supporting distinct exposure and acceptance channels. StoBASKET therefore contributes the economic decision formulation first, evidence for when its coupling matters second, and a certifiable solver for the narrower regime in which local search fails.

Keywords

recommender systems, profit-aware recommendation, upsell, cross-sell, contribution margin, stochastic choice, economic optimization

References (20)