GrocLM Boosts E-commerce Grocery Recommendations with LLMs

Yuan Zhong, Chuanwei Ruan, Moein Hasani, Tejaswi Tenneti, Haixun Wang, Fenglong Ma· July 29, 2026 View original

Summary

GrocLM is a fine-tuned large language model designed for grocery category recommendation in e-commerce, using a two-stage LoRA-based training strategy to capture cyclical purchasing patterns. It significantly improves cart-adds per impression in live production while maintaining efficient inference.

GrocLM is a novel large language model specifically fine-tuned for grocery category recommendation within e-commerce environments. Addressing the challenges of scalability and accuracy faced by traditional item-level recommendation systems, GrocLM focuses on category-level recommendations to better capture the cyclical purchasing behaviors and diverse user intents common in online grocery shopping. The system employs a two-stage LoRA-based training strategy, which effectively encodes recurring purchasing patterns directly into the model's parameters, allowing for more robust utilization of rebuying signals compared to prompt-based conditioning. To ensure the generation of valid and controllable outputs, GrocLM incorporates a trie-based constrained decoding mechanism that operates over a predefined set of grocery categories. Extensive experiments using both proprietary production data and a public benchmark dataset demonstrated GrocLM's superior performance against strong baselines. In a live production restocking task, the model achieved a 7.5% relative improvement in cart-adds per impression, all while maintaining efficient inference by generating all categories simultaneously. These results highlight the practical effectiveness of integrating LLMs into structured recommendation systems for e-commerce.

Why it matters

E-commerce professionals can leverage GrocLM to significantly enhance their grocery recommendation systems, leading to increased sales, improved customer satisfaction, and more efficient inventory management.

How to implement this in your domain

  1. 1Evaluate GrocLM's architecture and training methodology for potential application in your e-commerce recommendation systems.
  2. 2Consider fine-tuning a large language model with LoRA for category-level recommendations in your specific domain.
  3. 3Implement a trie-based constrained decoding mechanism to ensure valid and controllable outputs from your recommendation models.
  4. 4Conduct A/B tests in a live production environment to measure the impact of LLM-powered recommendation systems on key metrics like cart-adds.

Who benefits

E-commerceRetailLogisticsConsumer Goods

Key takeaways

  • GrocLM is an LLM fine-tuned for grocery category recommendations in e-commerce.
  • It uses a two-stage LoRA training to capture cyclical purchasing patterns.
  • A trie-based decoding mechanism ensures valid and controllable category outputs.
  • GrocLM achieved a 7.5% improvement in cart-adds per impression in live production.

Original post by Yuan Zhong, Chuanwei Ruan, Moein Hasani, Tejaswi Tenneti, Haixun Wang, Fenglong Ma

"arXiv:2607.24764v1 Announce Type: new Abstract: The rapid growth of online grocery shopping requires recommendation systems that capture cyclical purchasing behavior and diverse user intents. Traditional item-level methods face scalability and accuracy challenges, motivating cate…"

View on X

Originally posted by Yuan Zhong, Chuanwei Ruan, Moein Hasani, Tejaswi Tenneti, Haixun Wang, Fenglong Ma on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses