Attribute Value Generation from Product Title using Language Models

Kalyani Roy, Pawan Goyal, Manish Pandey2021

Abstract

Identifying the value of product attributes is essential for many e-commerce functions such as product search and product recommendations. Therefore, identifying attribute values from unstructured product descriptions is a critical undertaking for any e-commerce retailer. What makes this problem challenging is the diversity of product types and their attributes and values. Existing methods have typically employed multiple types of machine learning models, each of which handles specific product types or attribute classes. This has limited their scalability and generalization for large-scale real-world e-commerce applications. Previous approaches for this task have formulated the attribute value extraction as a Named Entity Recognition (NER) task or a Question Answering (QA) task. In this paper, we have presented a generative approach to the attribute value extraction problem using language models. We leverage the large-scale pretraining of the GPT-2 and the T5 text-to-text transformer to create fine-tuned models that can effectively perform this task. We show that a single general model is very effective for this task over a broad set of product attribute values with the open-world assumption. Our approach achieves state-of-the-art performance for different attribute classes, which has previously required a diverse set of models.

The Challenge of Product Attribute Extraction

In the world of e-commerce, structured data is essential. To power search filters and recommendation engines, a retailer needs to know that a specific guitar has a "Basswood Body" and is made by "ammoon." However, this information is often buried in unstructured product titles or descriptions.

Figure 1: Example of product attribute extraction from a title, mapping unstructured text to structured key-value pairs.

Historically, this has been treated as a Named Entity Recognition (NER) task (tagging specific words in a sentence) or a Question Answering (QA) task (extracting a span of text). These methods face three major hurdles:

  1. Scalability: They often require separate models for different attribute classes.
  2. The Closed-World Limitation: They struggle to identify "open world" values—attributes or values that weren't explicitly present in the training data.
  3. Incompleteness: Titles are often noisy or missing information (e.g., a title might mention "Dual-coil" but not explicitly label it as the "Pickup Type").

Transitioning to Generative Models

Researchers from IIT Kharagpur and Carnegie Mellon University have shifted the paradigm from traditional sequence tagging to a generative approach. The authors propose using two primary architectures:

  • Infilling by Language Modeling (ILM): Leveraging GPT-2, the researchers frame the problem as a "fill-in-the-blanks" task. They concatenate the product title ($T$) and the attribute ($A$) into a template: "T. A is [blank]." The model is then trained to predict the missing value ($V$).
  • Answer Generation (T5): Using the Text-to-Text Transfer Transformer (T5), they treat the problem as a sequence-to-sequence task. The model receives the title as context and the attribute as a query, then generates the value as the output string.

Unlike extractive models that can only "point" to words already in the title, these generative models can synthesize the correct value or output "NULL" if the attribute is missing, leveraging the vast semantic knowledge gained during their large-scale pre-training.

Experimental Results and Discussion

The study utilized the AV-109K dataset, derived from AliExpress, containing over 109,000 triples covering 2,157 unique attributes. To test "open world" capability, the authors created AV-zero, a subset of low-frequency attributes excluded from training.

The generative models significantly outperformed previous state-of-the-art methods like SUOTag and traditional BiLSTM-CRF baselines. T5 achieved an overall Exact Match (EM) score of 81.35%, compared to SUOTag’s 68.88%.

Figure 6: Performance comparison across different attribute classes (Brand, Material, Color, Category) for various models.

Key Insights

  • Generative > Extractive: The move from tagging (BIO tags) to generation allows the model to handle "NULL" values more gracefully. Traditional models often over-predict values when none exist; generative models showed much higher precision in identifying missing attributes.
  • Semantic Transfer: Because GPT-2 and T5 are pre-trained on massive corpora, they understand that "Basswood" is a material and "ammoon" is likely a brand name, even if the specific association hasn't appeared frequently in the e-commerce training set.
  • Zero-Shot Discovery: On the AV-zero dataset, T5 and ILM showed a massive lead. For the "Shell Material" attribute, T5 achieved a 58.33% EM, while the baseline SUOTag struggled at 30.56%.

Conclusion and Future Work

While the models are robust, they remain limited by the quality of training data. Noisy annotations in e-commerce datasets mean that models are sometimes penalized for being more accurate than the ground-truth labels. Future work will focus on multi-modal integration—incorporating product images to verify attributes—and developing automated ways to clean existing e-commerce datasets.

Summary updated

Abstract

Identifying the value of product attribute is essential for many e-commerce functions such as product search and product recommendations. Therefore, identifying attribute values from unstructured product descriptions is a critical undertaking for any e-commerce retailer. What makes this problem challenging is the diversity of product types and their attributes and values. Existing methods have typically employed multiple types of machine learning models, each of which handles specific product types or attribute classes. This has limited their scalability and generalization for large scale real world e-commerce applications. Previous approaches for this task have formulated the attribute value extraction as a Named Entity Recognition (NER) task or a Question Answering (QA) task. In this paper we have presented a generative approach to the attribute value extraction problem using language models. We leverage the largescale pretraining of the GPT-2 and the T5 textto-text transformer to create fine-tuned models that can effectively perform this task. We show that a single general model is very effective for this task over a broad set of product attribute values with the open world assumption. Our approach achieves state-of-the-art performance for different attribute classes, which has previously required a diverse set of models.
BibTeX
@misc{roy2021attribute,
  author = {Kalyani Roy and Pawan Goyal and Manish Pandey},
  title = {{Attribute Value Generation from Product Title using Language Models}},
  year = {2021},
  doi = {10.18653/v1/2021.ecnlp-1.2},
}

Loading related content...

Figure