Elamur Research

A Simple and Effective Framework for Strict Zero-Shot Hierarchical Classification

Paper · 2023 · Rohan Bhambhoria, Lei Chen and Xiaodan Zhu

Summary

A taxonomy can give a document or product a precise home, but the categories that make it precise are often the hardest to predict. An article abstract may belong to a narrow research specialty, and a product review may refer to a category with a near neighbor whose name sounds equally plausible. In both cases, the system must choose an actual category from the taxonomy. Training a classifier for every category is difficult when a few categories have many examples and a long tail has very few. Rohan Bhambhoria, Lei Chen, and Xiaodan Zhu study this problem by turning existing hierarchical datasets into long-tailed tests of text classification. The target is a leaf, the category at the end of a branch, even when branches end at different depths.

Their strict zero-shot setup gives the classifier the candidate labels and the text to classify, while leaving out examples from the target distribution for training or fine-tuning. The method begins by asking an entailment predictor how well the text supports a claim about each possible category. It then gives an initial prediction and the original text to T0pp, a large language model that can suggest a topic in its own words. Those words can be useful even when they do not name a valid category. The entailment predictor reads the text again with the generated suggestion and produces a new ranking over the official labels. Both components keep their existing parameters throughout.

The authors test the method on Web of Science abstracts and on shallow and deeper versions of the Amazon Beauty review taxonomy. T0pp alone trails the standalone entailment predictor by a wide margin. The best combined setting for each benchmark raises aggregate macro F1, a measure that gives each class equal weight. On Web of Science, where the strongest results are generally close to an already competitive entailment baseline, Primed+ reaches an aggregate macro F1 of 69.48 against 68.93 for the baseline. In the depth-2 Amazon Beauty setting, Primed reaches Top-1 accuracy of 41.22 against 34.40 for the baseline, while Top-1 macro F1 falls from 25.10 to 24.30. The deeper Beauty evaluation also shows a tradeoff at the first rank. Primed+ improves macro F1 but gives up accuracy there.

The results make a case for letting a generator suggest language and letting an entailment system retain control over the label set. The benefit depends on the kind of mistake the application can tolerate. A setting that puts the correct leaf somewhere in a shortlist can be valuable even when it makes a weaker first choice, and a gain across classes can coexist with a loss across individual items. The paper’s detailed comparisons show where each of those outcomes occurs.

Deep dive: A Simple and Effective Framework for Strict Zero-Shot Hierarchical Classification

A strict zero-shot method combines entailment and text generation to classify rare categories in Web of Science and Amazon Beauty taxonomies. · about 32 minutes to read

The problem and its context

A taxonomy asks for a specific decision

A hierarchical classification task starts with a catalog of categories arranged from broad to specific. A parent category covers a family of cases, and a child identifies a narrower part of that family. A leaf is a category with no children in the taxonomy under consideration. When the question is where an item belongs at the most specific available level, naming a broad parent leaves unfinished work. A scientific abstract assigned to a broad field still has to be placed in a specialty. A product assigned to a general group still has to be placed where a customer would expect to find it.

The paper uses e-commerce to explain why this distinction matters. Categories can grow as new kinds of products arrive, and inherited category names or placements can make them awkward to navigate. The authors describe a situation in which a shopper looking through a cream category might miss a product placed in a neighboring category. They also point to taxonomies where a category appears at a level a user would expect to be occupied by its parent or its child. The classification task is related to these design problems because an assignment only helps if it puts the item in the right place at a useful level of detail. Redesigning categories or assigning items by hand can be expensive.

What counts as sufficiently specific varies by branch. A fixed-depth decision would treat every branch as though it were organized to the same level of detail. The paper instead treats a leaf as an endpoint defined by the taxonomy. A label can be an endpoint even if another branch continues further. This matters in the deeper Amazon Beauty evaluation, where leaves drawn from different depths compete in the same task. The intended answer is the category at the end of the relevant branch, wherever that branch ends.

The authors connect that requirement to the relationship between broad and narrow categories. Evidence for a narrow category can also support a broader description of the same item. A review may plainly concern a kind of beauty product while leaving the precise product subtype uncertain. Similarity among siblings creates a different problem. The item may fit a broad parent shared by several candidates, while the detail that separates those candidates is scarce. The authors see these relationships as reasons to use a system that can assess how a piece of text bears on a category claim.

Why a long tail changes the task

The long tail describes the distribution of examples across classes. A small set of frequent categories accounts for many items. Many other categories account for few items apiece. The distinction matters because a rare label can be essential to the taxonomy even if it contributes very little to a score based on the total number of correct assignments. A classifier can make progress on the frequent classes while leaving a large part of the catalog poorly served.

There are two kinds of scarcity in the authors’ account. One concerns how often a category appears in task data. Some leaf categories have very few associated articles or reviews. The other concerns the wording of the categories themselves. A specialized research term or a precise product name may be uncommon in the text on which a language system was originally trained. The paper gives Polycythemia Vera as an example of a Web of Science tail label whose tokens may be infrequent in pretraining corpora. Scarcity in the benchmark and rarity during pretraining describe different things. A label’s benchmark count is observable in the dataset, while the paper treats exposure to its wording in pretraining as an explanation to consider.

A large catalog adds another difficulty. Many labels are wrong for a given item, and several can be plausible. The paper calls these incorrect options distractors. A distractor may be easy to dismiss if it belongs to an unrelated field or product group. It becomes more consequential when its name shares words or meaning with the intended category. Amazon Beauty supplies examples such as Bath and Bathing Accessories. Recognizing the broad subject can leave both options in play. A test with a short, carefully separated list of labels would offer little evidence about this part of the problem.

Providing worked examples in a prompt is another conceivable way to help. The authors identify a practical obstacle in Web of Science. An abstract takes up enough space that putting several abstracts in the same request can exceed the input capacity of many Transformer systems. This constrains how much few-shot learning can do in the setting the paper considers. The cited work by Min and colleagues figures in the authors’ explanation of why the information available in demonstrations matters. If a prompt cannot hold enough examples to convey the character of the inputs, the demonstration format offers limited help. Rethinking the Role of Demonstrations

The paper places these difficulties beside prior work on large pretrained systems. It cites work on few-shot prompting to illustrate why these systems had attracted attention as general-purpose predictors, and it invokes research on zero-shot reasoning, demonstrations, and term frequency when motivating the conditions it wants to test. Its concern is how such systems fare once the response has to land on a precise leaf in a catalog with many choices. A fluent answer can still be too broad, use a synonym outside the catalog, or choose a subtly different class. Language Models are Few-Shot Learners

What makes the zero-shot setting strict

In the paper’s account of previous work, ordinary zero-shot classification can train on some labels from the same data distribution and test on a separate set of unseen labels. In generalized zero-shot classification, the test set can contain a mixture of labels seen during training and labels left unseen. Both definitions concern which labels are available during task training. A system can still learn from examples drawn from the same broad setting as the eventual test items. The authors discuss these distinctions in connection with earlier research on zero-shot classification and label hierarchies. Benchmarking Zero-shot Text Classification

Here the entailment predictor brings training from natural language inference, or NLI. NLI gives a system a premise and a hypothesis and teaches it to assess their relationship. The paper uses a predictor trained on MNLI, a corpus for that kind of inference, and treats its supervision as separate from the scientific abstract and beauty review tasks. At classification time the system can see the official label names. The restriction concerns using target-distribution examples to learn how to classify those items. Describing a task in a prompt, reading the current input, and supplying the candidate inventory are compatible with that restriction. A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference

This setup has an immediate implication for what the experiment measures. If a rare category gets a correct prediction, the result shows that the components could use the input and the category information they had at inference time. The components can bring substantial knowledge learned before the experiment. A category name may even be familiar from earlier training. The task asks whether that prior knowledge and a general entailment capability can be used without adapting parameters on examples from the target distribution.

What earlier hierarchy methods supplied

The paper describes previous hierarchy research as frequently turning taxonomic categories into a flat set of labels. A prediction can then include multiple labels to represent parents and children together. That is a way to preserve assignments at different levels, but it changes the practical question. The predictor must decide which collection of labels to apply, while the leaf task here asks for a ranked decision among the most specific endpoints. The authors also emphasize the difficulty of obtaining clean labeled training data for a taxonomy, a requirement they associate with the earlier supervised approaches they discuss. HDLTex

Another line of work represents relationships among labels as a graph. The paper grants that this can organize the candidate space and assist classification. Its objection is that an organized representation does not by itself settle the downstream decision or supply task examples. The authors focus on how the meaning of a label can be tested against an input directly. The proposed procedure draws on an intuitive feature of taxonomies, that a description can support a category and make some of its rivals less plausible. It operationalizes that idea through language and entailment at inference time.

The authors position their work between two other strands. One uses entailment for zero-shot classification. Another draws on large generators to perform tasks from prompts. According to the paper, earlier studies either did not explore the combination or did so in settings that left strict zero-shot long-tail prediction unanswered. That gap shapes the experiment. The relevant comparison is with a strong closed-set entailment system as well as with an open-ended generator, since a framework that merely gives a generator a valid label vocabulary may have accomplished much of what the entailment baseline already does.

The method, step by step

Decide what the output is allowed to be

The starting point is an item and the taxonomy for its dataset. The authors refactor the benchmark so that the answer categories are leaves, with the distribution of items across those leaves shaped into a long tail. In Web of Science the item is an abstract. In Amazon Beauty it is a review. The candidate set consists of the official leaf labels for the evaluation in question. The framework can return a ranked list from that set, which lets the experiment check the quality of the leading choice as well as the quality of a shortlist.

The procedure assigns different roles to the entailment predictor and the generator. The entailment predictor starts with the authority to choose among the available labels. The generator receives a proposed topic and can contribute related language. The final decision returns to the entailment predictor, which can raise or lower a class in the ranking after reading the new wording. The paper calls attention to the possibility that a generated phrase describes an ancestor or descendant of the target. Such a phrase can help a classifier locate a more precise label even when the phrase itself is outside the list of answers.

From an abstract or review to ranked taxonomy leaves

The steps in order.

From an abstract or review to ranked taxonomy leavesStep 1: Take the text and the candidate leaf labels1. Take the text and the candidate leaf labelsStep 2: Express each candidate as a topical hypothesis2. Express each candidate as a topical hypothesisStep 3: Score the hypotheses with the entailment predictor3. Score the hypotheses with the entailment predictorStep 4: Prompt T0pp with the text and initial prediction4. Prompt T0pp with the text and initial predictionStep 5: Add T0pp’s suggestions to the original text5. Add T0pp’s suggestions to the original textStep 6: Rescore the candidate leaves with the entailment predictor6. Rescore the candidate leaves with the entailment predictor

Use entailment to get an initial ranking

The paper denotes the label set as follows.

C = {C₁, C₂, …, Cₙ}

C is the collection of allowable classes for the dataset. C₁ and C₂ are entries in that collection, and Cₙ is its last indexed entry. The subscripts distinguish classes. n is the number of classes, the ellipsis represents the intervening entries, and the braces denote a set. The indices enumerate candidates instead of indicating a rank, a category’s frequency, or its depth in the tree.

Let the abstract or review be the premise. For each candidate, form a hypothesis expressing that the passage concerns the topic named by that candidate. The category name thus appears in a sentence the NLI predictor can assess. For example, a candidate named Molecular biology would produce a claim about whether the abstract is related to molecular biology. Every candidate gets the same kind of test. The task is to find the strongest candidates relative to the particular document, with the catalog names held fixed.

∀ Cᵢ ∈ C

The symbol ∀ means that the hypothesis construction applies to every candidate. Cᵢ is the class at index i, ∈ means membership, and C is the candidate set. This notation describes the scope of the procedure. The hypotheses are evaluated over the set, including classes from other branches and any siblings that could be confused with the correct leaf.

E(X)

X is the input text. E is the entailment predictor used to make a classification from its scores over the candidates. The parentheses indicate that the predictor works on X in this initial pass. The label set is understood from the task, so the paper leaves it out of the function notation. In the combined method, the initial prediction supplies category information for the next stage. In the standalone baseline, this same kind of prediction is the end of the procedure.

Entailment means that the premise supports the hypothesis. Contradiction is the opposing relation considered in the paper. For classification here, the framing is about topical relevance. A review can discuss several products, or an abstract can straddle fields, and the scorer still needs to distinguish the available leaves. Calling the stage entailment therefore describes how the predictor evaluates category hypotheses. It does not turn topical relatedness into a formal proof that the benchmark’s preferred label is the only possible description.

The authors describe contradiction as an implicit signal that can help distinguish competing siblings. The system scores candidate claims against the input, and candidates with weaker support compete with ones that fit better. There is no separate step in the reported framework that writes a list of rejected sibling classes into the prompt. Keeping the role of contradiction clear matters because the paper also discusses what happened when the authors tried giving it an explicit role in the wording.

Give the generator a topic to work from

T0pp can be used on its own by giving it the input and a request for a topic or category. The notation for that open-ended prediction is simple.

L(X)

L is the language generator, T0pp in the experiments, and X is the document being classified. The parentheses express that the output depends on that input through a prompt. The output is generated text. It can coincide with a class in C, where C is the set of official labels, or it can use different words.

The standalone prompts make the domain legible to the generator. For Web of Science the authors ask about the field or area to which a passage belongs. Their examples put that question either before or after the abstract. For Amazon Beauty they ask what product category a review concerns, with variants that introduce the text as a review or simply put the question after the text. The prompts tell the generator what sort of answer is wanted. They do not teach it the target distribution by showing examples of abstract-to-label or review-to-label assignments.

In the proposed order, T0pp starts from the entailment prediction. It receives a prompt with the original item and an indication of what the entailment predictor found. The question asks it to describe the relevant field when the item is an abstract, or the relevant product category when the item is a review. The setup gives the generator a foothold in the official inventory and allows it to produce language beyond that inventory. In practice that can mean returning the same label in a different context, proposing a related area, or naming something more general or specific.

L(E(X))

X is the original text, E is the entailment predictor, and E(X) is the initial prediction. L is the generator, and the outer parentheses indicate that the entailment prediction conditions its answer. This is compact notation for a prompted operation. The generator still reads X, even though X appears only inside E in the shorthand. The intermediate result is a textual suggestion for use in the next pass.

The paper uses the image of a noisy knowledge graph to describe what the generator can contribute. A phrase may bring to mind a neighboring or related term that helps connect the document to a leaf name. The graph is an analogy for associations available from the generator. The procedure does not require building a graph of generated terms, adding edges to the supplied taxonomy, or performing a search down its branches. What moves from one stage to the next is language in a prompt.

A proposed category can be useful even if it would be marked wrong as an answer. In a taxonomy where the final choice is a subtype, a broad category could supply relevant context while still leaving the decision to the next pass. Conversely, a narrower phrase might describe a recognizable instance of an official class without matching the class name. Both cases explain why the method has a separate place for generation. It obtains an association that may contribute evidence, then puts that association before a scorer that knows the required output choices.

Return to the allowed categories

The final stage uses a common prompt pattern across the datasets. It presents the original passage alongside the topic language produced by T0pp, phrasing the relationship as one of support between the passage and the suggested topic. This augmented premise goes back to the entailment predictor. The hypotheses still concern the official leaf labels. A phrase outside the inventory can influence the ranking through its meaning, but it cannot become a new candidate merely by appearing in the premise.

E(L(E(X)))

X is the item, E is the entailment predictor, and L is the generator. The innermost operation, E(X), gives the first entailment prediction. The middle operation, L(E(X)), generates text conditioned on that prediction and the item. The outer E scores the candidate labels again with the generated contribution included in the premise. The notation leaves the original text implicit at the later stages. In the prompts, it is available to both the generator and the scorer on its return pass.

The authors test two versions of this design that differ in how many generator predictions enter the final premise. Primed uses one prediction from the generator after entailment initialization. Primed+ uses five. When several generated predictions are available, the added material may offer more ways for the entailment predictor to relate the passage to the intended domain. It may also contain competing or overly general descriptions. The final scorer must still decide which official leaf best fits the resulting premise. The distinction between Primed and Primed+ concerns the material supplied to the scorer. It is separate from how many final labels are retained for evaluation.

The same compact notation suggests that one could run additional passes.

E(L(E(L(… E(X)))))

X remains the source document, E denotes an entailment pass, and L denotes a generation pass. The ellipsis represents further alternations, and the parentheses indicate the order of composition from the original item outward. The expression is schematic. The reported framework is centered on the complete cycle that starts and ends with entailment and puts generation between those passes. The paper describes longer alternations as yielding comparable or marginally better results in the authors’ observations.

Keep task adaptation in the input

The framework uses BART-Large-MNLI for entailment. Its prior training provides the relationship classifier used to score premise and hypothesis pairs. T0pp supplies open-ended topic language from its existing capabilities. The authors connect their choice of T0pp to earlier results on prompted task generalization. The experiment then keeps both components fixed. It changes the text they receive and the order in which they are called. Multitask Prompted Training Enables Zero-Shot Task Generalization

Preparing the experiment therefore involves defining the leaf inventory, assembling the long-tailed evaluation data, and writing prompts that fit the kind of input. The authors use knowledge that a dataset contains scientific abstracts or product reviews when wording the question. This is task information supplied by the designer. The scorer also gets the names of the classes it has to choose from. The strict condition is maintained by withholding target-distribution training examples and leaving the parameters fixed, while still providing the information needed to ask the classification question.

The taxonomy enters chiefly through the choice of allowable leaf labels and through the meaning carried by their names. A branch can provide the conceptual reason why a broad generated phrase is relevant to a narrower answer. The inference procedure described in the paper asks about individual candidate leaves, without an explicit requirement to select a parent before its child. That makes the sequence applicable to a mixed-depth inventory. It also means that the procedure’s ability to distinguish fine categories rests heavily on the input and the language attached to the candidates.

Experiments and results

What the authors evaluate

The authors construct long-tailed versions of Web of Science and Amazon Beauty. Web of Science provides abstracts and uses a tree depth of 2. The authors make a depth-2 Amazon Beauty evaluation to match that depth while changing the domain and the type of text. Each of those evaluations contains 3000 samples. A deeper Amazon Beauty evaluation contains 5000 samples and includes leaves at depths 3, 4, and 5. Evaluating leaves as endpoints allows those classes to compete in the same inventory.

The paper’s class statistics illustrate how a dataset can offer many decisions about frequent labels and very little evidence about some rare ones. The selected Web of Science examples range from prominent scientific categories to specialized names such as Polycythemia Vera. The Beauty examples span recognizable product groups and finer distinctions. This variation matters even though the method is never trained on the resulting distributions. The distribution determines which decisions the experiment measures often, how much each class contributes to accuracy, and how much evidence is available for interpreting a class-level score.

The standalone entailment baseline is BART-Large-MNLI with 407M parameters. The authors select it for its zero-shot classification performance among architectures trained on MNLI. The standalone generation comparison uses T0pp with 11B parameters. The paper places that choice in the context of competitive benchmark performance reported for T0pp in earlier work. All of the experiments were conducted on a single Titan RTX GPU. The authors also report that using the 3B variant of T0pp in the generator role caused a substantial performance drop, although they do not provide a corresponding set of scores.

The results include both orderings of the two components. The row labeled T0pp + BART-MNLI begins with the generator. The ordinary BART-MNLI + T0pp row puts entailment first and serves as a comparison for the explicitly primed versions. Primed and Primed+ are distinguished by the quantity of text supplied from the conditioned generator. The paper explains those settings through the entailment prompts. Its account of the ordinary combined rows is less detailed, so their scores are most useful as comparisons of the reported configurations.

The main table averages results across Top-1, Top-3, and Top-5 predictions. In Top-1 accuracy, a prediction is correct when the leading class matches the reference leaf. For accuracy at a larger cutoff, the reference label can appear elsewhere within the retained ranks. Macro F1 gives each class equal weight after combining precision and recall for the class. Precision concerns how often a class prediction is correct, and recall concerns how many reference cases of the class the system retrieves. The macro average gives an infrequent label the same weight as a common label. The paper reports macro F1 at the same cutoffs, making it possible to read the results across both items and classes. An aggregate score averages across the reported cutoffs, so it must be distinguished from any particular rank-specific result.

Web of Science

For Web of Science, the standalone entailment system is already strong relative to the generator. In the aggregate comparison, T0pp gets accuracy of 10.47 and macro F1 of 11.04. BART-MNLI gets accuracy of 61.09 and macro F1 of 68.93. Starting with the generator and then using entailment raises the aggregate scores to 20.64 accuracy and 24.01 macro F1, still far below standalone entailment. This ordering matters because a score showing that entailment helps a generator does little to demonstrate a gain over the best method already available.

Primed+ is the combined setting that improves on the standalone entailment baseline in both aggregate measures for this dataset. It reaches accuracy of 61.78 and macro F1 of 69.48. The ordinary entailment-first combination reaches aggregate accuracy of 60.40 and macro F1 of 68.92. Primed reaches 60.16 and 68.81. These aggregate comparisons put the contribution of the richer final premise into perspective. Simpler entailment-first variants stay close on macro F1 and fall below the baseline on accuracy. The strongest configuration improves across both averages, with modest gaps.

Entailment-first settings and standalone baselines on Web of Science Top-1 accuracy

Primed+ leads the comparison, with the entailment-first settings closely grouped.

Entailment-first settings and standalone baselines on Web of Science Top-1 accuracyT0pp: 5.46T0pp5.46BART-MNLI: 48.10BART-MNLI48.10BART-MNLI + T0pp: 48.16BART-MNLI + T0pp48.16Primed: 48.69Primed48.69Primed+ (this paper): 49.73Primed+ (this paper)49.73
The numbers
System or settingaccuracy %
T0pp5.46
BART-MNLI48.10
BART-MNLI + T0pp48.16
Primed48.69
Primed+ (this paper)49.73

The lead is visible in Web of Science Top-1 macro F1 as well. BART-MNLI scores 51.49, Primed scores 52.78, and Primed+ reaches 53.15. At Top-3, Primed+ has accuracy of 65.23 and macro F1 of 75.96, compared with 64.73 and 75.77 for the baseline. Ordinary Primed falls below the baseline at this cutoff, with accuracy of 63.60 and macro F1 of 75.29. The choice to supply the broader set of generated predictions makes a difference to which side of the baseline the method lands on.

At Top-5, Web of Science reverses the comparison. BART-MNLI scores 70.46 in accuracy and 79.69 in macro F1. Primed+ scores 70.39 and 79.34. The paper’s ranking figure places the convergence around Top-4. Read together, these results suggest that the stronger combined setting is most useful for improving the position of a label near the top of the list. They offer little evidence that it expands coverage at the broader Web of Science cutoff. A system that returns a single label and one that gives a reader a shortlist would therefore see different benefits from the same experiment.

Amazon Beauty at depth 2

For the shallow Beauty taxonomy, the standalone generator again struggles. Its aggregate accuracy is 7.35 and macro F1 is 6.01. BART-MNLI reaches 60.80 accuracy and 51.15 macro F1 on the same aggregate measures. Primed+ reaches the best aggregate accuracy, 64.25, with macro F1 of 52.84. Primed has the best aggregate macro F1, 54.04, alongside aggregate accuracy of 59.79. The sense in which priming helps depends on whether classes or individual predictions receive more emphasis and on which cutoff the reader cares about.

Standalone and combined systems on Top-1 accuracy for Amazon Beauty at depth 2

Primed leads at the first rank, while adding more generated suggestions lowers accuracy.

Standalone and combined systems on Top-1 accuracy for Amazon Beauty at depth 2T0pp: 3.99T0pp3.99T0pp + BART-MNLI: 19.87T0pp + BART-MNLI19.87BART-MNLI + T0pp: 33.36BART-MNLI + T0pp33.36BART-MNLI: 34.40BART-MNLI34.40Primed+: 32.32Primed+32.32Primed (this paper): 41.22Primed (this paper)41.22
The numbers
System or settingaccuracy %
T0pp3.99
T0pp + BART-MNLI19.87
BART-MNLI + T0pp33.36
BART-MNLI34.40
Primed+32.32
Primed (this paper)41.22

The Top-1 macro F1 results qualify that accuracy gain. BART-MNLI scores 25.10, Primed scores 24.30, and Primed+ reaches 19.91. The higher accuracy of Primed at the first rank is therefore compatible with slightly weaker class-weighted performance. These scores tell us that the outcomes change when each class receives equal weight. They do not identify which frequent labels gained or which rare labels lost. For that, the comparison would need more detailed class-level results than these reported averages.

At Top-3, the shallow Beauty ranking favors Primed+. It has accuracy of 75.19 and macro F1 of 63.74. The standalone entailment baseline has 68.54 accuracy and 60.15 macro F1. Primed reaches macro F1 of 60.22, close to the baseline, while its accuracy is 61.46. Those results make the width of the generated contribution and the width of the final shortlist distinct choices. Primed+ gives the entailment scorer more input and performs better at the broader cutoff. Primed supplied the stronger first choice by accuracy.

At Top-5, Primed+ reaches accuracy of 85.26 against 79.45 for BART-MNLI. Primed produces the best macro F1 at this cutoff, scoring 77.59 against 68.21 for the baseline. Primed+ also exceeds the baseline on that metric with 74.87, and the ordinary entailment-first combination reaches 72.34. Primed itself posts Top-5 accuracy of 76.70. The pattern rules out treating the settings as a reliable progression from worse to better. They differ in how many items are recovered in a shortlist and how that recovery is distributed across classes.

Amazon Beauty at depths 3, 4, and 5

In the deeper taxonomy, BART-MNLI’s aggregate accuracy is 41.68 and its aggregate macro F1 is 49.35. T0pp alone scores 12.04 in accuracy and 4.87 in macro F1. The ordinary entailment-first combination achieves the best aggregate accuracy, 43.98. Its aggregate macro F1 is 46.06. Primed+ takes the lead on aggregate macro F1 with 49.96, while its aggregate accuracy is 40.79. The separation between those best settings is especially informative here. The row that improves the average item-level score loses ground on the class-weighted score, and the row that improves the class-weighted score loses ground on the item-level score.

Standalone and combined systems on Top-1 macro F1 for Amazon Beauty at depths 3, 4, and 5

Primed+ has the strongest class-weighted score at the first rank.

Standalone and combined systems on Top-1 macro F1 for Amazon Beauty at depths 3, 4, and 5T0pp: 2.32T0pp2.32T0pp + BART-MNLI: 6.99T0pp + BART-MNLI6.99Primed: 20.22Primed20.22BART-MNLI + T0pp: 23.15BART-MNLI + T0pp23.15BART-MNLI: 28.05BART-MNLI28.05Primed+ (this paper): 29.70Primed+ (this paper)29.70
The numbers
System or settingmacro F1
T0pp2.32
T0pp + BART-MNLI6.99
Primed20.22
BART-MNLI + T0pp23.15
BART-MNLI28.05
Primed+ (this paper)29.70

Top-1 accuracy in the deeper taxonomy tells a different story. BART-MNLI reaches 32.58. The ordinary entailment-first combination improves to 33.89, while Primed drops to 28.18 and Primed+ drops to 23.92. The Top-1 results thus provide a gain over the baseline on each metric if the settings are considered independently. No single combined setting supplies both gains at this cutoff. The distinction is material for any reading of the paper’s claim that the method improves the first prediction in the deeper dataset.

At Top-3, the ordinary entailment-first combination posts accuracy of 47.06 and Primed+ gets 46.43, both ahead of the baseline at 43.73. The baseline’s Top-3 macro F1 is 56.18. Primed+ is close at 56.07, while Primed is at 55.15 and the ordinary combination is at 53.02. In this case the strongest accuracy result sits beside a weaker class-weighted result, and the most competitive combined score on macro F1 remains just below the baseline.

Top-5 gives Primed+ an improvement on both metrics for the deeper setting. Its accuracy of 52.02 compares with 48.75 for BART-MNLI, and its macro F1 of 64.11 compares with 63.83. Primed gets a slightly higher macro F1 of 64.14 while reaching accuracy of 47.24. The result is a benefit for the configuration that supplies more generated terms when the system is judged by a broader shortlist. A first-rank decision would face the less favorable accuracy comparison.

Across the benchmarks, an entailment-first combination beats standalone generation by a wide margin. Improvements over standalone entailment depend more on the dataset, cutoff, and metric. Each dataset has a combined setting with higher aggregate macro F1 than BART-MNLI, but the best setting can change when the evaluation switches from macro F1 to accuracy. The detailed results matter because they show both the value of the added language and the conditions under which the simpler scorer still gives the better result.

What the ablations show

The ordering of the components matters

The paper investigates the design primarily by comparing standalone components, the two orderings, and the primed variants. The standalone rows establish that closing the output space can already carry much of the performance. A generator asked for the field of an abstract or the category of a review has to produce an answer that fits the benchmark’s inventory. The entailment predictor sees that inventory directly. Its task is to judge whether each named possibility fits the input. The gap between the standalone systems is consistent with a substantial advantage from this constrained decision.

Putting entailment after standalone generation helps relative to generator-only prediction, yet the generator-first combination remains behind standalone entailment in the aggregate results for every dataset. Web of Science illustrates the point with aggregate accuracy of 20.64 for the generator-first combination and 61.09 for BART-MNLI. Starting from a free description and using entailment later does less for this task than making the first assessment against the available categories. The comparison supports a framework in which known candidates guide the process from the beginning.

There is a narrower conclusion about why the entailment-first variants can help. They combine an initial class signal with the generator’s wording and then make a new closed-set decision. The results show what happens to the benchmark scores when these elements are arranged in that order. They provide much less detail about the route taken by any individual prediction. A successful revision might follow from a phrase naming a related concept, from a rephrasing of the initial label, or from the way the augmented premise changes how the scorer weighs the original text. The paper’s comparisons are at the level of these complete settings.

More generated predictions help at some cutoffs

The contrast between Primed and Primed+ tests how much generated material is supplied to the final pass. In Web of Science, the richer premise improves the first choice and remains beneficial at Top-3 against BART-MNLI. By Top-5, even the stronger primed setting is slightly behind the baseline. The authors describe the separation between the methods as more visible at Top-1 and small once the evaluation accepts a longer list. This is consistent with moving a plausible label up the ranking when the baseline already has that label somewhere among its high-scoring candidates.

Shallow Beauty shows why the breadth of the generated contribution cannot be judged from Web of Science alone. Primed is better than Primed+ on Top-1 accuracy there, while Primed+ improves on Primed at Top-3 and Top-5 accuracy. The strongest Top-5 macro F1 in that dataset again belongs to Primed. This pattern gives the added suggestions a plausible role as context for finding a reference label in a larger set, while leaving the best single decision and best class-weighted shortlist to other configurations.

On deeper Beauty, Primed+ improves Top-1 macro F1 relative to Primed, but its Top-1 accuracy is weaker. Both settings exceed baseline macro F1 at Top-5, while only Primed+ exceeds baseline accuracy at that cutoff. There is a difference between expanding the variety of descriptions available to the final scorer and improving its ability to select one leaf decisively. The paper measures the eventual rankings, so it can show where the extra material helps. It leaves open whether lost accuracy comes from conflicting generated topics, distracting terms, or a different effect of adding context.

The distinction between a generated suggestion and a final prediction is important to interpreting all of these comparisons. Primed+ can yield a first-ranked answer for evaluation, just as Primed can supply a longer final shortlist. The generated alternatives live in the premise sent to the entailment scorer. Top-1, Top-3, and Top-5 describe how the resulting category ranking is evaluated. The experiments vary an input to the classifier and then observe the effect at different output cutoffs.

Wording, contradiction, and repeated passes

The authors try several ways of phrasing the topic question. When T0pp works alone, some variation is visible. Once it receives the initial entailment prediction in a prompt appropriate to the domain, the authors describe the effects of wording changes as marginal. They report still smaller effects from varying the final entailment prompt. The observed stability concerns the prompt variants and domains studied. The prompts continue to convey the same kind of request, such as identifying a scientific area from a passage or a product category from a review.

The comparison involving contradiction is qualitative. The proposed prompts use the positive entailment signal explicitly. Contrary evidence is represented implicitly through the scorer’s handling of candidate claims. The authors report that putting contradiction directly into a prompt made performance worse and attribute the decline to added noise. They do not give a score breakdown in the discussion of this comparison. The observation supports the specific design choice of leaving rejected alternatives out of the reported prompt template. The value of more selective negative information remains unmeasured.

The paper also discusses returning to generation again after a revised entailment prediction. Alternating the two operations is straightforward in the framework’s notation. The authors report limited gains in the datasets they studied and present the main results for a single complete cycle. This is evidence about the practical return from further alternations in their setting. The reported experiments do not establish what more passes would do in a different domain or under a rule that decides when another pass is warranted.

There are also checks on the numerical settings used for inference. The authors report that int-8 quantization was robust in their dataset settings and matched bf-16/fp-32 performance. Quantization here refers to using a lower-precision numerical representation for inference. The paper gives this as a qualitative comparison, alongside the observation that the smaller 3B T0pp variant performed substantially worse than the generator used for the main experiments. Taken together, the observations distinguish changing numerical precision from changing the generator itself. The paper supplies no detailed score grid to establish how those choices would interact across other tasks.

Category names can leave the decisive distinction unclear

The authors use the class inventories to interpret the differences between Web of Science and Amazon Beauty. Beauty includes neighboring labels with similar wording and related meanings. Bath and Bathing Accessories both point towards the same general activity. Eau de Toilette and Eau de Parfum are both perfume categories. A review can contain plenty of evidence for the shared subject and little evidence for the exact catalog distinction. More topical language from T0pp may repeat that shared subject rather than supply the missing detail.

The authors associate lower macro F1 in shallow Beauty, relative to Web of Science, with the limited diversity of some category names. They observe a similar difficulty in the deeper taxonomy. The examples explain why a hierarchy with closely related leaves is a demanding test of a scorer built around label wording. They are qualitative evidence. The paper does not report a controlled experiment that varies similarity among category names while holding the input, class frequencies, and taxonomy constant. Similar names are one explanation for the observed difficulty, with other differences between the datasets still in play.

Limitations

Limits the authors identify

The authors emphasize that the generator depends on prior training. Keeping its parameters fixed makes the framework usable without a target-task training run, while leaving its associations shaped by the material it encountered before the experiment. A fixed inventory gives the final scorer some control over what can be returned. The words supplied by the generator can still carry uncertain or misleading associations. The ethics discussion singles out sensitive topics as a setting that calls for caution. The experiments themselves are about scientific abstracts and beauty reviews.

The paper acknowledges that its prompts use domain knowledge. The writers know whether they are handling an abstract or a review and use that information to ask a suitable category question. The tested rephrasings produced broadly stable results once the components were combined. This leaves open how well the framework transfers when a domain is difficult to describe, labels carry meanings specific to an organization, or the prompt designer has little understanding of the taxonomy.

Explicit contradiction is another boundary the authors set for the study. They report worse performance when contradiction is written into prompts and identify confidence-based control of prompt content as unexplored. They also leave parameter-efficient training methods outside the experiment. Their discussion raises the possibility of using such training alongside representations that capture contradiction more explicitly. The reported evidence is for the fixed-parameter procedure. The gains of a trained extension remain an open empirical question.

The authors similarly limit their claims about repeated composition. They can reapply the generator and scorer in alternating passes, but the benefits they observed were limited. They therefore center the study on the cycle that begins with entailment and returns to it after generation. The paper proposes longer sequences as a direction for investigation rather than presenting them as a demonstrated improvement.

Limits visible in the experimental setup

Strict zero-shot is a protocol for the target task. It establishes the absence of task-specific updates and target-distribution training examples in the procedure described. Familiar vocabulary, domain knowledge, and useful associations can still come from pretraining or prior NLI and prompted training. The study does not audit how often the benchmark category names appeared in those earlier stages. Its mention of unusual terms identifies a credible challenge without measuring the exposure of the components to each term or connecting that exposure to individual mistakes.

The results also leave a gap between performance averaged across classes and performance specifically on rare labels. Macro F1 is informative because it gives each class an equal role in the average, and accuracy reveals how well the method works over items as sampled. Neither measure alone identifies what happened at each frequency level. The paper lists examples of head and tail classes, but its main comparisons do not isolate a tail-only score or provide class-by-class changes. The evidence supports improvements on a long-tailed evaluation. It is less specific about which rare classes benefit and how consistently.

The comparison between the two Beauty settings also changes more than depth. The deeper evaluation has a different leaf inventory and a different sample count. The targets include categories at several depths. A reader can compare performance in the shallow and deeper setups, while a causal claim about depth in isolation would require matching the other conditions. Likewise, the comparison between Beauty and Web of Science changes the input domain and the label vocabulary along with the degree of similarity between classes.

The procedure handles the hierarchy through its leaf inventory and the linguistic relationships among labels. Its evaluation gives credit for recovering the intended leaf at a specified cutoff. A plausible neighboring category and an unrelated category can therefore both count as misses. The reported metrics do not assess how far an error travels in the taxonomy or whether a broader category would be sufficient for a downstream user. They also do not test rebuilding a taxonomy or deploying assignments in a live product catalog. The e-commerce examples motivate the task, while the measured outcomes are benchmark rankings.

Finally, the reported point scores are easier to interpret when the changes are large than when the configurations are nearly tied. For instance, the Web of Science Top-5 accuracy scores of 70.46 for BART-MNLI and 70.39 for Primed+ describe the ordering in this evaluation. They give little basis for expecting the same ordering to persist on another sample. The hardware description and the quantization observation establish how the authors ran inference. They do not quantify latency or the cost of rescoring a large catalog, so the absence of parameter updates settles the training requirement while leaving deployment cost uncertain.

What came after

There is no documented follow-up in the later work associated with this paper. The authors leave several questions open in their own discussion, including whether confidence could guide the wording sent to the final scorer, whether negative evidence could be included without adding noise, and whether more alternating passes would help in other tasks. Those questions remain directions identified by the authors, with no later study here establishing their outcomes.

Cite

Cite as Rohan Bhambhoria, Lei Chen and Xiaodan Zhu. 2023. A Simple and Effective Framework for Strict Zero-Shot Hierarchical Classification. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2023.acl-short.152

@inproceedings{bhambhoria2023simple,
  title = {{A Simple and Effective Framework for Strict Zero-Shot Hierarchical Classification}},
  author = {Rohan Bhambhoria, Lei Chen and Xiaodan Zhu},
  booktitle = {Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)},
  year = {2023},
  doi = {10.18653/v1/2023.acl-short.152},
  url = {https://doi.org/10.18653/v1/2023.acl-short.152}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bhambhoria-2023-simple-effective-framework-strict-zero/