Abstract
Large Language Models (LLMs) increasingly serve as the foundation for intelligent shopping assistants, yet they frequently suffer from "stale knowledge" due to the rapid evolution of the e-commerce landscape. This paper introduces EcomEdit, the first automated framework specifically designed to surgically edit LLM knowledge in the e-commerce domain. By utilizing a powerful "Teacher" model to supervise smaller "Student" models, EcomEdit identifies and corrects errors in product features and purchase intentions. This approach maintains model accuracy without the high computational costs or risks of catastrophic forgetting associated with traditional fine-tuning.
Introduction
In the fast-paced world of e-commerce, product specifications change, new items are launched daily, and consumer trends shift overnight. Standard LLMs often fail to keep pace, leading to inaccurate recommendations or factual errors regarding products. Traditional methods for updating models, such as full fine-tuning, are often prohibitively expensive and slow for the daily update cycles required in retail. Furthermore, fine-tuning on small, new datasets can lead to "catastrophic forgetting," where the model loses previously learned general knowledge.
While Knowledge Editing (KE) techniques exist to modify specific facts within a model, they have largely been restricted to static, general-knowledge facts. EcomEdit addresses this gap by focusing on the nuances of e-commerce, such as technical product dimensions and the underlying purchase intent behind consumer choices.
Methods: The EcomEdit Pipeline
The EcomEdit framework employs an automated "Teacher-Student" architecture to facilitate precise knowledge updates.
The pipeline consists of four primary stages:
- Feature and Intention Examination: Open-source "student" models (e.g., LLaMa3-8B, Mistral-7B) generate features and purchase intentions for a wide array of products.
- Supervision by a Judge LLM: A high-capacity model, such as GPT-4o, acts as a "Teacher" to detect discrepancies and errors in the student models' outputs.
- Conceptualization: To ensure broader generalization, the framework moves beyond individual item fixes. The judge generates broader "concepts" (e.g., identifying a rule for "Kids Wood Assembled Chairs" rather than just fixing one specific chair), which improves the model's ability to apply learned rules to similar items.
- Knowledge Injection: Using established KE algorithms like ROME (Rank-One Model Editing) and MEMIT (Mass-Editing Memory in a Transformer), the framework surgically updates the model's weights. Ground truth data is verified using multimodal models (like LLaVA) that analyze product images to ensure factual accuracy.
Datasets and Evaluation
The researchers developed the ECOMEDIT dataset, comprising 2,000 products across five major categories from the Amazon Review Dataset: Clothing, Electronics, Home & Kitchen, Industrial & Scientific, and Sports & Outdoors. This resulted in 18,925 editing pairs, split between 14,206 product features and 4,719 purchase intentions.
To rigorously test the framework, the authors also created specialized evaluation sets:
- Locality samples: To ensure that editing one fact does not inadvertently break unrelated knowledge.
- Portability samples: To verify if the model can generalize the new knowledge to synonyms or related contexts.
Key Insights and Results
The study revealed several critical findings regarding the nature of e-commerce knowledge:
- Complexity of Intent: Editing "purchase intentions" proved significantly more difficult than editing "product features." Intentions are semantically complex and subjective, making it harder for models to localize changes without side effects.
- Generalization through Conceptualization: By editing at the concept level, the authors significantly improved the Portability of the knowledge, ensuring the model understood the underlying attribute rather than just memorizing a specific correction.
- Model Performance: The MEMIT and ROME methods consistently outperformed standard fine-tuning and LoRA. On the Mistral-7B model, MEMIT achieved a remarkable 90.11% Reliability score.
- Downstream Impact: Edited models showed significant performance gains on the IntentionQA benchmark, demonstrating that surgical edits translate to better real-world performance on e-commerce tasks. Human audits confirmed that automated corrections were accurate 90.3% of the time.
Conclusion and Future Work
EcomEdit demonstrates that automated knowledge editing is a viable and efficient path for keeping e-commerce LLMs current. While the framework shows great promise, challenges remain in scaling the "Judge LLM" approach to millions of products and further integrating direct visual data into the editing process. Future research will focus on expanding these multimodal capabilities to move beyond text-based ground truth verification.
Summary updated