Abstract
Ultra-fine entity typing plays a crucial role in information extraction by predicting fine-grained semantic types for entity mentions in text. However, this task poses significant challenges due to the massive number of entity types in the output space. The current state-of-the-art approaches, based on standard multi-label classifiers or cross-encoder models, suffer from poor generalization performance or inefficient inference speed. In this paper, we present CASENT, a seq2seq model designed for ultra-fine entity typing that predicts ultra-fine types with calibrated confidence scores. Our model takes an entity mention as input and employs constrained beam search to generate multiple types autoregressively. The raw sequence probabilities associated with the predicted types are then transformed into confidence scores using a novel calibration method. We conduct extensive experiments on the UFET dataset which contains over 10,000 types. Our method outperforms the previous state-of-the-art in terms of F1 score and calibration error, while achieving an inference speedup of over 50 times. Additionally, we demonstrate the generalization capabilities of our model by evaluating it in zero-shot and few-shot settings on five specialized domain entity typing datasets that are unseen during training. Remarkably, our model outperforms large language models with 10 times more parameters in the zero-shot setting, and when fine-tuned on 50 examples, it significantly outperforms ChatGPT on all datasets.
Introduction
Entity typing—identifying that "Apple" in a sentence is a company, fruit, or technology_brand—is a cornerstone of information extraction. Ultra-fine Entity Typing (UFET) takes this to the extreme, involving over 10,000 possible labels.
Existing approaches face a "speed vs. accuracy" trade-off. Standard classifiers are fast but lose semantic relationships between labels (e.g., they don't know "physician" is related to "doctor"). Cross-encoders are highly accurate but prohibitively slow, requiring thousands of comparisons per entity. Large Language Models (LLMs), while powerful, struggle with massive label sets and often hallucinate invalid types.
Methodology: CASENT
CASENT (Calibrated Seq2seq for Entity Typing) frames entity typing as a sequence generation task, using a T5-large (780M parameters) backbone. To prevent the model from hallucinating made-up types, the authors implement constrained beam search using a prefix trie. This forces the model to only generate sequences of characters that form valid labels from the 10,331-type vocabulary.
Novel Calibration
Raw probabilities from seq2seq models are notoriously unreliable. CASENT applies an improved version of Platt Scaling to turn raw scores into trustworthy confidence scores. This involves:
- Model De-biasing: Calculating the "model bias"—the inherent preference for a label regardless of context—and subtracting it.
- Frequency-based Weight Sharing: Grouping labels by training frequency to learn better calibration parameters for rare types.
Experimental Setup
The model was primarily benchmarked on the UFET dataset. To test out-of-domain generalization, it was evaluated on five specialized datasets: Social Media (WNUT2017), Biomedical (JNLPBA, BC5CDR), and Customer Reviews (MIT-restaurant, MIT-movie).
Results and Discussion
CASENT achieves state-of-the-art performance with an F1 score of 51.3 on UFET, surpassing the previous best model (LITE). Crucially, it reduces inference latency from ~23 seconds per example to just 0.39 seconds, a 50x speedup.
Calibration and Generalization
Calibration ensures that the model's confidence scores reflect actual accuracy. As shown in Figure 5, CASENT maintains high calibration across both rare and frequent entity types, following the diagonal "perfect calibration" line closely.
In zero-shot settings, CASENT (780M) outperformed the much larger Flan-T5-XXL (11B) by a wide margin (69.4% vs 56.5% average accuracy). Furthermore, when fine-tuned on just 50 examples, CASENT significantly outperformed ChatGPT across all specialized domains.
Conclusion
CASENT demonstrates that well-calibrated, moderately-sized seq2seq models can outperform massive LLMs in specialized tasks like ultra-fine entity typing. By combining constrained generation with robust calibration, it offers a highly efficient and generalizable solution for fine-grained information extraction.
Summary updated