Skip to main content
QUICK REVIEW

[Paper Review] Ask2Transformers: Zero-Shot Domain labelling with Pre-trained Language Models

Oscar Sainz, Germán Rigau|arXiv (Cornell University)|Jan 7, 2021
Natural Language Processing TechniquesComputer Science11 citations
TL;DR

This paper proposes Ask2Transformers, a zero-shot domain labeling system that uses pre-trained language models to assign domain labels to WordNet synsets without any fine-tuning. By formulating natural language prompts such as "The domain of the sentence is about [domain]", it leverages off-the-shelf models like RoBERTa and BERT to achieve a new state-of-the-art F1 score of 92.14% on the BabelDomains dataset.

ABSTRACT

In this paper we present a system that exploits different pre-trained Language Models for assigning domain labels to WordNet synsets without any kind of supervision. Furthermore, the system is not restricted to use a particular set of domain labels. We exploit the knowledge encoded within different off-the-shelf pre-trained Language Models and task formulations to infer the domain label of a particular WordNet definition. The proposed zero-shot system achieves a new state-of-the-art on the English dataset used in the evaluation.

Motivation & Objective

  • To enable zero-shot domain labeling of WordNet synsets using pre-trained language models without any task-specific fine-tuning.
  • To explore the transferability of domain knowledge encoded in large pre-trained models for lexical resource enrichment.
  • To develop a flexible system that supports arbitrary domain label sets, not restricted to predefined categories.
  • To evaluate the method on the BabelDomains dataset and compare it with existing distributional and graph-based approaches.
  • To investigate the potential of this approach for cross-lingual domain labeling and future applications in word sense disambiguation.

Proposed method

  • Formulate natural language prompts where the input is a WordNet definition and the hypothesis is "The domain of the sentence is about [domain-label]".
  • Use off-the-shelf pre-trained language models (e.g., RoBERTa, BERT) fine-tuned on natural language inference (NLI) to classify the entailment relation between definition and domain hypothesis.
  • Assign the domain label with the highest confidence score from the model's output as the predicted label.
  • Extend the method by incorporating descriptive tokens (e.g., "a", "the", "a type of") to improve model generalization and robustness.
  • Apply a threshold-based filtering (e.g., confidence > 0.05) to reduce low-confidence predictions.
  • Use masked language modeling (MLM) as an alternative approach to predict domain-relevant keywords directly from the definition.

Experimental results

Research questions

  • RQ1Can pre-trained language models perform zero-shot domain labeling of WordNet glosses without any fine-tuning?
  • RQ2How does the performance of the proposed prompting-based method compare to existing distributional and graph-based approaches on the BabelDomains dataset?
  • RQ3To what extent can the method generalize to arbitrary domain label sets without retraining?
  • RQ4How do different pre-trained models and prompting strategies affect the accuracy and robustness of domain labeling?
  • RQ5Can the model distinguish between semantically similar but distinct domains (e.g., 'Biology' vs. 'Food and drink')?

Key findings

  • The Ask2Transformers (A2T) system achieves a micro-averaged F1 score of 92.14% on the BabelDomains dataset, setting a new state-of-the-art.
  • The best-performing variant, A2T + descriptors, improves F1 by 10.52 percentage points over the previous SOTA method (BabelDomains).
  • The system maintains high precision and recall (92.14% each) when using descriptors, indicating balanced performance across all classes.
  • The method outperforms both distributional methods (F1: 69.9%) and BabelDomains (F1: 74.6%) by a significant margin.
  • Error analysis reveals that confusion mainly occurs between semantically related domains (e.g., 'Animals' with 'Biology' or 'Food and drink'), which is expected due to lexical overlap.
  • Qualitative analysis shows that masked language modeling predictions often yield domain-relevant keywords (e.g., 'physics' for 'phase space'), indicating the model captures fine-grained domain cues.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.