EcomScriptBench: A Multi-task Benchmark for E-commerce Script Planning via Step-wise Intention-Driven Product Association

Weiqi Wang, Limeng Cui, Xin Liu, Sreyashi Nag, Wenju Xu, Chen Luo, Sheikh Muhammad Sarwar, Yang Li, Hansu Gu, Hui Liu, Changlong Yu, Jiaxin Bai, Yifan Gao, Haiyang Zhang, Qi He, Shuiwang Ji, Yangqiu Song

Abstract

While Large Language Models (LLMs) have demonstrated remarkable proficiency in generating step-by-step plans for general tasks, they often falter when acting as e-commerce assistants that must recommend specific, relevant products for each step of a plan. This paper introduces EcomScriptBench, a novel framework and large-scale benchmark designed to bridge the semantic gap between actionable planning steps and product metadata. By mapping steps to "purchase intentions," the framework reveals that even state-of-the-art models require significant refinement to master complex, concierge-style shopping tasks.

Introduction

Imagine a user asking an AI shopping assistant to "plan an autumn-themed party." A sophisticated assistant should generate a logical script—Step 1: Send invites, Step 2: Prepare autumn-themed food, Step 3: Decorate—and simultaneously recommend specific products for the steps that require them, such as baking pans for Step 2 or leaf garlands for Step 3. This integrated task is defined as E-commerce Script Planning.

Despite the capabilities of modern LLMs, they currently struggle with this task due to two primary hurdles:

  1. The Semantic Gap: There is a significant mismatch between user-described actions (e.g., "keep drinks warm") and the way e-commerce platforms index products (e.g., "Thermos 500ml Stainless Steel"). Traditional retrieval methods often fail to connect these disparate descriptions.
  2. Lack of Standardized Benchmarks: Until now, there has been no comprehensive dataset or evaluation method to measure an LLM's ability to generate product-enriched scripts at a granular, step-by-step level.

The EcomScriptBench Framework

To address these challenges, the authors decompose the generative planning problem into three sequential, discriminative subtasks that evaluate a model's reasoning capabilities:

  1. Script Verification: Determining if the generated script is plausible and logical for the user's stated objective.
  2. Step-Product Discrimination: Identifying whether a specific step in the script actually requires a product and, if so, whether a suggested product is genuinely helpful.
  3. Script-Products Verification: Assessing whether the entire sequence of steps and their associated products work together cohesively without internal conflicts.

Intention-Driven Product Association

The core innovation of EcomScriptBench is the Intention-Driven Product Association framework. Rather than matching steps directly to product titles or technical metadata, the authors use GPT-4o-mini to mine "purchase intentions" for millions of products. For example, a running shoe might be associated with the intention to "alleviate foot pain." By using Sentence-BERT to calculate semantic similarity between a script step and these mined intentions, the framework successfully bridges the gap between action-oriented planning and physical product catalogs.

Dataset Composition

EcomScriptBench represents the first large-scale knowledge base and benchmark specifically for e-commerce script planning.

  • The Knowledge Base: Built using Amazon Review data, it encompasses 605,229 product-enriched scripts, 5.9 million individual steps, 2.4 million products, and 24 million mined purchase intentions.
  • The Evaluation Benchmark: To ensure high-quality gold labels, a subset of 15,000 entries (5,000 per subtask) underwent rigorous human annotation via Amazon Mechanical Turk, followed by expert verification.

Experimental Results and Insights

Evaluations conducted on both proprietary and open-source models reveal that e-commerce script planning remains a highly challenging frontier for AI.

Zero-Shot Performance

Even the most powerful models showed limitations in zero-shot settings. Llama-3.1-405B achieved accuracy scores of 75.26% on Script Verification, but dropped to 68.16% and 65.66% on the more complex discrimination and verification tasks. GPT-4o (5-shot) performed slightly better but still plateaued at approximately 77.92%, 73.90%, and 72.85% across the three tasks.

The Power of Fine-Tuning and Intention Injection

Fine-tuning smaller models on the EcomScriptBench dataset yielded significant performance gains. A fine-tuned Mistral-7B-v0.3 outperformed much larger models, reaching 85.72% on Task 1.

Furthermore, the authors discovered that "Intention Injection"—pre-training models on external intention-based datasets (such as FolkScope) before fine-tuning on EcomScriptBench—dramatically improved product association. For instance, Llama-3.1-8B’s accuracy on Step-Product Discrimination jumped from a zero-shot 65.74% to 78.60% following this sequential training.

Discussion and Future Directions

While EcomScriptBench provides a robust foundation, several areas for improvement remain. The current automated pipeline relies on proprietary models for data generation, and detecting subtle conflicts between products (e.g., suggesting incompatible smart-home ecosystems in different steps) still requires human oversight.

Future work may involve incorporating multimodal data, such as product images, to help models distinguish between items that are textually similar but visually distinct. Additionally, the authors envision extending this framework to real-world, single-step generative shopping assistants to provide more intuitive and helpful consumer experiences.

Summary updated

BibTeX
@inproceedings{wang2025ecomscriptbench,
  author = {Weiqi Wang and Limeng Cui and Xin Liu and Sreyashi Nag and Wenju Xu and Chen Luo and Sheikh Muhammad Sarwar and Yang Li and Hansu Gu and Hui Liu and Changlong Yu and Jiaxin Bai and Yifan Gao and Haiyang Zhang and Qi He and Shuiwang Ji and Yangqiu Song},
  title = {{EcomScriptBench: A Multi-task Benchmark for E-commerce Script Planning via Step-wise Intention-Driven Product Association}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure