NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Put It Back: Entity Typing with Language Model Enhancement

Ji Xin, Hao Zhu, Xu Han, Zhiyuan Liu, Maosong Sun

Introduction

Fine-grained entity typing (FET) is the task of assigning specific semantic categories—such as /person/politician or /location/city—to entity mentions within a text. While FET is essential for advanced natural language processing tasks like relation extraction and knowledge base population, it faces a significant bottleneck: data quality.

Due to the high cost of manual annotation, researchers typically rely on Distant Supervision (DS). In this approach, mentions are automatically labeled by mapping them to external knowledge bases like Freebase. However, DS often introduces significant "label noise." For instance, a knowledge base might list Arnold Schwarzenegger as an actor, a bodybuilder, and a politician. If a sentence reads, "Schwarzenegger was elected to be the governor," only the "politician" label is contextually appropriate. Assigning the "actor" label in this context introduces noise that confuses models during training.

Table 1: Illustrating the challenge of context-dependent entity typing. While 'Schwarzenegger' is both an actor and a politician, only one label is correct in a given sentence.

The Language Model Enhancement (LME) Framework

To address this contextual ambiguity, researchers from Tsinghua University and the University of Waterloo proposed the Language Model Enhancement (LME) framework. The core idea is to "put the label back" into the sentence and use a pre-trained language model to judge its fit.

The system consists of two primary modules:

  1. Entity Typing (ET) Module: A standard neural network (based on the NFGEC architecture) that processes the mention, its context, and hand-crafted features to produce a probability distribution ($y$) over the label set.
  2. LME Module: A pre-trained LSTM-based language model. During training, the entity mention in the original sentence is replaced by a "virtual word"—a vector calculated as the weighted sum of label embeddings, where the weights are determined by the ET module's current predictions.
Figure 1: The LME framework architecture, showing the interaction between the Entity Typing (ET) module and the Language Model Enhancement (LME) module.

The Intuition of "Virtual Words"

By substituting the mention with this virtual word, the language model can calculate the likelihood of the resulting sentence. A well-trained language model inherently knows that "The politician was elected" is more probable than "The actor was elected." By adding the language model's loss ($J_{lm}$) to the typing model's loss, the system is forced to favor labels that make the sentence "sound" natural. Essentially, the language model acts as an unsupervised judge of whether a predicted label actually fits the context.

Experimental Evaluation

The LME framework was evaluated on two major benchmarks: WIKI (2 million training instances) and ONTONOTES (250k training instances). Both datasets utilize distant supervision for training but feature human-annotated test sets for rigorous evaluation.

Key Results

The addition of LME to the state-of-the-art NFGEC baseline yielded consistent improvements across all metrics, with the most notable gains in strict accuracy—a metric requiring the model to identify the exact set of correct labels for a mention.

  • WIKI Dataset: Strict accuracy increased from 59.68% to 62.88%.
  • ONTONOTES Dataset: Strict accuracy improved from 50.89% to 52.90%.

Qualitative analysis further demonstrated the model's robustness. For example, when processing the entity "Lake Placid" in a legal context, the baseline model was misled by capitalization into predicting a /person type. The LME-enhanced model, recognizing that the surrounding linguistic structure favored a location, correctly prioritized the /location label.

Conclusion and Future Directions

The LME approach demonstrates that the semantic information embedded in label names is a powerful tool for unsupervised denoising. By leveraging the inherent structure of language, LME effectively filters out "global" noisy labels that do not apply to specific contexts.

Future work may explore making language models more robust to label noise during their own training, integrating hierarchical type structures, and extending this "put it back" logic to other distantly supervised tasks like relation extraction.

Summary updated

BibTeX
@inproceedings{xin2018put,
  author = {Ji Xin and Hao Zhu and Xu Han and Zhiyuan Liu and Maosong Sun},
  title = {{Put It Back: Entity Typing with Language Model Enhancement}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1121},
}
Figure