TL;DR
This paper introduces GenExpan, a novel generative framework for Entity Set Expansion (ESE) that moves away from traditional retrieval-based methods. By leveraging pre-trained language models and a prefix-constrained generation approach, GenExpan achieves significant speedups and outperforms state-of-the-art methods in expansion accuracy, making ESE more efficient and scalable.
What Problem Does This Paper Address?
Entity Set Expansion (ESE) is the task of identifying new entities that belong to the same semantic class as a given set of seed entities. For example, given "United States" and "China," ESE aims to find other countries like "Canada" or "Japan." Existing ESE methods are predominantly retrieval-based, meaning they rely on searching and analyzing large text corpora to find contextual similarities between entities. This approach, while effective, suffers from poor efficiency and scalability. The time complexity of these methods increases linearly with the size of the corpus and the candidate entity vocabulary, making them impractical for large-scale datasets like Wikipedia. This paper addresses this bottleneck by proposing a corpus-independent generative approach that leverages the intrinsic knowledge of pre-trained language models.
Methods
The core of the proposed GenExpan framework is a generative approach using a pre-trained auto-regressive language model. It comprises four key components:
- Class Name Generation: An in-context learning approach is used to prompt the language model to generate a semantic class name for the seed entities. This helps guide the subsequent generation process.
- Prefix-constrained Entity Generation: A prompt is constructed using the seed entities and the generated class name. To ensure that only valid entities from a predefined vocabulary are generated, a prefix tree is built from this vocabulary, and prefix-constrained Beam Search is employed during decoding. This constrains the model's output to valid entity tokens.
- Knowledge Calibration: To mitigate the language model's tendency to generate common entities, a calibration step is introduced. This involves using a "meaningless prompt" to obtain the model's prior probability distribution and then adjusting the generation probabilities to reduce bias towards overly common entities.
- Generative Ranking: To rank the generated entities, a novel approach is proposed that measures semantic similarity between candidate entities and seed entities. This is done by calculating the log-probability of generating seed entities and the class name given a candidate entity, using specific templates. This generative ranking is combined with a traditional ranking score (MRR) to produce a final score.
Crucially, GenExpan does not require fine-tuning the pre-trained language model and is independent of the corpus.
Datasets
The paper evaluates GenExpan on four publicly available datasets:
- APR: Contains news articles from Associated Press and Reuters, with 3 semantic classes (Countries, Parties, US States).
- Wiki: A subset of English Wikipedia articles, with 8 semantic classes (China Provinces, Companies, Countries, Diseases, Parties, Sports Leagues, TV Channels, US States).
- CoNLL: Constructed from the CoNLL 2003 shared task dataset, with 4 semantic classes.
- OntoNotes: Constructed from the OntoNotes dataset, with 11 semantic classes.
These datasets vary in size and domain, allowing for evaluation of the framework's effectiveness and generalizability.
Key Insights and Ideas
- Generative ESE is Viable and Efficient: The paper demonstrates that ESE can be effectively tackled using generative models, moving beyond the limitations of retrieval-based methods. This opens up new avenues for more scalable ESE.
- Pre-trained Models Hold Latent Knowledge: GenExpan effectively leverages the vast, intrinsic knowledge embedded in large pre-trained language models, reducing the need for corpus-specific fine-tuning or feature extraction.
- Constrained Generation is Key: The prefix-constrained generation, guided by a prefix tree derived from the entity vocabulary, is crucial for ensuring the model generates valid and relevant entities.
- Class Name Generation Improves Supervision: Explicitly generating a class name for the seed entities significantly enhances the semantic supervision, leading to more accurate entity generation.
- Calibration Reduces Bias: Knowledge Calibration effectively addresses the tendency of language models to favor common entities, leading to more diverse and relevant expansions.
- Generative Ranking Captures Semantic Similarity: The proposed generative ranking method, which assesses semantic similarity through log-probabilities, provides a more nuanced ranking than traditional occurrence-based methods.
Key Results
- Effectiveness: GenExpan outperforms state-of-the-art retrieval-based methods on all four datasets in terms of MAP@K metrics. For example, it achieves over 99% MAP@10/20 on the Wiki and APR datasets, surpassing even specialized methods like ProbExpan.
- Efficiency: GenExpan achieves a significant speedup compared to retrieval-based baselines. It demonstrates an average speedup of 600% compared to strong baselines like CGExpan. For instance, on the Wiki dataset, GenExpan takes only 55.5 seconds per query, while CGExpan takes 3884 seconds.
- Generalizability: The corpus-independent nature of GenExpan allows it to adapt well to different datasets and scenarios where corpus availability might be limited.
Limitations and Future Work
- Model Size Sensitivity: The performance of GenExpan is sensitive to the size of the pre-trained language model. Smaller models struggle with accurate class name generation and entity generation. The authors note hardware limitations prevented exploring larger models.
- Error Cases: While generally effective, GenExpan can still produce incorrect expansions. Examples include generating "Czechoslovakia" (a country that no longer exists) or misclassifying "MasterCard" as a company instead of a credit card. These errors are attributed to the pre-training data and the corpus-independent nature of the approach.
- Future Work: The authors suggest further exploring prompt engineering, investigating the impact of different prompt factors, and extending generative expansion to more complex scenarios like non-named entities, multifaceted entities, and vague concepts.
Summary updated