[Paper Review] Expanding the Vocabulary of BERT for Knowledge Base Construction
This paper proposes Vocabulary Expandable BERT (VE-BERT), a method to extend BERT's vocabulary with multi-token entities while preserving semantic embeddings through token-recode and task-specific re-pretraining. The approach achieves an F1 score of 0.362 on the validation set and 0.323 on the hidden test set using only a 130M-parameter BERT-base model, outperforming even GPT-3 (175B parameters) under the same constraints.
Knowledge base construction entails acquiring structured information to create a knowledge base of factual and relational data, facilitating question answering, information retrieval, and semantic understanding. The challenge called "Knowledge Base Construction from Pretrained Language Models" at International Semantic Web Conference 2023 defines tasks focused on constructing knowledge base using language model. Our focus was on Track 1 of the challenge, where the parameters are constrained to a maximum of 1 billion, and the inclusion of entity descriptions within the prompt is prohibited. Although the masked language model offers sufficient flexibility to extend its vocabulary, it is not inherently designed for multi-token prediction. To address this, we present Vocabulary Expandable BERT for knowledge base construction, which expand the language model's vocabulary while preserving semantic embeddings for newly added words. We adopt task-specific re-pre-training on masked language model to further enhance the language model. Through experimentation, the results show the effectiveness of our approaches. Our framework achieves F1 score of 0.323 on the hidden test set and 0.362 on the validation set, both data set is provided by the challenge. Notably, our framework adopts a lightweight language model (BERT-base, 0.13 billion parameters) and surpasses the model using prompts directly on large language model (Chatgpt-3, 175 billion parameters). Besides, Token-Recode achieves comparable performances as Re-pretrain. This research advances language understanding models by enabling the direct embedding of multi-token entities, signifying a substantial step forward in link prediction task in knowledge graph and metadata completion in data management.
Motivation & Objective
- Address the challenge of predicting multi-token entities in knowledge base construction using masked language models.
- Overcome the limitation of standard BERT's fixed vocabulary in handling multi-token entity predictions.
- Enable effective semantic representation of newly added multi-token entities without relying on random initialization.
- Improve link prediction and knowledge graph completion using a lightweight, parameter-constrained language model.
- Demonstrate that task-specific re-pretraining and token-recode techniques significantly enhance performance on the LM-KBC 2023 challenge.
Proposed method
- Modify BERT's input and output embedding layers to incorporate multi-token entities as single tokens in the vocabulary.
- Introduce the token-recode (TR) method to generate semantic embeddings for new multi-token entities by leveraging constituent token representations.
- Construct a custom entity vocabulary by querying WikiData using challenge-defined predicates.
- Perform task-specific re-pretraining on filtered Wikipedia sentences containing high-frequency entities from the vocabulary.
- Fine-tune the model on the training set of the LM-KBC 2023 challenge for end-to-end knowledge base construction.
- Use a threshold-based entity categorization strategy to optimize prediction performance per relation type on the validation set.
Experimental results
Research questions
- RQ1Can a lightweight BERT model effectively predict multi-token entities in knowledge base construction under a 1B parameter constraint?
- RQ2Does the token-recode method provide better initial semantic embeddings for newly added multi-token entities than random initialization?
- RQ3To what extent does task-specific re-pretraining on Wikipedia sentences improve knowledge base construction performance?
- RQ4How does the combination of token-recode and re-pretraining compare to individual methods in terms of F1 score improvement?
- RQ5Why does VE-BERT outperform large language models like GPT-3 despite having significantly fewer parameters?
Key findings
- VE-BERT achieved an F1 score of 0.362 on the validation set and 0.323 on the hidden test set, surpassing the performance of GPT-3 (175B parameters) under the same constraints.
- The token-recode method achieved comparable performance to re-pretraining without requiring additional training, indicating its effectiveness in initializing high-quality embeddings.
- Re-pretraining on Wikipedia sentences improved knowledge base construction performance by nearly 2 percentage points.
- The combined use of token-recode and re-pretraining yielded a nearly 5 percentage point improvement, exceeding the sum of individual gains, suggesting synergistic benefits.
- VE-BERT demonstrated strong performance on general knowledge predicates like 'CompoundHasParts' and 'CountryHasOfficialLanguage', but struggled with name-based predicates like 'PersonHasSpouse' due to low entity frequency in the vocabulary.
- The model's performance was limited by the low occurrence of name entities in the training vocabulary, indicating a need for better coverage of rare entity types.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.