Problem
Many shopping queries need reasoning that neither the query text nor the product listing contains. A search for «shoes for pregnant women» should surface slip-resistant shoes, but nothing in a plain relevance model links the two. The engine has to infer needs that appear in neither text. Existing e-commerce knowledge graphs cover concepts and product attributes, not user intentions (per the paper).
Example from the article: a customer who searches for «shoes for pregnant women» and buys slip-resistant shoes reveals the relation used_for_audience between those shoes and pregnant women.
Solution in brief
Amazon's COSMO framework prompts an LLM to explain why queries and purchases (or two co-purchased products) belong together, using a small set of relation types. Rule and similarity filters, human ratings and a classifier remove weak explanations. The surviving triples are added as extra input to a cross-encoder relevance model.
Questions this case answers
- How to make a relevance model infer implicit user needs that never appear in the query or the item text, using only behavior logs and an LLM
- How to filter LLM-generated hypotheses at scale when most are generic paraphrases and human review is expensive
- How to make product search understand queries that need commonsense, such as «shoes for pregnant women» needing slip-resistant shoes?
- How to mine product-to-context relations (function, audience, event) from purchase logs with an LLM without collecting empty explanations?
Tools and methods
- Knowledge graph of entity-relation-entity triples — stores product-to-context relations such as
capableOforused_for_audience - LLM prompting with relation-specific instructions — generates candidate explanations for query-purchase and co-purchase pairs
- Human annotation plus a classifier — scores plausibility and typicality and keeps candidates above a threshold
- Cross-encoder relevance model — scores a query-product pair together with the relevant triples
Google or a one-time email code. No password.