FewRel 2.0: Towards More Challenging Few-Shot Relation Classification
Paper · 2019 · Tianyu Gao, Xu Han, Hao Zhu et al.
Summary
A few labeled examples can show a classifier what relationship to look for between two entities in a sentence. But the examples may come from a field whose writing differs from the material used to train the classifier. And a new sentence may express a relationship outside the examples altogether. FewRel 2.0 extends a benchmark for few-shot learning to test both situations. Its starting point is the original FewRel, where some systems had already surpassed the reported human performance. The question is how much of that success carries over when the test changes what a classifier can safely assume.
The first test moves from Wikipedia to biomedical literature. The authors align PubMed text with the Unified Medical Language System to find possible examples, then ask human annotators to verify them. At least two annotators review each sentence, with a third brought in when they disagree. The resulting test set has 25 relations and 100 instances per relation. Training uses the original FewRel training set, and validation uses SemEval-2010 task 8. Every evaluated system loses substantial accuracy on the biomedical test. Adversarial training, which encourages an encoder to represent sentences in ways that conceal their domain of origin, improves the prototypical classifier on that test. BERT-PAIR, the authors’ method for comparing a query sentence directly with each labeled example, gives the strongest results on both test sets. When the authors move 10 biomedical relations comprising 1,000 instances into training, BERT-PAIR reaches 72.30% accuracy in 5-way 1-shot testing and 80.50% in 5-way 5-shot testing on the revised split.
The second test stays within the original FewRel data and adds a possible answer, none of the above, or NOTA. A query can express a real relation and still warrant that answer because the relevant label is absent from the episode’s choices. Systems that always choose an offered relation lose accuracy as these queries become more common. Giving a prototypical classifier a collection of examples for an extra NOTA class helps, although accuracy still falls as the NOTA rate rises. BERT-PAIR uses the disagreement scores from its comparisons to decide whether any offered class is a good fit. Its accuracy is comparatively stable across the tested NOTA rates. At a 50% rate, the authors still report gaps of 8 points for 5-way 1-shot and 7 points for 5-way 5-shot relative to conventional classification.
FewRel 2.0 thus makes a strong result on the original task easier to interpret. The benchmark tests whether a classifier can use sparse examples across a domain shift and whether it can decline the offered labels when those examples give it no suitable answer. The experiments examine those demands separately. The authors release the dataset and baselines in the FewRel repository.
Deep dive: FewRel 2.0: Towards More Challenging Few-Shot Relation Classification
FewRel 2.0 tests whether a few examples can guide relation classification in biomedical text and help identify when none of the offered relations applies. · about 34 minutes to read
The problem and its context
What a relation classifier has to recognize
Relation classification assigns a label to the relationship expressed between designated entities in a sentence. In this paper, the entities have roles: one is the head and the other is the tail. The classifier receives an instance with those roles identified. A label describes the relationship of the head to the tail as expressed in that sentence. The task belongs to information extraction because it turns information expressed in text into a form that can be classified and compared across examples.
A reader can think of the label as the answer to a question about the marked pair. The wording that supplies the answer may differ across instances of the same relation. The two sentences may use different names, and the grammar that connects the entities may differ. A classifier has to recover what the sentences have in common at the level of the relationship. For this benchmark, the immediate question is whether it can do that when it receives very few labeled examples of the particular relations under consideration.
The original FewRel makes the label inventory change across groups of examples. Each such group, frequently called an episode, comes with its own labeled examples for the candidate relations. A query is the instance to classify. The labeled examples are its support set. A successful system learns during training how to use a support set to interpret a query. During evaluation it uses that skill on relation types held out from training. The relation label itself can be new at test time because the support examples give it a meaning within the episode.
The paper situates FewRel in an active line of few-shot research. It cites Matching Networks alongside work on learning through optimization, meta networks, and prototypical networks. It also points to work prompted by FewRel itself, including hybrid attention for noisy relation examples and Matching the Blanks for learning relation representations. The original benchmark supplied a common task for this work. FewRel 2.0 takes the episode design as its starting point and asks what else a strong evaluation must vary.
New relations and new domains
Training and test relations were already disjoint in FewRel. That controls which labels a classifier can encounter during training. The source of the sentences is a separate consideration. Original FewRel uses Wikipedia for its text and Wikidata for facts that help identify candidate examples. Its training and test sets therefore share a domain even though their relation inventories differ. A method that learns to classify novel relations within that setting has demonstrated one kind of transfer.
The paper asks what happens when the sentences and the kinds of relations also change. It points to literature, finance, and medicine as examples of fields where a practitioner might have fewer annotations than in a resource such as Wikipedia. The challenge concerns the form of the text as well as the supply of labels. The authors identify morphology and syntax as ways corpora can differ. A classifier may also face a different relation schema, meaning a different inventory of relationship categories defined for the data. Those differences can occur together when an application moves to a new field.
A same-domain support set can help a classifier recognize how a relation is expressed in its query. That remains true in the biomedical test, where the support examples and query both come from the target data. What has changed is the preparation the classifier brings to the comparison. Its training emphasized a different corpus and relation inventory. The domain adaptation task asks whether the classifier can put a handful of target examples to use despite that earlier experience. This distinguishes the task from one in which there are no examples of the target relation at all.
The authors place their adaptation experiment among earlier methods that try to make information learned from one domain useful in another. They mention subspace mapping, representations designed to be invariant across domains, feature augmentation such as structural correspondence learning, and minimax estimation. The experiment takes up the representation approach. Its premise is that some distinctions helpful for identifying a domain may be dispensable for classifying relations. Adversarial training makes the success of a domain discriminator part of the learning problem.
When the answer is outside the episode
The original episode also gives the classifier a guarantee about the query. Its correct relation is among the classes represented in the support set. That guarantee allows a classifier to treat the task as a ranking. Even when every candidate is a poor fit, the candidate with the best score is a valid kind of answer and, under the task’s premise, some candidate must be right.
FewRel 2.0 adds queries for which that premise fails. None of the above means that the designated pair in the query does not express any of the relations currently offered. The authors motivate it with two possibilities: a sentence may express a relation outside the available inventory, or it may express no specific relation for the designated pair. The benchmark operationalizes the first possibility by drawing queries from held-out relations outside the current episode. This makes the answer verifiable using the data’s existing labels.
The meaning of NOTA depends on which labels an episode offers. A relation can be an ordinary class when the support set represents it and an out-of-set query source when it is absent. Accordingly, a classifier has no fixed set of linguistic features it can simply memorize as the definition of NOTA. It has to judge the relationship between the query and the support set. The same principle applies even if the query clearly expresses a particular relation. Clarity about the relation and membership in the current inventory are different properties.
The benchmark evaluates this change within the original FewRel domain. The biomedical task changes the corpus and relation schema, while the NOTA experiment changes which answers are permitted and how queries are sampled. Keeping the latter experiment in the original data lets the authors examine the effect of out-of-set queries without introducing the biomedical transfer at the same time.
The method, step by step
What an episode gives the classifier
In an N-way K-shot episode, the way specifies how many candidate relations the classifier sees. The shot specifies how many labeled support examples it gets for each relation. The paper illustrates the arrangement with a 2-way 1-shot scenario. Each offered relation then has a single labeled sentence. The classifier compares the query with those examples and returns a relation label. In the adaptation version, this happens after training on another domain. In the NOTA version, the classifier can conclude that the query matches neither choice.
The training, validation, and test portions use disjoint relation types in the original formulation. An episode draws its candidates from the relevant portion. In testing, this design exposes the classifier to new combinations of relations and to types it did not train on. The labels are meaningful within each episode because the examples show what they correspond to. The paper’s notation focuses on an individual query and its correct answer, even though the evaluation can sample several queries for an episode.
ℛ = {r₁, …, rₙ}
ℛ denotes the sampled candidate relations. The symbols r₁ through rₙ stand for individual relation labels, with the last subscript representing N, the number of candidate relations. Braces denote a set and the ellipsis stands for the intervening labels.
𝒮 = {(xᵣᵢʲ, rᵢ) ∣ 1 ≤ i ≤ N, 1 ≤ j ≤ K}
𝒮 is the support set. Each ordered pair contains a labeled support instance xᵣᵢʲ and its relation rᵢ. The index i selects the relation, and j selects the example within it. The vertical bar means that the set includes the pairs satisfying the stated index ranges. N is the number of candidate relations, K is the number of examples supplied for each, and ≤ makes both bounds inclusive.
r ∈ ℛ
Here r is the correct relation for the query instance x in the conventional episode. The membership sign ∈ says that the answer belongs to the sampled set ℛ. The classifier receives the query and the support set and emits a label y from the same inventory. In an episode with one support example per relation, each labeled sentence supplies the evidence for its class on its own. Additional support examples give the classifier more expressions of that class with which to compare the query.
The support labels and the query label have different roles. The support labels are visible inputs at test time. The query label is the answer against which a prediction is scored. In the biomedical task, for instance, the existence of labeled biomedical supports is part of the evaluation design. The system still has to transfer what it learned about making comparisons from training to the target episode.
How the biomedical test set is built
The construction begins with distant supervision. This approach uses known relations between entities to propose labels for sentences that mention them. The paper cites work on distant supervision for relation extraction and on extracting relations with minimal supervision in describing the original FewRel procedure. A knowledge-base relation gives a reason to inspect a sentence containing the entity pair. The sentence itself supplies the evidence an annotator needs to judge whether the relation is expressed there.
For the biomedical collection, PubMed supplies sentences from biomedical literature. The Unified Medical Language System, or UMLS, supplies the knowledge base used to propose relation instances. The authors align the two resources to generate candidates. They then carry out human linguistic annotation to determine which candidate labels are correct. At least two people assess every sentence. If their assessments disagree, a third person reviews the case. This produces a collection with 25 biomedical relation categories and 100 accepted instances for each.
The procedure serves the episode design as well as the dataset construction. Each accepted sentence has a relation label, so it can be used as a support or a query for that category in a biomedical episode. The uniform number of collected examples per relation gives the benchmark a consistent pool per class. An episode remains small because the procedure samples the specified number of supports. The availability of a larger verified pool is what lets the evaluation draw different episodes.
Training uses the existing FewRel training split. For validation, the authors use SemEval-2010 task 8, a task centered on semantic relations between pairs of nominals. In the authors’ account, its corpus and its schema both differ from those of the original FewRel data and the biomedical set. The protocol therefore gives the evaluator a validation resource distinct from the biomedical test while retaining the original FewRel resource for supervised source training. The adversarial variant can additionally make use of target-domain text through the domain objective described below.
How adversarial training uses the target corpus
The adversarial approach acts on a sentence encoder, a component that converts an instance into numerical features. A domain discriminator receives those features and tries to decide which corpus supplied the sentence. The encoder and the discriminator are trained with opposing goals for this prediction. The discriminator looks for distinctions between the corpora. The encoder is pushed to make those distinctions less accessible while it continues to learn the few-shot classification task.
The paper follows an earlier adversarial setup for relation extraction and uses a two-layer perceptron as the discriminator. While training for few-shot classification, it passes text from both domains through the encoder and then through the discriminator. The domain objective pools evidence from source and target sentences.
min_{θ_E} max_{θ_D} (Σ_{x ∈ 𝒞₀} log([D(E(x))]₀) + Σ_{x ∈ 𝒞₁} log([D(E(x))]₁))
E is the sentence encoder and D is the domain discriminator. The parameter sets θ_E and θ_D control those components. The input x in each sum is a sentence instance. 𝒞₀ denotes the training-domain corpus, and 𝒞₁ denotes the test-domain corpus used in the adaptation setup. D receives E(x) and returns a vector. Square brackets with a subscript select an element of that vector, with 0 designating the training domain and 1 designating the target domain. The log takes the logarithm of the selected value. Each Σ sums the terms for its own corpus, and the plus sign combines the sums into the objective. The max operation adjusts the discriminator parameters to increase the objective, while min adjusts the encoder parameters to decrease it.
For the discriminator, the objective rewards putting more weight on the actual domain of each example. For the encoder, the adversarial pressure makes the resulting features harder to use for that decision. Since few-shot relation classification is being trained alongside the domain game, the encoder also has a reason to preserve features useful for identifying relations. The domain signal comes from corpus membership. It does not require the discriminator to predict a sentence’s relation label.
The classification method to which the authors apply this procedure is a Prototypical Network. A prototypical classifier represents each class by a center derived from its labeled support examples and judges the query by its position relative to those centers. This gives the domain objective a clear point of intervention. Changing the encoder changes how the examples and queries are positioned, and therefore what evidence the prototype rule uses. The experiment compares whether that intervention helps when the episode moves to the biomedical domain.
How the benchmark adds out-of-set queries
For NOTA episodes, the support set still presents N candidate relations. The correct query answer now has a wider range.
r ∈ {r₁, …, rₙ, NOTA}
The symbol r again denotes the correct label. The membership symbol ∈ places it in the set on the right. The labels r₁ through rₙ refer to the ordinary candidates, and NOTA denotes the answer that no relation in that candidate set applies. The ellipsis represents the intervening candidate labels.
The authors generate NOTA queries by drawing from test relations that are absent from an episode’s candidate list. They describe the sampling as a mixture of two pools. The first contains the eligible instances for the relations selected for that episode. The other contains instances from test relations outside the selection. The latter pool is represented by a set difference.
𝒟ₜₑₛₜ ∖ 𝒟ℛ
𝒟ₜₑₛₜ stands for the collection of test instances, and 𝒟ℛ denotes the instances whose relations belong to the current candidate set ℛ. The symbol ∖ removes the members of the second set from the first. The result is the source of the episode’s NOTA queries. As the candidate set changes, the corresponding pool changes with it.
The share of queries from the outside pool is α, the NOTA rate. The remaining share is given by the complement.
1 − α
Here 1 means the whole query share, α is the share assigned to out-of-set queries, and the minus sign gives the share drawn from the offered relations. A rate of 0% therefore gives the conventional query pool. At a rate of 50%, half the queries receive NOTA as their correct answer. The rate is a property of the sampled queries across evaluation.
All test queries come from the test data in this experiment. A proposed baseline for handling NOTA can also draw supports assigned to NOTA from training data. That permission concerns what evidence the classifier can consult in support of an extra class. The test query draw still follows the test-set rule. The source and role of an example both matter to understanding this experiment: an outside example used to represent a catch-all label is different from an outside query whose true label must be predicted.
The paper’s simple extension of the prototype approach treats NOTA as an additional category and gives it its own labeled support examples. This creates an (N+1)-way K-shot classification problem. The N ordinary categories each represent a particular relationship. The extra class contains examples from other relationships. Putting the extra examples under one label gives the classifier a way to return NOTA, but the examples can occupy very different positions in its feature space. A center calculated from them can be a weak description of other out-of-set queries.
How BERT-PAIR scores the choices
BERT-PAIR uses the sequence classifier in BERT to compare instances. For each support example, the method places that example and the query in one input sequence. It runs the classifier on the joint sequence and obtains a score for a shared relation and a score for different relations. The same operation is applied to every query–support pair. The approach lets the pair scorer examine the two sentences together as it decides what relationship evidence they share.
The episode prediction is built from these pair scores. For an ordinary relation, BERT-PAIR averages the scores in favor of a match across that relation’s supports. For NOTA, it first averages the scores for a mismatch within each relation. It then takes the smallest of those averages. The minimum means the NOTA score is governed by the candidate that provides the weakest evidence of a mismatch. If any offered relation looks plausible, that candidate can pull the NOTA score down. If the mismatch evidence is strong across the choices, the minimum can remain high.
How BERT-PAIR classifies a query
The steps in order.
The first scoring formula concerns one ordinary candidate relation.
oᵣ = (1/K) Σ_{j=1}^{K} [B(x, xᵣʲ)]₁
The score oᵣ belongs to candidate relation r. The function B is the BERT sequence classifier, x is the query, and xᵣʲ is the support example indexed by j for relation r. B takes that pair and produces two scores. The bracket notation with subscript 1 selects the score for sharing a relation. The sum Σ runs over j from the first support to the last of the K supports for r. The factor 1/K divides the sum by the number of supports to get the mean.
The second formula defines the score for rejecting the offered relations.
o_NOTA = min_{r ∈ {r₁, …, rₙ}} ((1/K) Σ_{j=1}^{K} [B(x, xᵣʲ)]₀)
The symbol o_NOTA is the score assigned to the none-of-the-above answer. As before, B takes query x and its paired support xᵣʲ. The subscript 0 selects the score for different relations. The sum over j and the factor 1/K form the mean for candidate r. The min operator selects the smallest of these means over the ordinary candidates r₁ through rₙ. The membership sign limits this operation to those candidates. NOTA has no support group of its own in this calculation.
Averaging before taking the minimum matters. When a relation has several examples, the disagreement score used for that relation reflects all of them. An individual support comparison can be weak because the sentence expresses the relation in a different way or offers sparse evidence about the marked pair. The formula assigns a class score based on the mean. It is the most favorable candidate class under this disagreement calculation that controls the rejection score.
The final formula converts the scores into probabilities. Here the paper uses ℛ for the expanded answer inventory containing the ordinary candidates and NOTA.
p(y = r ∣ x) = exp(oᵣ) / Σ_{r′ ∈ ℛ} exp(oᵣ′), r ∈ ℛ
The expression p(y = r ∣ x) is the probability that the predicted label y is r for query x in its episode. The vertical bar is read as “given.” The dependency on the episode’s support set is carried by the scores oᵣ. The function exp is the exponential, and the slash indicates division by the sum of the exponential scores for the available answers. The index r′ ranges over ℛ and identifies the answer currently being summed. Its score is oᵣ′. The final membership condition states that the formula applies to each answer r in the inventory, including NOTA.
The probability calculation lets the authors use cross-entropy training. For each labeled query, the objective rewards assigning probability to its true answer. An in-set query supplies supervision for its candidate relation. An out-of-set query supplies supervision for the rejection score. The same pair scorer supports both outcomes. What sets BERT-PAIR apart is that it derives its NOTA evidence from comparisons with the supplied relations, recalculating the rejection score from each episode’s candidate set.
Experiments and results
Systems, datasets, and the meaning of accuracy
The experiments use graph neural networks and Prototypical Networks as few-shot baselines. The paper selects them based on their performance in the earlier FewRel study. For sentence encoding, it considers the convolutional neural network used in that study and BERT. These choices distinguish the mechanism that represents a sentence from the mechanism that uses labeled supports to classify a query. In the prototypical case, a decision is made with respect to the support representations for each class. In BERT-PAIR, the classifier handles the query and each support example jointly before producing the class scores.
For the domain adaptation comparison, the authors add the adversarially trained prototypical variant and evaluate BERT-PAIR as well. The paper identifies adversarial variants with the suffix -ADV. Settings for the existing systems and encoders follow earlier FewRel and BERT work. For the NOTA experiment, the comparison concentrates on the prototype extension with an extra class, the pairwise system, and classifiers that retain the original rule of choosing an offered relation for every query.
The metric is accuracy, reported as the percentage of queries assigned the correct label under the evaluation setting. In conventional testing, those correct labels are all drawn from the supplied candidates. In NOTA testing, the metric credits a rejection when the query’s relation is outside the episode. Accuracy therefore reflects both choosing the right named relation for a matching query and rejecting the set for an out-of-set query. The mix of those cases is controlled by the test rate.
The two main settings described in the results are 5-way 1-shot and 5-way 5-shot. Both give the classifier the same number of candidate relations. They differ in the amount of labeled evidence available for each candidate in the episode. In the former, an individual support sentence carries the evidence for its relation. In the latter, the classifier can draw on several sentences for that relation. The shot count applies to episode supports. It is distinct from the number of labeled instances included in the broader training split.
The datasets have distinct roles across the experiments. Original FewRel supplies the training data for the basic adaptation setup and the same-domain comparison for that evaluation. The biomedical collection is the new test domain. SemEval-2010 task 8 supplies validation for adaptation. The NOTA experiment samples from the original FewRel data, changing the test query mix within that setting. A biomedical accuracy figure and a NOTA accuracy figure consequently describe performance on different evaluations, even when the way and shot counts coincide.
What happens on the biomedical test
The paper compares performance on the original FewRel test set, labeled 1.0 in the comparison, and the new biomedical test set, labeled 2.0. All the evaluated approaches show pronounced accuracy declines on the biomedical side. The result applies even to BERT-PAIR, which achieves the highest accuracy in the paper’s comparisons on both test sets. A classifier can lead the original evaluation and still have difficulty applying its learned comparison procedure to a new domain with sparse labeled support.
The domain-adversarial training improves the prototype approach on the biomedical data. The direction of that result supports the idea that training a sentence representation to make corpus origin harder to recognize can help transfer in this setup. The study still reports a considerable decline relative to original FewRel. Access to text from a target domain and a loss that uses its domain identity leave substantial room for improvement when predicting the actual target relations.
BERT-PAIR’s performance on the adaptation task is informative because the method was introduced to address NOTA. Its joint comparisons also give it a way to recognize correspondence between new sentences and their labeled supports in the transfer setting. The reported ranking shows that this approach works well among the comparators on the biomedical test. The comparison is between complete approaches, so it cannot attribute the ranking to any single part of the pairwise method.
The authors then change the training data to see how performance responds to direct supervision in the target domain. They take 10 relations and their 1,000 instances out of the biomedical test set and put them into training. They train and evaluate BERT-PAIR on the revised data. The newly supervised relations serve as training material, while the biomedical evaluation is performed with the revised test split. This changes a different part of the experiment from increasing K. It changes the experiences from which the classifier learns before it encounters any particular test episode.
BERT-PAIR accuracy on the revised biomedical FewRel 2.0 test split
With biomedical relations added to training, the setting with more support examples gives the higher test accuracy.
The numbers
| System or setting | accuracy % |
|---|---|
| 5-way 1-shot | 72.30 |
| 5-way 5-shot (this paper) | 80.50 |
On this revised biomedical split, BERT-PAIR reaches 72.30% accuracy in 5-way 1-shot classification and 80.50% in 5-way 5-shot classification. The paper describes these outcomes as improvements of 16 and 13 points, respectively, over the prior best results. The comparison shows that allowing supervised biomedical relations into training can materially improve the performance of the few-shot method. The held-out biomedical composition also changes when relations move into training, so the reported improvement belongs to that revised protocol.
These results have two distinct meanings. Within the revised split, BERT-PAIR scores higher when it has more supports per offered relation. Across the original and revised protocols, the paper reports a gain with labeled target-domain training data. The former comparison concerns evidence available within an episode. The latter concerns what the learner has seen before solving its test episodes and which biomedical relations remain available for testing. Both contribute to understanding how a few-shot classifier can benefit from target-domain examples.
What happens when the right answer can be absent
The paper trains the NOTA-aware methods with 50% NOTA queries. It evaluates them on the original FewRel test data at NOTA rates of 0%, 15%, 30%, and 50%. This gives a range of query mixtures under a common training rate. At 0%, every query has a matching candidate. At 50%, out-of-set queries account for half the test cases. At the intermediate rates, accuracy reflects a different balance of the same two kinds of decisions.
The classifiers that retain a forced choice among the named relations cannot receive credit on a query labeled NOTA. As those queries occupy more of the evaluation, the paper reports a pronounced loss in accuracy. These comparisons make visible how strongly the original setup relies on the assumption that the answer belongs to the support inventory. A classifier can be good at ranking members of that inventory and still lack an action that would earn credit when the inventory contains no correct answer.
Giving the prototypical approach an extra class improves its ability to handle the new option. That result establishes that the classifier can benefit from being able to produce the answer at all. Its accuracy still falls rapidly as out-of-set queries become more frequent. The evidence available to define its catch-all class comes from several relations, and those relations need only share their exclusion from the candidate set. A representation based on proximity to a class center has to use that heterogeneous evidence to score a wide range of queries.
BERT-PAIR performs better under the NOTA setting and is comparatively stable as the test rate increases. The authors attribute this behavior to its use of binary judgments about whether a particular query and support express the same relation. That local decision is applicable whether or not the final answer is among the ordinary candidates. The available labels determine how those pair judgments are combined at the episode level.
In the authors’ comparison with the conventional 0% NOTA setting, the 50% NOTA condition still has a gap of 8 points for 5-way 1-shot and 7 points for 5-way 5-shot. The paper treats these gaps as evidence that the stronger method leaves a real challenge. Stability across a range of out-of-set prevalences describes one property of its aggregate performance. The remaining shortfall against conventional classification describes another. A classifier can be relatively insensitive to changes in the query mix while the addition of a rejection decision still reduces what it achieves compared with a task where the answer is guaranteed to be offered.
What the ablations show
Adding a domain objective to the same classifier family
The paper examines controlled changes to the task and the training procedure. Its analysis of individual design choices is clearest where a variant keeps the underlying classification family and changes how it is trained. For adaptation, the comparison between the ordinary and adversarially trained prototypical approaches asks whether domain discrimination contributes something beyond standard few-shot training. The improvement on the biomedical test supports the use of an additional domain objective in that particular transfer.
The experiment gives a specific interpretation to the gain. The domain discriminator has access to sentence features and corpus identity. Its training pushes the encoder toward features with less accessible information about that identity. The final accuracy measures whether the result is useful for relation prediction in biomedical episodes. The comparison therefore connects the change in training to a change in classification performance. It does not identify which features were suppressed or show how any one linguistic difference between the corpora contributed to the gain.
The relatively low transfer performance across the tested systems also matters for interpreting this intervention. The paper’s explanation of adaptation involves differences in syntax, morphology, and relation categories. The discriminator assigns a domain to a representation. It has no task of aligning specific relationship meanings between the source and target inventories. The objective can make features less revealing of a sentence’s provenance and still leave the classifier with difficulty recognizing an unfamiliar biomedical relation from its supports.
Moving labeled biomedical relations into training
The supervised-target experiment asks how much the available performance can change when the learner is explicitly taught from the target domain. It retains BERT-PAIR as the classifier and adds biomedical examples using whole relations. This makes it possible to preserve the aim of testing new relations relative to the revised training split. Examples of biomedical relationships become part of the general training experience, while the evaluation still presents its candidate relations through sparse supports.
The response is large according to the paper’s reported point gains. That observation gives the domain failure a practical interpretation. The method can make use of biomedical supervision when examples are available at training time. Its weaker performance in the original transfer setup reflects how hard the task is under the original allocation of evidence. It also leaves open how much of the gain comes from exposure to biomedical language, how much comes from training on biomedical relations, and how much the changed set of test relations affects the measured outcome.
The revised split makes this a sensitivity experiment about the data regime. It shows the results obtainable when the benchmark gives the learner a particular form of target-domain supervision and evaluates it on the remaining data. The existing experiment does not separately vary the number of supervised biomedical relations, their identity, and the number of instances from each. The authors use the result to argue that more progress is possible with limited labeled target data, and the comparison supports that claim for the demonstrated split.
Changing the answer space and the query mix
The NOTA comparisons reveal three things about the decision procedure. A forced-choice system lacks a valid output for out-of-set queries. An extra class supplies that output and learns a representation of it from examples. BERT-PAIR computes evidence for rejection from disagreements with the particular candidate relations. The test compares these approaches in episodes where the amount of out-of-set material changes, so their dependence on the original guarantee becomes visible.
The forced-choice case is especially easy to interpret. Its performance on out-of-set queries follows from the available outputs. Those queries all require a label the classifier never emits. As their share increases, the evaluation gives more weight to cases on which the procedure necessarily fails. That trend is a consequence of the decision rule as well as an accuracy result. The experiment does not need to show that these classifiers have lost their ability to recognize matches among the named relations to explain the overall decline.
The extra-class comparison shows the benefit and the cost of representing rejection as an ordinary category. It can earn credit for a correct rejection. Its supporting examples are also drawn from relations with different content, so a prototype for the extra class must cover a collection whose members are defined by exclusion. The paper uses their dispersion in feature space to explain the weak behavior as the NOTA rate increases. It does not report a separate measurement of that dispersion or an experiment that holds the whole procedure fixed while changing the diversity of the extra supports.
The rate sweep is a controlled change to the test distribution. Training for the NOTA-aware methods uses a fixed 50% rate while testing changes the share of out-of-set queries. This shows how accuracy behaves under different mixtures after that training choice. It does not test how the same architecture would behave if it learned from another NOTA prevalence. Since the metric is aggregate accuracy, stable results can also coexist with different error rates on in-set queries and out-of-set queries. The sweep is most directly evidence about the mixture-level outcome.
What the pairwise comparison establishes
The pairwise method is structured around the premise that a changing rejection category is easier to handle through comparisons with the current positive classes. The results support the complete implementation as an approach to the task. BERT-PAIR keeps its accuracy comparatively stable across the investigated rates and outperforms the variation that represents NOTA with miscellaneous support examples. Its decision has access to evidence about each offered relation, and each episode supplies the comparisons that determine whether any of them looks suitable.
The paper does not present a component-by-component ablation of BERT-PAIR. Its results do not independently measure the contributions of joint sequence encoding, averaging over supports, selecting the minimum disagreement score, or the encoders used by the comparisons. Those choices form a plausible explanation for how the method behaves, but the evidence is at the level of the full procedure. The comparison gives a reason to take candidate-relative rejection seriously while leaving open which scoring or aggregation details matter most.
Limitations
Limits the authors identify
The authors’ principal finding about domain adaptation is that current approaches have difficulty making the transfer under the benchmark’s sparse support conditions. They regard the adversarial improvement as a step towards useful adaptation while emphasizing the remaining room for growth. Their experiment with biomedical relations added to training makes that room visible within the same benchmark framework. It offers an example of considerably stronger performance when labeled target data enters the learner’s training history.
For NOTA, the authors point to the difference between reasonably stable performance across rates and the conventional result where every query is guaranteed to match an offered class. The gap remains even for BERT-PAIR. Their conclusion is therefore about the adequacy of the methods on the task they have introduced. The benchmark and baselines give future work a way to measure progress on transfer and rejection, and the paper treats each as an unresolved problem.
The paper also makes a deliberate choice about its two experiments. It studies NOTA using the original FewRel data to reduce the influence of cross-domain transfer. That decision gives the rejection evaluation a clear interpretation. It simultaneously puts the combination of source-to-target transfer and out-of-set rejection beyond the demonstrated results.
Limits of the biomedical comparison
The test establishes performance on a specific transfer from Wikipedia-based training to biomedical text and relations. The authors motivate the task with other possible domains, but the conducted experiment supplies evidence about this particular pair of source and target collections. The role of SemEval-2010 task 8 is validation. Its presence in the protocol does not extend the measured biomedical test result to another target domain.
Several properties change together when the benchmark crosses domains. The source of the sentences changes, as does the inventory used to define the relations. The method of finding candidate sentences is comparable in broad outline because both collections use knowledge bases and human verification. The constituent texts and knowledge bases are different. A decline in accuracy measures the overall consequence of the transfer. The experiment leaves the individual contributions of terminology, syntax, schema, and the sampled relation inventory unresolved.
The biomedical test is built from sentences suggested by the alignment of PubMed with UMLS. Human verification addresses whether a proposed label is warranted for an instance in the collection. The alignment still defines which candidates can reach annotation. The coverage of biomedical relations and ways of expressing them depends on what the procedure surfaces and what the dataset includes. The controlled few-shot episodes therefore measure classification on the verified collection, with designated entities and sampled classes. Applying the same methods to finding relevant entities and facts throughout biomedical documents would introduce additional work outside that evaluation.
The target-supervised experiment also changes the test relation inventory when it moves biomedical relations to training. This makes the result informative about the revised task as a whole. A comparison aimed at isolating the benefit of target supervision would need a common test inventory for the settings being compared. Here the reported gains reflect a specific reallocation of labeled examples together with the resulting evaluation split. They provide a clear demonstration of headroom in that setup and leave the exact causal contribution of the additional supervision open.
Limits of the rejection experiment and its metric
The NOTA task represents out-of-set queries with instances whose true relations belong to the existing FewRel test inventory. The sentence expresses a labeled relation. What makes it a negative for the episode is the absence of that relation from the candidate set. A real stream of text can also contain pairs with no specific relation, mentions for which the connection is ambiguous, or evidence insufficient to support a proposed label. The paper motivates rejection broadly, and its controlled experiment measures the labeled out-of-set case. The behavior of the evaluated systems on those other forms of rejection remains open.
The test sampling also defines how difficult an out-of-set example can be. An instance whose underlying relation is close in meaning to an offered category may require a finer distinction than an instance expressing something quite different. The accuracy results average over the sampled queries at each rate. The paper’s treatment of the rate is about prevalence. It does not independently identify how confusing the out-of-set relations are, or report outcomes grouped by their similarity to candidate relations.
Accuracy combines successes on ordinary classifications and successes on rejections. This is appropriate for scoring the full decision problem at a given rate, and the sweep shows how that measure changes as the query mix varies. Questions about the balance of errors remain. A reader cannot infer from aggregate stability alone how often the system wrongly rejects a query that has a matching label, or how frequently it accepts an ordinary label for a query that should be rejected. Those distinctions would matter when the consequences of the two mistakes differ.
Finally, BERT-PAIR’s rejection rule depends on the available class comparisons. Its evaluation gives each ordinary relation the specified number of labeled supports and measures accuracy under the paper’s sampling scheme. The study shows how the rule performs under those conditions. It leaves open the effects of unreliable support labels, uneven support across relations, and choosing a different distribution of out-of-set queries during training. The central comparison is strongest within the controlled episodes for which the paper specifies both evidence and answer.
What came after
Where a relation classifier finds its evidence
Later citing work revisits the relation-classification problem from several angles. Learning from Context or Names? An Empirical Study on Neural Relation Extraction asks whether a relation extractor draws its evidence from the surrounding text or from the entity names. FewRel 2.0 makes that question relevant by changing the domain of the sentences while supplying new examples for each relation. If the evidence a system normally uses is tied closely to the entities or their typical contexts, its quality can change on transfer. The later study frames the evidence source itself as an empirical question. Its subject connects to BERT-PAIR’s central operation, which compares sentences containing marked entities, though FewRel 2.0 does not independently measure what part of such a sentence the classifier relies on. Learning from Context or Names?
Revisiting DocRED — Addressing the False Negative Problem in Relation Extraction addresses how negatives arise when a relation is present but treated as absent in evaluation data. In FewRel 2.0, an out-of-set query has a verified relation whose label was left off the episode’s candidate list. The rejection is correct relative to that list. A false negative in relation extraction concerns a relation that should have been identified or recorded under the task’s own definition. The two papers give complementary reasons to specify what a negative label claims, one through the set of permissible answers and the other through the completeness of relation labels. Revisiting DocRED
Generalizing across tasks and specifying unseen relations
CrossFit turns cross-task generalization into a few-shot challenge across natural language processing tasks. FewRel 2.0 asks how a learned relation classifier travels to a new corpus and relation inventory while the structure of the prediction task stays recognizable. CrossFit’s subject broadens the generalization question to changes in the task itself. Both challenges use sparse supervision to ask what learning transfers, with different choices about what stays fixed when evaluation moves away from training. CrossFit
When Does In-context Learning Fall Short and Why? A Study on Specification-Heavy Tasks investigates the limits of using context to convey a task with substantial specifications. The link to FewRel 2.0 is the information available at decision time. A FewRel episode describes its candidate classes through a small collection of labeled examples, and NOTA requires interpreting the scope of that description. The later paper takes the adequacy of the specification as its subject. That line of inquiry widens the question from whether a classifier can match a query to its supports to whether the information supplied in context is enough to convey the intended decision. When Does In-context Learning Fall Short and Why?
Aligning Instruction Tasks Unlocks Large Language Models as Zero-Shot Relation Extractors explores aligning instruction tasks for zero-shot relation extraction. The change is in how the relation-extraction problem is conveyed to the system. FewRel 2.0 presents labeled examples of the current relations, while the zero-shot direction makes instruction alignment central to performing the task without those examples. A Study on Building Efficient Zero-Shot Relation Extraction Models approaches zero-shot relation extraction through the efficiency of the system that carries it out. These works extend the question of recognizing relations under limited supervision towards the design of systems for a different source and amount of task information. Aligning Instruction Tasks · A Study on Building Efficient Zero-Shot Relation Extraction Models
Changing how classification evidence is supplied
Synthetic Data Generation with Large Language Models for Text Classification: Potential and Limitations examines whether generated examples can support text classification and where their usefulness ends. FewRel 2.0 quantifies what happens when a collection of verified examples from the target domain enters training. The synthetic-data study concerns a different way to supply classification examples when labeled data is scarce. On LLMs-Driven Synthetic Data Generation, Curation, and Evaluation surveys the connected questions of making, selecting, and evaluating generated data. Its scope encompasses the quality of evidence that a classifier receives, an issue FewRel 2.0 addresses in its own setting through knowledge-base alignment followed by human verification. Synthetic Data Generation for Text Classification · On LLMs-Driven Synthetic Data Generation, Curation, and Evaluation
LLM-MemCluster applies dynamic memory to text clustering. It connects to FewRel 2.0 through the evidence available for comparing an incoming text with others. FewRel supplies a fresh, labeled support set and asks the system to classify within the episode’s inventory. Clustering makes the groups themselves part of the problem, and dynamic memory makes retained information part of the approach to that grouping. The two designs ask different questions about what a text classification or grouping decision can use from a limited collection of examples. LLM-MemCluster
Cite
Cite as Tianyu Gao, Xu Han, Hao Zhu, Zhiyuan Liu, Peng Li, Maosong Sun and Jie Zhou. 2019. FewRel 2.0: Towards More Challenging Few-Shot Relation Classification. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP).
@inproceedings{gao2019fewrel,
title = {{FewRel 2.0: Towards More Challenging Few-Shot Relation Classification}},
author = {Tianyu Gao, Xu Han, Hao Zhu, Zhiyuan Liu, Peng Li, Maosong Sun and Jie Zhou},
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-1649},
eprint = {1910.07124},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/d19-1649}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/gao-2019-fewrel-2-0-more-challenging/
References
- Mahsa Baktashmotlagh, Mehrtash T Harandi, Brian C Lovell, and Mathieu Salzmann. 2013. Unsupervised domain adaptation by domain invariant projection. In Proceedings of ICCV, pages 769–776. OpenAlex ↗ · Scholar ↗
- John Blitzer, Ryan McDonald, and Fernando Pereira. 2006. Domain adaptation with structural correspondence learning. In Proceedings of EMNLP, pages 120–128. our card
- Razvan Bunescu and Raymond Mooney. 2007. Learning to extract relations from the web using minimal supervision. In Proceedings of ACL, pages 576–583. our card
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL-HLT, pages 4171–4186. our card
- Basura Fernando, Amaury Habrard, Marc Sebban, and Tinne Tuytelaars. 2013. Unsupervised visual domain adaptation using subspace alignment. In Proceedings of ICCV, pages 2960–2967. OpenAlex ↗ · Scholar ↗
- Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. 2016. Domain-adversarial training of neural networks. JMLR, 17(1):2096–2030. OpenAlex ↗ · Scholar ↗
- Tianyu Gao, Xu Han, Zhiyuan Liu, and Maosong Sun. 2019. Hybrid attention-based prototypical networks for noisy few-shot relation classification. In Proceedings of AAAI, pages 6407–6414. OpenAlex ↗ · Scholar ↗
- Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. 2015. Explaining and harnessing adversarial examples. In ICLR. our card
- Xu Han, Hao Zhu, Pengfei Yu, Ziyun Wang, Yuan Yao, Zhiyuan Liu, and Maosong Sun. 2018. Fewrel: A large-scale supervised few-shot relation classification dataset with state-of-the-art evaluation. In Proceedings of EMNLP, pages 4803–4809. our card
- Iris Hendrickx, Su Nam Kim, Zornitsa Kozareva, Preslav Nakov, Diarmuid Ó Séaghdha, Sebastian Padó, Marco Pennacchiotti, Lorenza Romano, and Stan Szpakowicz. 2009. Semeval-2010 task 8: Multi-way classification of semantic relations between pairs of nominals. In Proceedings of SEW-2009, pages 94–99. our card
- Mike Mintz, Steven Bills, Rion Snow, and Dan Jurafsky. 2009. Distant supervision for relation extraction without labeled data. In Proceedings of ACL-IJCNLP, pages 1003–1011. our card
- Tsendsuren Munkhdalai and Hong Yu. 2017. Meta networks. In Proceedings of ICML, pages 2554–2563. OpenAlex ↗ · Scholar ↗
- Sinno Jialin Pan, Ivor W Tsang, James T Kwok, and Qiang Yang. 2010. Domain adaptation via transfer component analysis. TNNLS, 22(2):199–210. OpenAlex ↗ · Scholar ↗
- Foster Provost and Tom Fawcett. 2001. Robust classification for imprecise environments. ML, 42(3):203–231. OpenAlex ↗ · Scholar ↗
- Sachin Ravi and Hugo Larochelle. 2017. Optimization as a model for few-shot learning. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
- Victor Garcia Satorras and Joan Bruna Estrach. 2018. Few-shot learning with graph neural networks. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
- Jake Snell, Kevin Swersky, and Richard Zemel. 2017. Prototypical networks for few-shot learning. In Proceedings of NIPS, pages 4077–4087. OpenAlex ↗ · Scholar ↗
- Livio Baldini Soares, Nicholas FitzGerald, Jeffrey Ling, and Tom Kwiatkowski. 2019. Matching the blanks: Distributional similarity for relation learning. In Proceedings of ACL, pages 2895–2905. our card
- Oriol Vinyals, Charles Blundell, Tim Lillicrap, Daan Wierstra, et al. 2016. Matching networks for one shot learning. In Proceedings of NIPS, pages 3630–3638. our card
- Denny Vrandečić and Markus Krötzsch. 2014. Wikidata: a free collaborative knowledgebase. Communications of the ACM, 57(10):78–85. our card
- Xiaozhi Wang, Xu Han, Yankai Lin, Zhiyuan Liu, and Maosong Sun. 2018. Adversarial multi-lingual neural relation extraction. In Proceedings of COLING, pages 1156–1166. OpenAlex ↗ · Scholar ↗