Abstract
E-commerce platforms require structured product data in the form ofattribute-value pairs to offer features such as faceted product search orattribute-based product comparison. However, vendors often provide unstructuredproduct descriptions, necessitating the extraction of attribute-value pairsfrom these texts. BERT-based extraction methods require large amounts oftask-specific training data and struggle with unseen attribute values. Thispaper explores using large language models (LLMs) as a more training-dataefficient and robust alternative. We propose prompt templates for zero-shot andfew-shot scenarios, comparing textual and JSON-based target schemarepresentations. Our experiments show that GPT-4 achieves the highest averageF1-score of 85% using detailed attribute descriptions and demonstrations.Llama-3-70B performs nearly as well, offering a competitive open-sourcealternative. GPT-4 surpasses the best PLM baseline by 5% in F1-score.Fine-tuning GPT-3.5 increases the performance to the level of GPT-4 but reducesthe model's ability to generalize to unseen attribute values.