Elamur Research

Benchmarking Zero-shot Text Classification: Datasets, Evaluation and Entailment Approach

Paper · 2019 · Wenpeng Yin, Jamaal Hay and Dan Roth

Summary

A text can describe a shortage without using the word shortage, and it can convey fear without naming the feeling. A text classification system can learn to recognize such cases from labeled examples, but collecting examples for every category becomes difficult when the categories are detailed, change over time, or describe different things about the same text. This paper asks what a system can do when examples are missing for some of the categories it must recognize, or when it has received no labeled examples from the target task at all. The authors argue that a benchmark should distinguish those conditions and should test more than topical categorization.

The benchmark covers topic, emotion, and situation. The topic task asks what a passage is about. The emotion task asks what feeling it expresses. The situation task asks which needs or issues it describes, such as a need for medical assistance. The authors fix the development and test sets and specify which labels have examples in each version of training. In the label-partially-unseen evaluation, a system learns from examples of some categories and then predicts from the complete inventory. In the label-fully-unseen evaluation, it faces the same test examples without training on labeled examples from the target task. The benchmark includes tasks that take a single answer and a task in which several answers can apply.

The authors recast classification as textual entailment, the task of deciding whether one text supports a statement. They turn each candidate label into a statement whose meaning depends on the aspect under consideration. A statement about a passage’s topic asks for different evidence from a statement about what people in the passage need. The passage and statement go into a shared classifier trained on entailment data. The same classifier can assess a new label once that label has been put into words. The authors compare statements built with the label name, a WordNet definition, and a combination of the two.

The comparison with a classifier trained on Wikipedia categories shows why the choice of transfer task matters. Wikipedia training helps with Yahoo topics, but carries over poorly to emotions and situations. Entailment training is more consistent across the benchmark, with an exception for the RTE-trained classifier on emotion, and combining the entailment systems improves performance across the tasks. When target-task examples are available for some categories, the MNLI-trained system is the strongest entailment starting point reported. The analyses also show that phrasing matters. Definitions alone typically give poor results, and the ensemble works best overall when it can use names as well as definitions. Some situation categories remain difficult even for the ensemble.

Deep dive: Benchmarking Zero-shot Text Classification: Datasets, Evaluation and Entailment Approach

A benchmark for zero-shot text classification tests how well textual entailment identifies topics, emotions, and situations without labeled examples. · about 31 minutes to read

The problem and its context

A new label changes what the classifier has to know

In ordinary supervised classification, the meaning of a category is conveyed in part by its examples. If many passages marked as sports describe matches or players, a classifier can learn which features tend to accompany that output. The output itself can be represented internally by an index. Its name need never enter the computation. This arrangement is well suited to an inventory that is settled in advance and has ample annotation. It gives the system little basis for interpreting an additional index when no passages have been marked with it.

The paper starts from cases where it is difficult to settle the inventory in advance. The authors mention recognizing the intentions of bank customers as a possible application. More generally, a category can describe a narrow distinction or combine several properties, and the distinctions that matter can change. In these circumstances the ability to process a newly supplied label is part of the prediction problem. A system needs to make use of what the label says. It also needs to know which question the label is intended to answer about the text.

The authors call that question an aspect. Topic concerns subject matter, emotion concerns affect, and situation concerns what is happening or what people need. The distinction matters even when the same words are relevant to several aspects. Consider a passage describing frightened families who cannot return home. Its subject, the feeling it conveys, and the assistance people might need are separate judgments. Identifying a feeling supplies no complete situation analysis, just as identifying the subject gives no guarantee that the emotion has been recognized. An evaluation confined to topics cannot reveal how well a method handles those other judgments.

The paper’s broader motivation is that a passage can be described in many additional ways. A reader can judge its genre, for example, or the seriousness of the circumstances it recounts. The authors use that openness to motivate a system that accepts labels in language. Their experiments focus on defined tasks with known candidate inventories, so they can measure performance under reproducible conditions. The distinction between the motivation and the experiment matters throughout the paper. Open-ended applicability is the design goal, while prediction against specified categories is the test.

What “zero-shot” had meant in earlier evaluations

The authors describe a common earlier setup in which a classifier learns from some categories within an aspect and then generalizes to categories it has not been trained on. In that setting, examples of the familiar categories teach the system something about the task itself. They show what kind of distinctions the dataset asks for and how those distinctions are expressed in its examples. A system recognizing new emotions after training on other emotions therefore faces a different problem from a system encountering emotion classification without any target-task training. The paper retains the first condition and makes room for the second.

There is another distinction within the first condition. A test may present only unfamiliar labels, or it may ask the system to choose from unfamiliar and familiar labels together. In the first case, the test gives the system the information that the answer belongs to the unfamiliar set. In the second, the system has to infer that from the passage. The authors point to earlier work on zero-shot user intent detection as an example of evaluation with only new intents in the candidate set. Their own partially unseen benchmark keeps the full inventory in play. A familiar category can be the right answer, and a plausible familiar category can also distract the classifier from an unfamiliar one.

Metrics were another reason the authors found earlier results difficult to compare. In discussing prior work on medical data, they note the use of recall at a cutoff, abbreviated R@K. That measure asks whether relevant labels are retrieved within a specified number of suggestions. The paper’s concern is that such a score leaves open how reliably the system makes the classification decisions required in its benchmark, especially for unfamiliar classes. The referenced work also operates on a different dataset. A metric, a candidate inventory, and a label split all shape what a score demonstrates. Few-Shot and Zero-Shot Multi-Label Learning for Structured Label Spaces

How earlier methods represented unseen labels

The paper traces the problem back to dataless classification. In the approach it describes, Explicit Semantic Analysis, or ESA, supplies a shared representation for a passage and a category name. Words can be represented by their relation to Wikipedia articles, which provides a way to compare a passage with a short label through the concepts that each evokes. A category can then be selected by similarity even when the target task supplies no labeled passages. The important design move is to give the category a representation the system can use, just as it gives the passage one.

Other approaches used pretrained word embeddings, numerical representations that let a system compare words or combine their representations. The paper describes recurrent generation conditioned on embedded labels, the use of a label representation to direct attention to parts of a passage, and intent representations composed from the embeddings of their words. These techniques offer routes from a name to a computation. Whether the resulting classifier can operate on a new aspect depends on the rest of its training and on what the evaluation asks it to do.

The authors also discuss methods that give the classifier more information about the category. One earlier approach combined class descriptions, hierarchy, and paths connecting words to labels in ConceptNet. Another used natural-language explanations that were converted into constraints and combined with unlabeled data. The latter relied on explanations collected from people. The paper treats that as a practical limitation when many new categories need to be handled. The authors’ own use of a name or dictionary definition pursues a lighter form of label description, which makes the source of the description easy to specify in an experiment.

Finally, related work had already moved particular zero-shot tasks into the form of a different, supervised task. The paper cites Zero-Shot Relation Extraction via Reading Comprehension and work expressing relation classification as textual entailment. Such methods transfer a capability learned from an available dataset to examples with a new set of relations. The benchmark paper takes up the same general possibility and asks whether a common entailment procedure can serve several kinds of text classification. Its contribution lies in joining that question to a common experimental design, where the availability of examples and the interpretation of the labels are made explicit.

The method, step by step

Turn a category into a claim about the passage

The unit processed by the entailment classifier is a pair of texts. The first is the premise, the passage the system has been asked to classify. The second is the hypothesis, the statement it checks against the passage. A passage about a match can be paired with a claim about its subject matter. The same passage could be paired with a claim about the feeling it conveys. Changing the hypothesis changes what would count as evidence even though the premise stays the same.

The authors first supply an interpretation for an aspect. For a topic label, the hypothesis says what subject the passage discusses. For an emotion label, it attributes a feeling to the passage. For a situation label formulated as a need, it says what people in the reported circumstances require. Thus shelter can become a claim that the affected people require somewhere to stay. The label supplies the category and the aspect supplies its role in the claim. This is how the classifier can receive the distinction between discussing shelter and reporting that people need it.

For each candidate, the authors explore two sources of wording. One inserts the category name itself. The other uses its definition in WordNet. The resulting hypotheses are alternative expressions of the label, and the combined setting lets the evaluator check both. The paper describes a positive decision in the combined case when either formulation yields entailment. The combination is therefore a way for a label to find support through either phrasing. A passage can support the statement formed from its short name even if the statement based on its definition gets a negative decision.

One advantage of the conversion is that the classifier can accept a hypothesis for a label it has never been trained to output. The evaluator builds the hypothesis at prediction time and uses the same pairwise classifier as for familiar labels. Giving the classifier that input is only the first step. It still has to recognize the intended meaning, infer relevant information from the premise, and assign sufficiently strong support when other candidates compete with it.

From a passage and candidate labels to a prediction

The steps in order.

From a passage and candidate labels to a predictionStep 1: Identify the aspect being classified1. Identify the aspect being classifiedStep 2: Express each candidate as a hypothesis2. Express each candidate as a hypothesisStep 3: Pair each hypothesis with the passage3. Pair each hypothesis with the passageStep 4: Score each pair for entailment4. Score each pair for entailmentStep 5: Combine evidence across formulations when using both5. Combine evidence across formulations when using bothStep 6: Select labels under the task's decision rule6. Select labels under the task's decision rule

Specify which labels can teach the classifier

The authors distinguish two formal definitions of the task. The restrictive definition assumes that labeled training examples exist for a set of categories. It uses the following mapping and inventory.

f(·): X → Y

Here f is the classifier, and · marks the input position in its notation. X is the space of input texts, Y is the output label inventory, and → shows that the classifier maps from the former to the latter. In the multi-label task, the experimental procedure can return several members of the inventory for the same passage.

Y = S ∪ U

Here Y is the full inventory, S is the set of categories for which training examples are available, and U is the set of categories withheld from training. The sign = defines the inventory and ∪ denotes the union, which includes the members of both sets. In this definition, the familiar and unfamiliar categories belong to the same aspect. A topic classifier is tested on additional topics, for instance, within the topic inventory.

The broader definition keeps the mapping but removes the availability of labeled training data specific to Y during development of the classifier. In the experimental counterpart, the authors use entailment training from outside the classification task and apply the resulting classifier to the target test set. The target aspect and the meanings of the candidate labels still enter through the hypotheses at prediction time. That is how the system is told what to judge. The difference between the definitions is what it can learn from labeled target examples before making those judgments.

For the partially unseen evaluation, the two versions of target training give the benchmark a way to change which labels are familiar. Consider Yahoo’s Sports category. It can appear as a candidate at test time whether the system trained with Sports examples or trained on the complementary set of categories. Cases of this kind enable comparisons that a single split could conflate with the difficulty of its held-out categories. The fixed evaluation data also keep the predictions of the fully unseen system tied to the same underlying examples.

Build pairs for training and evaluation

Turning a classification dataset into entailment data means deciding what each pair should teach. A passage paired with a statement for one of its annotated labels provides an entailment example. A passage paired with a hypothesis for a label that does not apply supplies a negative example. In a single-label dataset, the annotation determines which candidate is positive. In the multi-label situation dataset, the same passage can supply positive pairs for several labels. That distinction comes from the classification data and carries through to the reconstruction of the final answer.

A crucial restriction concerns negatives in the training split. Hypotheses for unseen labels are excluded from the training pairs even when they could be presented as false claims about a passage. A system that repeatedly encounters a held-out label in negative pairs has already received some target-task supervision about it. Excluding those pairs makes the label split apply to the complete training signal. Positive and negative examples are constructed from the available training labels, while evaluation can ask about the whole inventory.

The conversion gives the same interpretation to a pair at different stages. During target-task training, the annotation tells the classifier whether the hypothesis holds. During evaluation, the classifier faces the same kind of input and its prediction can be checked against the annotation. Once the individual decisions have been made, the passage has to receive one output for topic or emotion, or a set of outputs for situation. That final operation is separate from the construction of the pairs.

Learn textual entailment before using the target task

The authors use BERT with the bert-base-uncased variant throughout. They train separate entailment classifiers using MNLI, RTE from GLUE, and FEVER. MNLI is a corpus for inference between sentences. RTE supplies examples of recognizing textual entailment. FEVER is organized around checking claims against evidence. The claims become hypotheses and the authors take the correct evidence as premises, so the operation learned from FEVER is a judgment given relevant evidence. Retrieving that evidence is outside the setup. MNLI · GLUE · FEVER

The entailment datasets are put into a binary format with outcomes of entailment and non-entailment. Where a source has a neutral outcome, the authors put it in the non-entailment category. Neutrality indicates that the premise gives insufficient support to decide in favor of the claim. That belongs on the same side of this classification decision as an explicitly contradicted claim. In either case the pair supplies no affirmative evidence for choosing the label. The resulting task trains the classifier to distinguish support from all other outcomes in a consistent format across sources.

In the fully unseen condition, the entailment classifier is applied to the target pairs after this source training. In the partially unseen condition, it takes a further training step on the available target pairs. This is fine-tuning, in which the existing classifier is adjusted using additional labeled examples. The benchmark can then ask whether the adjustment helps select familiar labels while preserving the ability to interpret labels omitted from training. The source-trained classifier and its adapted version start from the same kind of entailment judgment but operate under different access to target data.

The ensemble combines predictions from the separate entailment classifiers at the level of a passage and hypothesis pair. Each classifier produces probabilities using softmax, a transformation that yields a distribution over its outcomes. The authors add the resulting probabilities for each outcome across classifiers and apply softmax again to obtain a new distribution. Each combined pair score therefore draws on the judgments of systems trained on different sources. This procedure combines different classifiers, while the name-and-definition setting combines different inputs for a category. The two choices can be used together.

Convert pair scores back into labels

In topic and emotion classification, the answer has to be a single label. When the competing positive candidates are all from the same seen or unseen group, the paper picks the one with the highest probability. If both groups offer a positive candidate in the partially unseen evaluation, a seen label must clear an additional margin over the competing unseen label before being chosen. The margin is meant to make selection of a familiar label harder because the classifier has already received direct training on that group.

For the multi-label situation task, each candidate can retain a positive decision. When both label groups have positive candidates, the benchmark’s rule can turn a positive seen label into a negative if its advantage over an unseen candidate falls short of the margin. The final output then contains the remaining positive labels. The paper describes using the none category when there is no positive label. The margin used by the authors is as follows.

α = 0.05

Here α is the extra probability margin required in the rule for selecting seen labels, and = assigns it the reported value, 0.05. The authors tune the margin on development data. It is a decision parameter for the partially unseen protocol and has a role only when there are seen and unseen candidates to distinguish. In the fully unseen protocol, target training has supplied no seen category to which the preference rule could apply.

Experiments and results

Topic, emotion, and situation test different judgments

The topic benchmark comes from the Yahoo classification data released with Character-level Convolutional Networks for Text Classification. Yahoo has 10 classes with a balanced distribution, and its original training and test sizes are given as 1.4M/60k. The authors reorganize it by fixing a development set with 6k examples for each label and a test set with 10k per label. The test asks for a single topic. Per-label balance means that a method cannot attain a strong overall score on the reorganized Yahoo data by serving a large dominant class.

The training examples for Yahoo come from the remaining data. Each of Train-v0 and Train-v1 supplies 130k examples per included class and covers 5 classes. The training inventories are disjoint. For instance, Health and Business & Finance belong to Train-v0, whereas Sports and Politics & Government belong to Train-v1. Both runs predict from all 10 labels on the test set. Thus a classifier trained under one split has many examples of each familiar category, while its ability to identify the other categories must come from transfer. Under the fully unseen condition, the target training split is absent and the development and test sets stay fixed.

Label coverage in Yahoo training and test settings

Each training version covers a subset of the categories available at test time.

Label coverage in Yahoo training and test settingsTrain-v0: 5Train-v05Train-v1: 5Train-v15Test inventory (this paper): 10Test inventory (this paper)10
The numbers
System or settingdistinct topic labels
Train-v05
Train-v15
Test inventory (this paper)10

The emotion benchmark uses UnifyEmotion, which aligns labels across existing public emotion datasets. Its passages include tweets, emotionally significant events, fairy tales, and constructed sentences. These sources ask the system to recognize a feeling across different styles of expression. A passage might explicitly name an emotion, or it might recount the circumstances that led to it. The shared inventory has 9 emotion categories and a none category for cases where no listed emotion applies.

The authors remove roughly 4k examples with multiple emotion labels to make the task single-label. Train-v0 uses 5 emotion classes, including sadness and fear. Train-v1 uses 4, including joy and surprise. The lists of training emotions omit none. Development and test data are fixed across the protocols, and the category distribution is uneven. In this setup, correctly identifying the annotated emotion frequently requires distinguishing it from other plausible readings of a short passage. Handling none adds the possibility that the available positive emotion terms are all unsuitable.

For situation detection, the authors use the Situation Typing dataset, which has 5,956 labeled instances. The benchmark includes 11 situation types and a none option. Some types describe needs, such as a need for water, shelter, or medical assistance. Others describe issues, such as crime violence. The task was originally designed for low-resource situation detection. It allows several types to apply to one passage, which is important when an account describes overlapping needs. A report can justify both medical assistance and shelter, and a classifier that returns only one has missed part of the annotation.

The situation split is specified in the paper’s split table. Its test differs from the single-label tasks both in what the categories describe and in how predictions are counted. For topic and emotion, the final decision puts one category ahead of the others. In situation detection, giving a high score to one supported hypothesis leaves the classifier free to accept another. At the same time, each extra positive decision can introduce a false label. The common entailment interface accommodates both decisions, but the resulting scores measure success under different output requirements.

The scoring and the baselines

Yahoo is evaluated with accuracy, the proportion of test examples that receive the correct topic. Emotion and situation use label-weighted F1. F1 combines precision, the share of predictions for a label that are correct, with recall, the share of instances of that label that are recovered. Weighting the label-wise scores gives frequent labels more influence on the reported result. That is relevant when reading the overall emotion or situation results. A strong weighted score can coexist with serious errors for less frequent categories, which is one reason the authors also examine situation types separately.

In the partially unseen experiments, the results distinguish the seen and unseen groups. For a system trained with one version of the target dataset, these groups reflect the categories it did and did not receive in training. Majority, Word2Vec, and ESA have no learned split of seen versus unseen target labels. The paper nonetheless uses the same grouping when reporting their performance, so their entries can be compared with the corresponding subsets for a supervised classifier. The grouping in those rows identifies the evaluation categories.

The Majority baseline uses the largest category. Its role is to show what can be obtained from a simple frequency choice. Word2Vec represents a passage by adding the embeddings of its words and does the same for the label name. It ranks text and label matches using cosine similarity, which compares the directions of those representations. Word2Vec and ESA do not learn from the target training split in these experiments. Each can score a new candidate through its name as soon as the name can be represented. Word2Vec

ESA compares passage and label in a representation derived from the titles of Wikipedia articles. The implementation uses the 08/01/2019 Wikipedia dump, with about 6.1M words and 5.9M articles as reported by the authors. Unlike a direct match between a passage word and a nearby word in embedding space, ESA can relate the passage to the label through the articles their words evoke. The two baselines thus give the paper different forms of semantic matching to compare with learned entailment judgments.

Binary-BERT is the within-task training comparison for the partially unseen experiments. It learns to distinguish positive and negative pairs using the target training split. For a single-label task, the baseline chooses the candidate with the highest probability. For situation, it chooses the candidates receiving a positive entailment decision. This baseline addresses how far a general BERT starting point and the target pairs can go before a separate stage of entailment training is added. Its behavior on unseen labels is particularly informative because its inputs still contain the language of each hypothesis.

The Wikipedia-trained classifier is an additional comparison for the fully unseen condition. The authors collect 100K Wikipedia articles together with the categories attached to them. An article paired with an attached category provides a positive example. For each article, the authors also sample three random categories to make negative pairs. They train a binary BERT classifier using these article and category pairs. Wikipedia provides supervision outside the target tasks, which makes this a way to test transfer from a broadly collected source that nevertheless trains a form of categorization.

Results when examples exist for some labels

The similarity baselines change relative position across aspects. Word2Vec performs slightly better than ESA on topic detection. ESA performs clearly better than Word2Vec on situation detection. Both are weak on emotion. In the authors’ interpretation, a topic such as sports can often be reached from nearby terms, while a situation category may be associated with a passage through the circumstances it describes. An earthquake can evoke a shelter need in a Wikipedia-based representation even when the text contains few words that are close to shelter in the Word2Vec space.

The paper illustrates the difficulty of emotion with a passage about a brother who comes home much later than expected. The annotation is fear. Recognizing it involves an inference about how someone might react in those circumstances. Looking for a phrase that resembles the emotion name is a weaker strategy when the passage presents the reason for the feeling in place of an explicit description of it. The authors offer this as an explanation for the similarity baselines’ weakness. The example identifies the kind of inference that could be missing, while the benchmark comparison measures the overall performance on the task.

Binary-BERT is strong on seen labels, and its performance drops substantially on unseen ones. The entailment systems improve the results on unseen categories, with the MNLI-trained variant standing out after target fine-tuning. For seen categories, the paper describes the entailment approach as competitive overall. It puts Binary-BERT slightly ahead on seen topics and emotions in the comparison with the MNLI-based approach, and reports a clearer advantage for entailment on seen situation types. The seen and unseen breakdown matters here because an aggregate comparison could give an incomplete picture of where the advantage lies.

Both the target-only baseline and the approach with transfer can form pairs for unfamiliar categories. The difference in results indicates that access to their wording supplies only part of what the classifier needs. Training on a separate entailment task can give that wording a more effective role when the available target examples cover other categories. The conclusion is specific to the training and decision procedures in the benchmark, including the margin applied to competing familiar labels.

Results without labeled target examples

The Wikipedia-based classifier contributes strongly to topic categorization, while its results on emotion and situation are weak. The authors propose that the difference follows from the resemblance between the source and target tasks. Associating Wikipedia articles with their categories prepares the classifier for a question about the subject of a Yahoo passage. It supplies far less direct practice in determining what someone felt or what people in a reported crisis require. The fact that the source corpus is general-purpose and the target data is held out still leaves room for this kind of alignment between tasks.

The entailment-trained systems are more consistent across aspects in the authors’ account, with RTE on emotion an explicit exception. Combining the entailment classifiers improves results on all the benchmark tasks in this condition. The authors give the overall source ordering as RTE ahead of FEVER, then MNLI. The emotion exception matters when interpreting that order. It is a characterization across the evaluation, rather than a claim that the RTE-trained classifier leads on every aspect. In the partially unseen results the authors instead favor MNLI as the starting point for fine-tuning.

The scores underlying those comparisons are assigned to the experiment tables. The prose reports directions, rankings, and qualitative sizes for some comparisons, such as the large gains on unseen categories in the partially unseen setting. It gives no numerical accuracy or weighted F1 entries for those results. The numerical Yahoo comparison above concerns the label inventories, and the other reported counts specify the data and training conditions. The available comparisons establish where the authors observed stronger performance, while the size in score units of those advantages remains unspecified here. The authors report releasing the datasets and code for the benchmark.

What the ablations show

The wording matters even when the label stays the same

The clearest controlled comparison changes how the hypotheses are expressed while keeping the task and source-trained classifier fixed. In the fully unseen protocol, the authors compare the label name, the WordNet definition, and the setting that uses both. The definition-only version typically performs poorly across the tasks and the classifiers. A dictionary definition is an attempt to supply more meaning than a bare name, but the comparison shows that the added explanation is a weak standalone representation in this implementation. Its value has to be judged through the claim it produces and the resulting classification decisions.

The comparison between names alone and the combined setting is less uniform. The MNLI-trained classifier favors the combined setting for emotion and situation. The RTE and FEVER classifiers typically favor the name alone. These preferences are important because the targeted category is unchanged. The input phrasing, the source used to train the entailment classifier, and the task interact strongly enough that a useful choice for one combination may be a poor choice for another. The comparison identifies the interaction without assigning it to a particular feature of the dictionary entries or the training corpora.

For the ensemble, the reported best overall hypothesis setting uses both names and definitions. This can coexist with a poor definition-only result. The combined decision can retain positive evidence from the name while giving the definition a chance to help on other pairs. It can also accept positives introduced by a weak formulation. The net result for the ensemble is favorable in the benchmark, but the experiment leaves open how the balance of helpful and harmful decisions varies from class to class. The authors explicitly make the success of the combination conditional on how the ensemble is constructed.

The source of supervision interacts with target adaptation

Another useful comparison holds the general approach constant and changes the source of its initial entailment training. Without labeled target training, the authors report a stronger overall showing for RTE than for either FEVER or MNLI. With target fine-tuning on the partially seen labels, MNLI becomes the stronger starting point in their discussion. The comparison distinguishes immediate transfer from suitability for subsequent adaptation. A classifier can start with entailment behavior that works well on target examples and still respond less productively to additional training on a portion of the inventory.

The authors offer a possibility for the situation task. Pairs constructed from its passages and label hypotheses may resemble RTE more strongly than MNLI, helping RTE transfer directly. They also suggest that the RTE-trained system might be more prone to overfitting when adapted to the situation training examples. Those are hypotheses about why the rankings change. The experiments compare the results of different source choices and training conditions. They do not independently manipulate source resemblance or measure how much overfitting each adaptation introduces.

Comparing the Wikipedia classifier with the entailment systems gives a related but broader diagnostic. The two approaches learn binary judgments on pairs, but Wikipedia teaches a connection between an article and its attached categories. The entailment sources teach a judgment about support for a statement. The advantage of Wikipedia for topics and its weaker performance on other aspects are consistent with that difference in supervision. Because the source data and the training task both change, the comparison cannot assign the outcome exclusively to the structure of the pair or to the subject matter of the examples.

Situation types differ sharply in difficulty

The authors break down fully unseen situation performance by category for the ensemble. Their figure reports separate F1 scores for the types. Water, shelter, and food are among the more successfully recognized needs. Evacuation, infrastructure, and regime change are among the harder categories. Those differences give substance to the weighted score. A system can identify several everyday needs and still struggle with categories whose connection to the passage may depend on a longer chain of interpretation.

The authors relate the harder categories to their abstract meanings. They suggest that the successful categories benefit from familiar words that are easier to connect with the passage, and that these types occur more frequently in the data. These are plausible explanations for the observed groupings. Familiarity, frequency, and ease of expressing a label as a hypothesis can coincide. The study does not vary them independently. As a result, the class-level results locate uneven performance, while the explanations remain proposals about what makes a particular class difficult.

Limitations

Limits the authors identify

The authors present their hypothesis construction as a baseline. They explore automatic formulations built from a name or a WordNet definition and suggest that people could devise more natural alternatives. For instance, evidence of hunger might be easier to relate to a statement describing people going without food than to a sentence formed mechanically from a category name. That possibility raises a question the paper leaves open. A more natural sentence can improve the connection to the passage, while a sentence that narrows the category could change what qualifies as a positive example. The reported experiments cover only the wording methods they compare.

They also leave broader studies of ensembling for future work. The reported probability combination is one way to reconcile separate entailment judgments, and the hypothesis comparison shows that its behavior differs from that of some of its members. The paper gives no universal rule for choosing a source corpus, deciding whether a definition will help, or combining classifiers on an unfamiliar aspect. Its preference for the tested ensemble comes from performance in the benchmark. Further combinations and further ways of expressing labels remain open questions.

The authors treat their explanations of the results with similar caution. They propose reasons for the shift between RTE and MNLI and for the difficulty of abstract situation categories. Their discussion leaves the first issue explicitly open for deeper investigation. The situation analysis identifies where performance varies and offers frequency and wording as possible contributors. Readers can take those factors as hypotheses suggested by the results without attributing a measured causal effect to each one.

Limits visible in the experimental design

The fully unseen protocol removes task-specific labeled training, but the benchmark still supplies candidate names and aspect-specific statements. Someone must specify whether the passage is being judged for subject matter, emotion, or situation, and decide how to express the categories as claims. The results therefore concern applying a supplied interpretation and inventory without labeled target training. They offer no evidence that a classifier could infer the desired aspect from an unaccompanied passage, discover the useful categories by itself, or write suitable hypotheses for arbitrary new categories.

A similar distinction applies to the word unseen. The benchmark controls the availability of labeled examples from a target task. A category word or a related concept can still occur in the sources used before that task. Familiarity with ordinary language is part of what makes transfer possible. The evaluation cannot establish that the classifier learned the meaning of a word at test time or that its source training contained no analogous situations. What is held out is a specified kind of supervision, and the conclusions are clearest when “unseen” retains that meaning.

The choice of output format also narrows the claims. Removing multi-label emotion examples makes that experiment a test of selecting one annotated emotion. It does not answer how well the same method would identify conflicting or simultaneous feelings. The situation benchmark does test several applicable labels in one passage, but under a different category inventory and a different meaning for those labels. The none categories likewise apply relative to the inventories in use. Success on those examples does not establish a general ability to recognize any unlisted emotion or situation.

The comparisons depend partly on the evaluation rules. Keeping the same held-out sets across both protocols is valuable because the texts and annotations are held constant. Yet the partially unseen condition also introduces a decision margin favoring unfamiliar candidates when seen labels would otherwise have a small advantage. Binary-BERT is described with its own selection rule. Comparisons therefore reflect the training procedures as used with their decision rules. The paper does not present a margin analysis showing how much of the measured change would persist under other thresholds or under identical selection rules.

Finally, the benchmark supports a narrower claim than a general test of reasoning. Its correct answers come from task annotations. A system may make a correct prediction through an explicit clue, a familiar association, or a more involved inference, and the benchmark score does not distinguish those routes. The authors’ examples show why inference can be useful and why similarity can fail. They do not demonstrate that every correct entailment-based classification follows a particular chain of reasoning. The main evidence is comparative performance on specified text classification problems.

What came after

Applying entailment to other kinds of labels

One close continuation is Label Verbalization and Entailment for Effective Zero and Few-Shot Relation Extraction. Its focus is on expressing relation labels in language and using entailment for extraction when labeled examples are absent or scarce. This carries over the benchmark paper’s central operation. A category becomes a statement that can be checked against text. The category now describes a relation, so the statement has to express how the relevant entities are connected. The benchmark paper already places relation extraction in the history of entailment transfer. The later work returns to that application with label verbalization as a named part of the method.

English Prompts are Better for NLI-based Zero-Shot Emotion Classification than Target-Language Prompts takes up an aspect directly represented in the benchmark. NLI stands for natural language inference, the kind of judgment that the entailment formulation uses. The later paper compares the language of the prompts in this setting, with the title reporting an advantage for English prompts in the comparison. That adds another dimension to the question asked by the benchmark’s name-and-definition experiments. The same emotion category can be expressed through different formulations and, in this later comparison, in different languages. The citation establishes the connection in topic and method without establishing common data or evaluation conditions.

Using label names and language in other ways

Text Classification Using Label Names Only takes the label name as the available starting point and adopts self-training. Its place in this line of work comes from treating a label’s wording as usable supervision for a new classifier. The benchmark’s entailment approach uses the wording to construct a claim for each passage and then judge it. The later work’s stated route is to develop a classifier through self-training from that starting information. Both address the problem of what can be done with an intelligible category name when labeled examples are unavailable.

Knowledgeable Prompt-tuning brings knowledge into the verbalizer for text classification. A verbalizer connects the language used at prediction time to the categories the classifier should return. The connection to the benchmark is the treatment of that language as part of the classification method. The benchmark compares forms of an entailment hypothesis, including definitions from WordNet. The later work locates its use of knowledge in the verbalizer of a prompt-based approach. That is a different place to encode information about a category, with the shared concern that its linguistic representation can affect what the system predicts.

Describing the task as well as the category

Learning from Task Descriptions addresses the role of language describing the task. That emphasis connects to the benchmark’s distinction between a category and the aspect in which it is used. A label word gives the category content, while the surrounding interpretation says what the system is supposed to decide about the passage. Task descriptions make the latter source of information an object of study in its own right. The relation between the papers is this shared use of language to convey the requested judgment.

Adapting Language Models for Zero-shot Learning by Meta-tuning on Dataset and Prompt Collections moves the adaptation towards collections of tasks and prompts. Its stated approach connects the ability to interpret a new prompt with training over many prior task expressions. The benchmark paper learns a shared support judgment from entailment sources and expresses each target classification question in a compatible form. The later work makes collections of datasets and prompts part of the preparation for zero-shot learning. Both make the formulation shown to the system relevant to what can be transferred, though their titles and scope give no grounds to equate their evaluation protocols.

Pre-train, Prompt, and Predict surveys prompting methods in natural language processing. The benchmark fits that broader subject because it expresses a target decision as a sentence that a previously trained system can evaluate. The name, the definition, and the aspect frame jointly determine the input it sees. The later survey’s scope places this kind of formulation alongside a wider family of prompting approaches. Across these citing works, two questions from the benchmark persist in different forms. One is what information to put into the words that describe a label or task. The other is what prior training will let a classifier use those words on examples for which it has received no direct supervision.

 Institutions

 Fields, topics and concepts

Cite

Cite as Wenpeng Yin, Jamaal Hay and Dan Roth. 2019. Benchmarking Zero-shot Text Classification: Datasets, Evaluation and Entailment Approach. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/d19-1404 · arXiv 1909.00161

@inproceedings{yin2019benchmarking,
  title = {{Benchmarking Zero-shot Text Classification: Datasets, Evaluation and Entailment Approach}},
  author = {Wenpeng Yin, Jamaal Hay and Dan Roth},
  booktitle = {Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)},
  year = {2019},
  doi = {10.18653/v1/d19-1404},
  eprint = {1909.00161},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/d19-1404}
}

References

29 references, from the paper's own bibliography.

  1. Laura Ana Maria Bostan and Roman Klinger. 2018. An analysis of annotated corpora for emotion classification in text. In COLING, pages 2104–2119. OpenAlex ↗ · Scholar ↗
  2. Ming-Wei Chang, Lev-Arie Ratinov, Dan Roth, and Vivek Srikumar. 2008. Importance of semantic representation: Dataless classification. In AAAI, pages 830–835. OpenAlex ↗ · Scholar ↗
  3. Xingyuan Chen, Yunqing Xia, Peng Jin, and John A. Carroll. 2015. Dataless text classification with descriptive LDA. In AAAI, pages 2224–2231. OpenAlex ↗ · Scholar ↗
  4. Ido Dagan, Oren Glickman, and Bernardo Magnini. 2005. The PASCAL recognising textual entailment challenge. In Machine Learning Challenges, Evaluating Predictive Uncertainty, Visual Object Classification and Recognizing Textual Entailment, First PASCAL Machine Learning Challenges Workshop, pages 177–190. OpenAlex ↗ · Scholar ↗
  5. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: pre-training of deep bidirectional transformers for language understanding. In NAACL. our card
  6. Evgeniy Gabrilovich and Shaul Markovitch. 2007. Computing semantic relatedness using wikipedia-based explicit semantic analysis. In IJCAI, pages 1606–1611. OpenAlex ↗ · Scholar ↗
  7. Omer Levy, Minjoon Seo, Eunsol Choi, and Luke Zettlemoyer. 2017. Zero-shot relation extraction via reading comprehension. In CoNLL, pages 333–342. our card
  8. Chenliang Li, Jian Xing, Aixin Sun, and Zongyang Ma. 2016a. Effective document labeling with very few seed words: A topic model approach. In CIKM, pages 85–94. OpenAlex ↗ · Scholar ↗
  9. Yuezhang Li, Ronghuo Zheng, Tian Tian, Zhiting Hu, Rahul Iyer, and Katia P. Sycara. 2016b. Joint embedding of hierarchical categories and entities for concept categorization and dataless classification. In COLING, pages 2678–2688. OpenAlex ↗ · Scholar ↗
  10. Stephen Mayhew, Tatiana Tsygankova, Francesca Marini, Zihan Wang, Jane Lee, Xiaodong Yu, Xingyu Fu, Weijia Shi, Zian Zhao, Wenpeng Yin, Karthikeyan K, Jamaal Hay, Michael Shur, Jennifer Sheffield, and Dan Roth. 2019. University of pennsylvania lorehlt 2019 submission. OpenAlex ↗ · Scholar ↗
  11. Tomas Mikolov, Ilya Sutskever, Kai Chen, Gregory S. Corrado, and Jeffrey Dean. 2013. Distributed representations of words and phrases and their compositionality. In NIPS, pages 3111–3119. our card
  12. Aldrian Obaja Muis, Naoki Otani, Nidhi Vyas, Ruochen Xu, Yiming Yang, Teruko Mitamura, and Eduard Hovy. 2018. Low-resource cross-lingual event type detection via distant supervision with minimal effort. In COLING, pages 70–82. OpenAlex ↗ · Scholar ↗
  13. Abiola Obamuyide and Andreas Vlachos. 2018. Zero-shot relation classification as textual entailment. In Proceedings of the First Workshop on Fact Extraction and VERification (FEVER), pages 72–78. OpenAlex ↗ · Scholar ↗
  14. Pushpankar Kumar Pushp and Muktabh Mayank Srivastava. 2017. Train once, test anywhere: Zero-shot learning for text classification. CoRR, abs/1712.05972. OpenAlex ↗ · Scholar ↗
  15. Marek Rei and Anders Søgaard. 2018. Zero-shot sequence labeling: Transferring knowledge from sentences to tokens. In NAACL-HLT, pages 293–302. OpenAlex ↗ · Scholar ↗
  16. Anthony Rios and Ramakanth Kavuluru. 2018. Few-shot and zero-shot multi-label learning for structured label spaces. In EMNLP, pages 3132–3142. our card
  17. Prateek Veeranna Sappadla, Jinseok Nam, Eneldo Loza Menc'ia, and Johannes Fürnkranz. 2016. Using semantic similarity for multi-label zero-shot classification of text documents. In 24th European Symposium on Artificial Neural Networks, pages 423–428. OpenAlex ↗ · Scholar ↗
  18. Yangqiu Song and Dan Roth. 2014. On dataless hierarchical text classification. In AAAI, pages 1579–1585. OpenAlex ↗ · Scholar ↗
  19. Yangqiu Song, Shyam Upadhyay, Haoruo Peng, and Dan Roth. 2016. Cross-lingual dataless classification for many languages. In IJCAI, pages 2901–2907. OpenAlex ↗ · Scholar ↗
  20. Shashank Srivastava, Igor Labutov, and Tom M. Mitchell. 2018. Zero-shot learning of classifiers from natural language quantification. In ACL, pages 306–316. OpenAlex ↗ · Scholar ↗
  21. Stephanie M. Strassel, Ann Bies, and Jennifer Tracey. 2017. Situational awareness for low resource languages: the LORELEI situation frame annotation task. In SMERP@ECIR, pages 32–41. OpenAlex ↗ · Scholar ↗
  22. James Thorne, Andreas Vlachos, Christos Christodoulopoulos, and Arpit Mittal. 2018. FEVER: a large-scale dataset for fact extraction and verification. In NAACL-HLT, pages 809–819. our card
  23. Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In ICLR. our card
  24. Adina Williams, Nikita Nangia, and Samuel R. Bowman. 2018. A broad-coverage challenge corpus for sentence understanding through inference. In NAACL-HLT, pages 1112–1122. our card
  25. Congying Xia, Chenwei Zhang, Xiaohui Yan, Yi Chang, and Philip S. Yu. 2018. Zero-shot user intent detection via capsule neural networks. In EMNLP, pages 3090–3099. our card
  26. Dani Yogatama, Chris Dyer, Wang Ling, and Phil Blunsom. 2017. Generative and discriminative text classification with recurrent neural networks. CoRR, abs/1703.01898. OpenAlex ↗ · Scholar ↗
  27. Jingqing Zhang, Piyawat Lertvittayakumjorn, and Yike Guo. 2019. Integrating semantic knowledge to tackle zero-shot text classification. In NAACL. OpenAlex ↗ · Scholar ↗
  28. Xiang Zhang, Junbo Jake Zhao, and Yann LeCun. 2015. Character-level convolutional networks for text classification. In NIPS, pages 649–657. our card
  29. Ben Zhou, Daniel Khashabi, Chen-Tse Tsai, and Dan Roth. 2018. Zero-shot open entity typing as type-compatible grounding. In EMNLP, pages 2065–2076. OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/yin-2019-benchmarking-zero-shot-text-classification/