Abstract
Term Set Expansion (TSE) is the process of expanding a small set of seed terms into a more comprehensive list belonging to the same semantic class. While critical for building domain-specific taxonomies, TSE often struggles with distinguishing functional similarity from topical relevance. This paper introduces SetExpander, an end-to-end system that leverages multi-context term embeddings and an iterative human-in-the-loop workflow. By integrating diverse linguistic signals—such as explicit lists and syntactic dependencies—SetExpander provides a robust, domain-agnostic solution for high-precision term expansion.
Introduction
The task of Term Set Expansion (TSE) involves taking a few representative "seed" terms (e.g., "Python", "Java") and automatically discovering other members of that category (e.g., "C++", "Ruby"). This is a foundational challenge in Natural Language Processing, particularly for specialized domains where pre-existing taxonomies are unavailable.
A primary hurdle in TSE is the "distributional similarity" problem. Standard word embeddings often capture topical similarity (words that appear in the same discussion) rather than functional similarity (words that serve the same role). For instance, given the seed "Python," a topical model might suggest "compiler" or "scripting," which are related but do not belong to the "programming language" class. Furthermore, systems must handle varying levels of granularity; a seed of "orange" and "yellow" implies colors, while "orange" and "grapefruit" implies citrus fruits.
Methodology: The SetExpander Workflow
SetExpander addresses these challenges through a structured pipeline that combines automated machine learning with user-driven validation.
1. Preprocessing and Term Grouping
The system first identifies candidate terms using a noun phrase chunker. To improve embedding robustness, SetExpander groups variations—such as aliases, acronyms, and synonyms—into "term groups" (e.g., "NYC" and "New York City"). This consolidation concentrates contextual information, leading to more accurate representations.
2. Multi-Context Embeddings
The core innovation of SetExpander is its use of multiple embedding models trained on different context types. Rather than relying on a single window-based approach, the system captures a variety of linguistic signals:
- Linear bag-of-words: Standard window-based context.
- Explicit lists: Identifies terms appearing in structured lists (e.g., "Experience in Java, Python, and C++").
- Syntactic dependencies: Analyzes grammatical relationships, such as verb-object pairs.
- Symmetric patterns: Captures terms joined by coordinators like "and" or "or."
- Unary patterns: Identifies terms within specific prefix/suffix patterns (e.g., "The state of [X]").
3. Ranking and Iteration
A Multilayer Perceptron (MLP) classifier acts as a ranker, using similarity scores from the various context models as features to predict class membership. The system then provides a user interface where experts can validate suggestions, keeping relevant terms and discarding noise. This "human-in-the-loop" approach allows for iterative "re-seeding," where the cleaned list is used to trigger a new, more precise expansion cycle.
Datasets and Evaluation
The authors evaluated SetExpander across three distinct corpora:
- English Wikipedia: A general-purpose benchmark for algorithm accuracy.
- Recruitment Dataset: A proprietary corpus of job descriptions and resumes used to extract technical skills.
- Software Defect Repository: Millions of software defect reports used to identify duplicate issues.
Key Insights
The research highlights that context diversity is essential for domain-agnostic performance. For example, "explicit lists" were highly effective in the recruitment domain (where resumes often list skills), while "unary patterns" (e.g., "The city of [X]") performed better in geographic contexts. By combining these signals, the system adapts to the unique linguistic characteristics of different datasets.
Results
SetExpander demonstrated strong performance across all benchmarks:
- Wikipedia: Achieved a Mean Average Precision (MAP@10) of 0.83.
- Recruitment: In matching candidates to engineering roles, the system reached precision scores between 94.5% and 98% for specialized roles like Machine Learning and Firmware Engineering.
- Software Defects: The system reduced the time required to generate semantic term lists from several weeks of manual effort to just a few hours, while simultaneously improving duplicate detection precision by over 10%.
Conclusion
SetExpander bridges the gap between raw word embeddings and practical, domain-specific applications. By prioritizing functional similarity through multi-context embeddings and incorporating an iterative validation workflow, it enables the rapid creation of high-quality semantic classes. Future work includes expanding language support beyond English and deeper integration into open-source NLP pipelines.
Summary updated