Testing Large Language Models on Compositionality and Inference with Phrase-Level Adjective-Noun Entailment
Paper · 2022 · Lorenzo Bertolini, Julie Weeds and David Weir
Summary
A car is a vehicle, and a red car is a red vehicle. An elephant is an animal, but a small elephant need not be a small animal. A fake gun presents a different problem. Calling it a fake weapon can make sense even though calling it a weapon does not follow from the phrase. The authors use examples like these to ask whether knowledge of a relationship between words is enough to support an inference once an adjective changes the meaning of a noun. The answer depends both on the adjective and on what the inference asks us to conclude.
The paper introduces PLANE, short for Phrase-Level Adjective–Noun Entailment, an English benchmark that isolates this interaction. Each example starts with an adjective–noun phrase and asks whether it entails the original noun, a more general noun, or that more general noun with the same adjective. The authors draw phrases from Wikipedia, obtain more general nouns from WordNet, and use rules tied to adjective classes to label the resulting pairs. The benchmark contains roughly 1.9M unique inference items. Its positive label means the inference follows under the benchmark’s assumptions. Its negative label covers cases that require additional information as well as cases that would ordinarily be judged false.
The authors compare three ways of approaching the task. In-context learning supplies solved examples inside a prompt. Transfer learning asks systems trained on sentence-level inference to judge the phrase pairs. Supervised learning trains BERT directly on PLANE. The prompt results depend heavily on the phrasing and on the words used to express the labels. Systems trained on sentence inference also show pronounced preferences for particular labels. RoBERTa-large reaches a mean F1 of 61.9 in the Two–Shot experiment, while the strongest transfer setting reaches an average F1 of 60 on the same test items.
BERT trained directly on PLANE reaches mean accuracy of .85 on splits that keep whole adjectives, nouns and hypernyms separate between training and testing. When every item uses the same inference form, mean accuracy is .86. These results show that BERT can learn to classify new words’ combinations under the benchmark’s rules. The authors find that accuracy is associated with how frequently the input contains sub-word tokens, the pieces into which a tokenizer can divide words. Whole-word separation still permits these pieces to recur. The paper therefore distinguishes successful prediction on held-out vocabulary from evidence that a system has learned how adjective meanings compose.
Deep dive: Testing Large Language Models on Compositionality and Inference with Phrase-Level Adjective-Noun Entailment
PLANE tests whether adjective–noun phrases support the inferences their nouns do, and what changes when BERT is trained on the task. · about 39 minutes to read
The problem and its context
Why knowing the noun relation leaves a question open
Entailment asks what follows if a given expression applies. For the phrase pairs in PLANE, the question is whether something described by the first expression can also be described by the second. If it is a dog, it is an animal. The direction matters because the more general term animal covers things other than dogs. The broader term is a hypernym, and the narrower one is a hyponym. A relationship of this kind between individual words is called lexical entailment. It gives the authors a known starting point for testing what happens when those words appear inside larger expressions. Lexical semantics
Composition concerns how the meanings of parts contribute to the meaning of the expression they form. In an adjective–noun phrase, the contribution can involve more than narrowing the range of things a noun describes. The meaning of small depends on a comparison class, so moving from elephant to animal changes the standard against which size is assessed. Fake changes whether the noun applies in the first place. An inference procedure therefore needs to know which property of the original expression survives a particular change. The paper uses a restricted family of phrases so it can identify the change in each example and explain why some changes preserve entailment. Semantics
An individual word pair gives little purchase on this issue. Knowing the direction from gun to weapon settles the lexical relation the benchmark starts with. It leaves open whether fake gun falls under weapon, and it leaves a further question about whether fake weapon is an appropriate description. The role of the adjective becomes visible through these different destinations. This is what makes the task compositional even though the inputs are short. The judgment requires coordinating the meaning of the modifier, the relation between the nouns and the way the hypothesis is formed.
The authors treat the three destinations as different questions about the same expression. Dropping the adjective asks whether the unmodified head noun still applies. Dropping the adjective and broadening the noun asks whether the phrase licenses a more general unmodified description. Broadening the noun while keeping the adjective asks whether the modifier continues to work in the same way at the more general level. A single score for adjective–noun reasoning can obscure these differences. The benchmark’s organizing decision is to preserve the identity of the question through data construction and analysis.
What sentence inference had been used to measure
The paper situates PLANE alongside natural language inference, usually abbreviated NLI. In an NLI task, a system reads a premise and a hypothesis and classifies their relationship. The authors describe sentence-level benchmarks that use an entailment label, a negative label and a category often called neutral or unknown. They also note arguments for handling such judgments probabilistically, especially when people differ in how certain they are that a hypothesis follows. PLANE poses a narrower question about phrases and defines its positive label by a set of rules. Natural language understanding
Sentence inference had become a common way to study composition together with the ability to draw conclusions. The authors describe a difficulty in using it for that purpose. A system can score well when features of the wording predict the label, even if the semantic relationship between the premise and hypothesis is harder to determine. Previous studies discussed in the paper identify signals such as negation, repeated words and shared syntactic structure. The concern is about the interpretation of a score. An item may reward a useful inference, but a collection of items generated or annotated in similar ways may also reward a surface pattern. Hypothesis Only Baselines in Natural Language Inference
Earlier work on semantic containment and exclusion approached inference through the relationships between expressions. The paper also points to resources for evaluating compositional sentence meaning and to work that makes inference harder through adversarial data collection. These are part of the background for asking what an inference test establishes. PLANE’s place in that line of work comes from its unit of analysis. The authors want to track a particular change inside a phrase and know how that change ought to interact with a noun relation. Modeling Semantic Containment and Exclusion in Natural Language Inference · SICK · Adversarial NLI
Benchmark structure matters here because each phrase pair is short enough for its surface form to be conspicuous. When a hypothesis consists of a noun copied from the premise, a classifier can recognize that pattern easily. Its semantic relevance still depends on the adjective. The presence of a visible pattern is therefore compatible with a well-posed test, provided that the relationship between the pattern and the label is studied. PLANE gives the authors a way to compare the same form across different adjectives and, in a separate training condition, to keep the form fixed. Evaluation & benchmarks
What earlier phrase and prompting studies established
The authors describe prior phrase-level work as less extensive than work on sentences. Baroni and colleagues had examined inferences involving adjective modifiers and quantifiers. The adjective examples relevant here asked whether a modified phrase entailed its own noun. This is an important diagnostic because it tests whether the noun still applies after modification. The authors of PLANE add questions about what happens when the target is a hypernym and when the adjective stays attached to that hypernym. They also make the modifier’s class part of the labeling and reporting. Entailment above the word level in distributional semantics
Kartsaklis and Sadrzadeh had collected human annotations for phrase entailment involving verbs and their subjects or objects. Their negative examples came from reversing positive pairs. In that design, the direction of the input pair can help identify the answer. PLANE starts from a valid noun-to-hypernym relation even when the phrase-level label is negative. As a result, an evaluator cannot settle a case such as a modified noun and its hypernym simply by noticing that the lexical relation runs in the expected direction. The benchmark also avoids making the absence of a noun relation the explanation for a negative phrase label.
Kober and colleagues used examples involving compound nouns and adjective–noun phrases to augment data for lexical entailment. The paper describes their approach as excluding intensional adjectives and treating the remaining modifiers as preserving the inference from the noun to its unmodified hypernym. PLANE makes the omitted class an explicit test condition. It also adds the modified hypernym as a possible hypothesis. This lets an evaluator study where modifier behavior changes the result even when the base noun relation is known.
A separate line of work put adjective modification inside full sentences. In AddOne, the premise and hypothesis differ by the presence of an adjective, and the label can be entailment, non-entailment or unknown. Apidianaki and Garí Soler used AddOne to examine what BERT represents about properties of nouns. The PLANE authors use a system trained on AddOne as a transfer comparison because the two tasks share an interest in adjective modification. The difference in what the labels describe remains consequential. A sentence can bring in expectations about speakers’ intentions and what they are referring to, while a PLANE item asks what follows from a phrase and a lexical relation under its stated assumptions. BERT
Prompting offered another route to evidence. A prompt presents a question or incomplete statement in the system’s ordinary text input. The authors discuss prior uses that retrieved factual associations or probed for lexical relations through a missing word. Hanna and Mareček found evidence that BERT retains information about which words are hypernyms of others, with results sensitive to the prompt’s structure. Garí Soler and Apidianaki examined knowledge about the relative intensity of scalar adjectives. These findings address parts of PLANE’s problem. A system might recover a hypernym or recognize a gradation among adjectives without reliably applying a modifier-dependent inference rule. Language Models as Knowledge Bases? · Inducing Relational Knowledge from BERT · Ranking Scalar Adjectives with Contextualised Representations
The paper also points to work by Do and Pavlick that used carefully constructed scenarios to challenge learned associations between entities. Those experiments motivate looking at what happens when familiar associations stop being reliable. PLANE poses a related question by making the same kinds of noun relationship compatible with different answers and by testing whether supplied examples help a system discover which answer is warranted. The authors examine systems based on the Transformer, an architecture that uses attention to combine information across positions in an input. Their interest is in what can be elicited after pretraining, what carries over after sentence-inference training and what becomes learnable with direct supervision on the phrase task. Transformer and attention · Attention Is All You Need · Few-shot learning
The method, step by step
Start from a phrase and a known noun relationship
The starting point is a phrase such as red car and a lexical fact such as car entails vehicle. The phrase always supplies the premise. The words in that premise and the known hypernym supply the possible hypotheses. A hypothesis can be car, vehicle or red vehicle. The authors call these different inference types, abbreviated IT. The label depends on the type and on the assigned class of red. Applying this procedure to phrases with different modifiers allows the experiment to hold the underlying kind of noun relation steady while changing which conclusions follow.
The notation for the underlying noun relation is:
N ⊨ h(N)
N is the noun in the source phrase. h(N) is the particular hypernym selected for the item, with h denoting the choice of a more general noun for N. The parentheses identify the noun to which that choice applies. The sign ⊨ means that the expression on the left entails the expression on the right. This relation is a condition used to construct the item. It is stronger than a claim that the two words are associated or commonly appear together.
The first inference type is:
AN ⊨ N
A is the adjective, and N is the noun it modifies. AN denotes the phrase formed from them, with juxtaposition representing modification. ⊨ again expresses entailment. In IT 1 the hypothesis is the original noun by itself. The benchmark tests whether the noun remains an applicable description once the adjective has been added. In formulas for the inference types, ⊨ shows the relation being tested. An instance receives a negative label when that relation fails under the annotation rules.
The second inference type is:
AN ⊨ h(N)
AN is the adjective–noun premise, h(N) is the selected hypernym of the noun N, and ⊨ expresses entailment. The parentheses identify N as the noun whose hypernym is chosen. In IT 2 the hypothesis removes the adjective and moves to a more general noun. This is the form that asks whether red car entails vehicle or whether fake gun entails weapon. The noun pairs support the lexical inference in each example, so the difference between the phrase labels comes from the contribution assigned to the adjective.
The third inference type is:
AN ⊨ Ah(N)
AN is the source phrase, and ⊨ is the entailment sign. A denotes the same adjective on each side. h(N) is the selected hypernym of N, so Ah(N) is the hypothesis obtained by modifying that hypernym with A. The parentheses indicate which noun the hypernym comes from. In IT 3 both the premise and the hypothesis retain the adjective. This form can distinguish cases where it is safe to broaden the noun under the modifier from cases where broadening changes the condition expressed by the modifier.
Assign labels using the modifier’s class
An intersective adjective puts the described entity in the intersection of two groups. A red car belongs among cars and among red things. If a car is a vehicle, the same object belongs among vehicles and is still red. The word red contributes the relevant property independently of whether the noun is car or vehicle. Under the rules of PLANE, the intersective class, marked I, licenses all the inference forms. The authors also give dead and Finnish as examples of intersective adjectives. The classification is about the operation of the adjective in the chosen uses.
A subsective adjective selects a subset of the things described by the noun, with the noun helping determine the relevant standard. The paper’s small elephant example makes the distinction concrete. The phrase identifies an elephant, so the entity also qualifies as an animal. Calling it a small animal applies a size comparison over animals, which need not yield the same description as a comparison over elephants. The subsective class, marked S, therefore licenses IT 1 and IT 2 under the benchmark rules. IT 3 gets a negative label. The inference can succeed in particular situations, but the benchmark asks whether it follows from the stipulated information.
An intensional adjective can make the unmodified noun fail to apply. A fake gun need not be a gun, so the move from the phrase to weapon also fails as a necessary inference. The paper treats preservation of the modifier differently. A fake gun can be classified as a fake weapon because the kind of thing being imitated is itself a kind of weapon. Under the benchmark’s rules, the intensional class, marked O, gives negative labels to IT 1 and IT 2 and a positive label to IT 3. Former and possible are other examples of the class in the paper. The authors restrict how far they move up the noun hierarchy for these adjectives, since the labels become harder to justify for more remote hypernyms.
The three rules put the positive and negative instances in systematically different places. IT 1 and IT 2 have the same pattern across the classes, although their hypotheses differ. IT 3 separates the subsective class from the other classes. Intersective examples have positive labels throughout. These features matter at evaluation time. A system that knows the class and recognizes the inference type has the information needed to apply the label rules. A system that only recognizes that a noun was copied or replaced has a partial signal whose usefulness depends on the class distribution.
Choose which phrases and hypernyms enter the data
The adjective inventory begins with an English list from Lalisse and Asudeh containing 300 entries. The source labels adjectives by class and indicates forms of polysemy or context dependence. Polysemy here means a word can have multiple meanings or uses, with consequences for how its modification is interpreted. The authors supplement the list with intensional adjectives from a dictionary by Kennard and colleagues. Filtering out entries tagged as context-dependent leaves 312 unique adjectives. The paper illustrates the motivation with deep. It can express a kind of physical depth in deep lake and contribute differently in deep thinker. Assigning a single class in such cases would give the annotation procedure a weak basis for its labels. English
The source phrases come from a clean Wikipedia dump. The authors use spaCy’s en_core_web_lg pipeline to parse the text and identify adjective–noun combinations. They retain combinations with an adjective from the inventory. This step makes the premises attested phrases instead of arbitrary pairings drawn from separate adjective and noun lists. At the same time, the surrounding Wikipedia passage supplies no context to the classifier in an entailment item. What carries forward is the candidate phrase and the adjective’s assigned class. Dependency parsing · An Improved Non-monotonic Transition System for Dependency Parsing
WordNet provides the noun relationships through NLTK. The authors first check for noun synsets, which are groupings of words associated with a noun sense. This removes some phrases for which the parser’s analysis as containing a noun is questionable. Next, they start from the first synset and retrieve hypernyms no more than three steps away. A path distance measures how far the selected hypernym lies above the noun in the hierarchy. Working from the first synset fixes a reproducible lexical choice for automatic construction. The corresponding assumption about the phrase’s intended noun sense remains important when interpreting the dataset.
For phrases with intensional modifiers, the search is limited to a path distance of 1. The motivating example is alleged thief. An allegation that someone is a thief supports describing that person as an alleged criminal under the chosen noun relation. If the search continues to person, describing the individual as a person may be entirely appropriate, whereas alleged person suggests that personhood itself is in question. The further move could reverse the intended labels of the two hypernym tests. Limiting the paths reduces the scope for that problem.
The authors remove hypernym candidates expressed as bigrams or other multiword expressions. This keeps the target nouns as single words and gives the automatic generator more control over what remains when the adjective is retained or removed. It also reduces some opportunities for an idiomatic hypothesis. For test items, the authors impose a further restriction on nouns. A retained noun must occur with an adjective from each of the classes. A noun that only occurred under one class could become a signal for the answer independently of the adjective’s meaning. Requiring coverage across the classes addresses that particular source of association. Idioms & multiword expressions
How PLANE turns attested phrases into labeled inferences
The steps in order.
Turn the source records into a classification task
The source record for generation can be written as:
⟨A, N, h(N)⟩
The angle brackets enclose an ordered record, and the commas separate its entries. A is the listed adjective, N is the noun found with it, and h(N) is one of the eligible hypernyms for N. The parentheses mark N as the argument of h. Each record gives the generator the material for the inference forms. The modifier class comes from the inventory, while the hypernym relation comes from WordNet.
The generated classification item has the form:
⟨c₁, c₂, label⟩
The angle brackets enclose the item and the commas separate its fields. c₁ is the modified premise, c₂ is the hypothesis made for the chosen inference type, and label records whether the corresponding entailment holds under the annotation rules. The subscripts identify the premise and hypothesis positions. c₂ can be the source noun, the selected hypernym or the hypernym preceded by the original adjective. In the experiments, the pair is presented in different ways, but the underlying label keeps this meaning.
The negative label includes distinctions that a person might want to make in a more open-ended judgment. For instance, world knowledge about mice may make small animal an acceptable inference from small mouse. A former president might also be described as a politician in a particular setting. The benchmark treats the corresponding inferences as negative when the given lexical relation and modifier class do not suffice. The question is one of necessary entailment under the chosen information, so a label can be negative even if a fuller account of the referent would make the hypothesis plausible.
The completed dataset has 312 unique adjectives, ∼7800 unique nouns and roughly 1.9M unique inference items. These figures describe the complete benchmark, with each experimental regime using selected items or splits. The authors release PLANE and the code for the experiments. They also examine whether the Wikipedia phrases look like compositional pairings by comparing the pointwise mutual information of adjective–noun combinations across classes. That statistic concerns how strongly two words tend to occur together relative to their separate occurrence. The result of that check bears on the suitability of the collected phrases, separate from the accuracy of the label rules.
Present the task in a prompt
The in-context procedure asks a pretrained system to fill in a masked token. The masked position appears in a sentence that frames the relationship between the premise and hypothesis as a classification question. In the main Two–Shot setup, the prompt first shows solved cases using the same adjective, source noun and selected hypernym. The masked case uses the remaining inference type. This lets the authors test how the supplied class information and the pattern of demonstrated answers affect the judgment. There is no training on PLANE in this condition. Large language models
The prompt can be described by its ordered parts:
P = ⟨p₁, p₂, h⟩
P denotes the full prompt, and = specifies its composition from the elements inside the brackets. The commas mark their order. p₁ and p₂ are the solved examples in the first and second positions. h is the held-out example whose label token is masked. The subscripts indicate the order of the solved examples. In this notation h names the masked example, distinct from the use of h(N) to denote a noun hypernym.
The paper illustrates the format using big car. Suppose the demonstrations accept car as a description and reject big vehicle, with vehicle reserved for the masked case. Under the PLANE rules, that pattern identifies the adjective as subsective. Its class tells the system that the remaining inference should be accepted. Which case is left for prediction changes how much the demonstrations reveal. If the supplied answers are positive for both car and vehicle, they fit intersective and subsective adjectives alike. The predicted label for big vehicle then depends on telling those classes apart using the phrase or information already available to the system.
The authors also reverse the order of the demonstrations for each held-out inference. If the masked case uses IT 3, for instance, the solved cases can occur in the order IT 1 then IT 2 or the reverse. This is how the experiment tests a possible recency effect. The content of the solved cases stays the same while the most recent label and inference form can change. A change in performance can therefore reflect sensitivity to how the evidence is ordered.
The paper uses two prompt templates. In the Internal template, the label word sits inside the sentence and describes how well the premise serves as an example of the hypothesis. In the External template, the statement presents the premise as a type of the hypothesis, with a label appended after the statement. The authors use three pairs of label words, called verbalisers. GP stands for good and poor, TF for true and false, and PN for positive and negative. The first word in each pair expresses the positive label. The same kind of label word appears in the demonstrations and is requested at the masked position. These choices vary both the usual linguistic fit of the label and the position at which the system must predict it.
The task is scored on the first token predicted for the mask. A completion counts as the intended label when it matches the correct verbaliser. A system can also produce a token outside the target pair. The authors use F1, a classification score that reflects precision and recall, to evaluate the masked-word experiment. In the preliminary Zero–Shot experiment, the same templates are used without demonstrations. Because there is no prompt example specifying the intended label words, the authors manually map a broader set of frequent and suitable completions to positive or negative judgments. For instance, plausible can be counted as positive and implausible as negative.
The prompt experiments cover cased BERT variants and RoBERTa variants, including base and large versions of each. The authors also include counterparts from the distillation family, DistilBERT and DistilRoBERTa. They implement the experiments with the Hugging Face Transformers library and report using an NVIDIA GeForce RTX 3090. The comparison varies the pretrained system as well as the prompt, allowing the authors to ask whether the observed weaknesses recur across related architectures and training choices. RoBERTa · DistilBERT · Transformers
Change the source of training evidence
For the transfer experiment, the authors reuse the Two–Shot test items. They give each system the premise and hypothesis as a pair of inputs for text classification, in the positions a sentence-inference system normally receives sentences. They compare RoBERTa systems from Liu and colleagues and Nie and colleagues, previously tuned on NLI tasks, with a RoBERTa-base system they tune on AddOne. The output can be neutral in addition to the classifications corresponding to positive and negative PLANE labels. The authors use F1 again and examine the neutral outputs as part of the error analysis. Text classification · A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference
For supervised training, the authors use BERT-base as a sequence classifier and train it on labeled PLANE instances. Their generalisation out of distribution condition, abbreviated GOoD, separates the training and test vocabulary at the whole-word level. In each split, the adjectives, nouns and hypernyms of the test set are held out from the training set. This makes remembering how particular training adjectives were labeled insufficient as a direct strategy on the test data. The authors use 5 different train–test splits, set the maximum input length to 12 and train for 1 epoch. This procedure uses fine-tuning on the target task itself.
The One–IT condition restricts the training and test sets to IT 3. The choice matters because intersective and subsective adjectives, the largest classes, receive opposite labels on this inference form. The authors balance positive and negative examples and design the splits to keep nouns and hypernyms from serving as answer cues. They use the same training settings and sample five train–test splits. Because all items ask the same kind of question, changes in the form of the hypothesis can no longer distinguish positive from negative instances. The classifier can still use information in the lexical input, including how its words are tokenized.
A sub-word is a token corresponding to part of a word. A word held out of supervised training can contain pieces that also occur in training words. The authors group test results by adjective class and compare accuracy with the proportion of examples containing sub-words. They also examine where those pieces occur and how sets of pieces overlap between adjectives and nouns or hypernyms. This provides a way to examine residual connections between different words under a whole-word holdout. The analysis compares observed tokenization patterns and outcomes. The supervised runs use the tokenizer’s normal input representations throughout. Subword tokenization
Experiments and results
Prompts with and without solved examples
The authors begin with a preliminary Zero–Shot experiment. This condition measures what the systems can do when the wording of the prompt gives the only indication of the requested judgment. RoBERTa-base obtains mean F1 of 24.7 with a standard deviation of 17.0 in the average column for this test. RoBERTa-large obtains 24.4 with a standard deviation of 17.1. BERT-base reaches mean F1 of 21.2, while BERT-large reaches 14.8. The distilled systems score lower, with 6.5 for DistilBERT and 4.0 for DistilRoBERTa. These are comparisons within the same preliminary masked-token setting, where the authors use the broader manual mapping from completions to categories.
Results also vary by the type of adjective being tested. In Zero–Shot, RoBERTa-base scores 42.5 mean F1 for intersective examples and 8.6 for intensional examples. The difference is informative because the benchmark includes negative instances among the intensional examples, and predictions on inference types with negative labels are close to zero across the template comparison. The preliminary experiment gives the authors a reason to show the intended labels through demonstrations. Scores obtained without demonstrations depend heavily on whether the system has worked out what kind of completion the template requires.
The main Two–Shot results compare systems after both solved cases have been supplied. Each average in the chart is the paper’s mean F1 for the prompting experiment, with results collapsed across the tested formulations and verbalisers. The starred row marks the best average in this comparison.
Mean F1 across PLANE Two–Shot prompts
RoBERTa-large has the highest average across the tested formulations.
The numbers
| System or setting | F1 |
|---|---|
| BERT-base | 56.5 |
| BERT-large | 60.2 |
| DistilBERT | 52.6 |
| DistilRoBERTa | 55 |
| RoBERTa-base | 61.3 |
| RoBERTa-large (this paper) | 61.9 |
The average-column standard deviation for RoBERTa-large is 42, and the corresponding value for BERT-large is 43. These deviations summarize variation in the reported prompting condition. A reader looking only at the average ranks would miss much of what the paper investigates, because adjective class and verbaliser can make a much larger difference to observed performance than the small gaps in the overall means suggest. The scores also concern a classifier that must produce the right text label in the top position. A wrong completion can reflect a poor entailment decision, an unexpected choice of words or a combination of the two.
For all the Two–Shot systems, the highest class score is on intersective items, with intensional items scoring above subsective ones. RoBERTa-large records mean F1 of 99.4 on intersective items, 41.4 on subsective items and 44.8 on intensional items. RoBERTa-base records 97.6 for intersective items, 38.3 for subsective items and 48.1 for intensional items. With the same adjective in both demonstrations and the hypothesis, a system can answer the intersective items by repeating the demonstrated positive label. The harder classes include cases where the label needed for the masked hypothesis differs from the labels just shown.
The distilled comparisons show how aggregate and class-level rankings can tell different stories. In Two–Shot, DistilRoBERTa reaches mean F1 of 83.79 on intersective items and 61.6 on intensional ones, with mean F1 of 19.6 on subsective items. Its average is 55. DistilBERT reaches 34.4 for subsective items, even though its overall average is lower at 52.6. The performance ordering on one class therefore gives an incomplete account of how successfully a system handles cases with different label patterns.
Transfer from sentence inference
The next comparison keeps the Two–Shot test items and changes the prediction mechanism. A system tuned for sentence inference sees the two phrases in the premise and hypothesis positions and returns a classification. The Liu et al. setting uses RoBERTa tuned on MNLI. The Nie et al. setting is the RoBERTa transfer system associated with their NLI work. The AddOne comparison is tuned on sentence pairs designed around adjective modification. These comparisons test several plausible sources of prior inference training without giving the systems supervised examples from PLANE.
Average F1 on the PLANE transfer test reused from Two–Shot
The Nie et al. setting transfers better than either of the other sentence-inference settings.
The numbers
| System or setting | F1 |
|---|---|
| Liu et al. RoBERTa | 32.8 |
| Nie et al. RoBERTa (this paper) | 60 |
| AddOne RoBERTa-base | 31.2 |
The highest transfer average is close to the RoBERTa Two–Shot averages. Its class profile differs. The Nie et al. system scores 90.3 F1 on intersective items, 58.8 on subsective items and 31.1 on intensional items. In this setting, intersective items are again the easiest. Subsective items fare better than intensional ones, reversing the class order found in Two–Shot. That change fits the authors’ observation that the transfer system has a tendency to give positive answers. Positive items make up the majority of the inference forms for subsective adjectives under the benchmark rules.
The other two systems illustrate different ways transfer can go wrong. The Liu et al. system scores 17.1 F1 for intersective items, 24.1 for subsective items and 57.4 for intensional items. Its strength on the class with more negative inference forms accompanies a preference for contradiction. The AddOne system scores 35.9 on intersective items, 32.2 on subsective items and 25.5 on intensional items. Its errors frequently involve neutral predictions. That is a meaningful category in the source task. PLANE asks for a binary decision, so a tendency to abstain from choosing between the positive and negative classes degrades the transfer result.
The AddOne comparison is particularly relevant to how narrowly the results should be read. The source task already concerns adjective modification, so the system has prior training on an apparently close problem. Its low PLANE F1 shows that this kind of training is insufficient for the particular phrase judgments under study. The comparison does not isolate which aspect of transfer is responsible. It changes the meaning of the input unit and the available decision categories, and each difference could matter even when the modifier is familiar.
Direct supervision with held-out vocabulary
The supervised experiments switch to accuracy, the fraction of test items classified correctly. They also involve different splits from those used in prompting and transfer. The relevant comparison is between the two supervised conditions, each using BERT-base and each holding out whole lexical items. GOoD includes the range of inference forms. One–IT keeps only the form with a modified hypernym as the hypothesis.
BERT-base mean test accuracy on supervised PLANE splits
Holding the inference form fixed yields a similar mean accuracy.
The numbers
| System or setting | accuracy |
|---|---|
| GOoD | .85 |
| One–IT (this paper) | .86 |
For GOoD, the mean accuracy of .85 is reported with a standard deviation of .05 across splits. For One–IT, the mean accuracy of .86 has a standard deviation of .01. The star identifies the higher reported mean. The experiment changes the item pool as well as the form of an item, so the small separation between the means is best understood in the context of the question the authors posed. Strong classification remains possible when all examples have the same inference type. The lower variation in the reported One–IT runs is a feature of the sampled splits.
The paper also reports a preliminary in-distribution comparison. In that setting, adjectives, nouns, hypernyms and inference types can be shared across training and test sets, while their combinations are held apart. At a maximum sequence length of 6 tokens, the test accuracy is at chance level. At 12, the authors describe the task as trivial, and discuss residual errors at a length of 8. This experiment helps explain why the main supervised setting separates vocabulary rather than only separating combinations. With shared adjectives, a classifier can learn an adjective’s class behavior from training examples and encounter the very same adjective when predicting a new combination.
Taken together, the experimental regimes answer distinct questions. Two–Shot probes whether frozen pretrained systems respond to a small number of solved cases presented as text. Transfer tests whether a sentence classifier already tuned for inference can apply its decision categories to isolated phrases. Direct supervision asks whether a classifier trained on the benchmark can apply the labels in a test set with different whole words. The F1 and accuracy scores describe performance within those regimes. The paper’s finding about direct supervision depends on the vocabulary controls and the comparison between supervised settings, alongside the weaknesses revealed by the earlier probes.
What the ablations show
Prompt wording and answer words are part of the test
The Zero–Shot template comparison isolates a prominent source of variation. The Internal template gives the system a position where a word describing the quality of an example can fit naturally. It elicits some usable answers even without demonstrations. The External template leaves a masked token after a complete classification statement, and the authors find that the systems almost never produce a correct prediction in that format. The large change between the templates shows how much the probe depends on whether the system can interpret the requested response. It is hard to attribute failure in the External format entirely to a missing entailment relation.
The Two–Shot comparison adds examples of the label words in use. The authors still observe that the choice of those words can change which items systems solve. In the intersective class, most combinations of template and verbaliser perform very well. The PN pair accounts for much of the variation. Since every intersective hypothesis has a positive label, an increase in negative outputs is directly harmful there. The authors interpret the PN behavior as evidence of a possible preference for the negative answer when those verbalisers are used.
The subsective items make the corresponding tradeoff visible. When IT 3 is the masked case, both solved examples have positive labels and the correct prediction is negative. Most template–verbaliser combinations struggle on this item type. The External template with the PN pair is the exception the authors identify as improving IT 3. The same combination strongly harms performance elsewhere in the subsective class. A general preference for negative responses fits this pattern because it helps precisely where that label is required and interferes with positive decisions on the other forms.
Intensional examples reverse the label pattern of subsective ones. For intensional IT 3, the solved cases are negative, while the masked hypothesis should be positive. Many systems fail on this case too. The paper reports that negative preferences affect some TF results as well. Across the subsective and intensional cases, the failure on IT 3 occurs with opposite correct labels. The common feature is that the demonstrated labels agree with each other and the correct completion would break that agreement. The authors take this as evidence that systems tend to repeat the shared answer in the demonstrations, whether it is positive or negative.
The inference type left for prediction also affects how much information the solved cases contain about the adjective. In a subsective example, showing a negative judgment on the modified hypernym together with a positive judgment on either unmodified noun form is informative about the class. Showing agreement on the unmodified forms leaves ambiguity between intersective and subsective. This difference means that the prompt design tests both whether the demonstrations can support a classification and whether the system can act on their content. Repeating a displayed answer can succeed in some placements without settling either question.
Reversing the demonstrations tests a narrower hypothesis about position. If the latter example has the same label as the masked case, a system prone to following the most recent answer could gain an advantage. The paper finds a largely favorable effect of that arrangement for GP on subsective and intensional items. The other verbaliser pairs give conflicting patterns, with PN particularly inconsistent. The ordering control thus reveals sensitivity to the sequence of examples, but the observed effects vary with the vocabulary used to express the classes.
Transfer errors differ by class and inference form
The transfer analysis divides the same test items by adjective class and inference type. A single average can hide that a system is doing well mainly where its preferred answer happens to be correct. The Liu et al. comparison favors negative answers, and the Nie et al. comparison favors positive ones. Their preferences become particularly pronounced on IT 1, where the hypothesis is the premise’s own noun. That result connects an observable feature of the pair, the copied noun, with a change in the strength of the systems’ existing response tendencies.
The authors consider lexical overlap as an explanation. Earlier work they discuss found that shared words between a premise and hypothesis can serve as a cue in sentence inference. IT 1 presents an extreme case because the whole hypothesis reappears inside the phrase. An overlap-based strategy would respond to something real about the form, but the proper answer still depends on whether the adjective preserves membership in the noun’s category. An intersective phrase licenses the copied noun. An intensional phrase receives a negative label on that same form.
The proposed connection has a complication. The authors note that earlier work associated overlap in MNLI with positive answers, whereas the MNLI-tuned system in their experiment strongly favors contradiction in the relevant setting. The overlap observation identifies a potentially important input feature, and the direction of the error limits the explanation that can be carried over from the earlier analysis. AddOne offers a different comparison because its sentence pairs have overlap close to 100% by design. The paper suggests that overlap would provide little help in distinguishing labels under that training regime.
The neutral-output analysis shows another common pattern across the transfer systems. On subsective items, false neutral predictions more frequently affect positive examples. On intensional items, they more frequently affect negative examples. The AddOne system has an especially strong preference for the neutral output. Its pattern across inference forms for subsective adjectives is roughly opposite to its patterns for the other classes. The authors call attention to how similar the intersective and intensional profiles look in this comparison, given that their correct labels diverge on the forms with unmodified hypotheses. The similarity points to response behavior that a simple account of the correct label distributions would miss.
What changes when the inference form is fixed
The full GOoD splits rule out direct reuse of whole training words, yet the classifier can still observe which sort of hypothesis it has received. IT 1 repeats the noun. IT 2 gives a more general noun without the modifier. IT 3 retains the modifier on a more general noun. These forms matter to the actual annotation rules, so recognizing them can be useful. The authors ask whether strong performance depends on having access to the contrast among the forms. One–IT answers by using the same form everywhere and keeping positive and negative cases in the data.
The supervised classifier’s performance remains close to that in the full setting. This means that deciding among the inference forms is unnecessary for high accuracy on the selected IT 3 splits. Under a fixed inference form, adjective class still matters, since the subsective class has a different label from the intersective and intensional classes. A classifier can therefore do well by finding signals for the class or for the corresponding grouping of labels. The result narrows the set of plausible explanations for high scores on One–IT. It also shows how a narrower task can remove a surface cue while simplifying the semantic decision to one row of behavior per class.
The in-distribution input-length comparison gives a separate view of what the classifier can use. The authors report that two–third of the test items in that experiment have only 6 words. A maximum length of 6 tokens still gives chance-level performance, since tokens and words need not align. Some words occupy several token positions. A length limit can then cut off content from the sequence. The authors interpret the result as consistent with the split procedure suppressing simple associations between the premise alone and the answer. When the input budget reaches 12, the shared words and the inference form make the task much easier.
Associations with subword pieces
The sub-word analysis explores how a classifier can make useful distinctions among adjectives it never saw as whole training words. The authors compare class-specific accuracy across GOoD splits with how many of that class’s test sequences contain sub-words. They find that classes tend to occupy different ranges of sub-word prevalence. Where sub-words occur also differs. In the GOoD subsective items, the sub-words the authors observe come from nouns or hypernyms. The absence of pieces at the adjective position can consequently provide evidence that an instance belongs to the subsective class in those splits.
The analysis goes beyond whether a piece is present by inspecting its overlap across sets. For subsective items in GOoD, up to 60% of the noun and hypernym sub-word set overlaps with pieces used in intersective and intensional adjectives. A shared piece could make a signal less distinctive if the classifier uses it as evidence for a class. The fact that it appears in different word roles also makes location relevant. The authors offer this overlap as one possible reason why a greater presence of sub-words in subsective sequences can accompany worse accuracy.
In the GOoD analysis, intersective items have the highest proportion of sequences with sub-words. The paper reports that overlap between intersective adjective pieces and those in nouns or hypernyms is between 10 and 7%, despite the sets being similar in size. If adjective pieces are comparatively distinctive, a classifier may have more information about the class when a word is split. For intensional adjectives, as much as 65% of adjective pieces overlap with pieces in nouns and hypernyms, and circa 28% overlap with intersective adjective pieces. The authors discuss whether differences in the frequency and distinctiveness of these pieces can account for differences in accuracy.
The One–IT splits show how these relationships can change with the sampled words and restriction to one inference form. Intersective accuracy is lower in that analysis and relates less strongly to the proportion of sequences containing sub-words. The paper points to overlap of circa 50% between the pieces for adjectives and those for nouns or hypernyms as a possible explanation. It also notes that the prevalence of examples with and without sub-words is similar, which could make the presence of a piece less informative as a class signal.
The One–IT splits contain some subsective adjectives that split into pieces, unlike the subsective observations in the full setting. The authors describe their number as small and suggest that an unbroken adjective can still be a clue toward a negative label in this experiment. With only IT 3 in use, negative predictions align with the subsective class. The paper also reports a pronounced relationship between accuracy and sub-word prevalence for intensional items. It identifies a restricted inventory of 33 sub-words used for intensional adjectives in this setting and suggests that such a small set could make it easier to recognize the class. These are candidate explanations for the observed accuracies. The comparison varies naturally occurring tokenization across test items and leaves the effect of changing the token pieces themselves open.
A check on the phrases collected from Wikipedia
The authors also check whether strong word associations could indicate that the benchmark includes expressions whose meanings are difficult to recover from their parts. They use pointwise mutual information because prior work discussed in the paper associates very high scores with some multiword expressions. Very low scores can flag unusual co-occurrences. Across PLANE, the score distributions for intersective and subsective phrases are similar and extend toward higher values. Intensional phrases have a somewhat lower average and a more even distribution.
In manual checks of a subset with pointwise mutual information of 15 or higher, the authors find no idioms or multiword expressions. They report the same observation for the inspected phrases at the low end, where circa 0.1% of the phrases have scores of 0 or lower. The check concerns the quality of the starting phrases. It gives some evidence about the types of combinations the automatic extraction returned. Whether a particular hypothesis is warranted still depends on the sense of the noun, the adjective’s function and the inference rule applied to that item.
Limitations
Limits the authors identify
The authors define entailment relative to the information they assume is available. PLANE supplies the lexical hierarchy and adjective class as the basis of annotation. If a conclusion needs additional information, the benchmark treats the case as negative. Ordinary judgments can be more graded. A small mouse may count as a small animal when people take into account what they know about mice, or a former president may be called a politician under a particular description of that person. A benchmark designed to reflect those judgments would need a way to express uncertainty, dependence on context or divergence among readers. The authors identify a three-way or probabilistic label scheme as a direction for further work.
The paper also emphasizes that phrases behave differently when embedded in sentences. Japanese economy supports the category economy in isolation. In a sentence about someone going somewhere to speak on a topic, replacing the former phrase with the latter can change what listeners take the topic to be. They may interpret the broader expression as referring to a different economy or to the economy in general. Such cases bring in pragmatic expectations and commonsense knowledge. The transfer experiment covers movement in one direction, from training on sentence inference to testing on bare phrases. The authors leave open how to build a system that handles both kinds of judgment reliably. Implicature
The authors qualify the sense in which their test sets are out of distribution. The split procedure separates whole words, and the tokenizer represents words using some shared units. If a unit carries class information or its position is associated with a label, the test items can remain connected to training examples at that level. The paper also notes that sub-word pieces are rarely grounded in morphology in a way that would justify treating them as a linguistic account of composition. Their usefulness for classification can coexist with poor correspondence to the meaningful parts a linguist would identify. Morphology
There is a coverage limit in the choice of English phrases and single-word hypernyms. The authors use those restrictions to make the automatic generation tractable and the hypotheses easier to interpret. They present multiword hypernyms as material for future investigation, and they propose evaluating lexical-entailment systems on composition and extending the in-context experiments to autoregressive systems. The reported experiments concern the masked-word and classification settings they actually test. They establish no performance result for generating an answer with those proposed alternative systems.
The authors also flag a possible data issue in the Wikipedia source. Some intersective adjectives identify nationalities or religions. Phrases extracted from the dump could therefore contain stereotypes or biases present in the source. The paper raises this as a possibility and does not quantify its prevalence in PLANE. The adjective-class annotations address the formal role of a modifier in an inference. They do not adjudicate the social assumptions reflected in the original passage. Bias, fairness & safety
Limits visible in the design
The automatic process ties the data to the accuracy of the parser, the adjective inventory and the choice of noun sense. WordNet noun synsets help remove some questionable parser outputs. Selecting the first synset can still yield a hypernym for a sense different from the one used in the Wikipedia phrase. Filtering words tagged as context-dependent also leaves the annotation reliant on how the source inventory classifies the remaining words. A variety of attested phrases and the association check support the collection procedure. A human judgment about the premise, the chosen sense and each particular hypothesis would validate a different part of the construction.
The benchmark’s scale reflects an automatic expansion of lexical records into inference items. As a consequence, many examples follow the same class rules, and the same phrase can be tested against several hypotheses. The total number of inference items describes the resource’s size. The diversity of semantic operations is bounded by the chosen forms and classes. Success on a held-out lexical split therefore establishes generalisation within a deliberately specified family of inferences. Testing other phrase structures or context-dependent uses would ask a further question.
Whole-word holdout also applies to the supervised train–test split, while the starting BERT system was pretrained. An adjective that is new to supervised training can have appeared during pretraining. The weak prompting results suggest that what this probe extracts from pretraining does not suffice to solve PLANE. Direct supervision could nonetheless make existing representations easier to use, in addition to teaching a classifier about patterns in token pieces. The reported supervised experiments start from pretrained BERT and analyze associations involving the usual tokenization. They leave open the separate contributions of prior exposure, sub-word identity and the newly learned decision rule.
The GOoD and One–IT comparison supports a specific claim about the role of form. Strong performance survives in a dataset restricted to the modified-hypernym hypothesis. Since the restriction changes the training and test item pools, the comparison cannot assign a numerical effect to structural information while holding all other properties fixed. Within One–IT, grouping adjectives according to the answer they receive is sufficient for the training objective. Classification there does not reveal whether the system could explain why a comparison class changes or whether it would preserve the same reasoning in an unfamiliar construction.
The sub-word analysis likewise supports an interpretation with a clear scope. The proportions and overlaps can identify plausible cues, and the changing associations across classes and splits show why a vocabulary holdout has to be interpreted at the level of what the classifier sees. A causal test would need to manipulate the availability or identity of shared pieces while preserving the entailment task. The reported associations establish that tokenization offers information a supervised system could exploit. They leave unresolved how much of its performance actually depends on each proposed cue.
Finally, the comparison across learning regimes changes several things at once. The prompt experiment requires generating a specific verbaliser. Transfer supplies dedicated inference categories and permits neutral responses. Supervised training directly optimizes a classifier for PLANE and evaluates accuracy on its own splits. The paper is most informative when each experiment is read according to its own prediction task. Taken in that way, the results locate instability in the available prompting and transfer methods and show learnability under direct supervision, with residual uncertainty about the mechanism behind generalisation.
What came after
There are no later works to report that build on PLANE.
Cite
Cite as Lorenzo Bertolini, Julie Weeds and David Weir. 2022. Testing Large Language Models on Compositionality and Inference with Phrase-Level Adjective-Noun Entailment. Proceedings of the 29th International Conference on Computational Linguistics.
@inproceedings{bertolini2022testing,
title = {{Testing Large Language Models on Compositionality and Inference with Phrase-Level Adjective-Noun Entailment}},
author = {Lorenzo Bertolini, Julie Weeds and David Weir},
booktitle = {Proceedings of the 29th International Conference on Computational Linguistics},
year = {2022},
url = {https://aclanthology.org/2022.coling-1.359/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bertolini-2022-testing-large-language-models-compositionality/