Skip to main content
QUICK REVIEW

[Paper Review] Column Type Annotation using ChatGPT

Keti Korini, Christian Bizer|arXiv (Cornell University)|Jun 1, 2023
Topic ModelingComputer Science7 citations
TL;DR

This paper explores using ChatGPT for column type annotation (CTA) in relational tables, proposing a two-step pipeline that first classifies the table's entity type and then annotates columns using a reduced semantic type vocabulary. With minimal or no fine-tuning, ChatGPT achieves over 85% F1 in zero- and one-shot settings, outperforming RoBERTa fine-tuned on 356 examples.

ABSTRACT

Column type annotation is the task of annotating the columns of a relational table with the semantic type of the values contained in each column. Column type annotation is an important pre-processing step for data search and data integration in the context of data lakes. State-of-the-art column type annotation methods either rely on matching table columns to properties of a knowledge graph or fine-tune pre-trained language models such as BERT for column type annotation. In this work, we take a different approach and explore using ChatGPT for column type annotation. We evaluate different prompt designs in zero- and few-shot settings and experiment with providing task definitions and detailed instructions to the model. We further implement a two-step table annotation pipeline which first determines the class of the entities described in the table and depending on this class asks ChatGPT to annotate columns using only the relevant subset of the overall vocabulary. Using instructions as well as the two-step pipeline, ChatGPT reaches F1 scores of over 85% in zero- and one-shot setups. To reach a similar F1 score a RoBERTa model needs to be fine-tuned with 356 examples. This comparison shows that ChatGPT is able deliver competitive results for the column type annotation task given no or only a minimal amount of task-specific demonstrations.

Motivation & Objective

  • To investigate the feasibility of using large language models like ChatGPT for column type annotation without extensive fine-tuning.
  • To evaluate the impact of prompt engineering, including step-by-step instructions and message roles, on CTA performance.
  • To address the challenge of large semantic type vocabularies by proposing a two-step annotation pipeline.
  • To compare the zero- and few-shot performance of ChatGPT against state-of-the-art methods like RoBERTa and DODUO.
  • To establish a baseline for few-shot and zero-shot CTA using LLMs, reducing reliance on task-specific training data.

Proposed method

  • The authors use a subset of the SOTAB benchmark with 32 semantic types from four domains: music, hotels, events, and restaurants.
  • They experiment with various prompt designs, including zero-shot, few-shot in-context learning, and prompts with structured instructions and message roles.
  • A two-step pipeline is proposed: first predicting the table’s entity class (e.g., restaurant), then restricting the semantic type vocabulary to only relevant types for column annotation.
  • The model is prompted using natural language descriptions of table columns, such as 'The price is 8.00 USD', to improve interpretability and performance.
  • Performance is evaluated using F1 scores on the test set, comparing ChatGPT results to fine-tuned RoBERTa and DODUO models across varying training data sizes.
  • All experiments are reproducible using code and data released on GitHub.

Experimental results

Research questions

  • RQ1Can ChatGPT achieve competitive column type annotation performance in zero- and few-shot settings without fine-tuning?
  • RQ2How does the inclusion of step-by-step instructions and message roles affect the performance of ChatGPT in CTA?
  • RQ3Does in-context learning with a few demonstrations significantly improve zero-shot performance?
  • RQ4Can a two-step pipeline that reduces the label space improve performance when dealing with large semantic type vocabularies?
  • RQ5How does the performance of ChatGPT compare to fine-tuned RoBERTa and DODUO models when trained on varying amounts of data?

Key findings

  • ChatGPT achieves an F1 score of over 85% in both zero-shot and one-shot setups using only prompt engineering and no fine-tuning.
  • The two-step pipeline, which first classifies the table’s entity type and then restricts the semantic type vocabulary, enables effective handling of large label sets.
  • Providing detailed, multi-step instructions significantly improves performance compared to simple prompt templates.
  • ChatGPT outperforms a RoBERTa model fine-tuned on 356 examples, achieving similar F1 scores with no task-specific fine-tuning.
  • The use of message roles (e.g., system and user messages) enhances consistency and performance in few-shot settings.
  • The study demonstrates that large language models like ChatGPT can be highly data-efficient for CTA, reducing reliance on large annotated datasets.

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.