Stylized Data-to-text Generation: A Case Study in the E-Commerce Domain

Liqiang Jing, Xuemeng Song, Xuming Lin, Zhongzhou Zhao, Wei Zhou, Liqiang Nie · DOI

TL;DR

Researchers have introduced StyleD2T, a framework for "stylized data-to-text generation" that transforms raw product attributes into either formal descriptions or chatty, informal live-stream scripts. By combining a graph-guided logic planner with a feature-level masking mechanism to isolate style from content, the model achieves state-of-the-art performance on a massive new e-commerce dataset from Taobao.

What Problem Does This Paper Address?

Traditional Data-to-Text (D2T) systems are great at turning structured data (like a table of specs) into a coherent sentence. However, they usually ignore style. In e-commerce, a single product needs different "voices": a professional, structured description for a product page and a colloquial, enthusiastic script for a live-streaming influencer.

The authors identify three primary hurdles in stylized D2T:

  1. Logical Flow (C1): Attributes must be mentioned in a natural order (e.g., mentioning a cleanser's ingredients before its long-term effects).
  2. Style Extraction (C2): If you use a reference text to define a style, how do you extract the "vibe" without accidentally copying the specific product details (content) from that reference?
  3. Data Scarcity/Bias (C3): In the real world, we rarely have both a formal and an informal text for the same product. Training on such "biased" samples often leads the model to ignore the style signal entirely.

Methods

The proposed StyleD2T model consists of three innovative modules:

  • Logic Planning-enhanced Data Embedding: Instead of treating attributes as a flat list, the model builds a Logic Graph. It calculates the "logical distance" between attributes based on how often they appear near each other in a large corpus. A Graph Convolutional Network (GCN) refines these embeddings, and a GRU-based planner determines the optimal order for generation.
  • Mask-based Style Embedding: To solve the style-content entanglement problem, the authors use a feature-level mask. Rather than just hiding specific words, an MLP generates a mask that filters the latent representation of a reference style text, theoretically stripping away content-heavy features while preserving stylistic ones.
  • Unbiased Stylized Text Generation: To handle the lack of parallel data, the model uses Pseudo Triplet Augmentation. If a product only has a formal text, the model generates a "pseudo" informal text. To ensure this synthetic data doesn't "pollute" the training, a multi-condition confidence function (checking length, perplexity, style accuracy, and attribute coverage) decides whether to keep the sample.

Datasets

The authors introduced TaoStyle, a new benchmark collected from the Chinese e-commerce giant Taobao.

  • Content: 20,000 formal advertising texts (written by experts) and 11,728 informal transcripts (extracted from live streams via ASR).
  • Characteristics: Formal texts are generally longer and more concentrated in their vocabulary, while informal texts are "looser" and use more colloquialisms.
  • Total Triplets: 31,728 (data, style reference, target text).

Key Insights and Ideas

  • Style as a Reference, Not a Label: Instead of using a simple one-hot "formal/informal" flag, the model uses an actual text as a style anchor. This captures the "intricate linguistic features" that a simple label misses.
  • Logic is Global: By building the logic graph based on the entire corpus statistics (how attributes are generally ordered across thousands of products), the model learns a "common sense" flow for descriptions.
  • Feature-Level Disentanglement: The "aha moment" for style extraction is that style and content often overlap in the same word. By masking at the feature level (within the vector space) rather than the word level, the model can more effectively isolate the "flavor" of the text.

Key Results

StyleD2T was compared against eight baselines (combinations of models like BART and PlanGen with style transfer techniques like StyleT).

  • Quantitative: StyleD2T achieved a Style Accuracy of 97.49%, significantly higher than the best baseline (89.48%). It also saw a 5.7% improvement in Coverage, meaning it was better at actually including all the required product attributes in the final text.
  • Qualitative: In human evaluations with 40 volunteers, StyleD2T consistently won on Style Consistency, Content Consistency, and Text Fluency.
  • Ablation: Removing the Logic Planner caused the biggest drop in attribute coverage, proving that explicit planning is vital for long-form text generation.

Limitations and Future Work

  • Input Diversity: Currently, the model focuses on attribute-value pairs. The authors suggest that future versions should handle more complex inputs like full tables or even unstructured English text.
  • Language Scope: The study is primarily focused on Chinese e-commerce. While the architecture is general, testing on English datasets would verify its cross-linguistic robustness.
  • Inference Speed: While efficient (0.6s per sample), the multi-stage process (graph building + planning + decoding) is more complex than simple end-to-end transformers.

Summary updated

BibTeX
@article{jing2024stylized,
  author = {Liqiang Jing and Xuemeng Song and Xuming Lin and Zhongzhou Zhao and Wei Zhou and Liqiang Nie},
  title = {{Stylized Data-to-text Generation: A Case Study in the E-Commerce Domain}},
  journal = {ACM Trans. Information Systems},
  year = {2024},
  doi = {10.1145/3603374},
}
Figure