Skip to main content
QUICK REVIEW

[Paper Review] Knowledge Graph Completion Models are Few-shot Learners: An Empirical Study of Relation Labeling in E-commerce with LLMs

Jiao Chen, Luyi Ma|arXiv (Cornell University)|May 17, 2023
Topic ModelingComputer Science8 citations
TL;DR

The paper evaluates large language models (PaLM and GPT-3.5) for few-shot relation labeling in e-commerce knowledge graphs, showing they outperform traditional KG completion models with 1–5 labeled examples per relation and can match or surpass human labeling.

ABSTRACT

Knowledge Graphs (KGs) play a crucial role in enhancing e-commerce system performance by providing structured information about entities and their relationships, such as complementary or substitutable relations between products or product types, which can be utilized in recommender systems. However, relation labeling in KGs remains a challenging task due to the dynamic nature of e-commerce domains and the associated cost of human labor. Recently, breakthroughs in Large Language Models (LLMs) have shown surprising results in numerous natural language processing tasks. In this paper, we conduct an empirical study of LLMs for relation labeling in e-commerce KGs, investigating their powerful learning capabilities in natural language and effectiveness in predicting relations between product types with limited labeled data. We evaluate various LLMs, including PaLM and GPT-3.5, on benchmark datasets, demonstrating their ability to achieve competitive performance compared to humans on relation labeling tasks using just 1 to 5 labeled examples per relation. Additionally, we experiment with different prompt engineering techniques to examine their impact on model performance. Our results show that LLMs significantly outperform existing KG completion models in relation labeling for e-commerce KGs and exhibit performance strong enough to replace human labeling.

Motivation & Objective

  • Demonstrate LLMs' capacity to label complementary and substitutable relations between product types in e-commerce KGs with few labels.
  • Assess the impact of prompt engineering on LLM performance in few-shot relation labeling.
  • Compare LLM performance to traditional KG completion models and to human labeling.
  • Investigate whether LLM explanations align with or influence human labeling decisions.

Proposed method

  • Evaluate PaLM and GPT-3.5 on Electronics and Instacart product-type datasets for is_complementary_to, is_substitutable_for, or is_irrelevant_to relations.
  • Use 0–5 labeled examples per relation to study few-shot learning effects.
  • Apply four prompt-design principles: Clarity, Relevance, and clear input/output formatting; assess Baseline, relation description, and few-shot prompts.
  • Measure accuracy, precision, and recall for complementary and substitutable relations against human consensus labels.

Experimental results

Research questions

  • RQ1Can LLMs achieve competitive or superior relation labeling accuracy with limited labeled data in e-commerce KGs?
  • RQ2How do prompt designs and few-shot examples affect LLM performance on relation labeling?
  • RQ3Do LLMs offer explanations that align with human labeling, and can explanations influence human relabeling?
  • RQ4How do LLMs compare to traditional KG models in accuracy with limited training data?
  • RQ5Are LLMs scalable across different e-commerce datasets with minimal labeled data?

Key findings

  • LLMs significantly outperform existing KG models on relation labeling for e-commerce KGs, with at least 40.6% minimum improvement.
  • PaLM and GPT-3.5 show competitive accuracy using just 1–5 labeled examples per relation.
  • Prompt design with relation descriptions and few-shot examples substantially improves accuracy (e.g., ~17.6% to ~28.3% gains over baseline).
  • LLMs can provide explanations for labeling decisions, and human labelers are likely to agree with these explanations after reading them.
  • LLMs’ performance is robust across Electronics and Instacart datasets and can be comparable to or exceed human labeling in some cases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.