Skip to main content
QUICK REVIEW

[Paper Review] LLaSA: Large Language and E-Commerce Shopping Assistant

Shuo Zhang, Boci Peng|arXiv (Cornell University)|Aug 4, 2024
Mobile Agent-Based Network ManagementComputer Science3 citations
TL;DR

LLaSA is a large language model-based e-commerce shopping assistant developed through instruction tuning on a custom 65,000-sample dataset, EshopInstruct, to overcome task-specificity and poor generalization in existing assistants. It achieved 3rd place overall and top-5 rankings in all tracks of the Amazon KDD Cup 2024 challenge, with the best performance among student teams in Track 4 (multi-lingual abilities).

ABSTRACT

The e-commerce platform has evolved rapidly due to its widespread popularity and convenience. Developing an e-commerce shopping assistant for customers is crucial to aiding them in quickly finding desired products and recommending precisely what they need. However, most previous shopping assistants face two main problems: (1) task-specificity, which necessitates the development of different models for various tasks, thereby increasing development costs and limiting effectiveness; and (2) poor generalization, where the trained model performs inadequately on up-to-date products. To resolve these issues, we employ Large Language Models (LLMs) to construct an omnipotent assistant, leveraging their adeptness at handling multiple tasks and their superior generalization capability. Nonetheless, LLMs lack inherent knowledge of e-commerce concepts. To address this, we create an instruction dataset comprising 65,000 samples and diverse tasks, termed as EshopInstruct. Through instruction tuning on our dataset, the assistant, named LLaSA, demonstrates the potential to function as an omnipotent assistant. Additionally, we propose various inference optimization strategies to enhance performance with limited inference resources. In the Amazon KDD Cup 2024 Challenge, our proposed method, LLaSA, achieved an overall ranking of 3rd place on ShopBench, including 57 tasks and approximately 20,000 questions, and we secured top-5 rankings in each track, especially in track4, where we achieved the best performance result among all student teams. Our extensive practices fully demonstrate that LLMs possess the great potential to be competent e-commerce shopping assistants.

Motivation & Objective

  • To address the limitations of task-specific and poorly generalizing e-commerce shopping assistants by leveraging large language models (LLMs).
  • To improve model generalization and multi-task capability in e-commerce scenarios through domain-specific instruction tuning.
  • To optimize inference efficiency for LLMs in resource-constrained settings using quantization and prompting strategies.
  • To develop a unified, omnipotent assistant capable of handling diverse e-commerce tasks including reasoning, retrieval, and multilingual understanding.
  • To achieve state-of-the-art performance on the multi-task ShopBench benchmark from the Amazon KDD Cup 2024 challenge.

Proposed method

  • Constructed a 65,000-sample instruction dataset, EshopInstruct, using three strategies: seed-based generation, extraction from ECInstruct, and novel task design.
  • Fine-tuned the Qwen2-72B LLM on EshopInstruct to create LLaSA, enhancing its understanding of e-commerce concepts and tasks.
  • Applied GPTQ quantization (int4) to reduce model size and inference cost while preserving performance.
  • Employed few-shot prompting with retrieved relevant examples and Chain-of-Thought prompting to improve reasoning on complex queries.
  • Implemented Re-Reading prompting to enhance model reasoning by reprocessing the input question.
  • Used task-specific prompt engineering: direct generation for open-ended tasks, and regex-based answer extraction for multiple-choice questions.

Experimental results

Research questions

  • RQ1Can a single instruction-tuned LLM serve as a general-purpose e-commerce shopping assistant across diverse, multi-domain tasks?
  • RQ2How does instruction tuning on a custom e-commerce dataset (EshopInstruct) improve model performance compared to generic pretraining or other instruction datasets?
  • RQ3To what extent can quantization and prompt engineering strategies enhance inference efficiency and performance on low-resource hardware?
  • RQ4How well can a single LLM generalize across multilingual and cross-domain e-commerce tasks without fine-tuning?
  • RQ5What is the impact of model scale and architecture choice (e.g., Qwen2 vs. Llama3) on performance in e-commerce reasoning and understanding tasks?

Key findings

  • LLaSA, fine-tuned on EshopInstruct, achieved an overall ranking of 3rd place in the Amazon KDD Cup 2024 challenge across 57 tasks and ~20,000 questions.
  • The model achieved the best performance among all student teams in Track 4 (Multi-lingual Abilities), securing the top student team award.
  • Qwen2-72B fine-tuned on EshopInstruct (model F) achieved a score of 0.824 on Track 1, outperforming the base Qwen2-72B (0.786) and models fine-tuned on ECInstruct.
  • Instruction tuning with EshopInstruct significantly improved performance on generation (0.732), multiple-choice (0.860), and ranking (0.845) tasks in Track 1.
  • GPTQ quantization to int4 reduced model size and inference cost while maintaining high performance, with the quantized Qwen2-72B model (F) achieving 0.735 on Track 4.
  • Re-Reading prompting and few-shot retrieval improved reasoning, particularly in complex tasks like multi-hop reasoning and entity recognition.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.