Abstract
Automatic product description generation is essential for modern e-commerce platforms to attract user interest and improve the shopping experience. However, generating high-quality, controllable, and factually accurate copywriting at scale remains a challenge. We present the E-commerce Prefix-based Controllable Copywriting Generation (EPCCG) system, which has been successfully deployed on JD.com. The system integrates aspect extraction, weakly supervised labeling, and a prefix-based language model to generate descriptions tailored to specific product features. Our results demonstrate that EPCCG significantly outperforms existing baselines in both automated metrics and human evaluation, contributing to substantial increases in Gross Merchandise Volume (GMV) since its deployment.
Introduction
In the competitive landscape of e-commerce, a product's description is more than just a list of specifications; it is a narrative designed to highlight specific characteristics for different target audiences. For instance, a laptop might be marketed to a gamer by emphasizing "heat dissipation" or to a business traveler by focusing on "portability."
While human copywriters excel at this nuanced storytelling, they cannot keep pace with the millions of new products launched daily. Previous automated generation attempts have struggled with three primary hurdles:
- Lack of Control: Models often fail to focus on a specific requested "aspect" (e.g., fabric vs. style).
- Hallucinations: Generative models frequently produce factually incorrect statements regarding product specifications.
- Semantic Gaps: In languages like Chinese, character-based tokenization often misses the semantic nuances found in multi-character phrases.
To address these, we developed EPCCG, a system that combines unsupervised phrase-based classification with prompt-based learning to generate high-quality, controllable copywriting.
The EPCCG Framework
The EPCCG pipeline consists of four distinct stages designed to ensure relevance, control, and accuracy.
1. Aspect Extraction and Labeling
To provide controllable generation, the system must first understand which "aspects" are relevant to a product category. We utilize Latent Dirichlet Allocation (LDA) followed by human refinement to identify key aspects (e.g., "suction" for vacuum cleaners). To train the model without massive manual labeling, we developed a Phrase-based LOTClass classifier. This tool uses a pre-trained language model to automatically label millions of existing human-written descriptions with their corresponding aspects in an unsupervised manner.
2. Prefix-based Language Modeling
The core of the system is a 12-layer Transformer-based Prefix Language Model. Unlike standard Sequence-to-Sequence (Seq2Seq) models, a Prefix LM treats the input—including product titles, attributes, OCR text from images, and the target aspect—as a "prefix." This allows the model to attend to all input information bi-directionally while generating the description auto-regressively. This architecture ensures that the "control code" (the aspect) exerts a stronger influence on the final output.
3. Prompt-EPCCG
We further enhanced the model using Prompt-EPCCG, which employs structured templates to help the model interpret the relationship between different product attributes. By explicitly labeling input strings (e.g., "Product Title: [Title]"), the model better understands the context of the structured data, leading to more coherent and relevant descriptions.
4. Knowledge-based Post-processing
To combat the issue of hallucinations, the system includes a factual verification layer. We use Regular Expressions to cross-reference generated text against a verified database of product specifications. Any discrepancies or "hallucinated" specs are corrected or flagged before the copywriting is finalized.
Experimental Setup and Dataset
We introduced the JDCopywriting dataset to facilitate this research. It contains 500,000 samples across six major categories: computers, mobile phones, home appliances, men’s clothing, women’s clothing, and facial skin care. Each entry includes product titles, OCR text, structured attributes, and high-quality human-written copywriting.
Crucially, we found that for Chinese NLP, character-level tokenization is insufficient. By building a domain-specific phrase vocabulary using tools like AutoPhrase, the model captured significantly better semantic meaning during the generation process.
Results and Real-World Impact
EPCCG was benchmarked against state-of-the-art models, including CTRL and Conditional GPT. The system outperformed these baselines across ROUGE, BLEU, and Meteor scores. In human evaluations for "validness" (measuring informativeness and accuracy), EPCCG achieved a score of 96.29%, significantly higher than its competitors.
Since its deployment in October 2021, the system has:
- Generated over 56,000 live descriptions.
- Covered 6 major product categories.
- Contributed to millions of dollars in Gross Merchandise Volume (GMV) on the JD.com platform.
Conclusion
The EPCCG system demonstrates the power of combining prefix-based language models with unsupervised labeling and prompt engineering in a large-scale industrial setting. While the system currently utilizes a human screening phase for absolute quality assurance, future work will focus on integrating "truthfulness" directly into the model's loss function to further reduce human dependency and expand the system's reach to more diverse product categories.
Summary updated