The Challenge of "Definition-Wild" Inference
Traditional topic modeling typically relies on pre-defined categories and extensive labeled training data. However, real-world scenarios often demand the ability to categorize documents using topics defined on the fly—a challenge the authors term "definition-wild zero-shot topic inference."
Consider a researcher who needs to sort thousands of articles by a new topic like "Autoimmune Disorders" without a model previously trained on that specific label. This requires the model to understand the semantic meaning of a brand-new label (zero-shot) and handle documents that may belong to multiple categories simultaneously (multi-label).
Methodology and Workflow
The researchers benchmarked two main categories of models for this task:
- Mid-size Sentence Encoders (MSE): Including SBERT, USE, LASER, and InferSent.
- Large Language Models (LLM): Including ChatGPT-3.5, PaLM, BLOOM, and GPT-NeoX.
To ensure a fair comparison, the researchers extracted sentence embeddings from the LLMs (where possible) and used cosine similarity to match documents to topics, rather than relying solely on prompting.
Strategies for Topic Encoding
A core contribution of this work is the evaluation of four distinct strategies for representing topics. As shown in the table below, these range from simple label encoding to complex representative embeddings derived from explicit mentions within the dataset.
- Topic-Name-Only: Encoding just the label (e.g., "Addiction").
- Topic + Keywords: Adding user-provided clues (e.g., "Addiction" + "Opioids, Alcohol").
- Topic + Keyword + Definition: Incorporating dictionary definitions from WordNet.
- Explicit-Mentions: A novel approach where the model finds articles that explicitly mention the topic name to create a "representative" embedding for that category.
Key Findings: The "Giant Killer" and Efficiency
The study yielded several surprising insights regarding model performance and scale:
- The "Giant Killer" Effect: Sentence-BERT (SBERT), a relatively small model, consistently outperformed much larger models like PaLM and BLOOM. For instance, on the Medical dataset, SBERT achieved an $F_1$ of 0.594 using the "Explicit-Mentions" strategy, significantly higher than PaLM (0.392) and BLOOM (0.308). This suggests that specialized sentence-embedding fine-tuning is often more valuable for similarity tasks than raw model scale.
- Context is King: Performance improved significantly when auxiliary information was provided. Moving from "Topic-Name-Only" to "Topic + Keywords" helped bridge the semantic gap, providing the "expert guidance" needed for accurate zero-shot inference.
- Efficiency vs. Power: While ChatGPT-3.5 achieved the highest overall accuracy (e.g., 0.606 $F_1$ on the Medical dataset), it is slow and expensive. The Universal Sentence Encoder (USE) and SBERT were found to be orders of magnitude faster. For the News dataset, SBERT took roughly 88 seconds to compute embeddings, while GPT-NeoX required nearly 6 hours.
Conclusion and Future Work
The research demonstrates that while massive LLMs like ChatGPT-3.5 lead in generality, smaller, optimized sentence encoders offer a highly effective and efficient alternative for zero-shot topic inference. Future work will focus on reducing the reliance on manual keywords and exploring how these methods scale to streaming datasets where the "Explicit-Mentions" strategy might face computational overhead.
Summary updated