Skip to main content

Elai Agent

Basket-Aware Recommendations: Why Customer History Is Not Enough

A shopper who usually buys breakfast foods opens a grocery app to prepare dinner. Their purchase history still provides useful information about preferred brands and recurring habits, but offers little indication of what they need for that particular meal. Once pasta and tomato sauce enter the basket, the shopping occasion becomes easier to interpret, making products that rarely appeared in earlier recommendations potentially more relevant.

Retailers have long relied on transaction histories to personalize product recommendations, although a customer’s immediate purchasing intentions may differ considerably from established habits. Basket-aware recommendations combine historical preferences with the products selected during the current shopping trip, allowing recommendation systems to respond to the context emerging before checkout.

Research published in Production and Operations Management in June 2026 examines this approach through a probabilistic consumer model that adapts recommendations as basket information becomes available, while accounting for inventory availability and other retail constraints. The findings suggest that current shopping context can substantially influence predictive ranking, raising broader questions about how retailers evaluate product relevance and operational feasibility.

When the Basket Tells a Different Story

Purchase history remains one of the most valuable sources of information for personalized recommendations because familiar brands, recurring categories, and established shopping routines often influence future choices. A customer who regularly purchases organic products, for example, may continue to prefer them across different shopping occasions, making historical behavior a useful starting point for predicting product interest.

However, individual shopping trips can serve different purposes, and a recommendation system that relies heavily on previous transactions may overlook changes in immediate purchasing intent.

A household might follow relatively consistent purchasing habits during its weekly grocery shopping but select an entirely different combination of products when preparing for a particular occasion. If the developing basket contains ingredients associated with dinner, recommending another frequently purchased breakfast product may be less relevant than suggesting an item associated with the current selection.

Historical preferences and basket composition therefore provide complementary information. The former describes longer-term purchasing tendencies, while the latter offers evidence about the current shopping occasion, although neither can reveal customer intentions with certainty.

Products purchased together may reflect established routines, shared customer characteristics, or particular occasions rather than direct causal relationships. The challenge for a predictive model is determining which associations provide useful information about another product the customer may select.

Reading the Basket Without Inventing a Shopping Sequence

Basket-aware recommendation systems estimate the relevance of candidate products using both customer-level information and the items already present in the current transaction. As additional products are selected, the system can update its ranking to reflect the evolving shopping context without discarding established customer preferences.

An important methodological difficulty arises from the structure of historical retail transactions. Completed baskets generally identify which products were purchased together, but do not always preserve the order in which shoppers selected them. Treating those records as genuine behavioral sequences could introduce assumptions unsupported by the available data.

In Governed Agentic AI for Retail Baskets: A Consumer World Model with Inventory-Aware Actions, Xiexin Liu and Xinwei Chen address this problem by representing completed transactions as unordered sets of products.

Their framework combines latent household profiles, which capture recurring purchasing tendencies, with a basket-context component that updates product relevance as new items become observable. The authors describe this probabilistic representation as a consumer world model, although the term refers to a model of purchasing behavior rather than a large language model.

A separate recommendation policy uses this representation to rank eligible products, taking into account both historical preferences and information emerging during the current shopping trip.

The Difference Basket Context Makes to Recommendation Accuracy

To evaluate their approach, Liu and Chen used the Dunnhumby Complete Journey dataset, containing approximately two years of transactions from around 2,500 U.S. households associated with a single large retailer. Products were aggregated into roughly 300 commodity categories, while each household’s first 80% of shopping trips was used for training and the remaining 20% reserved for evaluation.

The researchers employed a basket-reveal procedure, progressively exposing items from held-out transactions and examining whether another purchased item appeared among the ten highest-ranked recommendations. Because completed baskets were treated as unordered, the evaluation used randomized reveal sequences rather than assuming an original product-selection order.

The basket-aware policy achieved a Hit@10 of 0.3408, compared with 0.2102 for a static version using the same underlying household-profile model without updating recommendations during the shopping trip.

That difference of 0.1306 points, equivalent to 13.06 percentage points, is particularly informative because the two approaches share the same underlying learned representation. The additional predictive performance is associated with incorporating current basket information into the recommendation policy.

The approach also outperformed two established item-based recommendation methods in the reported comparison, with EASEr recording a Hit@10 of 0.1958 and Item2Vec reaching 0.1740.

These results provide evidence that combining historical customer preferences with current basket context can improve the prediction of products appearing in held-out transactions. However, Hit@10 measures offline ranking performance, meaning the reported difference cannot be interpreted as an equivalent increase in purchases, conversion rates, or commercial revenue.

When the Most Relevant Product Is Unavailable

Predicting which products customers may want is only one part of developing an effective retail recommendation strategy. A highly relevant item may still be unsuitable for recommendation when it is unavailable, excluded from a promotion, or restricted by assortment rules.

The framework proposed by Liu and Chen addresses this practical constraint by defining the eligible product set before ranking recommendations. The policy then evaluates feasible candidates using the customer’s historical preferences and current basket information, allowing product relevance to be considered alongside operational restrictions.

The researchers extended their evaluation into a simulated retail environment involving inventory replenishment, product availability, and substitution behavior. Under the reported conditions, the basket-aware policy generated favorable revenue and margin outcomes compared with the static benchmark, although certain configurations also increased stockout pressure and product substitution.

This introduces an important operational consideration: improving recommendation relevance may change how demand is distributed across products, potentially concentrating purchases on items already experiencing inventory pressure.

The simulation also assumes that customers may substitute available products when their preferred items are unavailable, meaning the economic results depend partly on the behavior represented within the experimental environment. They should therefore be interpreted as simulated outcomes rather than evidence of revenue improvements observed in a live retail deployment.

For retailers, the findings highlight the need to evaluate recommendation policies alongside inventory conditions, since the product with the highest predicted relevance may not always be the most appropriate recommendation to present.

Where Basket Context Could Influence Retail Decisions

For e-commerce teams, basket-aware recommendations offer a possible way to make cross-selling more responsive to the shopping occasion. Rather than displaying suggestions derived almost exclusively from earlier transactions, a retailer could incorporate the products already selected to identify additional items that are relevant to the developing basket.

This approach could be particularly useful in grocery retail, where complementary ingredients, household products, and recurring shopping combinations often provide contextual signals that may not be apparent from customer history alone.

Recommendations could also change as the basket develops, although frequent updates would need to be evaluated against the customer experience. A technically responsive system is not necessarily more effective if its suggestions change too often, create confusion, or interrupt the shopping process.

Product availability adds another consideration, particularly when the model identifies a relevant item that cannot be purchased. Integrating assortment and inventory restrictions can help ensure that recommendations remain operationally feasible, provided the underlying availability data is sufficiently reliable.

These applications represent potential uses of the research framework, rather than commercial benefits established through live experimentation. Whether more context-sensitive recommendations increase basket value, generate incremental purchases, or improve customer experience remains a separate question.

From Predictive Relevance to Measurable Retail Value

Before adopting basket-aware recommendations, retailers need to establish whether information from the current shopping trip improves predictions beyond an appropriate history-based baseline, using evaluation data that reflects the sequence of customer transactions and the information actually available when recommendations are generated.

Performance should also be examined across customer groups, basket sizes, and product categories, since the research draws on transactions from a single grocery retailer and uses aggregated commodity categories. Results may differ for newly introduced products, less frequently purchased items, or retail environments with substantially different purchasing behavior.

Operational validation requires particular attention to inventory availability, assortment restrictions, and substitution patterns, while online experimentation is necessary to determine whether stronger offline ranking translates into measurable incremental business outcomes.

The research by Liu and Chen demonstrates that the current basket can add valuable predictive information to established customer preferences, with promising results in both offline recommendation evaluation and simulated retail operations.

For retailers, the opportunity lies in making recommendations more responsive to the shopping occasion while ensuring that product relevance, operational feasibility, and commercial effectiveness are evaluated on their own terms.

top