Skip to main content
QUICK REVIEW

[Paper Review] Semantic Labeling Using a Deep Contextualized Language Model

Mohamed Trabelsi, Jin Cao|arXiv (Cornell University)|Oct 30, 2020
Data Quality and ManagementDecision Sciences43 references8 citations
TL;DR

This paper proposes SeLaB, a context-aware semantic labeling method that uses BERT to jointly model column values and their contextual relationships within a table for improved schema label prediction. By treating tables as sequential inputs and incorporating predicted labels as context, SeLaB achieves state-of-the-art performance on real-world datasets, significantly outperforming value-only methods and reducing ambiguity in label prediction.

ABSTRACT

Generating schema labels automatically for column values of data tables has many data science applications such as schema matching, and data discovery and linking. For example, automatically extracted tables with missing headers can be filled by the predicted schema labels which significantly minimizes human effort. Furthermore, the predicted labels can reduce the impact of inconsistent names across multiple data tables. Understanding the connection between column values and contextual information is an important yet neglected aspect as previously proposed methods treat each column independently. In this paper, we propose a context-aware semantic labeling method using both the column values and context. Our new method is based on a new setting for semantic labeling, where we sequentially predict labels for an input table with missing headers. We incorporate both the values and context of each data column using the pre-trained contextualized language model, BERT, that has achieved significant improvements in multiple natural language processing tasks. To our knowledge, we are the first to successfully apply BERT to solve the semantic labeling task. We evaluate our approach using two real-world datasets from different domains, and we demonstrate substantial improvements in terms of evaluation metrics over state-of-the-art feature-based methods.

Motivation & Objective

  • To address the limitation of existing semantic labeling methods that treat columns in isolation and ignore contextual relationships between columns.
  • To reduce human effort in schema labeling by eliminating the need for manual feature engineering.
  • To improve label prediction accuracy by incorporating both column values and table-level context using a pre-trained language model.
  • To develop an end-to-end trainable model that jointly learns representations and predicts schema labels.
  • To evaluate the method on diverse real-world datasets and demonstrate robustness across different data types and table structures.

Proposed method

  • The method uses a sequential prediction framework where each column's label is predicted in the context of previously predicted labels in the same table.
  • It employs BERT to encode both the values of a column and the context provided by other columns, including already-predicted labels.
  • The model is trained end-to-end to predict schema labels from contextualized representations, avoiding hand-crafted feature engineering.
  • Input representation combines column values and positional embeddings, with masked labels during training to simulate missing headers.
  • The framework supports both full and partial masking of headers during inference, enabling robust prediction even with incomplete context.
  • The model leverages pre-trained contextual embeddings to capture semantic relationships across columns, improving disambiguation of similar values.

Experimental results

Research questions

  • RQ1Can incorporating column context significantly improve semantic label prediction accuracy compared to value-only methods?
  • RQ2How does the sequential, context-aware prediction mechanism reduce ambiguity in labeling columns with similar values?
  • RQ3To what extent does end-to-end training with BERT outperform traditional feature-based approaches in semantic labeling?
  • RQ4How does the number of training samples per label affect the performance of the context-aware model?
  • RQ5Can predicted context from earlier predictions be as effective as ground-truth context for downstream label prediction?

Key findings

  • SeLaB achieves substantial improvements in top-1 accuracy over state-of-the-art feature-based methods on both WikiTables and Log tables datasets.
  • The model shows strong performance even when 100% of headers are masked, indicating that predicted context is nearly as effective as ground-truth context.
  • String columns are labeled more accurately than numeric columns, as numeric values are more ambiguous and lead to higher prediction error.
  • Performance improves significantly with more training samples per label, especially beyond 20 instances, and SeLaB maintains high accuracy even with rare labels.
  • The model successfully corrects initial mispredictions—e.g., distinguishing 'home team' from 'away team'—by leveraging contextual cues from neighboring columns.
  • Local smoothing analysis shows SeLaB consistently outperforms 'Bert with only values' across all label frequency ranges, with a notable advantage for low- and medium-frequency labels.

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.