Probing Pre-trained Language Models for Semantic Attributes and their Values
Paper · 2021 · Meriem Beloucif and Chris Biemann
Summary
To decide which of two people is older, it helps to know that their dates of birth are the relevant facts. To decide which city is denser, it helps to recognize that population and area belong in the comparison. Beloucif and Biemann ask whether pretrained language systems reliably make these connections. Their focus is the link between a description, such as rich, and an attribute that can give it a concrete interpretation, such as net worth. A system that makes the link has identified a way to approach the question even before it looks up a figure or compares two entities.
The authors turn this question into a word-completion task. They draw entities from Wikidata and put them into handwritten sentence patterns. Some patterns give an adjective and leave the corresponding attribute blank. Others give the attribute and ask for a description, put two entities into a comparative question, or ask for a term that fits a category. The resulting dataset contains 18,327 English statements across 15 target masks. The authors draw a test sample of 120 sentences and inspect the completions produced by BERT, RoBERTa, and XLNet.
The authors judge whether the proposed words are semantically related to the supplied cue. One person completes blanks for comparison and scores well above BERT and RoBERTa, with RoBERTa ahead of BERT. XLNet gives such poor completions in this setup that the authors leave it out of the scored comparison. The differences also appear in the city examples. Among the three leading completions per city in one comparison, the paper counts 2 out of 30 as related to density for BERT and 10 out of 30 for RoBERTa. BERT can readily suggest metals in a list about gold, yet a question about the measurement needed to compare gold and silver by heaviness can produce punctuation or words about composition.
The city examples expose a further difficulty. Changing the city name can shift the predictions from words about residents to words about vegetation, energy, or other subjects, even though the sentence still calls for the same kind of attribute. The experiments show how inconsistently the expected relationship comes through in these completions. The authors propose using structured facts from Wikidata together with the lexical and semantic information in WordNet and FrameNet to train for such relationships. The study evaluates the probe and leaves that training proposal for future work.
Deep dive: Probing Pre-trained Language Models for Semantic Attributes and their Values
Beloucif and Biemann test whether pretrained language systems can connect descriptions like rich and old to attributes such as net worth and date of birth. · about 31 minutes to read
The problem and its context
From a description to a property
A comparative question can leave the basis of comparison implicit. A question about who is older mentions age through the adjective older. A source of structured facts may organize the useful evidence under date of birth. Anyone using that source has to get from the language of the question to the property used to record the facts. A similar step takes a question about how rich someone is to an attribute such as net worth. The authors study this step because the vocabulary of a question can differ from the vocabulary of the resource that can help answer it.
The paper draws on a distinction from WordNet. An attribute is a dimension such as weight, and adjectives such as light and heavy express values along that dimension. Here a value can be a qualitative description. A stored factual value has a different role. With a birth date, for instance, the stored value is the date associated with an entity, while a word such as older characterizes the entity in relation to another. The paper uses the connection between these roles to motivate the probe. A system can identify the dimension a question invokes before seeing the stored values needed to settle the comparison.
Frame semantics gives the authors another way to explain the connection. In FrameNet, an adjective can evoke a frame, a conceptual setting in which the word is understood. Rich evokes wealthiness, and old can evoke age. The frame captures a relationship that a list of interchangeable words would miss. Richness can be characterized through net worth even though the adjective and the noun phrase serve different functions in a sentence. The paper’s question therefore belongs to lexical semantics.
The distance between a description and a useful attribute can vary. Heavy points towards a dimension such as weight, while the chemistry examples also use mass. Older points towards age, and a date of birth is evidence from which age can be determined. To interpret denser in a statement about cities, a reader has to connect the adjective to the number of people in an area. The relevant route depends on what is being described and what kind of answer the sentence asks for. A test of these relationships consequently needs more than a list of adjective and noun pairs taken out of context.
The authors motivate their expectation with examples of how the words occur in ordinary text. In their discussion of Jeff Bezos’s Wikipedia page, they give 34 occurrences of net worth and 35 for the forms rich, richer, and richest considered together. They also describe a sentence tying a description of Bezos’s wealth to a rise in his net worth. Such writing supplies the connection indirectly, through the way a claim about a person is explained. Those page counts illustrate the presence of both expressions in the same source. They say little by themselves about how easily a pretrained system can reuse the relationship with a different name or a differently phrased question.
What a probe can ask
The paper situates the study among attempts to determine what pretrained text representations make available. The authors describe such representations as a common starting point for language applications and cite earlier work on contextual word representations. A contextual representation captures information about a word as it is used in a particular setting. Downstream performance motivates the question of what the representation has acquired, and a probe asks a narrower question by choosing an input and specifying what output will count as evidence. Deep Contextualized Word Representations
The related studies the authors name cover biomedical information, sentence structure, the interpretation of referring expressions, and aspects of linguistic and commonsense knowledge. In discussing syntax, they cite work that asks whether structure can be recovered from word representations. They also cite work that looks at how different kinds of sentence information are expressed within pretrained systems. Those studies illustrate the range of targets a probe can choose. This paper chooses a relation between the description of an entity and an attribute relevant to interpreting it. A Structural Probe for Finding Syntax in Word Representations
The paper places factual knowledge and commonsense probing in that same tradition. A factual probe can ask for information associated with a particular entity. An attribute probe can instead ask which field would supply the information. For an older-person question, recovering a person’s birth date and identifying birth date as the relevant property are distinct tasks. The latter can succeed even when the system lacks the facts needed to name the older person. This distinction helps explain why the authors use names from a structured resource while scoring the relationship expressed in the completion. Language Models as Knowledge Bases?
The nearest comparison in the paper is CheckList. The authors point to its tests of whether a system can recognize a collection of related items, illustrated with ordinary color words. Beloucif and Biemann retain category patterns in their own inventory, then add forms that make a description and a measurement bear on each other. Producing a member of an established category calls for one kind of association. Supplying the measurement through which a comparison can be interpreted calls for another. The paper uses both kinds of task to give the reader a point of comparison. CheckList
Why a structured source helps
A resource such as Wikidata makes the property explicit. The authors describe how stored dates of birth can support factual questions about age. They also use a question about Bezos’s wealth to illustrate how an attribute can make a qualitative request answerable through a structured field. The difficult step under study is recognizing which field matters. Once that step has been taken, another procedure can retrieve a fact or perform a comparison. This is the connection the paper draws to question answering.
The authors cite previous applications of structured or external knowledge in language processing. One example concerns deciding which expressions refer to the same person or thing. Their own use of Wikidata is earlier in the experimental process. It supplies entities and properties with which to build sentences that can be presented to a pretrained system. The possibility of integrating the structured information into training is a separate proposal. Coreference Resolution with World Knowledge
Using structured data also makes repeated tests possible. Once the researchers have identified a property that can apply to several entities, they can express the same relationship with different names. That gives the probe a way to distinguish a completion that works for a familiar example from one that continues to work when the subject changes. It also gives the researchers control over whether they are asking for a property, asking for a description, or comparing members of a category. The property inventory provides a factual basis for constructing the test, and the sentence patterns determine which aspect of the relationship the test brings into view.
The method, step by step
Making the relationship visible in a sentence
Start with the connection the authors want to test. A statement can describe a city as denser and then lead into a claim about what it has more of within an area. If the word naming the relevant thing is removed, possible completions include people, residents, or inhabitants. The sentence presents the description and enough surrounding language to suggest the intended interpretation. The blank lets the authors see which words the system favors when it has to make that interpretation explicit.
The same operation can start from the other side of the relationship. A sentence can give a measurement and omit the description or comparative term the measurement would help justify. The authors build patterns in both directions. A test that gives heavier and asks for the needed measurement looks for a concept such as mass or weight. A test that supplies the measurement and leaves a place for the qualitative term looks for a description it can support. The sentence containing the mask tells the system which grammatical role the answer has to play.
A masked prediction is a ranking over possible tokens for a marked position. A token is a unit the prediction system can propose at that position. The term matters here because the semantic relationship may naturally be expressed with more than one word, as in net worth or date of birth. The method gives the authors individual predictions that they can inspect for relatedness. The concept they intend to elicit can have a broader expression than the token returned by the prediction interface. Tokenization
From Wikidata properties to scored word completions
The steps in order.
Choosing what each pattern asks for
The paper reports 15 patterns. It describes 2 patterns for category relationships, 5 comparative patterns with masked attributes, the corresponding 5 with masked values, and 3 patterns involving a single subject. The displayed template inventory illustrates how the wording presents each task. Some sentences look like ordinary assertions with a reason or consequence. Others ask an explicit question about a pair of entities or specify that a piece of information is necessary to make a comparison. These variations put different kinds of pressure on the word that fills the blank.
The category patterns use the relations called hypernymy and hyponymy. A hypernym is a more general term, such as metal in relation to gold. A hyponym is the more specific term. In one form, the sentence supplies examples and asks for a category that includes them. In another, it names items in a coordinated list and asks for something else that could belong there. With gold, silver, and copper, the first form can elicit a word about metals or elements. With gold and iron in a list, the second can elicit a peer such as silver or tin.
Single-subject patterns put an entity into a statement and connect a characterization with some further fact about it. The city example gives the entity’s name, supplies the comparative adjective, and makes the rest of the sentence lead into a quantity. The researchers can also hide the characterization and give the property in surrounding words. A statement about something for which a place is famous offers another way to cue a related feature. The paper’s art example connects Paris, art, and museums. That is a looser association than the relationship between heaviness and weight, and its inclusion gives the study a wider range of semantic cues.
Comparative patterns mention two entities. The chemistry examples put gold and silver into a question about heaviness. In some forms the structure leads towards another adjective, such as an alternative that could be coordinated with heavier. In others it leads toward a measurement. The authors also use forms where the missing word is described as information a reader would need before making the comparison. A measurement completion is evaluated for the role it could play in answering the question. Supplying the measurement name alone does not determine which entity wins the comparison.
The authors use these forms to investigate whether a second entity helps bring out the intended attribute or value. A second name can make the comparison more explicit and can narrow the domain of the sentence. It also introduces another item whose associations can influence the completion. The pattern inventory allows those possibilities to be explored through examples. A claim about the average effect of adding an entity would require results grouped and compared on that basis, which the paper does not present.
Filling the patterns with structured data
Wikidata records statements about entities through properties and values. The paper describes a record with this structure.
(entity_id, property_id, value_id)
entity_id identifies the subject of the record. property_id identifies the relationship or field through which the subject is described. value_id identifies the value attached to the subject by that property. Parentheses group the fields into a triple, and commas separate the fields. In the paper’s example, Barack Obama is the subject, P31 identifies the instance-of property, and Q5 identifies the value human. That example explains the organization of Wikidata data. The examples used in the probe then draw on other properties relevant to the selected semantic relationships.
The records supply material for sentences, while the test instance also needs natural-language wording. The authors describe varying a configuration with one object, an attribute, and a value, and a configuration with a pair of objects and the corresponding attribute and value. Their chemistry example can involve gold alone or gold together with silver. The property and description are mass and heaviness. Their people example can involve Obama alone or Obama and Trump, with date of birth providing information relevant to age. The chosen pattern determines how those ingredients are expressed and which part is hidden.
The term object in the procedure refers to something the sentence discusses, such as a person, city, or chemical element. In the Wikidata representation the same thing can occupy the entity field. The word value likewise depends on the level of description. In a stored record it can be the factual value of a property. In a linguistic pattern it can be a word that describes how an entity stands on the attribute or one that cues a related frame. Keeping these roles straight helps explain why the predictions are words about people, weight, or age even though the underlying data resource organizes facts using identifiers.
For the date-of-birth and age relationship, the authors describe taking US presidents and making all possible combinations for that use of the pattern. Pairing entities systematically creates many examples of the same relationship. A comparative sentence can then be rebuilt around different people while retaining the same property. The city analysis uses the parallel idea of substituting names while keeping a density cue in place. The intended semantic link follows the pattern across those substitutions. One of the questions the probe asks is whether the predictions follow it as well.
The authors allow constructed sentences whose claims may be implausible. Their scoring target is whether the attribute and the description belong together in the context supplied by the pattern. A sentence suggesting that one city has more inhabitants in a given area can serve this purpose without a separate check on the comparative claim. The design makes it possible to swap entities freely for the semantic test. It also means the resulting collection has to be interpreted as a set of probes for a relationship between expressions, with factual correctness of each filled sentence outside the scoring rule.
Sampling and obtaining predictions
The construction produces 18,327 English statements across 15 target masks. The authors release the resulting data. Their prediction procedure uses the HuggingFace Transformers implementation, and they report randomly drawing 10 sentences per object–entity–value grouping to obtain a test sample of 120 intended to be uniformly distributed. The grouping is described in terms of the constructed examples. The domain shares for the full collection describe a different aspect of the data. Transformers
Each test sentence has a position to predict. The authors use the masked language prediction interface to obtain suggested tokens and their order. A prediction head is the part of the system that supplies the candidate tokens from the representation of the input sentence. The experiment reads out the behavior of the pretrained systems through this interface. There is no training stage for the proposed attribute task in the reported procedure. The dataset construction, sampling, and manual scoring are the task-specific steps.
The number of candidates the paper discusses varies with the analysis. The larger test comparison is described through manual judgments and an aggregate figure. In the city analyses, the paper explicitly displays either the five most likely BERT predictions or the three most likely predictions for each of the systems. Reading results requires keeping track of that distinction. A count among the leading candidates for a selected group of cities measures what appeared in those lists. The overall comparison describes scored answers in the wider test.
The paper uses a binary score for semantic relatedness. An answer regarded as related receives 1, and an answer judged unrelated receives 0. This permits a response such as residents to count when a sentence is meant to evoke population. The scoring decision depends on the semantic role the word could fill in the sentence. A word can be grammatical in the blank while describing a different relationship. Conversely, two responses can differ in spelling and still be acceptable because they point toward the same attribute.
The procedure has no formal prediction or loss equation beyond this scoring description. Its essential decisions are in the choice of relationship, the way the sentence expresses it, the mask position, the candidates shown by the interface, and the manual decision about relatedness. The authors later discuss supervised adaptation to semantic resources as a possible way to improve the behavior. They use fine-tuning to mean further training a pretrained system on examples targeted to a task or domain.
Experiments and results
The collection and the comparison
The constructed collection spans people, chemistry, geography, politics, and art. The paper reports that politics accounts for 26% of the collected data, chemistry for 23%, geography for 21%, people for 20%, and art for 10%. These percentages describe the collection from which test sentences are drawn. The paper describes the 120-sentence test sample through its grouping and sampling procedure, so the domain shares should be read as properties of the larger collection.
The examples show how the domains differ. A wealth-related sentence about a person uses net worth to make the meaning of richer concrete. A chemistry sentence uses mass to interpret heaviness. A geography sentence connects density to people within an area. A politics example links the relative ages of Obama and Trump to when they were born. An art example connects a city’s reputation for art to museums. Some relationships point to a physical or recorded dimension. Others express a more contingent association. The evaluator has to judge the completion within the meaning suggested by each sentence.
The main comparison is between the pretrained systems and the predictions supplied by one person. The authors ask that person to supply the word at the mask. The benchmark for each response is semantic relatedness as judged under the paper’s manual procedure. Wikidata takes no part as an answering system in that comparison. The authors use it to assemble suitable entities and properties, leaving the inference at the blank to the systems and the person.
The paper reports that the person scored substantially above both BERT and RoBERTa, and that RoBERTa scored above BERT. The overall comparison is presented in a figure and discussed in terms of that ordering, without exact aggregate values in the accompanying account. XLNet is absent from the aggregate figure. The authors describe its predictions as essentially random in their evaluation and retain its outputs in a qualitative comparison. The reported ordering for the scored systems therefore concerns BERT and RoBERTa, with a single human comparison.
The binary score makes room for acceptable wording that differs from the property used to construct an item. That choice matters for both people and systems. A person can supply an ordinary description of the quantity, while a system can propose a related word that would also make sense in the sentence. The result measures success at making the association legible to the evaluator. It does not require the response to reproduce a particular record label.
City density as a closer comparison
For the geography probe, a city is described as denser, and the blank occurs where the sentence calls for something of which it has more in a given area. The anticipated answers are words such as inhabitants, residents, and population. The pattern constrains the meaning of density by putting it into a sentence about a city and an area. The city name can vary while the rest of the cue stays in place.
The paper presents leading candidates for cities including Singapore, Sofia, New Delhi, and Freetown. In the comparison that displays three predictions per city, the authors count 2 out of 30 BERT predictions and 10 out of 30 RoBERTa predictions as related to density. The count describes candidates pooled over the displayed city examples. It does not indicate how frequently the first candidate was appropriate or how a final answer would have been selected from each list.
Density-related completion count in the city sample
RoBERTa supplies more density-related completions than BERT among the displayed candidates.
The numbers
| System or setting | Density-related completions |
|---|---|
| BERT | 2 |
| RoBERTa (this paper) | 10 |
RoBERTa gives words about people and residents for several of the cities. Its Panama City candidates include people and residents, and its Buenos Aires candidates include people and an inhabitant term. Its Mbabane candidates include energy and carbon as well as density. BERT’s outputs repeatedly include words concerning vegetation, forests, or soils. It does offer inhabitants for Asunción and Freetown. The qualitative lists show what the authors mean by a narrow success alongside widespread variation. A system can supply a population-related word for one name and move toward a substantially different topic for another.
The table also helps interpret the phrase related to density in the reported count. The lists include the word density itself repeatedly, alongside the population terms and many other possibilities. The authors report their manually assessed count without assigning a score to every displayed candidate. A city can be denser because it has more people in an area. Filling the reasoning step with a repetition of the word density serves a different role. The task asks the candidate to contribute the concept that makes sense where the blank appears.
A separate city illustration displays BERT’s five highest-ranked completions for ten randomly selected cities. The caption reports that the expected kinds of words occur 4 out of 50 times. In the discussion, the authors identify Freetown and Asunción as the cities that elicit answers about inhabitants or population. The two presentations of the city task thus give different views of the high-ranking responses. The five-candidate illustration isolates BERT, and the three-candidate comparison places BERT beside the other systems.
XLNet’s city outputs include function words, punctuation, and fragments resembling parts of city names. The New Delhi output list includes New, and the Panama City list includes Panama. One list includes density. The authors still judge the overall quality poor and give no corresponding scored aggregate for XLNet. The examples are evidence about how the system behaves when used through this particular prediction procedure. They do not by themselves resolve what is responsible for the difference between systems.
The chemistry examples
The chemistry examples range from ordinary category membership to questions about the measurement needed for a comparison. When gold, silver, and copper appear as examples of a class, BERT suggests candidates including metals and elements. When the blank lies between gold and iron in a list, the suggestions include silver, copper, and tin. These responses make the category relation explicit or supply another member of the implied class. The words fit the syntax and the subject matter of the input.
The adjective patterns elicit responses including lighter, which is directly connected to the dimension of heaviness, and candidates such as softer or thinner, which are plausible adjectives for physical objects but belong to other dimensions. When the pattern gives heavier and prompts for something that can be higher, BERT’s list includes weight along with candidates such as value and price. The expected property is present among strong alternatives. The phrasing also leaves room for interpretations grounded in other familiar things one can compare about precious metals.
The responses change again when the sentence asks what information is required to determine which material is heavier. In one version, the candidate list contains punctuation and fragments. In another, it contains a mixture including formula, alloy, ratio, and weight. The researchers give a score of 0 to the displayed responses for both of these forms. The paper’s account assigns 1 to the adjective alternatives, the comparison asking for something higher, and the category examples. Those example-level judgments expose a difference that an overall comparison alone would conceal.
In particular, weight appears in a list associated with a negative example as well as in a list associated with a positive one. The paper gives the lists and the judgments without defining a universal rule by which the presence of a relevant lower-ranked candidate changes the result. It is therefore possible to report both observations precisely. The expected measurement can be present among the candidates, and the authors can still judge the answer illustrated by that prompt unsuccessful. A score based on any acceptable candidate in a ranked list would answer a different question from a score assigned to the chosen completion.
The fluency and subject familiarity apparent in some of the chemistry responses make the failures informative. BERT readily stays within a class of materials when the sentence gives a list. It can also produce plausible words about gold and silver while missing the measurement needed for the task. The examples indicate that the system’s responses depend on the specific cue formed by the sentence as a whole. Following the topic of the sentence and identifying its intended relation can lead to different candidate words.
What the ablations show
The paper reports no formal ablation that removes a training component or reruns an otherwise fixed system. It offers controlled input substitutions, comparisons of related prompt forms, and inspections of ranked outputs. These analyses help locate the kinds of changes that accompany success or failure. They do not assign a causal effect to a system component.
Keeping the question and changing the city
The city substitution holds the form of the density statement steady while changing the named entity. The expected answer type stays the same across the substitutions. A term for people or population can explain what a denser city has more of in a given area irrespective of the actual density of the named place. This makes the example a direct test of whether the expected link survives a change in the subject. Differences in the factual population totals of the cities are beside the point of this test.
BERT’s repeated suggestions about vegetation, forests, layers, and other topics show how the candidate list can drift when the name changes. Population-related answers appear in the lists for Freetown and Asunción. The authors consider whether town in Freetown might have helped cue an interpretation about people. They report that the expectation did not carry over to Panama City. Their observation distinguishes a possible explanation for one successful name from a rule that works across names in the same probe.
RoBERTa gives better candidates by the paper’s relatedness count and still exhibits this sensitivity. For several cities the suggestions contain people or related terms. Mbabane produces a mix with an energy and carbon theme. Both examples can be true of the same system because the aggregate and the substitution ask different things. The pooled count asks how much relevant material the candidate lists contain. The substitution asks whether that material remains available under a wording change that should preserve the target answer type.
The experiment establishes a dependence of the displayed outputs on the entity name. It leaves the mechanism open. The authors describe the variation as appearing random and relate the difficulty to the distribution of linguistic material in pretraining. The comparison does not trace a candidate to a training sentence, measure how frequently each city name occurred in pretraining, or isolate an internal representation of density. The term random describes the authors’ impression of the responses. There is no accompanying statistical test of randomness.
Changing how the sentence requests an attribute
The gold and silver examples let the reader compare ways of asking about the same physical dimension. A form that links heavier to something higher gives the blank the role of a scalar property. The system proposes weight somewhere in the list. A form asking which information is needed to decide the comparison supplies the reasoning goal more explicitly and can produce punctuation or a shift towards composition. Both forms invoke heaviness, but they make different demands on the kind of continuation that fits immediately after the preceding words.
That distinction is valuable when interpreting a prompt failure. A comparative question can be clear to a person while offering several continuations that are common or plausible for the named entities. The chemistry lists include commercial concepts such as price and compositional concepts such as alloy. Both make sense in other discussions of gold and silver. Neither serves the same role as mass or weight in deciding heaviness. The placement of the blank and the cue around it determine how much the system needs to favor the relation intended by the experiment.
The two formulations about needing information also help bound the result. Their candidate lists differ dramatically, yet both receive the same reported judgment. One list contains almost no usable lexical answer. The other includes meaningful terms and a relevant measurement among them. A binary score groups these outcomes together. Looking at the predictions permits a finer distinction between failing to produce a meaningful word, following the wrong semantic relation, and placing a relevant alternative below competing candidates.
The examples do not isolate a single changed word across all of these comparisons. They vary sentence structure, the way the question is framed, and in some cases the role assigned to the blank. The evidence supports a qualitative claim about sensitivity to formulation. It does not establish how much changing any particular cue affects performance. The paper gives the candidate outputs that motivate the interpretation, along with a description of the patterns that produced them.
Recognizing a category and identifying a measurement
The category prompts offer a comparison within the same broad vocabulary. BERT sees names of chemical elements in both the successful category examples and the harder measurement questions. In a list, a continuation such as silver after gold or a class name such as metals after examples stays within a familiar semantic neighborhood. A question about which property determines heaviness asks the response to take a different role. The word has to name the relevant dimension among the several dimensions on which the listed entities could differ.
This comparison supports a specific reading of the errors. Failure to supply the measurement can coexist with useful information about what gold and silver are. The paper can show that coexistence by displaying the different prompts and responses. A general classification of relations by difficulty would need scores across matched examples. The presented chemistry cases illustrate the distinction without quantifying it across the entire set of category and attribute prompts.
The same logic applies to the direction in which a relationship is probed. A sentence that starts with a qualitative description and asks for a measurement is complementary to one that gives the measurement and asks for the description it supports. The pattern inventory covers both directions. The results do not provide separate aggregate scores for them. The study consequently shows that both are expressible within the design and gives reasons to think the direction and wording can matter. It leaves open which direction is consistently easier.
Finally, the system comparison in the city example identifies where RoBERTa’s advantage appears to come from in the displayed outputs. RoBERTa repeatedly puts a term about people among its leading candidates. BERT does so for a narrower part of the sample. That visible difference accounts for the authors’ characterization of the lists. It provides no basis for attributing the result to a particular pretraining choice or other architectural difference. The systems are compared as used, and the analysis stays at the level of proposed words.
Limitations
Limits the authors discuss
The authors call the study a case study. They use English sentences constructed from a defined set of patterns and use manual judgments to decide which completions are related. They report a small randomly selected test sample relative to the full collection, with 120 samples used for probing. The number of constructed statements indicates the scope of the resource. The results characterize the tested sample and the examples inspected in detail.
The authors also make the scope of correctness explicit. Some generated statements can be implausible as claims about the world. The score concerns whether the description and attribute fit together semantically. Consider a city sentence whose premise says that a particular place is denser. A completion about inhabitants can express the intended relationship even if the sentence gives no evidence that the city is denser than another. The authors regard that separation as acceptable for the particular task they define.
The human comparison was collected from one person. The paper notes both that fact and the ease with which the person could perform the task. The comparison shows that at least one reader could make many of the intended associations under the test conditions. Estimates of how consistently different readers choose the same words, how much they vary in approach, and how sensitive they are to ambiguous prompts would need a broader comparison.
XLNet’s status is another stated limit. The authors exclude it from the aggregate evaluation because they regard its predictions as too poor for that comparison. Its city answers remain visible as examples. Readers can inspect these outputs and see the basis for the authors’ concern. They cannot read an aggregate XLNet score from the figure that compares the person, BERT, and RoBERTa.
The authors suggest that exposure to a large amount of Wikipedia text may be insufficient to make these relationships robust in masked completions. They point to the uneven distribution of linguistic phenomena in the material as a possible explanation. The paper tests the finished systems on constructed prompts. It does not vary the amount or composition of pretraining data to test the explanation directly. The suggestion is best read as the authors’ account of a possible source of the observed behavior.
The proposed remedy also has a stated status. The authors suggest pairing Wikidata’s entities and values with semantic frames and with lexical relationships such as those in WordNet, then fine-tuning toward objectives that make those relationships easier to recover. They relate the proposal to ERNIE, which they describe as improving language representations through the integration of knowledge-graph information. Their own experiment contains no run trained on those combined resources, so it measures the behavior that motivates the proposal. Knowledge graph
Limits visible in the experimental design
A masked completion is evidence about accessible behavior under a particular input and output procedure. When the expected word is missing or given a low rank, several interpretations remain possible. The relationship may be weakly encoded. The system may favor another reading of the sentence. The prompt may fail to bring forward information that a different wording could reveal. A single mask may also be a poor fit for the most precise expression of an attribute. The experiment records the visible behavior and cannot distinguish all of these possibilities.
The gold and silver examples make this scope tangible. Different versions can elicit a relevant dimension, an associated topic such as price or composition, or punctuation. An isolated failure can therefore support a claim about reliability in the tested setup. It offers much weaker evidence for a claim that the relationship is wholly absent from the system’s representations. The paper’s conclusion uses broad language about capturing semantic similarity. The direct results concern the semantic associations recoverable through the chosen completions.
The unit of prediction matters especially when the property has a multiword name. Net worth and date of birth are natural descriptions of the information a person would seek. A single predicted token can sometimes indicate the intended idea with a synonym, a broader word, or part of the usual phrase. The authors’ relatedness judgment gives the procedure some flexibility here. The paper does not report a separate evaluation for complete multiword properties. Accordingly, the score cannot by itself establish how well a system would name the exact field to use in a subsequent lookup.
Manual judgments also draw boundaries around the intended relationships. People, residents, and inhabitants fit the city example well. Density repeats a concept in the prompt without necessarily identifying what is present in greater quantity. In chemistry, mass and weight can both be acceptable ideas in ordinary phrasing, while alloy may signal a line of reasoning about material composition without directly supplying the requested dimension. The binary scheme is straightforward, but agreeing on borderline cases depends on how the evaluator understands the sentence and which candidate or candidates are being scored. The paper illustrates the judgments without reporting agreement among independent evaluators.
Candidate ranking creates a further interpretive limit. A system that gives a suitable completion near the bottom of the displayed list has surfaced the relevant concept. A user acting on the first suggestion could still receive an unsuitable answer. The city candidate counts are therefore measures of relevant suggestions among the displayed words. They are not exact response-level accuracy figures. The overall manual comparison and the city counts should retain their separate meanings, especially because the depth of the candidate lists differs across the examples discussed.
The dataset covers multiple domains, but a domain label does not make all relationships within it equally representative. Generating many sentences with the same property and a changing list of names expands the set of instances for that relationship. It also creates close relatives among the examples. Performance on new names within a familiar pattern measures a different kind of generalization from performance on a new property or a new way of wording the same question. The paper’s random sample is suitable for inspecting the constructed data. It does not report distinct holdouts that answer those additional generalization questions.
Similarly, the pattern inventory supports several possible comparisons that the paper leaves unmeasured. It includes forms with and without a pair of entities, and it includes masks on both sides of the attribute–value relationship. The existence of those patterns does not supply a result for their average effects. The reported examples motivate those questions, while the aggregate results do not give separate estimates by pattern direction, domain, or number of entities. The city study gives the clearest evidence on substituting a name while preserving the question’s intended relation.
Using entities from Wikidata also gives structure to the instances without making the sentences natural samples of how people ask for these facts. Templates repeat cues that may be reliable for a test yet uncommon in ordinary questions. Their wording can also be less determinate than the authors intend. The pattern about something for which Paris is famous, for instance, leads towards museums by association. A pattern about weight leads toward a more direct measurement. Treating both as semantic probes is reasonable, but their results do not necessarily measure the same difficulty.
Finally, the paper’s application to comparative and factual question answering remains a motivation. An answering system would still have to identify which entity or entities are meant, retrieve usable facts, and apply whatever comparison or reasoning the question requires. The mask test observes the link between a description and the information that could help answer the question. It does not observe that complete process. The clearest practical implication of the experiment is that the link itself can fail before any lookup or comparison takes place.
What came after
A later citation appears in Xi and colleagues’ 2023 survey of large language model based agents. The survey concerns the capabilities and potential of agents built around pretrained language systems. Beloucif and Biemann examine a particular capability relevant to that broader subject. Their probe asks whether a system prompted with a description can supply the attribute needed to interpret it, and whether it still supplies that attribute when the entity changes. The Rise and Potential of Large Language Model Based Agents: A Survey
The documented connection is the survey’s citation of the probing study. The citation record does not specify whether the survey uses a particular result, discusses the city and chemistry tests, or adopts the Wikidata patterns. The paper’s specific contribution remains identifiable within that broader research context. It gives concrete examples of a step that may be required before any fact can be retrieved or acted on. A question expressed through age, wealth, or density has to be connected to information that can bear on it, and the study shows how that connection can vary with the words around the blank and with the entity named in the sentence.
Cite
Cite as Meriem Beloucif and Chris Biemann. 2021. Probing Pre-trained Language Models for Semantic Attributes and their Values. Findings of the Association for Computational Linguistics: EMNLP 2021.
@inproceedings{beloucif2021probing,
title = {{Probing Pre-trained Language Models for Semantic Attributes and their Values}},
author = {Meriem Beloucif and Chris Biemann},
booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2021},
year = {2021},
doi = {10.18653/v1/2021.findings-emnlp.218},
url = {https://doi.org/10.18653/v1/2021.findings-emnlp.218}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/beloucif-2021-probing-pre-trained-language-models/