TL;DR
This paper introduces GAPA, a novel framework that shifts Entity Set Expansion (ESE) into a "corpus-independent" paradigm by using autoregressive language models to automatically generate high-quality context patterns. By training a reverse GPT-2 model alongside a standard forward one, GAPA eliminates the traditional dependency on heavily annotated text corpora while simultaneously boosting expansion accuracy and computational efficiency.
What Problem Does This Paper Address?
Entity Set Expansion (ESE) is a core NLP and Information Retrieval task where a system takes a few "seed" entities (e.g., {“China”, “Japan”, “Canada”}) and attempts to discover other entities belonging to the same semantic class (e.g., Country).
Traditionally, ESE relies on corpus-based bootstrapping methods. As shown in Traditional ESE, these methods scan a specific, pre-annotated text corpus to extract context patterns (like "US state of ___") based on where the seed entities appear.
However, this creates a major bottleneck:
- Annotation Dependency: If a corpus lacks high-quality entity annotations, or if the annotations are noisy, the system struggles to extract clean context patterns.
- Supervision Sparsity: ESE tasks typically start with only 3–5 seed entities, making it difficult to accurately capture the boundaries of a semantic class.
The authors tackle this by asking: Can we perform high-quality entity set expansion without relying on an annotated corpus at all?
Methods
The authors propose GAPA (GenerAted PAtterns), a framework broken down into three main modules:
- Supervision Signal Enhancement: To solve the sparse supervision problem, GAPA uses static GloVe embeddings to calculate the initial similarity between the seed entities and a massive candidate pool. Candidates with very high similarity are automatically added to the seed set, while highly dissimilar ones are pruned, effectively tightening the search space before the heavy lifting begins.
- Context Pattern Generation (The Core Innovation): Instead of searching a corpus for text surrounding an entity, GAPA generates it using two GPT-2 models operating in opposite directions:
- Reverse GPT-2 ($\leftarrow$GPT-2): Trained on a reversed corpus, this model takes an entity and generates the preceding text (
prev-text) from right to left. - Forward GPT-2 ($\rightarrow$GPT-2): A standard model that takes the generated
prev-textplus the entity to generate the succeeding text (next-text) from left to right. - These are concatenated around a
[MASK]token to create a complete context pattern:[prev-text; [MASK]; next-text]. Top-K sampling ensures a diverse set of patterns. - Generated Patterns Guided Expansion: The generated patterns are fed into a BERT encoder. GAPA leverages the assumption that "similar entities share similar contexts" by computing the cosine distance between the contextual representations of candidate entities and the expanded seed set, iteratively pulling in the top-ranked candidates.
An overview of this entire pipeline is illustrated in GAPA Framework Overview.
Datasets
The framework was evaluated on three widely used ESE benchmarks:
- Wiki: A subset of English Wikipedia containing 8 semantic classes (e.g., China Provinces, Companies, Diseases).
- APR: A collection of 2015 news articles from Associated Press and Reuters containing 3 semantic classes.
- SE2: The largest ESE benchmark to date, featuring 60 semantic classes and 1,200 seed entity queries.
Note on Pre-training: To train the reverse GPT-2 model, the authors used an unsupervised, unannotated Wikipedia dump (20171201), preserving the corpus-independent nature of the framework.
Key Insights and Ideas
- Flipping Time Direction Works: Autoregressive models like GPT-2 are structurally bound to generate text from left to right. The authors proved that simply reversing the text strings in an unsupervised pre-training corpus allows a standard transformer architecture to effectively generate high-quality prefixes (
prev-text) from right to left. - Pre-generation Saves Inference Time: Traditional methods like CGExpan iteratively probe large language models during the expansion loop, which is computationally expensive. GAPA generates all context patterns before the iterative expansion phase, leading to massive speedups.
- Granular Semantic Awareness: Generative language models naturally capture fine-grained semantic nuances better than fixed, hand-crafted patterns (e.g., distinguishing between a China Province like Anhui and a China City like Nanjing), preventing the common issue of "semantic drift."
Key Results
GAPA consistently outperformed previous state-of-the-art corpus-based methods (including CGExpan, SynSetExpan, and ProbExpan) across all datasets.
- Accuracy: On the Wiki and APR datasets, GAPA achieved a perfect 1.000 Mean Average Precision at 10 and 20 (MAP@10 / MAP@20), significantly outperforming baselines on fine-grained categories like Companies and China Provinces.
- Efficiency: As detailed in Running Efficiency Analysis, GAPA is dramatically faster than CGExpan. For instance, when expanding 50 entities in the Countries class, CGExpan took 1204.2 seconds, while GAPA completed the task in just 478.0 seconds—a 2.5x speedup, with even more drastic improvements (up to 5x-6x faster) observed in other classes.
Limitations and Future Work
Despite its strong performance, GAPA occasionally struggles with nested entities. For example, if the seed entity is "Mississippi" (intended for the US States class), the forward GPT-2 model naturally tends to generate the word "River" as the next-text. This causes GAPA to mistakenly pull in "Mississippi River" as a valid state entity.
The authors note that future work will focus on optimizing decoding strategies specifically tailored for ESE scenarios to control the generative behavior of the language models and prevent this type of contextual noise.
Summary updated