FewRel: A Large-Scale Supervised Few-Shot Relation Classification Dataset with State-of-the-Art Evaluation
Paper · 2018 · Xu Han, Hao Zhu, Pengfei Yu et al.
Summary
A sentence can name a person and a university without saying whether the person studied there. Relation classification asks what connection the sentence expresses between two specified entities. The task becomes harder when the connection itself is unfamiliar and there are only a few labeled examples to learn from. FewRel makes that scarcity part of the test. Each question supplies a small set of examples for the candidate relations, then asks the classifier to assign a new sentence to one of them. The relations reserved for evaluation are different from those used in training. This is the setting the paper calls few-shot learning.
The authors built FewRel from Wikipedia sentences and facts recorded in Wikidata. They used those facts to find sentences with promising pairs of entities, then asked human annotators to check whether the sentences actually supported the proposed relation. The distinction matters because a fact can be true without being expressed in every sentence that mentions the entities involved. The finished dataset contains 100 relations with 700 sentences apiece. The training split contains 64 relations, the validation split 16, and the test split 20. Balancing the dataset across relations makes it possible to run many small classification tasks while controlling how many examples the classifier sees in any one task.
The evaluation compares conventional convolutional sentence classifiers adapted by fine-tuning or nearest-neighbor prediction with four approaches designed to learn from small support sets. These include a graph-based approach, a sequence-based approach, a system that generates fast-changing weights, and a Prototypical Network that represents each candidate relation by the average of its labeled examples. The paper reports that the specialized approaches, when paired with a convolutional sentence encoder, outperform the conventional adaptation strategies overall. Human readers remain substantially more accurate in the tested one-example conditions, even though they receive no relation names or extra information.
FewRel brings an experimental design used in image classification to a language problem where examples of the same class can look very different on the surface. A sentence about someone’s education can express the relation indirectly, and an unfamiliar expression may share little wording with the support example. The paper uses such variation to explain why the benchmark remains difficult and why aggregate classification accuracy leaves open questions about the kind of reasoning that a classifier uses.
Deep dive: FewRel: A Large-Scale Supervised Few-Shot Relation Classification Dataset with State-of-the-Art Evaluation
FewRel tests how well a classifier can identify an unfamiliar relation between two entities in a sentence from a handful of labeled examples. · about 35 minutes to read
The problem and its context
Classifying a connection from a sentence
In relation classification, the sentence and the two entities are already supplied. For a sentence that mentions a person, an institution, and a city, the question can concern the person and the institution even if the city figures prominently in the sentence. The classifier has to identify the connection for the designated pair. A general description of the sentence’s topic would leave that question unanswered. Fixing the pair also separates the classification decision from the broader job of finding relevant names and connections in unmarked text. Relation classification is one part of information extraction.
The authors distinguish the head and tail entities. These are roles in the connection to be classified. For an education relation with a person as the head and an institution as the tail, the roles specify whose education is at issue and where it took place. The surface order of the names can vary while the roles stay fixed. A useful sentence representation therefore has to preserve both the meaning of the words and which mentions they describe. The designated pair gives the classifier an anchor even when the surrounding sentence contains several plausible connections.
The paper situates the task in a tradition of supervised relation classification. It cites methods that compare structured patterns, methods that use learned representations, and neural approaches that turn a sentence into a vector for classification. These approaches give researchers different ways to express the evidence for a relation, but all depend on labeled data to learn what counts as evidence. A method can be effective on relations with substantial training data while offering less help when a new relation comes with only a few usable sentences. Examples of this earlier work include Kernel Methods for Relation Extraction, Improved Relation Extraction with Feature-Rich Compositional Embedding Models, and Relation Classification via Convolutional Deep Neural Network.
Finding more text and finding more labeled examples are different jobs. A collection can contain many descriptions of people and organizations while supplying little usable evidence for a specific relation. Even when a relevant sentence exists, someone or something has to connect its expression to the intended label. Conventional supervised learning makes that work especially consequential for a rare class because every mislabeled example or unrepresented expression accounts for a larger share of the available evidence. This is the problem that led the field to draw supervision from existing factual records.
What distant supervision buys, and where it fails
Distant supervision uses a fact in a knowledge base as a clue about a passage of text. If a database records a relation for a pair of entities, sentences mentioning the pair become candidates for that relation. The rule gives a researcher a way to label text at scale before reviewing individual sentences. The source of the label is distant in the sense that it comes from the factual record, while the classification decision concerns the wording and meaning of a particular sentence. The paper traces this approach through earlier work on distant supervision for relation extraction.
The weakness follows from the same rule that makes collection inexpensive. Suppose that a factual record connects a person to a university through education. A sentence can mention the person as a speaker at a university event and give no information about their schooling. Matching the names to the record still retrieves the sentence as a candidate. The source record could be correct and the name match could be correct, yet the proposed sentence label would be wrong. The gap is between a relation that holds for a pair and evidence for that relation in the text at hand.
The paper discusses that gap alongside a separate problem of frequency. In its analysis of NYT-10, about 58% of the relations have fewer than 100 instances. It describes a steep drop in performance for the relation extractor it examined as the number of available training instances fell. This makes the long tail a practical problem for relation classification. There can be substantial language data in the collection as a whole and very little material for much of the relation inventory. Automatic collection expands the pool while leaving the distribution uneven and the quality of individual labels uncertain.
Earlier work cited by the authors includes approaches for coping with labels that apply to collections of mentions and approaches for extracting evidence from different parts of a sentence. The presence of this work matters to the motivation for FewRel. The authors were already working in a field that recognized the limitations of heuristic alignment and had developed methods to deal with it. FewRel puts some of the work upstream, into the construction of a supervised evaluation set, so that label noise from the initial match need not dominate the few-example comparison. Two precedents in that account are Multi-instance Multi-label Learning for Relation Extraction and Distant Supervision for Relation Extraction via Piecewise Convolutional Neural Networks.
Changing what the test calls unfamiliar
FewRel changes the unit of generalization. A conventional classification test can hold out sentences while keeping the same relation labels during training and evaluation. FewRel sets aside entire relations. Training can still teach a system to represent sentences and notice how entities are connected. At test time, a small set of labeled sentences supplies the evidence for what each candidate relation looks like. The ability to reuse what was learned on earlier labels becomes part of the measured task.
The paper describes transfer learning as one response to sparse supervision. A system trained where examples are plentiful can be adapted where examples are scarce. Metric learning offers a different mechanism. It learns a representation in which distance can guide a decision about which examples belong together. The representation can stay useful when the set of classes changes, because a classification rule can compare new inputs to the labeled examples it receives for the current task. The authors place Matching Networks for One Shot Learning among the precedents for this approach.
Meta-learning, as the paper presents it, makes rapid adaptation an objective of the earlier learning process. Experience across tasks can teach a system how to use a small amount of supervision when the next task arrives. That idea leaves room for several mechanisms. The system might learn how to change its weights, how to put labeled and unlabeled examples in contact with one another, or how to derive a class representation from the current examples. The FewRel comparison includes methods with all of these broad properties. An earlier study cited in this context is Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks.
The authors describe much of the earlier few-shot evaluation as centered on Omniglot and mini-ImageNet, both image classification datasets. In language research, they discuss work that used additional information to handle previously unseen categories and point to recent work on few-shot text classification with multiple learned metrics. FewRel supplies a large collection of supervised relation examples organized around the same broad evaluation question as the image benchmarks. Its language-specific contribution is to make the object of transfer a semantic connection that can appear in many linguistic forms. The closest textual precedent singled out in this part of the paper is Diverse Few-Shot Text Classification with Multiple Metrics.
An abundant benchmark and a scarce test condition serve compatible purposes. The authors need many examples in the underlying dataset to build a collection of tasks, and they restrict the number exposed for a new relation in each task. A heavily skewed collection might make the evaluation depend on which rare classes happened to have enough material for both support and queries. With a common number of retained instances per relation, FewRel can vary the candidate labels and examples while keeping the visible supervision budget fixed for the comparison.
The method, step by step
Turning factual records into candidate sentences
FewRel starts with two resources that supply different kinds of evidence. Wikipedia provides the sentence in which a relation may be expressed. Wikidata supplies the entity identities and the relation that could hold between them. Links between the resources let the authors connect passages to established records. The candidate collection draws on full Wikipedia articles, giving the procedure access to expressions throughout an article. Wikidata serves as the knowledge graph for the alignment.
A Wikipedia link can identify an entity in an article, but a relevant mention can also occur without a link. To recover more of those mentions, the authors use spaCy to propose spans that could be entities. They compare the names of the proposed mentions with names in the knowledge base and link a mention when the names match. This procedure combines finding a potential name in the text with assigning it an identity in the factual records. The first of those jobs is named entity recognition.
Once the entity identities are available, a Wikidata statement can propose a label for a sentence that contains both entities. The paper represents the factual statement with the following tuple.
(e₁, e₂, r)
The parentheses enclose an ordered tuple, and commas separate its entries. The symbol e denotes an entity, the subscript ₁ identifies the head entity, and the subscript ₂ identifies the tail entity. The symbol r is the relation recorded between them in Wikidata. The order puts each entity in its role for the proposed relation.
The resulting candidate contains the sentence as well as the factual tuple.
(s, e₁, e₂, r)
Here s is the Wikipedia sentence. The symbols e₁ and e₂ identify the entities in the head and tail roles in that sentence, and r is the proposed relation inherited from the Wikidata statement. As before, parentheses group the entries and commas separate them. This record gives annotators both a passage to assess and a specific claim to assess it against.
Repeated sentences about the same pair create a second collection problem. If many examples for a relation describe the same entities, the classifier could learn that those names tend to co-occur with that label. It might then succeed on other sentences about the familiar pair even with a poor account of the sentence meaning. The authors retain 1 candidate per distinct entity pair within each relation. The scope of this rule is the entity pair inside a relation. It reduces a particular source of repetition while allowing a relation to contain many distinct pairs.
After deduplication, a relation needs at least 1000 candidates to proceed. For each relation that qualifies, the authors randomly retain 1000 candidates. Both the minimum and the cap affect the annotated collection. The minimum gives reviewers a large pool from which to find genuine positives, and the cap stops plentiful relations from consuming a greater share of the candidate slots. The resulting candidate set spans 122 relations and contains 122,000 instances. These figures describe the automatic shortlist before human screening.
How FewRel turns factual records into classification tasks
The steps in order.
Checking what each sentence supports
The annotation interface shows a candidate sentence, its two marked entities, and the relation assigned by distant supervision. It also displays the Wikidata names for the entities and the name and description of the relation. Providing the description helps reviewers apply the intended meaning consistently. The annotator checks whether the sentence supports that meaning for the designated pair. A sentence can be fluent and concern the right entities while failing that check. This is a verification task within linguistic annotation.
The authors also ask reviewers to reject incomplete sentences and falsely linked mentions. These checks address different stages of the automatic pipeline. A sentence fragment may deprive the reviewer of the evidence needed to interpret the pair. A wrong entity link can attach a fact about one person or institution to text about another with the same or a similar name. In each case the candidate fails for a reason that can be checked independently of whether the Wikidata relation is a plausible kind of connection.
A reviewer receives randomly assigned relations and assesses 20 instances of a relation before moving to another. This organization makes it possible to apply the same relation description across several consecutive decisions. Each item receives judgments from at least two people. Agreement determines the outcome when the initial reviewers concur. When they differ, the authors send the item to a third reviewer and use the decision shared by two reviewers. The objective is to make the retained label reflect more than one individual’s reading.
The paper then applies a filter at the level of whole relations. A relation needs at least 700 positive instances to remain eligible. There are 105 relations after this screen. The authors then rank these relations by free-marginal multirater kappa, an agreement statistic, and retain the top 100. A relation can therefore supply enough positives and still fall outside the final set if its annotation decisions are less consistent by this measure. The two screens protect different properties of the dataset, the number of verified examples available and the agreement behind their labels.
Every relation in the finished dataset has 700 instances. The paper supplies relation names and descriptions in its appendix and makes the dataset and baseline resources available. The descriptions serve an important role in data construction and documentation. In the test procedure, the support examples convey the class distinctions to be learned, and the human comparison specifically withholds the names of the relations. The paper therefore uses rich information to standardize the labels during construction and a much smaller amount of exposed information when it measures adaptation.
Defining a task from held-out relations
The dataset splits by relation into 64 training, 16 validation, and 20 test relations. This partition determines which labels can appear during each stage of development. Training provides experience with sentences and relation decisions. Validation provides distinct labels for choosing settings. Test relations provide the labels for the final evaluation. Within a task made from one of these pools, the visible examples constitute the support set, and a sentence awaiting classification is a query.
A support example contains a sentence, a marked entity pair, and a label. A query supplies the sentence and pair while withholding the label from the classifier. The available answers are the relations for the current task. The same support example can be looked at in two ways. It is evidence for its particular class, and it also helps distinguish that class from the other classes offered alongside it. A query must be judged with those alternatives in view. The paper expresses the overall prediction problem as a function.
F : (ℛ, 𝒮, x) ↦ y
F is the function that carries out relation classification. The colon introduces the mapping being defined. The parentheses and commas group the inputs ℛ, the candidate relation set, 𝒮, the labeled support set, and x, the query with its designated entity pair. The arrow ↦ maps those inputs to y, the predicted relation. The prediction is a member of ℛ.
The relation set itself has the following form.
ℛ = {r₁, …, rₘ}
ℛ is the set of available classes. The equals sign defines that set, whose members are enclosed in braces and separated by commas. Each r denotes a relation indexed by its subscript. The subscript ₁ marks the first relation and ₘ marks the last, with m giving the number of candidate relations. The ellipsis stands for the intervening indexed relations.
The support set can contain a specified number of examples for each relation.
𝒮 = {(x₁¹, r₁), …, (x₁ⁿ¹, r₁), …, (xₘ¹, rₘ), …, (xₘⁿᵐ, rₘ)}
𝒮 is the support set, and the equals sign assigns it the collection inside the braces. Each parenthesized pair contains an example x and its label r, separated by a comma. A subscript on x specifies the relation to which the example belongs, and the superscript gives the example’s index within that relation. Thus ¹ marks the first example for the relation in question. The final index written as ⁿ¹ for the first relation represents n₁, the number of its examples, and ⁿᵐ represents nₘ, the number for the last relation. The relation subscripts ₁ and ₘ identify the first and last classes in the set, respectively. The ellipses stand for intervening examples and the example groups for intervening relations. Each x already includes the sentence and its marked entity pair.
In the experiments, the authors use tasks with an equal number of examples per relation. The paper writes the balance conditions as follows.
N = m = |ℛ|, K = n₁ = … = nₘ
N is the number of ways, meaning the candidate relation count. It equals m and the size of ℛ, denoted by the vertical bars around the set symbol. The comma separates this condition from the shot condition. K is the number of shots, meaning the number of labeled examples available for each candidate relation. The indexed n terms give those counts for the first through the last relation. The ellipsis covers the intervening counts, and the chained equals signs say they are all the same.
The way and shot counts govern different parts of a decision. Raising the way count changes which and how many alternatives must be distinguished. Raising the shot count gives the classifier more evidence about each alternative. If the sole example of a relation expresses it in unusual language, a classifier in a one-example task has to generalize from that expression. Additional examples can reveal which cues persist across sentences and which belong to the first example’s circumstances. The paper’s experiments vary both conditions so the performance of a method can be interpreted against the evidence and alternatives it has.
Giving the classifiers a sentence representation
The comparison uses two established encoders. A sentence encoder takes the annotated sentence as input and returns a vector, a list of numbers that later parts of the system can use for comparison or classification. For each word, both encoders combine a representation of the word with a representation of its position. The former gives the encoder information about lexical identity, and the latter helps locate a word relative to the entities of interest. This matters for words whose evidential value depends on which mention they are associated with. The lexical vectors are word embeddings.
In the convolutional neural network, or CNN, a convolution operates on the input sequence and produces responses to patterns in the sentence. Max pooling summarizes those responses by preserving the strongest activation for each feature across the sequence. A nonlinear activation is part of the transformation into the final sentence vector. Pooling gives the decision procedure a representation of fixed form even when the number of words differs from sentence to sentence. The encoder can thereby pass evidence from variable-length text to a classifier that expects a vector.
The piecewise convolutional neural network, or PCNN, changes how the strongest responses are collected. It pools over pieces of the input in place of pooling over the whole sequence together. This can preserve information about where a strong feature occurred by giving different portions their own summaries. The distinction between CNN and PCNN is a choice about how to encode the sentence. The choice between fine-tuning and nearest-neighbor classification concerns the separate problem of turning the resulting representation into a decision for new labels.
Using the support set to make a decision
The conventional baselines first learn to classify the relations in the training set jointly. At evaluation, the fine-tuning baseline learns output-layer parameters from the support examples. Earlier parts of the network stay fixed during that adaptation. This setup tests a direct way of reusing a representation learned on established classes. The labeled examples for the current task provide the supervision for the new decision layer. This restricted parameter update is the baseline’s form of fine-tuning.
The nearest-neighbor baseline, called kNN for k-nearest neighbors, also learns its encoder through joint training on the training relations. When the candidate labels change, it embeds the support and query sentences and assigns a label by looking at nearby support examples in the learned space. The support labels therefore become relevant through the geometry of individual examples. This gives a direct test of whether a representation trained to classify the original relations also brings similar examples together for unfamiliar ones.
The Prototypical Network likewise works in an embedding space. It learns an embedding function, which the paper calls u, and applies that function to the examples. The prototype for a candidate relation is the average of the support embeddings for that label. A query embedding is then compared by distance to each prototype. In a one-example setting, the average is simply the embedding of the available example. With multiple support examples, the class representative incorporates all of them. The method can use the same form of decision rule in both situations because it reconstructs the prototypes for the labels on offer.
A prototype makes a specific choice about what information to preserve. It condenses the support set for a relation into a central point. A query may be close to that point even if its wording differs from every individual support sentence. Whether this works depends on the learned space. If examples of the same relation occupy distant regions, their mean can be a poor description of any of them. The architecture makes a testable bet that embeddings useful for FewRel can bring enough of the relation’s different expressions together for the average to guide a decision.
The Meta Network uses a higher-level learner to generate fast weights for a base classifier. Its slow weights are learned by minimizing classification loss, the training measure of how poorly predicted labels match target labels. The distinction gives the system both a part shaped by earlier training and a part generated for rapid adaptation. Where the fine-tuning baseline takes output parameters through an update on the support data, the Meta Network is designed to learn how to produce weights that help it respond to a new task.
The graph neural network, abbreviated GNN, represents each support or query instance as a node. A support node carries both a sentence embedding and a label representation. The label is one-hot encoded, meaning that each candidate label has a designated position and the representation indicates which position is active. Information passes between nodes through the graph. The query node can then use information from the labeled nodes when computing its prediction. The graph describes the instances in the current classification task. Its nodes are distinct from the entities in Wikidata that were used to collect the sentences.
SNAIL gives the support set a sequential form. It places labeled examples in a sequence and adds the query after them. A temporal convolution can combine signals across positions in that sequence. Attention lets the system draw on useful earlier positions, and a causal mask restricts that flow of information to the allowed direction. The sequence in this part of the architecture is a sequence of examples. It sits outside the sentence encoder, which handles the words within each example. SNAIL therefore treats reading a collection of support examples and classifying the query as operations along an ordered input.
These approaches give the same support examples different jobs. They can become data for adapting an output layer, individual neighbors, ingredients of a class average, a source of generated weights, nodes carrying label information, or steps in a sequence. The comparison asks which use of the evidence works under the same broad restriction on labeled examples. The paper selects hyper-parameters, the settings chosen outside the ordinary fitting of weights, by grid search on the validation split. Such a search evaluates combinations of candidate settings before the evaluation on test relations.
Experiments and results
The data and the tasks under comparison
The final corpus contains 100 relations with 700 instances in each. The mean sentence length is 24.99 tokens, and the corpus contains 124,577 distinct tokens. These are corpus statistics. The mean characterizes a typical amount of text presented for one classification decision, while the distinct-token count describes the vocabulary across the collection. Neither statistic counts how many examples of a relation a classifier receives in a task. That budget is specified separately by the shot condition.
The paper compares FewRel’s structure with that of Omniglot and mini-ImageNet and situates it alongside existing relation classification resources. The latter comparison includes ACE 2003-2004, TACRED, and NYT-10. In making comparisons across datasets, the authors omit no-relation instances where those datasets contain them. This keeps absence of a labeled relation from contributing to the reported comparison of positive relation examples. Another resource for that comparison is SemEval-2010 Task 8.
FewRel reports results for 5 way 1 shot, 5 way 5 shot, 10 way 1 shot, and 10 way 5 shot. The numeral before “way” refers to the number of answer categories offered in a task. The numeral before “shot” refers to the examples available for each category, with their labels visible. The query still requires a single relation prediction. The five-way tasks below show how the authors vary the amount of support with the candidate count held fixed. The star marks the setting that offers more support and that the authors treat as easier for the human comparison.
Labeled examples per candidate relation in FewRel five-way settings
Increasing the shot count gives each candidate relation more labeled support while holding the number of alternatives fixed.
The numbers
| System or setting | labeled examples per relation |
|---|---|
| 5 way 1 shot | 1 |
| 5 way 5 shot (this paper) | 5 |
The study measures predictive performance with accuracy, reported as a percentage. A prediction counts as correct if the selected relation matches the query’s assigned label. The statistic summarizes how often that decision succeeds within a setting. With the candidate count fixed, a comparison across shot budgets asks how effectively a method uses more evidence per class. With the shot count fixed, a comparison across way counts asks how it handles an expanded choice set. These readings concern the task as a whole. A sampled collection of relations can contain more or less similar alternatives, so the way count alone gives an incomplete account of the difficulty of an individual query.
Having both axes also helps explain why an accuracy value belongs with its full setting. A method can be tested with the same amount of evidence per class while facing a different selection problem. It can also face the same number of labels with much richer support for each label. The paper’s results are organized by these conditions because a single pooled result would hide the information available to the classifier for any particular prediction.
The classifier comparison
The conventional comparators are CNN and PCNN with fine-tuning or nearest-neighbor prediction. This means that the comparison does not pit the few-shot systems against a classifier that has no way to use the labeled examples. The conventional strategies have explicit mechanisms for doing so. They give the paper a stronger point of comparison than simply reusing an output layer trained for different labels. The question is whether learning mechanisms designed for sparse adaptation can improve on these straightforward uses of a relation encoder.
The authors evaluate Meta Network, GNN, SNAIL, and Prototypical Network as the specialized approaches. Their reported comparison emphasizes CNN as the encoder for these methods. In preliminary experiments, the authors describe PCNN paired with few-shot methods as performing 3-10 “percentages” worse than CNN. That is the paper’s wording for the reported accuracy gap in the preliminary encoder comparison. It gives the direction and size range given in the discussion without assigning particular values to individual methods or way-and-shot settings. The paper’s main experimental comparison accordingly focuses on the specialized methods with CNN.
The authors’ main result is that adding the specialized few-shot procedures to the CNN encoder improves accuracy over the conventional CNN and PCNN strategies in the comparison overall. Since the baselines already use training relations and labeled support, the result supports the use of a decision or adaptation procedure specifically built for learning from a small labeled set. The comparison includes procedures as different as a prototype and a graph over examples. Their joint strength relative to the conventional strategies is evidence for treating the support set as a central part of the system design.
Part of the value of the conventional baselines is that they identify the practical alternatives to such a design. Output-layer adaptation asks whether a supervised encoder already presents the right features for quickly learning a new boundary. Nearest-neighbor prediction asks whether the supervised encoder already gives a geometry in which labels can be inferred directly from examples. A gain from the specialized methods shows that the simpler transfer rules leave room for improvement under the FewRel protocol. That finding concerns the adapted systems tested in the paper and the choices validated for them.
The experiment also connects a practical question about scarce labels to an architectural one. A text encoder has to supply something useful about the relation in a sentence. A decision procedure has to translate that representation into a label drawn from the current task. The comparison puts both parts under pressure. A good mapping between support and query cannot recover evidence that the encoder never represents. A strong sentence representation can still be used poorly if the rule for deciding among new labels is ill-suited to a small support set. The results summarize how those parts perform together.
The comparison with human readers
For the human evaluation, a reader sees a labeled example for each candidate relation and one additional instance to classify. The paper uses 5 way 1 shot and 10 way 1 shot for this comparison, supplying 5 or 10 examples from different relations, respectively. The reader must decide which example illustrates the same relation as the query. Relation names and extra information are withheld. The examples thereby serve as the descriptions of the candidate relations for the readers as they do for the classification task.
This evaluation is distinct from the annotation stage. An annotator building the dataset receives the proposed relation and a detailed description, then decides whether the sentence satisfies it. A reader in the experiment must infer the intended class from an example and distinguish it from the other examples on offer. The former task checks the correctness of an assigned label. The latter tests how well the class can be inferred and reapplied with limited evidence. Confusing the two would make the human comparison appear to have access to information that the protocol withholds.
The authors restrict human testing to the one-shot cases because they regard the corresponding five-shot tasks as easier. In the settings where the comparison is made, the human results substantially exceed those of even the strongest automatic approach. That gives a reference for how much of the task a reader can resolve from very sparse demonstrations. It also keeps the gains over conventional classification in perspective. A procedure can make better use of a small support set than simple baselines and still have substantial difficulty matching expressions that people recognize as conveying the same connection.
What the ablations show
Comparisons of encoders and adaptation rules
The paper reports a preliminary encoder comparison, several comparisons of complete classification procedures, and a qualitative analysis of relation expressions. It does not report a systematic component-by-component ablation. Those forms of evidence answer different questions. Changing the encoder can indicate a preferable representation for the benchmark as configured. Comparing complete procedures tells the reader which tested combinations are stronger. Examining sentences can explain what a successful decision sometimes demands. An ablation of an individual component would be needed to measure its contribution inside a particular procedure.
The CNN and PCNN comparison is the closest the paper comes to isolating an architectural change. Both are convolutional encoders whose pooling procedures differ. In the preliminary study, the investigators found CNN more suitable when paired with the few-shot methods, leading them to concentrate the main comparison on it. This is evidence about the choice of encoder under the studied configurations. It does not resolve whether the pattern comes from pooling itself, which evidence the pooling retains, or the interaction between the encoded representation and the way each classification procedure uses it.
The conventional versus specialized comparison speaks more directly to the main design decision. A CNN can support an adapted output layer or nearest-neighbor prediction. The specialized systems instead learn procedures that are explicitly designed to use a small labeled support set. The results show the value of testing that adaptation strategy as part of relation classification, even when the underlying encoder is familiar. The experiment changes substantial portions of the decision procedure, so it supports a comparison among tested strategies without assigning causal credit to the fast weights, the attention mask, the graph, or averaging in isolation.
The way and shot changes also act as controlled variations in the task, rather than removals of architectural components. Holding the way count fixed and changing the shot count varies how much evidence the current task offers for each relation. Holding the shot count fixed and changing the way count varies how many alternatives compete for the query. These comparisons expose conditions under which a classification approach is being asked to do more. The variants can reveal dependence on an evidence budget even when they cannot tell which internal operation accounts for that dependence.
The same relation in different language
The authors highlight diversity of expression as the dataset’s principal challenge. Their qualitative discussion uses examples of the relation named educated_at. A reader can understand the point by considering what would have to transfer from the support sentence to the query. The stable element is the connection between a person and an institution. The surrounding wording can describe the background, event, or circumstance in which that connection becomes apparent. A classification procedure that mainly matches vocabulary from the support example can miss the shared relation when it appears in a different grammatical or narrative form.
An episode can therefore be hard even when each sentence, read by itself, is understandable. The reader has to work out which part of one sentence defines the candidate relation and which parts just happen to accompany it. The query might contain many overlapping words with a support example of the wrong relation, or few overlapping words with the right one. The authors’ analysis calls attention to inference as part of the work of mapping the text to the label. Their examples motivate interest in commonsense knowledge and improved causal modules as possible ways to handle some of those cases.
This qualitative analysis also explains why the method used to collect positives matters. A genuine positive can express the relation in an indirect way and still be classifiable by someone who understands the sentence. A weakly labeled co-mention can give no such evidence at all. Both can defeat a superficial classifier, but only the former poses the intended challenge in FewRel. Human screening seeks to preserve variation in how a relation is conveyed while excluding sentences where the proposed connection has no sufficient basis in the text.
The examples offer a source of hypotheses about the errors behind an aggregate accuracy score. Some mistakes may involve failure to link evidence to the intended entity pair. Others may involve failure to put a familiar connection together from unfamiliar wording. The paper does not enumerate errors by evidential category or manipulate reasoning cues independently. Its analysis shows the kinds of distinctions an assessment of reasoning would need to make, without measuring the share of performance attributable to a particular skill.
Limitations
Limits the authors identify
The authors regard few-shot relation classification as an open problem because the automatic approaches remain well below the human comparison. The variety of expressions for a single relation is their central explanation of why the benchmark is hard. A system can recover familiar textual patterns well enough to improve over the conventional baselines while still missing cases where meaning has to be inferred from less direct evidence. Their suggestions about commonsense knowledge and causal modules are directions for future work. Those additions are outside the experiments reported in the paper.
The paper also identifies the wrong-label problem in distant supervision as the reason for placing human verification after automatic retrieval. Reviewers can reject candidates that do not express the proposed relation, as well as incomplete or incorrectly linked instances. That process makes the supervised benchmark more suitable for studying scarcity, but it works only on candidates already found by the alignment procedure. The authors’ own account of the collection pipeline makes clear that factual matching is part of finding the examples, and sentence meaning is the standard for retaining them.
The authors delimit the human comparison to the 5 way 1 shot and 10 way 1 shot settings. The performance gap they observe belongs to those conditions. Their decision to omit the higher-shot human tasks follows their assessment that more examples would make those tasks easier. The measured reference is consequently specific to the information given to the participants and the choices they are asked to distinguish. It says little on its own about how human readers and classifiers would compare as the size and diversity of the support set change.
Limits implied by the dataset and protocol
The benchmark’s scarcity is imposed at evaluation. Its held-out relations have enough documented, verifiable examples to pass the collection thresholds, of which only a few are revealed in a task. This makes sparse supervision controllable, but it differs from studying a population of relations for which few suitable sentences exist anywhere in the source corpus. The long-tail observation from NYT-10 motivates FewRel. It does not establish that the retained Wikipedia relations are representative of the relations that make up that tail.
The initial corpus and the filtering stages can shape how a retained relation is expressed. A candidate needs to occur in Wikipedia, to have mentions that the procedure can link, and to have a corresponding Wikidata entry. It must then survive screening by annotators, and its relation must supply enough positives and rank sufficiently well for agreement. These conditions favor relations and expressions that can be collected reliably through the chosen route. The protocol gives evidence about performance on that resulting population of sentences. It does not measure what would happen on a collection built from a different genre or from text in which the same entity mentions are harder to link.
Agreement is also a property of the labels under a particular set of instructions. The annotators see a candidate relation and decide whether it is supported. High agreement among such decisions is useful for building a consistent benchmark. It does not classify every other relation that a sentence might express for the same pair, and a candidate that fails its assigned label can still contain information relevant to another label. The procedure verifies the example that is being collected, without providing a complete map of the sentence’s relational content.
FewRel removes repeated pairs within each relation during candidate generation, and the published experimental split is defined over relation labels. Those safeguards address two specific shortcuts, repeated exposure to a pair for one relation and learning the final answer labels during training. The paper does not define the split in terms of disjoint entity names or disjoint source articles. A careful interpretation therefore distinguishes transfer to a new relation from transfer to a corpus in which all of the people, places, institutions, and styles of description are unfamiliar.
The benchmark supplies the entity pair and restricts the answer to the candidate relations. In a broader extraction task, a system may have to locate the relevant mentions, choose which pairs merit analysis, and decide whether the text expresses any in-scope relation. The FewRel protocol isolates a smaller decision that can be assessed by comparing predicted and assigned labels. Accuracy under that protocol does not characterize error rates for entity detection, false detections of relations, or evidence that must be assembled across a document. Those would require an evaluation that exposes those choices to the classifier.
The result discussion also supports narrower claims than an architectural explanation of success. The study compares several complete ways to adapt and inspects expressive variation qualitatively. It does not assign separate effect sizes to the ability to reason, the quality of the text encoder, or the information passed between support and query. The human comparison establishes room for improvement in the matched one-shot settings. It does not identify which change to a classifier would close that gap. A targeted diagnostic would need queries that let the effects of specific evidence and operations be observed separately.
What came after
Making the benchmark harder and changing the evidence
The most direct continuation is FewRel 2.0, which takes few-shot relation classification itself as the object of a more demanding benchmark. The connection matters because difficulty can be altered through the evaluation conditions as well as through the choice of examples or classification procedure. A successor organized around a harder task keeps FewRel’s limited-supervision question central and asks how much of a method’s performance depends on the circumstances under which that question is posed. FewRel 2.0: Towards More Challenging Few-Shot Relation Classification
Matching the Blanks addresses the learning of relation representations through distributional similarity. That places its contribution at a different point in the pipeline. FewRel’s prototype and nearest-neighbor approaches both need a representation in which sentences expressing the same connection can come together. A study of distributional similarity for relation learning therefore bears on how to obtain the evidence that those decision rules compare. FewRel’s closed classification task provides a clear reason to care about that geometry because each new class has only a few examples with which to exhibit it. Matching the Blanks
Learning from Context or Names? turns the distinction between wording and identity into an empirical question for relation extraction. FewRel’s deduplication addresses one route by which knowing a specific pair can substitute for understanding the sentence. The later paper’s stated question is broader. Names can be informative even when the complete pair is unfamiliar, and context can carry useful evidence without an exact match to the support sentence. The connection between the papers is the need to tell which part of an apparently successful decision comes from the relation as expressed in the text. Learning from Context or Names?
Label verbalization and entailment approach sparse relation supervision through the meaning of a label. To verbalize a label is to express what it stands for in words. In this relation extraction setting, entailment frames the decision around whether the source text supports that verbalized connection. This is related to the judgment FewRel uses during annotation, when a reader assesses a sentence against a supplied relation description. The important difference in the experimental question is the role of the description. FewRel uses descriptions to standardize candidate verification and then tests learning from examples. The later paper makes label meaning a route into zero- and few-shot extraction. Label Verbalization and Entailment for Effective Zero and Few-Shot Relation Extraction
GPT-RE studies in-context learning for relation extraction. Its connection to FewRel is the use of examples to convey a task at the time of prediction. The original benchmark gives the examples to a dedicated classification procedure, such as a prototype computation or an adaptation step. The later approach places the examples within the context used for inference. This gives the choice and presentation of demonstrations a direct role in defining what a system sees when it decides which relation the text expresses. GPT-RE: In-context Learning for Relation Extraction
Extending limited supervision beyond the original task
Few-NERD takes few-shot evaluation to named entity recognition. The scarce supervision now concerns entity categories and how they appear in text. FewRel assumes that the pair has already been identified and asks for the connection between its members. An entity recognition benchmark asks about the mentions themselves. The shared idea is to organize a language task so that the ability to handle a category can be evaluated when only a small amount of labeled evidence is available for it. Few-NERD
CONTaiNER also addresses few-shot named entity recognition, with contrastive learning as its stated mechanism. Its relation to FewRel lies in applying learned comparison under scarce supervision to a different kind of linguistic decision. FewRel’s prototype approach needs an embedding in which diverse expressions of a connection can be grouped. Contrastive learning in the entity setting likewise puts the question of which instances should be close or distinguishable at the center of the method. The classified objects and the evidence associated with their labels differ across the two tasks. CONTaiNER: Few-Shot Named Entity Recognition via Contrastive Learning
CrossFit takes the generalization question across tasks in natural language processing. In FewRel, the candidate relation inventory changes and the underlying task of classifying a designated pair remains recognizable. A cross-task challenge enlarges the scope of what can change between earlier learning and an evaluation with a few examples. It therefore carries forward the distinction between abundant experience from earlier problems and scarce evidence for the problem currently being evaluated. CrossFit: A Few-shot Learning Challenge for Cross-task Generalization in NLP
Another branch moves from classifying a provided pair towards constructing the data or extracting the connections themselves. RelationPrompt uses prompts to generate synthetic data for zero-shot relation triplet extraction. A triplet joins the relation to its two arguments, the same pieces present in FewRel’s factual records. Generation and extraction give those pieces new roles. FewRel aligns records and sentences to find items for annotation, then supplies the pair to the classifier. RelationPrompt’s stated focus brings the availability of synthetic examples and the extraction of complete relational statements into the limited-supervision question. RelationPrompt
The later work on data-driven noise reduction in distant biomedical relation extraction revisits the other side of the FewRel design. Before any sparse-supervision experiment can be interpreted, the available labels have to be credible for the text being classified. FewRel addresses this through human verification after alignment. A study centered on noise reduction in a biomedical setting takes up the quality of distantly supplied labels as its own research problem. The connection runs through the distinction between finding a plausible fact in a database and establishing that the aligned text expresses that fact. A Data-driven Approach for Noise Reduction in Distantly Supervised Biomedical Relation Extraction
These extensions put different parts of the original design under scrutiny. Changing the benchmark changes what counts as a difficult transfer. Changing the representation changes which examples can be recognized as alike. Verbalizing a label, presenting examples in context, or generating synthetic examples changes the evidence available when supervision is scarce. The common thread is the one FewRel makes experimentally concrete. A relation can be well defined and well documented while the evidence available to a classifier in a particular decision remains small, indirect, and sensitive to how the task is constructed.
Cite
Cite as 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. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing.
@inproceedings{han2018fewrel,
title = {{FewRel: A Large-Scale Supervised Few-Shot Relation Classification Dataset with State-of-the-Art Evaluation}},
author = {Xu Han, Hao Zhu, Pengfei Yu, Ziyun Wang, Yuan Yao, Zhiyuan Liu and Maosong Sun},
booktitle = {Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing},
year = {2018},
doi = {10.18653/v1/d18-1514},
eprint = {1810.10147},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/d18-1514}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/han-2018-fewrel-large-scale-supervised-few/
References
- Yoshua Bengio. 2012. Deep learning of representations for unsupervised and transfer learning. In Proceedings of ICML. OpenAlex ↗ · Scholar ↗
- Andrew Carlson, Justin Betteridge, Estevam R Hruschka Jr, and Tom M Mitchell. 2009. Coupling semi-supervised learning of categories and relations. In Proceedings of the NAACL HLT 2009 Workshop on Semi-supervised Learning for Natural Language Processing, pages 1–9. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Rich Caruana. 1995. Learning many related tasks at the same time with backpropagation. In Proceedings of NIPS. OpenAlex ↗ · Scholar ↗
- Jeff Donahue, Yangqing Jia, Oriol Vinyals, Judy Hoffman, Ning Zhang, Eric Tzeng, and Trevor Darrell. 2014. Decaf: A deep convolutional activation feature for generic visual recognition. In Proceedings of ICML. our card
- Jun Feng, Minlie Huang, Li Zhao, Yang Yang, and Xiaoyan Zhu. 2018. Reinforcement learning for relation classification from noisy data. In Proceedings of AAAI. OpenAlex ↗ · Scholar ↗
- Chelsea Finn, Pieter Abbeel, and Sergey Levine. 2017. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of ICML. our card
- Matthew R. Gormley, Mo Yu, and Mark Dredze. 2015. Improved relation extraction with feature-rich compositional embedding models. In Proceedings of EMNLP. 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 SemEval@ACL. our card
- Raphael Hoffmann, Congle Zhang, Xiao Ling, Luke Zettlemoyer, and Daniel S Weld. 2011. Knowledge-based weak supervision for information extraction of overlapping relations. In Proceedings of ACL. OpenAlex ↗ · Scholar ↗
- Yi Yao Huang and William Yang Wang. 2017. Deep residual learning for weakly-supervised relation extraction. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
- Guoliang Ji, Kang Liu, Shizhu He, Jun Zhao, et al. 2017. Distant supervision for relation extraction with sentence-level attention and entity descriptions. In Proceedings of AAAI. OpenAlex ↗ · Scholar ↗
- Gregory Koch, Richard Zemel, and Ruslan Salakhutdinov. 2015. Siamese neural networks for one-shot image recognition. In Proceedings of ICML. OpenAlex ↗ · Scholar ↗
- Brenden M. Lake, Ruslan Salakhutdinov, and Joshua B. Tenenbaum. 2015. Human-level concept learning through probabilistic program induction. Science. OpenAlex ↗ · Scholar ↗
- Yankai Lin, Shiqi Shen, Zhiyuan Liu, Huanbo Luan, and Maosong Sun. 2016. Neural relation extraction with selective attention over instances. In Proceedings of ACL. OpenAlex ↗ · Scholar ↗
- Tianyu Liu, Kexiang Wang, Baobao Chang, and Zhifang Sui. 2017. A soft-label method for noise-tolerant distantly supervised relation extraction. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
- Bingfeng Luo, Yansong Feng, Zheng Wang, Zhanxing Zhu, Songfang Huang, Rui Yan, and Dongyan Zhao. 2017. Learning with noise: Enhance distantly supervised relation extraction with dynamic transition matrix. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pages 430–439. OpenAlex ↗ · Scholar ↗
- Yukun Ma, Erik Cambria, and Sa Gao. 2016. Label embedding for zero-shot fine-grained named entity typing. In COLING. OpenAlex ↗ · Scholar ↗
- Mike Mintz, Steven Bills, Rion Snow, and Dan Jurafsky. Distant supervision for relation extraction without labeled data. In Proceedings of ACL-IJCNLP. our card
- Nikhil Mishra, Mostafa Rohaninejad, Xi Chen, and Pieter Abbeel. 2018. A simple neural attentive meta-learner. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
- Raymond J Mooney and Razvan C Bunescu. 2006. Subsequence kernels for relation extraction. In Proceedings of NIPS. OpenAlex ↗ · Scholar ↗
- Tsendsuren Munkhdalai and Hong Yu. 2017. Meta networks. In Proceedings of ICML. OpenAlex ↗ · Scholar ↗
- Justus J Randolph. 2005. Free-marginal multirater kappa (multirater $\kappa$free): an alternative to fleiss' fixed-marginal multirater kappa. In Proceedings of JLIS. OpenAlex ↗ · Scholar ↗
- Sachin Ravi and Hugo Larochelle. 2017. Optimization as a model for few-shot learning. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
- Sebastian Riedel, Limin Yao, and Andrew McCallum. Modeling relations and their mentions without labeled text. In Proceedings of ECML-PKDD. OpenAlex ↗ · Scholar ↗
- Sebastian Riedel, Limin Yao, and Andrew D McCallum. 2010. Modeling relations and their mentions without labeled text. In Proceedings of ECML-PKDD. OpenAlex ↗ · Scholar ↗
- Benjamin Roth, Tassilo Barth, Michael Wiegand, and Dietrich Klakow. 2013. A survey of noise reduction methods for distant supervision. In Proceedings of the 2013 workshop on Automated knowledge base construction, pages 73–78. ACM. OpenAlex ↗ · Scholar ↗
- Adam Santoro, Sergey Bartunov, Matthew Botvinick, Daan Wierstra, and Timothy Lillicrap. 2016. Meta-learning with memory-augmented neural networks. In Proceedings of ICML. 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 S. Zemel. 2017. Prototypical networks for few-shot learning. In Proceedings of NIPS. OpenAlex ↗ · Scholar ↗
- Stephanie Strassel, Mark A. Przybocki, Kay Peterson, Zhiyi Song, and Kazuaki Maeda. 2008. Linguistic resources and evaluation techniques for evaluation of cross-document automatic content extraction. In Proceedings of LREC. OpenAlex ↗ · Scholar ↗
- Mihai Surdeanu, Julie Tibshirani, Ramesh Nallapati, and Christopher D Manning. 2012. Multi-instance multi-label learning for relation extraction. In Proceedings of EMNLP. our card
- Oriol Vinyals, Charles Blundell, Tim Lillicrap, Koray Kavukcuoglu, and Daan Wierstra. 2016. Matching networks for one shot learning. In Proceedings of NIPS. our card
- Yi Wu, David Bamman, and Stuart Russell. 2017. Adversarial training for relation extraction. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
- Ruobing Xie, Zhiyuan Liu, Jia Jia, Huanbo Luan, and Maosong Sun. 2016. Representation learning of knowledge graphs with entity descriptions. In AAAI. OpenAlex ↗ · Scholar ↗
- Ji Xin, Hao Zhu, Xu Han, Zhiyuan Liu, and Maosong Sun. 2018. Put it back: Entity typing with language model enhancement. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
- Mo Yu, Xiaoxiao Guo, Jinfeng Yi, Shiyu Chang, Saloni Potdar, Yu Cheng, Gerald Tesauro, Haoyu Wang, and Bowen Zhou. 2018. Diverse few-shot text classification with multiple metrics. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), volume 1, pages 1206–1215. our card
- Dmitry Zelenko, Chinatsu Aone, and Anthony Richardella. 2002. Kernel methods for relation extraction. JMLR. our card
- Daojian Zeng, Kang Liu, Yubo Chen, and Jun Zhao. 2015. Distant supervision for relation extraction via piecewise convolutional neural networks. In Proceedings of EMNLP. our card
- Daojian Zeng, Kang Liu, Siwei Lai, Guangyou Zhou, and Jun Zhao. 2014. Relation classification via convolutional deep neural network. In Proceedings of COLING. our card
- Wenyuan Zeng, Yankai Lin, Zhiyuan Liu, and Maosong Sun. 2017. Incorporating relation paths in neural relation extraction. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
- Xiangrong Zeng, Shizhu He, Kang Liu, and Jun Zhao. 2018. Large scaled relation extraction with reinforcement learning. In Proceedings of AAAI. OpenAlex ↗ · Scholar ↗
- Yuhao Zhang, Victor Zhong, Danqi Chen, Gabor Angeli, and Christopher D. Manning. 2017. Position-aware attention and supervised data improve slot filling. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗