Skip to main content
QUICK REVIEW

[Paper Review] Universal Natural Language Processing with Limited Annotations: Try Few-shot Textual Entailment as a Start

Wenpeng Yin, Nazneen Fatema Rajani|arXiv (Cornell University)|Oct 6, 2020
Topic ModelingComputer Science36 references4 citations
TL;DR

This paper proposes UFO-Entail, a few-shot textual entailment framework that fine-tunes a pretrained RoBERTa model on just a handful of task-specific examples to generalize across open-domain NLP tasks. It achieves strong performance on out-of-domain entailment and downstream tasks like question answering and coreference resolution, even outperforming full-shot baselines in some cases with minimal annotations, demonstrating textual entailment as a viable unified solver for low-resource NLP scenarios.

ABSTRACT

A standard way to address different NLP problems is by first constructing a problem-specific dataset, then building a model to fit this dataset. To build the ultimate artificial intelligence, we desire a single machine that can handle diverse new problems, for which task-specific annotations are limited. We bring up textual entailment as a unified solver for such NLP problems. However, current research of textual entailment has not spilled much ink on the following questions: (i) How well does a pretrained textual entailment system generalize across domains with only a handful of domain-specific examples? and (ii) When is it worth transforming an NLP task into textual entailment? We argue that the transforming is unnecessary if we can obtain rich annotations for this task. Textual entailment really matters particularly when the target NLP task has insufficient annotations. Universal NLP can be probably achieved through different routines. In this work, we introduce Universal Few-shot textual Entailment (UFO-Entail). We demonstrate that this framework enables a pretrained entailment model to work well on new entailment domains in a few-shot setting, and show its effectiveness as a unified solver for several downstream NLP tasks such as question answering and coreference resolution when the end-task annotations are limited. Code: https://github.com/salesforce/UniversalFewShotNLP

Motivation & Objective

  • To address the challenge of deploying NLP models in low-resource or open-domain settings where task-specific annotations are scarce.
  • To investigate whether textual entailment can serve as a unified framework for diverse NLP tasks when rich annotations are unavailable.
  • To develop a few-shot learning system that generalizes well across new domains and tasks using only a few annotated examples.
  • To evaluate whether reformulating NLP tasks as textual entailment improves performance in low-data regimes.

Proposed method

  • Fine-tune a RoBERTa model pre-trained on MNLI as the base entailment classifier.
  • Introduce a cross-task nearest neighbor block to align representations between source (MNLI) and target domains using only a few labeled examples.
  • Use a metric-based meta-learning approach inspired by Prototypical Networks to adapt to new tasks with few examples.
  • Leverage indirect supervision from a large-scale generic entailment dataset (MNLI) to improve zero-shot and few-shot generalization.
  • Transform diverse NLP tasks—such as question answering and coreference resolution—into textual entailment by framing them as (premise, hypothesis) pairs.
  • Train the model end-to-end on a combination of generic MNLI data and a few task-specific examples to improve domain adaptation.

Experimental results

Research questions

  • RQ1How well can a pretrained textual entailment model generalize to new domains with only a handful of annotated examples?
  • RQ2When is it beneficial to reformulate a downstream NLP task as a textual entailment problem?
  • RQ3Can a single entailment model trained on a generic dataset like MNLI be effectively adapted to diverse NLP tasks with minimal task-specific data?
  • RQ4Does few-shot textual entailment outperform task-specific fine-tuning when labeled data is scarce?

Key findings

  • UFO-Entail achieves 85.28% accuracy on the RTE benchmark with only 10-shot examples, outperforming a full-shot baseline fine-tuned on the target data (85.28% vs. 80.00%).
  • In coreference resolution on the GAP dataset, UFO-Entail reaches performance comparable to a full 100% training set baseline when using just 40% of the data, while the non-entailment baseline requires 100% data to match.
  • On the SciTail benchmark, UFO-Entail improves by approximately 4% over other 10-shot baselines, demonstrating strong few-shot generalization.
  • In question answering, UFO-Entail improves by around 6% over other 10-shot methods, showing consistent gains across tasks.
  • The entailment-based approach converges faster and performs better than direct classification when training data is limited, especially below 30% of the full set.
  • The system, trained on MNLI and adapted with only a few examples per task, generalizes effectively to out-of-domain entailment benchmarks and diverse NLP tasks, validating its role as a universal solver.

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.