Exploring Large Language Models for Product Attribute Value Identification

Kassem Sabeh, Mouna Kacimi, Johann Gamper, Robert Litschko, Barbara PlankarXiv 2024 · DOI

Introduction

In the rapidly evolving landscape of e-commerce, the ability to accurately categorize and describe products is paramount for effective search, recommendation, and inventory management. Traditionally, this has been approached through Product Attribute Value Extraction (PAVE), a task that assumes a pre-defined taxonomy of attributes (e.g., "Material", "Size") and seeks to extract corresponding values from text. However, the sheer scale and volatility of e-commerce data—featuring tens of thousands of attributes that shift with trends—make maintaining such a taxonomy nearly impossible.

This paper investigates Product Attribute Value Identification (PAVI), a more challenging "joint" task where a model must simultaneously discover both the attribute names and their specific values directly from unstructured product titles.

The Challenge of Product Attribute Value Identification

Unlike PAVE, PAVI requires the model to understand the semantic structure of a product title without being told what to look for. For instance, given the title "Original Vans Low-Top Skateboarding Shoes", a PAVI system must autonomously determine that "Vans" represents the Brand, "Low-Top" indicates the Upper Height, and "Skateboarding Shoes" defines the Shoe Type.

Illustration of the PAVI task: identifying attribute names and values from a product title.

While traditional sequence-to-sequence models like BART or T5 can perform this task, they typically require extensive task-specific training data. This research explores the potential of Large Language Models (LLMs) to handle PAVI more efficiently, particularly in data-scarce or zero-shot scenarios.

Methodology: Prompting and Retrieval Strategies

The authors evaluated three prominent open-source LLMs—LLaMA-3-8B, Mistral-7B, and OLMo-7B—employing several innovative strategies to optimize their performance:

1. Two-Step Prompting

A key finding of the study is the superiority of a two-step prompting strategy over a standard one-step approach. In the one-step method, the model is asked to extract all attribute-value pairs simultaneously. In the two-step method, the task is decomposed:

  1. Attribute Identification: The model first identifies the names of the attributes present in the title.
  2. Value Extraction: The model then uses those identified names to extract the specific values from the text. This decomposition reduces the cognitive load on the LLM, preventing the confusion that often arises when performing two distinct linguistic tasks at once.

2. In-Context Learning (ICL) and Dense Retrieval

To provide the LLMs with better guidance, the researchers implemented a Dense Demonstration Retriever. Instead of relying on simple keyword matching (like TF-IDF), they fine-tuned a T5 model to act as an encoder. This encoder identifies the most semantically relevant labeled examples from a training set to serve as "in-context" demonstrations for the LLM.

The proposed framework using a vector index to retrieve top-K examples for in-context learning with LLMs.

3. Instruction Fine-Tuning (IFT)

For maximum performance, the models underwent Instruction Fine-Tuning (IFT) using LoRA (Low-Rank Adaptation). This process teaches the LLMs the specific output structure required for the PAVI task, significantly narrowing the gap between general-purpose language generation and specialized information extraction.

Experimental Results

The strategies were tested on two benchmarks: AE-110k (a large-scale AliExpress dataset) and OA-Mine (a high-quality, human-annotated dataset).

  • Zero-Shot Performance: The two-step approach provided a massive boost in zero-shot settings. On AE-110k, Mistral-7B's F1 score improved from 17.20 (one-step) to 28.97 (two-step).
  • Retrieval-Augmented Performance: Adding 5 retrieved examples via the T5-based dense retriever enabled LLaMA-3 to reach F1 scores of 73.33 on AE-110k and 73.48 on OA-Mine.
  • Fine-Tuning Excellence: IFT yielded the highest overall results, with LLaMA-3 achieving an F1 of 81.09 on AE-110k and 83.70 on OA-Mine.

Conclusion and Future Work

LLMs, particularly when combined with two-step prompting and dense retrieval, represent a powerful solution for the PAVI task. They offer robustness in zero-shot environments where traditional models fail. Future research will focus on developing automated verification methods—potentially using LLMs as "judges"—to validate newly discovered attributes that may not be present in existing ground-truth datasets, further bridging the gap between automated extraction and human-level understanding.

Summary updated

BibTeX
@misc{sabeh2024exploring,
  author = {Kassem Sabeh and Mouna Kacimi and Johann Gamper and Robert Litschko and Barbara Plank},
  title = {{Exploring Large Language Models for Product Attribute Value Identification}},
  year = {2024},
  eprint = {2409.12695},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.12695},
}
Figure