Abstract
Traditional E-commerce text generation models typically operate in a single pass, converting product attributes into descriptions from scratch. This approach lacks flexibility for merchants who wish to refine existing copy without losing preferred phrasing. We present a "draft-command-edit" paradigm that enables surgical modifications—such as adding or deleting specific attributes—while preserving the quality of the original draft. Our framework utilizes a ProphetNet-based architecture, domain-specific pre-training, and novel data augmentation strategies to achieve high-fidelity controllable editing.
Introduction
In E-commerce, AI models are essential for transforming structured data (e.g., "Material: Leather") into engaging marketing descriptions. However, the standard "single-pass" generation is often inflexible. If a merchant wants to remove a technical detail or add a new selling point, existing models usually regenerate the entire text, often losing the nuances of the original version. Manual editing is unscalable for platforms with millions of listings.
To bridge this gap, we propose a system that performs targeted edits based on user commands. This approach follows the "minimum modification principle," mimicking how humans refine text by making precise changes rather than total rewrites.
Methodology
The proposed framework processes four distinct inputs: a target attribute, a command (Add or Delete), grounding information (e.g., product title), and the initial draft text.
Model Architecture
The system uses ProphetNet as its backbone. We developed ProphetNet-E, which underwent domain-specific pre-training on 24 million E-commerce product titles to capture the linguistic patterns of online retail.
Data Augmentation and Training
Because high-quality "draft-edit" pairs are scarce, we developed two synthetic data generation strategies:
- Model-based: A "filling-in-the-blank" model generates attribute-free text by masking relevant words with a
[FILL]token. - Rule-based: Heuristics are used to remove specific sentences or adjectives corresponding to attributes.
We trained the model on E-cEdits, a new human-written dataset of 9,000 tuples across 733 product categories, supplemented by 1.2 million synthetic pairs.
Evaluation Metrics
Beyond standard BLEU and ROUGE scores, we introduced the Attribute Edit metric. This uses fuzzy string matching to verify if a target attribute successfully appears (for "Add") or disappears (for "Delete") in the final output, providing a more accurate measure of command adherence than exact matching.
Results
Our system significantly outperformed standard sequence-to-sequence baselines like Transformer and MASS across multiple dimensions:
- Command Adherence: On the Attribute Edit Score, our system achieved 14.60, whereas the Transformer baseline scored only 0.37, indicating that baselines frequently failed to execute the requested edits.
- Fluency and Retention: Our model maintained a high ROUGE-L score of 96.28, demonstrating its ability to preserve the original draft's quality.
- Human Evaluation: Graders rated the system 3.95/5.0 for overall quality, significantly higher than the MASS baseline (2.87/5.0).
Discussion and Conclusion
The "draft-command-edit" paradigm offers a more interactive and efficient workflow for E-commerce content management. By grounding edits in product context and adhering to the minimum modification principle, the model provides merchants with the control they need without the overhead of manual rewriting.
Future work will expand the command set beyond "Add" and "Delete" to include "Modify" or "Shorten" and explore multi-turn interactive dialogues. Additionally, extending support to languages beyond English and handling more abstract attributes remain key areas for development.
Summary updated