spot_img
HomeResearch & DevelopmentAutomating Product Ontology Creation with Large Language Models

Automating Product Ontology Creation with Large Language Models

TLDR: This research paper introduces a fully-automated method for extracting meronymic product ontologies from raw review texts using Large Language Models (LLMs). The proposed pipeline involves four stages: aspect, synset, concept, and relation extraction. Evaluated against a BERT-based baseline using an LLM-as-a-judge, the LLM-based approach demonstrates significant improvements in the relevance of extracted terms and relations across various product categories. While offering enhanced performance, the method incurs higher computational costs, particularly during the aspect extraction phase. The study provides a foundation for broader application of LLMs in ontology extraction.

In today’s digital landscape, the sheer volume of unstructured text data, particularly from sources like product reviews, presents both immense opportunities and significant challenges. Organizing this information effectively is crucial for various applications, from e-commerce product organization to sentiment analysis and review aggregation. Ontologies, which provide a formal, structured representation of information, are a powerful tool for this purpose.

Traditionally, building these ontologies, especially those focusing on ‘part-whole’ relationships known as meronymies, has been a time-consuming, expensive, and labor-intensive process, often requiring specialized domain expertise. However, recent advancements in Large Language Models (LLMs) are paving the way for more automated and efficient solutions.

A new research paper, titled Meronymic Ontology Extraction via Large Language Models, introduces a groundbreaking, fully-automated method for extracting product ontologies in the form of meronymies directly from raw review texts. Authored by Dekai Zhang, Simone Conia, and Antonio Rago, this work demonstrates how LLMs can be harnessed to significantly improve the relevance of extracted ontologies compared to previous methods.

The Challenge of Ontology Extraction

Ontologies are essentially structured knowledge bases that represent concepts and their relationships within a specific domain. Meronymic ontologies, specifically, focus on ‘part-of’ relationships (e.g., a ‘strap’ is part of a ‘watch’). These are particularly useful in contexts like product review aggregation, where understanding the components and features of a product is key.

While earlier research has explored learning ontologies from data, including deep learning methods and even some LLM applications, many efforts have concentrated on taxonomic (‘is-a’) relations rather than meronymic ones. Existing methods for meronymic extraction, such as those based on BERT models, often still rely on some degree of manual annotation, and evaluating these ontologies has been non-trivial due to the lack of ground-truth examples.

A Fully-Automated LLM-Based Pipeline

The researchers propose a comprehensive pipeline that leverages LLMs for each stage of meronymic ontology extraction. This method is designed to generalize across different product categories and consists of four main tasks:

  • Aspect Extraction: Identifying relevant features or components (aspects) from customer reviews. The Mistral-7B-Instruct-v0.2 LLM was fine-tuned for this task, and a filtering step using part-of-speech tagging was implemented to reduce hallucinations and identify only nouns present in the review text.

  • Synset Extraction: Grouping similar aspects into ‘synsets’ (sets of synonyms). This stage uses Equidistant Nodes Clustering (ENC) on word embeddings generated by a fine-tuned FastText model, chosen for its robustness to noisy data common in product reviews.

  • Concept Extraction: Selecting the most representative and relevant terms from the synset groups to form the core concepts of the ontology. An LLM is prompted to determine whether each candidate term should be included, ensuring specificity and product fit.

  • Relation Extraction: Identifying the ‘part-whole’ relationships between the extracted concepts. A fine-tuned Mistral model, trained on synthetic samples, is used to determine if a meronymic relationship exists between two aspects within a sentence.

The product reviews used for this research were sourced from the Amazon Reviews 2023 dataset, covering diverse products like video games, televisions, necklaces/watches, and stand mixers.

Evaluation and Findings

Given the absence of standard benchmarks for meronymic ontology extraction, the researchers employed an innovative evaluation method: LLM-as-a-judge. Gemini 1.5 Flash was used as the LLM judge, provided with a detailed scoring guide and prompted to give scores from 1 to 5, along with explanations, for both the extracted terms and relations.

The LLM-based approach was compared against an existing BERT-based method. The results showed that the ontologies produced by the LLM method, particularly a shortened version with an equal number of terms as the baseline, consistently surpassed the BERT baseline in terms of relevance for both extracted terms and relations across all tested product categories.

However, this improved performance comes with a trade-off: higher computational costs. The full pipeline for the LLM-based method took an average of 38.89 minutes per product, significantly more than the 6.62 minutes for the BERT-based method. Aspect extraction was identified as the most time-consuming stage for the LLM approach.

Also Read:

Future Directions

The paper concludes by highlighting the significant gains in ontology relevance achieved by their LLM-based method. Future work includes investigating the possibility of a standard benchmark for this task, verifying evaluations with user studies to assess real-world impact on user engagement, and determining the generalizability of the approach to other types of ontologies, such as taxonomies.

While LLM-as-a-judge is an increasingly accepted evaluation method for domain-specific tasks, the authors acknowledge the limitations and suggest that user studies could provide further evidence, despite their own potential biases. The challenge of LLM hallucinations is also noted, with fine-tuning on real product ontologies and the potential use of LLM ensembles suggested as mitigation strategies.

Karthik Mehta
Karthik Mehtahttps://blogs.edgentiq.com
Karthik Mehta is a data journalist known for his data-rich, insightful coverage of AI news and developments. Armed with a degree in Data Science from IIT Bombay and years of newsroom experience, Karthik merges storytelling with metrics to surface deeper narratives in AI-related events. His writing cuts through hype, revealing the real-world impact of Generative AI on industries, policy, and society. You can reach him out at: [email protected]

- Advertisement -

spot_img

Gen AI News and Updates

spot_img

- Advertisement -