Elamur Research

ZEST: Zero-shot Learning from Text Descriptions using Textual Similarity and Visual Summarization

Paper · 2020 · Tzuf Paz-Argaman, Reut Tsarfaty, Gal Chechik et al.

Summary

A photograph can show a bird from a species that a classifier has never encountered during training. A written description gives the classifier another way to recognize it. The difficulty is that a reference article may spend more time on migration, diet, or habitat than on details that distinguish one bird from another in a photograph. ZEST studies what a classifier can learn from these articles in zero-shot recognition, where the species to be identified come with descriptions and their images are held out of training. The authors ask which parts of a description help the classifier tell species apart and which similarities between whole descriptions can help it transfer what it already knows.

ZEST builds two representations from each article. One starts with the full text and groups descriptions that resemble one another. Species in the same group then share a feature that the classifier can learn from. The other representation keeps sentences that resemble captions about birds’ appearance. The captions are examples of how people describe visible features in general, so the method can use captions of familiar birds to select sentences about an unfamiliar species. Both representations feed a classifier that learns to score the match between an image and a species description. Keeping the two procedures separate lets the classifier use information such as shared habitat to relate species even if habitat sentences are dropped from the description used for visual matching.

The authors evaluate ZEST on two bird datasets, CUB and NAB, under splits that differ in whether the training and test sets share broader taxonomic groups. On CUB, when test species belong to groups absent from training, top-1 accuracy rises from 11.77% with the basic ZEST classifier to 15.26% with automatic summaries. The full system reaches 48.57% on the CUB split with shared groups and 38.51% on the corresponding NAB split. The NAB experiments use captions from CUB to select sentences, demonstrating that the caption collection can guide extraction for species in a different dataset. In the generalized setting, which also allows familiar species as answers, adding automatic summaries improves the area under the seen–unseen accuracy curve on both splits that hold out whole taxonomic groups. That area falls slightly on both splits with shared groups.

The analyses show why the distinction between whole articles and extracted sentences matters. Clustering helps most clearly when a test species has relatives among the training species. Sentence extraction can still help when the test species have no such relatives. On CUB, automatic extraction retains most of the sentences that human annotators judge visually relevant, along with considerable material the annotators would leave out. The two procedures address different parts of the recognition problem: one supplies connections between species, and the other makes visible distinctions easier to learn from their descriptions.

Deep dive: ZEST: Zero-shot Learning from Text Descriptions using Textual Similarity and Visual Summarization

ZEST uses similarities between species descriptions and sentences about appearance to recognize birds from species absent during training. · about 36 minutes to read

The problem and its context

Recognizing a species from a description

In the setup ZEST studies, the categories are bird species and the goal is to give an image its species label. During training, the classifier can associate labeled images with written descriptions of the species they depict. At test time, it receives images of species excluded from training. A species-level description is available for each of those categories. An image of a new species can thus be compared with a description through associations learned from the training species. The connection between the kinds of evidence is what makes this a vision and language task.

The transfer is necessary because a classifier trained only to distinguish its original species would have no way to assign one of the new names on the basis of examples of that species. The descriptions supply a way to score candidates that were absent when the classifier learned from images. If a phrase about the shape or color of a bird’s crest has been associated with features of a photographed head during training, a related phrase in a new species description can carry some of that association into the test. The test description provides information about the class as a whole, while the system must make its decision for an individual photograph.

The paper calls this fine-grained classification because the candidates are different species within the same broad kind of animal. A rough resemblance to birds seen during training may do little to distinguish the plausible candidates. Details of plumage or body parts may matter, and the terms experts use for those details may be unfamiliar to readers outside ornithology. The source documents present an additional problem. A field reference or encyclopedia article has room to discuss how a bird feeds, where it nests, and where it travels. Each fact can be appropriate in a species description. Its relevance to a particular recognition decision depends on whether it can help distinguish the bird in an image.

The authors illustrate the transfer problem with a zebra and a horse. Familiarity with horses gives a reader a rough idea of the shape to expect from the zebra’s description. The striped coat then offers a way to distinguish the unfamiliar animal from something it resembles. For bird recognition, the analogous issue is how to make related descriptions share some information while preserving their differences. Both parts of the analogy matter. If the training material contains a close counterpart, a family resemblance can narrow the possibilities. If several similar unfamiliar species are candidates, the system also needs evidence that separates them.

What counts as a description

The earlier work discussed in the paper gives zero-shot classifiers several kinds of information about new classes. One is a set of attributes, meaning a list of properties for which someone has supplied class-level values. Descriptions of beak color or tail length are examples of the kind of information such a list can encode. An attribute inventory makes it relatively clear which observations are meant to be compared. It also commits the task to a predetermined set of properties, whose values have to be collected for the categories of interest.

Image captions offer a different source of supervision. A person can describe appearance in ordinary language and mention useful combinations of details without first fitting them into an attribute schema. As the authors describe earlier caption-based setups, human raters supply descriptions for individual images, including test images, and the resulting information may be averaged across the images of a class. That gives the classifier descriptions closely tied to visible evidence. It also entails collecting annotations and having access to the images to be described.

A species article is available independently of the particular photographs in an experiment. This makes it attractive for the setting the authors want to study, where the class descriptions should be obtainable without looking at test images. The cost of that independence is a less direct correspondence between words and visual observations. An article can describe juvenile appearance, for example, even if the relevant test photographs show adults. It can name the color of an animal that preys on the bird. Even a sentence primarily about bird anatomy can describe what the bird does with a body part rather than how that part looks. The representation has to make use of prose written for a broader purpose.

The authors describe earlier classifiers that use online species descriptions as bringing together an image representation, a document representation, and a function that scores their compatibility. Much of that work focused on obtaining better visual features or improving the scoring function. A photograph could be encoded with features from a convolutional network. Work using part detectors went further by identifying regions corresponding to parts such as a head. This gives a more specific visual location to compare with a textual reference to a crest. ZEST keeps that general approach to the image side and investigates how much can be gained by changing what the classifier receives from the document side.

Earlier work with reference articles often used a bag of words, which represents a document through its vocabulary without keeping word order. Another common representation was TF-IDF, which weights terms using their occurrence in a document and their prevalence across documents. A term that helps characterize a species description has a chance to carry more weight than a term that appears throughout the collection. The authors also discuss a prior approach that combines a bag of words with an objective intended to suppress noisy information. Their question goes beyond the weight of an individual term. A word can occur in a sentence about the bird’s appearance, about its surroundings, or about a different animal. Its relevance can depend on the sentence it belongs to.

The paper also discusses pretrained systems that learn joint representations of images and text. It cites improvements on vision-and-language tasks and identifies the length of the inputs as a difference from the problem at hand. The systems it discusses are tuned for relatively short text, whereas a species article can contain many sentences across several subjects. The authors frame their effort as complementary to this work. A system that can match images with short descriptions still leaves open the question of where to find suitable descriptions in a longer document. The examples they discuss are ViLBERT and LXMERT.

Similarity serves different purposes at different scales

A whole species article can help a classifier place a bird among related species even when some of the article is about things outside the frame. Birds that resemble one another may also share contexts such as habitat, one reason their articles could be related at the document level. This type of information is potentially useful when the visual examples available during training are of a closely related species. It becomes harder to use when all the relatives of a test species are held out together. In that case, recognizing similarities within the test set does little by itself to connect those species to a labeled photograph used in training.

Appearance sentences have a different purpose. A sentence about the head or plumage can contain the detail that makes two plausible species separable. The author of the article may express that detail in several ways, including by giving a property value with little explicit reference to the body part. A list of salient part names therefore addresses only one way a sentence can convey visible information. The authors’ alternative is to look for sentences whose meaning resembles the language of bird captions. This turns the selection problem into one of semantic similarity.

The distinction between these purposes motivates the architecture. A sentence about a habitat can help reveal a relationship between articles, while a sentence about plumage can carry evidence about the photographed bird itself. Keeping the whole article for one purpose and selecting sentences for the other allows ZEST to preserve both forms of information. The design also creates separate experimental questions about whether each form helps and which kind of test split gives it a chance to do so.

The method, step by step

Set up the image and document representations

ZEST starts with labeled training photographs, one description per training species, and a description for every candidate species at test time. The image encoder turns a photograph into a vector, a sequence of numbers that describes the visual regions used by the classifier. The text encoder also outputs a vector. Because one comes from image regions and the other from words and document features, the vectors can have different lengths. Training connects the two representations by learning which combinations lead to a high score for the correct species.

On the image side, the authors adopt an encoder from earlier work on zero-shot recognition from text. Its detector uses Fast R-CNN with a VGG16 backbone. The detector is used to localize seven kinds of parts in CUB, covering the bird’s head, back, belly, breast, leg, wing, and tail. The features from those regions are placed end to end to form the image vector. This preserves separate blocks of evidence for the different regions. The scoring procedure can then learn from a description of head appearance and the features of the corresponding image region without requiring a word-by-word or sentence-by-sentence alignment in the training data.

The basic text encoder first uses tokenization to divide the text into words. It removes stop words, which are common words excluded from the feature representation, and uses stemming to reduce remaining forms to stems. The resulting terms receive TF-IDF weights. Each document is then represented by a vector with coordinates associated with the vocabulary. The paper reports 7,551 TF-IDF features for CUB and 13,217 for NAB. In ZEST vanilla, the authors’ basic classifier, this procedure applies to the full species description.

The advanced system changes the contents of that document vector while retaining the image encoding and compatibility calculation. It selects appearance sentences, uses those sentences for its term features, and can append features derived from clusters of full articles. The figure traces how the information used for the final match is assembled. Clustering and sentence selection read the original description independently.

How ZEST matches a photograph to a species

The steps in order.

How ZEST matches a photograph to a speciesStep 1: Encode the photograph by bird part1. Encode the photograph by bird partStep 2: Group full descriptions by document similarity2. Group full descriptions by document similarityStep 3: Compare description sentences with bird captions3. Compare description sentences with bird captionsStep 4: Keep the highest-scoring sentences4. Keep the highest-scoring sentencesStep 5: Encode selected text with TF-IDF5. Encode selected text with TF-IDFStep 6: Append cluster features when enabled6. Append cluster features when enabledStep 7: Score the photograph against candidate descriptions7. Score the photograph against candidate descriptionsStep 8: Assign the highest-scoring species8. Assign the highest-scoring species

Learn which image features match which text features

ZEST uses multiplicative attention as a way to score an image against a collection of descriptions. Here the image acts as a query, and the species descriptions are the candidates being scored. The calculation combines each image vector with a document vector through a learned matrix. The paper adapts the idea of this compatibility calculation from earlier zero-shot work and connects the attention mechanism to Luong and colleagues’ work on attention in machine translation.

ŷ = arg maxₖ₌₁,…,K (xᵢᵁ)ᵀ W dₖᵁ

Here ŷ is the predicted class index. The symbol k ranges from 1 through K, where K is the number of candidate unseen species in conventional zero-shot testing. The ellipsis indicates all intervening class indices. The vector xᵢᵁ represents test image i, and dₖᵁ represents the document for unseen candidate k. The superscript U marks items associated with unseen classes, while T transposes the image vector so that it can multiply the matrix W. The matrix W contains the learned weights. It has m rows for the m image features and m̂ columns for the m̂ document features. The product gives a single compatibility score for each candidate. The arg max returns the index whose score is greatest.

Each column of W describes how one text feature contributes to compatibility through the image features. When the features are weighted vocabulary terms, the same matrix can be used with a document about a species missing from training. The document introduces a new pattern of term weights, and the scoring calculation can apply the associations already learned for those terms. An appended cluster feature gives the matrix an additional way to share a contribution across documents. The classifier still compares the test image with each candidate description individually.

For training, the paper denotes the number of training images by M and the number of seen species by L. Each training image has a known species. For that image, the score of the correct description is compared with the scores of all the descriptions of seen species. Written as a loss to be minimized, the categorical cross-entropy for one training image is as follows.

ℒᵢ = −∑ⱼ₌₁ᴸ I(xᵢˢ, dⱼˢ) × log(softmaxⱼ({(xᵢˢ)ᵀ W dᵣˢ}ᵣ₌₁ᴸ))

The loss for training image i is ℒᵢ. The minus sign makes a larger probability for the correct class give a smaller loss. S marks seen classes, so xᵢˢ is the image feature vector and dⱼˢ is the description vector of seen class j. The sum runs over j from 1 to L. The indicator I is 1 when the image belongs to the species described by dⱼˢ and 0 otherwise. The quantity inside the braces is the collection of compatibility scores, indexed by r from 1 to L. As in the prediction rule, T indicates a transpose, and W is the learned matrix. The softmax converts the collection of scores into probabilities, with softmaxⱼ returning the probability for class j. The logarithm, written log, is applied to that probability, and × denotes multiplication.

Only the correct description’s probability contributes directly to the sum because of the indicator. All candidates nonetheless affect that probability through the softmax. A high score for a competing species makes the correct one less probable unless its score is also raised. The classifier thus learns a comparison among descriptions as opposed to a score whose interpretation depends solely on the correct pair in isolation. At test time the candidate list changes to match the evaluation setting, while the learned compatibility weights can be reused.

The authors initialize W with the normalized initialization of Glorot and Bengio. They use Adam to optimize the cross-entropy. This training step learns the classifier’s use of the image and text features. The document groups and sentence scores come from separate procedures described below. In particular, the sentence selector draws on a pretrained encoder and the caption collection rather than learning the definition of visual relevance from the bird species labels.

Use similarities between documents

The authors first build a separate nearest-neighbor classifier as a way to test the intuition behind transfer through relationships. Given a test photograph, Nearest Neighbor Similarity, or NNS, searches the training photographs for the one with the closest image vector by cosine similarity. Cosine similarity measures agreement in the direction of two vectors. The species label of that photograph identifies its training article. NNS then searches the candidate test articles for the text nearest to that article and gives the photograph the species label associated with the retrieved text.

The route from the photo to its answer goes through a known species. At the first stage the system needs a visual neighbor, and at the second it needs the known species description to be a useful point of departure for choosing an unknown one. The method is easy to interpret because a particular training photograph and its species mediate the prediction. The same design can propagate a poor match. If the nearest training example belongs to a group that resembles the test species only weakly, the textual search is centered on a less informative article. The authors use NNS as a standalone comparator. ZEST similarity learns how to use textual relationships within the compatibility calculation.

To compute ZEST similarity, the authors group complete class descriptions into clusters using both the training and test sets. The clustering is unsupervised in the sense that group membership is inferred from the text representations. Joint access to the descriptions means that a seen and an unseen class can acquire a shared group feature before test photographs are scored. The authors use DBSCAN and its hierarchical counterpart, HDBSCAN. Both group nearby points by density. Applying different clustering procedures gives the text representation more than one way to encode which descriptions are related.

For DBSCAN, the paper describes a setting for how many neighbors a point needs before it can serve as a core point and a maximum distance for counting another point as a neighbor. The neighborhood minimum is set to two, reflecting the authors’ interest in similarities that can be shared by as few as two birds. The distance is selected on validation data for the relevant split. The validation share reported for this selection is 10%. The cluster identifiers are encoded as bag-of-words features and appended to the document representation. In this use of a bag of words, the entries encode membership in document groups instead of vocabulary terms.

The system also checks how much the clustering connects the unseen descriptions with seen ones. The paper gives a validation-selected threshold of 15% for using the similarity component. The quantity concerns the share of test documents that cluster with documents from training. When there is enough such overlap, cluster memberships can supply features shared across seen and unseen classes. When overlap is too limited, the classifier can fall back on the text representation without these features. This condition addresses the fact that a group of related test articles may have no training article from which the classifier could learn a useful image association for that group.

Select sentences about appearance

The second change starts with a collection of captions describing birds’ appearance. The captions used here talk about visible features and omit species names. That makes them a reference for the kind of language the selector seeks. A sentence is compared with descriptions of visible bird features even if the particular species it describes is absent from the caption collection. It is the species article that supplies the facts about the candidate species. The captions guide the choice of which sentences from that article remain available to the classifier.

The authors use a pretrained sentence encoder to represent each caption and each article sentence by a vector of fixed size. They describe it as a siamese and triplet approach built on pretrained BERT. The paper’s sentence comparison uses representations that share a common space, so a caption and an article sentence can be compared by their vector directions even when they use different wording. The authors cite Sentence-BERT, FaceNet, and BERT for this part of the method.

For each sentence, the authors calculate its cosine similarity with every reference caption and use the average as its score. The same caption collection is used to give the sentences in a document comparable scores.

score(sⱼ) = (1/L) ∑ᵢ₌₁ᴸ (cᵢ · sⱼ) / (‖sⱼ‖ ‖cᵢ‖)

Here score(sⱼ) is the visual-relevance score of the article sentence at position j, with sⱼ standing for its embedding. The caption index i ranges from 1 through L. In this equation L counts the reference captions, a separate use of the letter from the training loss, and cᵢ is the embedding of caption i. The centered dot denotes the vector dot product. The double bars denote vector lengths, and dividing by the product of those lengths turns the dot product into cosine similarity. The sum accumulates the comparisons with every caption, and the factor 1/L averages them.

The most highly scored sentences form a Visually Relevant Summary, abbreviated VRS. The paper describes retaining the highest-scoring k sentences, where k denotes the number selected, and reports choosing the sentence-score threshold on validation data. This is extractive summarization. It retains sentences from the original article and sends those sentences through the TF-IDF feature procedure. The sentence embeddings decide what text goes forward. The final compatibility calculation uses the weighted text features of the selected sentences.

A score based on captions can go beyond a search for named parts. An appearance description can use a different term from the detector’s part label, or the property being described can be clearer than the name of the part. The expected benefit comes from comparing a sentence with the language used to describe visible attributes together. The score is still a comparison of sentences with captions. It neither gives a separate visual judgment for each phrase nor compares the candidate sentence directly with the photograph currently being classified.

Combine the text features and preserve the test boundary

The full ZEST similarity +VRS configuration prepares both representations from the original article. The clustering procedure sees the entire text and can use words about habitat or other shared subjects. The term encoder for the visual summary sees the selected sentences. When the similarity component is enabled, its cluster features are appended to the summary’s term features. Both kinds of features then take part in the same image–description score. The document candidates are encoded in the same manner for the training and test phases of a run.

The underlying data choices matter to the zero-shot claim. Clustering uses both sets of articles because test descriptions are part of the task’s auxiliary information. Training the compatibility weights uses labeled photographs of seen species. The caption pool likewise comes from training images, and the authors state that they avoid captions of unseen classes. In the NAB experiments they reuse captions from CUB. A NAB species description still supplies the candidate text, while the borrowed captions only guide sentence selection.

The authors also create human-selected summaries of CUB for comparison. These give an alternative set of sentences with which to run the recognition experiment and a reference against which to measure automatic selection. They are treated as an oracle condition, meaning they show what happens when expert decisions about relevance are available. They are separate from the automatic VRS procedure. The authors release the implementation under the name ZEST.

Experiments and results

The two datasets and their splits

The authors evaluate on CUB, the Caltech UCSD bird dataset, and NAB, the North America’s birds dataset. Both are fine-grained recognition tasks, and the paper describes them as covering different species. CUB has 11,788 images across 200 species. NAB has 48,562 images across 404 classes. The descriptions come from a collection compiled in earlier work from Wikipedia and the AllaboutBirds website. The CUB documents average 869 tokens and 42 sentences. The NAB documents average 1277 tokens and 58 sentences. Those lengths give some idea of how much prose can enter the full-document baseline before any attention is paid to which sentences concern appearance.

The experiments use two train–test arrangements inherited from earlier work. In the Super Category-Shared split, abbreviated SCS, every unseen species has a member of its broader taxonomic category among the training species. The paper calls this the easy split. Its example of the Rufous Hummingbird and the Ruby-throated Hummingbird illustrates how two different species can count as neighbors at the broader category level. Recognition still requires a species-level answer. The shared broader category means the training set can show what a relative of a test bird looks like.

The Super-Category-Exclusive split, abbreviated SCE, puts each broader category wholly on one side of the train–test division. The paper calls this the hard split. If a species appears in the unseen set, its category mates are also excluded from training. This arrangement tests transfer when images of close taxonomic relatives are unavailable. Candidate species can still resemble one another within the test set. The classifier needs to distinguish them using image–text associations learned from other groups.

The authors build the caption pool from descriptions collected for CUB photographs in earlier work by Reed and colleagues. The paper says each image was annotated with ten captions focused on fine details of appearance. ZEST uses the first five captions of each eligible training image for the main caption pool. This choice concerns the pool used for the standard VRS procedure. The authors separately vary the number of captions supplied to the selector, including runs with a small collection in total. ZEST vanilla, ZEST similarity without VRS, and NNS use no caption input.

Conventional zero-shot recognition

In conventional zero-shot recognition, the candidate classes for each test photograph are the unseen species. The paper reports top-1 accuracy, the percentage of photographs for which the highest-scoring candidate is the correct species. Its main table reports the mean over three random initializations. Alongside the earlier algorithms, it includes the authors’ NNS and ZEST vanilla comparisons, ZEST with document clusters, and the full configuration with automatic summaries. This layout allows the reader to compare the full system with published alternatives and to see what the two text changes add to the authors’ own procedure.

The earlier baselines include WAC-Linear, WAC-Kernel, ESZSL, and SJE. Other entries include MCZSL, ZSLNS, ZSLPP, and GAZSL. The paper also lists two SynC configurations. Earlier systems have results for different subsets of the dataset and split combinations. GAZSL provides the strongest earlier top-1 accuracy reported in the main comparison for each combination, so its scores offer a common reference as the evaluation moves between datasets and splits. The VRS rows have access to CUB training captions, an extra source of appearance language that the paper distinguishes from its comparisons in the earlier setup.

On CUB SCS, GAZSL has 43.7% top-1 accuracy in the main comparison. NNS achieves 40.402% and ZEST vanilla achieves 39.16%. Adding the document clusters yields 47.48% for ZEST similarity. Using both the clusters and the automatic sentence selection yields 48.57%. This is a setting in which a test description can share cluster features with descriptions connected to training photographs, and the score of the full system reflects the addition of VRS to an already effective similarity representation.

On NAB SCS, the change in the text representation matters even more to the ranking of the ZEST variants. ZEST vanilla has 27.61% top-1 accuracy, while GAZSL reports 35.6% and NNS reaches 37.002%. The cluster features take ZEST similarity to 38.2%, and the full automatic system achieves 38.51%. The comparison also illustrates how to read the cross-dataset use of captions. That last result involves extracting sentences from NAB descriptions with help from captions of CUB birds. The classifier still uses the labeled images and descriptions appropriate to the NAB training split.

On CUB SCE, the order changes. NNS achieves 5.551% top-1 accuracy. GAZSL has 10.3%, while the basic ZEST classifier reaches 11.77%. Adding the similarity component leaves that score at 11.77%. The automatic summaries bring the full configuration to 15.26%. The authors report a relative improvement of 48.16% for their largest gain over the earlier state of the art, represented by the full configuration’s comparison on this split. The top-1 accuracy itself gives the scale of recognition performance in the harder setting.

Top-1 accuracy on the CUB category-exclusive split

The highest accuracy comes from adding visual summaries, while cluster features leave the basic score unchanged.

Top-1 accuracy on the CUB category-exclusive splitNearest Neighbor Similarity: 5.551Nearest Neighbor Similarity5.551GAZSL: 10.3GAZSL10.3ZEST vanilla: 11.77ZEST vanilla11.77ZEST similarity: 11.77ZEST similarity11.77ZEST similarity + VRS (this paper): 15.26ZEST similarity + VRS (this paper)15.26
The numbers
System or settingaccuracy %
Nearest Neighbor Similarity5.551
GAZSL10.3
ZEST vanilla11.77
ZEST similarity11.77
ZEST similarity + VRS (this paper)15.26

In NAB SCE, NNS has 5.517% top-1 accuracy and GAZSL has 8.6%. ZEST vanilla and ZEST similarity each achieve 10.18%. Automatic selection raises the full ZEST configuration to 10.23%, a much smaller change than on CUB SCE. Both hard splits give the same ordering of these configurations, but the increase from VRS varies with the dataset. In particular, transfer of the sentence selection procedure from CUB to NAB is compatible with a modest gain on this split.

The variation reported for ZEST similarity in the main comparison is split-specific. Its standard deviations over random initializations are 0.337 on CUB SCS and 0.368 on CUB SCE. The corresponding values on NAB are 0.625 for SCS and 0.174 for SCE. These figures describe the spread of top-1 accuracy for the similarity configuration. They are especially relevant when judging small differences between reported mean scores, since the table gives no corresponding spread for some of the comparisons involving VRS.

Generalized zero-shot recognition

The generalized task allows both seen and unseen species as candidates at test time. A classifier can make a different kind of error here. It may have identified the best unseen candidate when only unseen candidates were eligible, yet rank a familiar training species above it when both groups compete. The authors follow an earlier evaluation that records the tradeoff between accuracy on seen and unseen species. A point on the seen–unseen accuracy curve represents performance on both groups for a particular balance between them. The area under that curve, abbreviated AUC, summarizes performance across the tradeoff. The reported AUC values are on a different scale from the top-1 percentages for conventional zero-shot recognition.

On CUB SCS, the published GAZSL comparison has an AUC of 0.354. ZEST similarity reaches 0.443. With automatic summaries added, the AUC is 0.437, while the condition using human summaries reaches 0.445. On NAB SCS, the same change from the full description to VRS with clusters takes the AUC from 0.267 to 0.26. GAZSL has an AUC of 0.204 on that split. The automatic-summary configuration therefore exceeds the GAZSL comparison on each shared-category split even though the addition of summaries reduces the area relative to ZEST similarity.

The CUB SCE results favor adding VRS. The GAZSL AUC is 0.087, ZEST similarity reaches 0.1, and ZEST similarity +VRS reaches 0.147. The human-summary condition reaches 0.163. On NAB SCE, GAZSL has an AUC of 0.058, ZEST similarity reaches 0.067, and the addition of VRS gives 0.084. Taken together, the curves give a more specific picture than a claim that summaries help across the board. On the shared-category splits they slightly reduce AUC for ZEST similarity, whereas on the exclusive-category splits they increase it.

Seen–unseen AUC on the CUB category-exclusive split

Automatic summaries increase the area under the curve, and human selection gives the highest reported value.

Seen–unseen AUC on the CUB category-exclusive splitGAZSL: 0.087GAZSL0.087ZEST similarity: 0.1ZEST similarity0.1ZEST similarity + VRS: 0.147ZEST similarity + VRS0.147ZEST similarity + human summaries (this paper): 0.163ZEST similarity + human summaries (thispaper)0.163
The numbers
System or settingAUC
GAZSL0.087
ZEST similarity0.1
ZEST similarity + VRS0.147
ZEST similarity + human summaries (this paper)0.163

The distinction between the two metrics matters in practical terms. Top-1 accuracy in the conventional task tells a reader how frequently the image is matched to the correct unseen candidate when every other eligible answer is also unseen. The generalized curve asks how well the classifier can serve both groups of species as the balance between them changes. A text representation can help discriminate unfamiliar birds from one another while giving a slightly less favorable tradeoff once familiar species enter the candidate set. The paper’s SCS results with VRS display that pattern on both datasets.

What the ablations show

Nearest neighbors and cluster features

NNS is a direct check on the assumption that visual neighbors can be useful points of entry into the text collection. It does well on the shared-category splits. On NAB SCS its 37.002% top-1 accuracy even exceeds the earlier GAZSL entry. Its much lower accuracies when the taxonomic categories are separated fit the authors’ account of the two-stage search. The test image must be represented by a training neighbor before the search can locate a test description. Ensuring that training includes a species from the same broader category gives that first stage a more plausible starting point. The difference between splits shows how strongly this simple transfer procedure depends on the available neighbors.

ZEST with the cluster features learns their contribution alongside other text features. The authors compare this procedure with appending the bird’s known broader category to its description vector. They also compare using one clustering method with using both. The category feature tests whether giving the classifier a taxonomic grouping can account for the gains attributed to clustering. Both kinds of features let descriptions share a coordinate, but the bird category supplies that relationship directly, whereas the clusters derive it from the articles.

On CUB SCS, adding the bird category to ZEST vanilla yields 43.71% top-1 accuracy. Using one clustering method yields 46.55%, and using both yields 47.48%. On NAB SCS, the category feature gives 36.73%, one clustering method gives 35.94%, and both give 38.2%. The single-cluster version therefore behaves differently relative to the category feature on the two datasets. The combination has the highest score on each. The authors report a relative improvement of up to 8.63% for the joint clustering representation over the version that appends the bird category.

The paper also checks how well the clusters correspond with taxonomy. On CUB the reported category prediction accuracy is 88% for HDBSCAN and 84.5% for DBSCAN. On NAB the figures are 93.07% for HDBSCAN and 95.05% for DBSCAN. These numbers concern the recovery of broader categories from clusters, instead of the correctness of species predictions for photographs. They show that the clustering picks up a good deal of taxonomic structure. The recognition comparison with the category feature suggests that a representation formed from the two sets of groups can preserve relationships useful to the classifier beyond those conveyed by the category label alone. The comparison leaves open which recurring subjects or terms account for those relationships.

The SCE comparisons help identify what the similarity component actually does. In both datasets the ZEST similarity scores are the same as the vanilla scores on SCE. The authors explain this through the threshold for sufficient overlap between train and test document clusters. Equal scores in this setting show the effect of the configuration with its gate. A run with clusters forced on for SCE would answer a different question about whether such features help or hurt when the threshold is bypassed. The reported comparison tests the behavior of the system as configured.

What changes when the classifier reads a summary

The authors add automatic VRS to ZEST vanilla as well as to ZEST similarity. On CUB SCS, the vanilla system’s top-1 accuracy changes from 39.16% to 42.58%. On NAB SCS, it changes from 27.61% to 32.24%. This comparison shows what sentence selection can do for the basic classifier even when it has no cluster features. For the full configuration, the document groups give the classifier a way to retain relationships that selecting sentences from individual articles may weaken. The combined accuracy on each shared-category split is higher than either the summary-only or similarity-only ZEST result.

On CUB SCE, ZEST vanilla with VRS and ZEST similarity with VRS both reach 15.26% top-1 accuracy. On NAB SCE, both reach 10.23%. The corresponding configurations without summaries score 11.77% on CUB SCE and 10.18% on NAB SCE. These comparisons associate the observed gain with the sentence selection branch in the setting where joint clusters add little connection from test to training documents. The result on NAB again shows the scale of the change. The method carries across datasets, with a much smaller observed gain on this split.

GAZSL gives a test of whether the sentence selection works with a different image–text classifier. In the dedicated summarization comparison, GAZSL has 43.74% top-1 accuracy on CUB SCS and achieves 43.72% with VRS. The scores are effectively level at the precision reported, with the automatic summary row slightly lower. On CUB SCE, GAZSL goes from 10.3% to 16.44%. The paper describes an improvement of up to 59.62% when applying the method to another classifier, which corresponds to that CUB SCE comparison. With GAZSL on NAB, the automatic summary gives 37.28% on SCS, compared with 35.6%, and 9.237% on SCE, compared with 8.6%. This supports reuse across the two tested recognition architectures, with gains depending on the split and dataset.

A further comparator summarizes the descriptions using bird parts. For ZEST similarity on CUB SCS, parts summarization gives 42.27% top-1 accuracy, compared with 47.48% before summarization and 48.57% with caption-based VRS. On CUB SCE the same parts condition gives 10.93%, compared with 11.77% before summarization and 15.26% with VRS. The paper’s motivation for the caption method is that parts have varied expressions and that appearance can be conveyed without an explicit part name. The results here establish that the choice of extraction procedure matters. A focus on parts as implemented in the comparison does not deliver the advantage of caption-based sentence selection.

The GAZSL parts experiment also helps locate the contribution of cluster features. On CUB SCS, GAZSL with parts summaries has a top-1 accuracy of 19.54%. Adding similarity features to that condition raises it to 38.25%. Even with the added features the result is below the full-document comparison of 43.74%. The CUB SCE parts conditions both report 9.557%, including the row with similarity added. On NAB SCS, the corresponding scores for GAZSL are 23.32% with parts extraction and 33.05% when similarity is also used, compared with 35.6% for the full description. Recovering some of the performance on the shared-category splits is consistent with the idea that aggressive selection can discard information that helps connect related species.

Human selection exposes a dependence on the split

Two independent experts label the sentences in the CUB descriptions according to whether they describe appearance relevant to recognizing the bird. The authors set guidelines for disagreements, including a rule that excludes descriptions of hatchlings. Across the CUB documents, human annotators count 11.9% of the sentences as visually relevant. Their choices serve both as a reference for evaluating automatic selection and as an alternative text input for measuring recognition. These two uses answer different questions. The first is about agreement with the definition of relevance. The second is about how well a classifier works with the text selected according to that definition.

When the authors give human summaries to ZEST similarity, the CUB top-1 accuracy reaches 48.99% on SCS and 17.2% on SCE. The comparisons with automatic summaries are 48.57% on SCS and 15.26% on SCE. In this architecture, the human-selected sentences coexist with the full-document similarity features when those features are enabled. The results are consistent with a benefit from more accurate sentence selection, especially on the split that excludes relatives from training. In the generalized task, the human condition also has a larger AUC than the automatic condition on both CUB splits.

For GAZSL, the human summaries lead to a different story on CUB SCS. Used alone, they give 35.98% top-1 accuracy, compared with 43.74% for the full articles. The table’s condition combining human summaries with similarity features reaches 47.32%. On CUB SCE, GAZSL with human summaries achieves 21.81%, and the table gives the same score for the human-summary condition with similarity features. This contrast is part of what makes the human summaries informative. Removing most of an article can be beneficial when training has few close relatives of the test birds. Where relatives are available, a classifier can also benefit from the information that the shorter text omits. The authors interpret the shared-category recovery with similarity features as evidence that the original documents still have a role.

What the sentence selector keeps and misses

Against the CUB human labels, the automatic method removes 49.4% of sentences. It obtains 96.23% recall, meaning that it keeps most sentences the human annotators selected. Its precision is 22.59%, meaning that a much smaller share of the sentences it keeps has a human relevance label. For random removal of the same 49.4% of sentences, the paper gives 50.6% recall and 11.9% precision. At the same amount of removal, the caption-based method preserves human-labeled sentences much more reliably. The precision also shows that the resulting text is substantially less selective than the human summaries.

Recall of human-labeled appearance sentences on CUB

Caption-based selection preserves more human-labeled sentences at the same removal rate.

Recall of human-labeled appearance sentences on CUBRandom sentence removal: 50.6Random sentence removal50.6ZEST VRS (this paper): 96.23ZEST VRS (this paper)96.23
The numbers
System or settingrecall %
Random sentence removal50.6
ZEST VRS (this paper)96.23

The illustrative classifications in the paper make the precision result more concrete. One discarded sentence is about seasonal movements, a clear example of information outside the intended summary. Another sentence uses a color word for a predator. ZEST drops it even though a color word could plausibly help describe a bird in a different context. The selector also drops a foraging sentence that mentions a bill in describing how the bird dives. A reference to anatomy is relevant to the text topic in that case, but serves mainly to describe an action.

Other examples show the selector making the opposite decision. It keeps a sentence whose main point is the bird’s vulnerability to predators and whose reference to small size could sound like an appearance cue. It also keeps a sentence about the flowers that hummingbirds prefer, apparently responding to language about the flowers’ color. These errors show the distinction between a sentence that resembles a caption and one that describes the appearance of the candidate bird. A broad visual cue can be attached to surrounding objects, and a meaningful property of the bird may appear in a sentence whose main subject has little bearing on recognition. The paper’s examples include a directly relevant description of the bird’s head coloration, of the type the annotators were meant to retain.

The recognition experiment with human summaries clarifies the scope of these sentence-level measurements. High recall is valuable when an omitted sentence might contain a distinguishing feature. Precision evaluates another property, agreement about the usefulness of the remaining sentences. Even there, usefulness for a human definition of appearance and usefulness to the classifier are separate outcomes. The full document can contain evidence that helps group species without belonging in a visual summary. Keeping those sources separate makes it possible to see why a gain in sentence precision and a gain in recognition need not occur together for every configuration.

How much caption data the selector uses

The authors vary the number of captions used as references for extracting sentences. Their plot for CUB SCE shows that 5 captions in total can be sufficient to reach the maximum accuracy seen in that experiment. This is a different count from using the first five captions of every eligible training image to construct the main caption pool. The small-caption run tests whether selecting relevant prose needs extensive examples of caption language once a pretrained sentence encoder is available. In a separate transfer test with five arbitrary CUB captions, the authors obtain 39.28% top-1 accuracy on NAB SCS.

For context, the paper contrasts this with the amount of caption supervision reported in Reed and colleagues’ earlier recognition work. That work used at least 512 captions per class to attain its maximum accuracy. The quantities refer to different jobs. In ZEST, the captions help rank sentences in existing species descriptions. The species descriptions and the training photographs carry the evidence used to learn the classifier’s association between text and visual features. The smaller caption requirement concerns that sentence-ranking job under the experiments in the paper.

Limitations

Limits acknowledged by the authors

The authors distinguish the conditions in which close textual relationships can help from those in which useful train–test relationships are scarce. Their similarity procedure depends on shared clusters having support on both sides of the split. They explicitly expect that sort of evidence to be more available in SCS. On SCE, the threshold can suppress the cluster contribution, and the similarity system has the same conventional zero-shot accuracy as the vanilla version. This defines the mechanism’s role in the reported system. It helps organize transfer when the candidate descriptions connect to descriptions associated with training photographs.

The authors also acknowledge that automatic extraction is imperfect. Its sentence-level precision on CUB is low against the human reference, even though it retains most of the human-labeled material. The qualitative cases document some of the ambiguity. A sentence can use an appearance-like description for a flower, and a sentence about a bird can refer to a body part in describing its behavior. The paper regards the recognition gains available with human extraction as evidence that sentence selection can improve further. The GAZSL comparisons qualify the scope of that claim by showing that a leaner summary helps some settings and can lose useful information in others.

The text-selection procedure relies on examples of visual language in the domain of interest. The authors make a case for using captions of arbitrary birds, including captions borrowed from another dataset, because the selector seeks recurring ways of expressing bird appearance. Their conclusion extends this as a conjecture about the importance of text processing in other vision-and-language tasks. The experimental demonstration concerns fine-grained bird recognition, with captions and articles drawn from resources that describe birds.

Limits of the evaluation

The differences between the automated and human summaries should be read in light of what the humans were asked to mark. The CUB annotation follows a specified guideline, with hatchling descriptions excluded. That decision makes sense for the paper’s definition of visually relevant evidence, but it means the labels encode a particular view of which appearance descriptions count for the task. The agreement measures apply to that reference. The experiments report no human-summary condition for NAB, so there is no corresponding reference for judging whether sentence selection preserves the same kinds of information there.

The NAB transfer result isolates a particular kind of reuse. The captions for identifying potentially relevant sentences come from CUB, while the NAB experiments have their own training images and class descriptions. The reusable component is the caption-guided filtering procedure. The result leaves open how a classifier trained wholly on one dataset would behave if it were asked to score images and descriptions in the other. It also leaves open how well the same caption pool would guide extraction for a different kind of animal or a different visual task.

The similarity method assumes that the descriptions of the candidate classes are available jointly for clustering. This fits the benchmark, where the whole test vocabulary is specified and the articles are auxiliary input. Some recognition settings supply descriptions as new categories arrive. Cluster membership and the overlap criterion can depend on which candidate documents are present together, so the experiments do not establish performance when candidates are introduced that way. Since the overlap threshold is tuned on a validation split, the equal SCE scores also leave the performance of an always-on cluster representation unmeasured in the reported comparison.

The role of the visual encoder sets another boundary. The paper keeps a part-based bird encoder and asks whether improvements in the text help image classification with that encoder. Its evidence therefore concerns the combination of a visual representation already built around bird parts, a document representation, and the learned compatibility calculation. It does not directly measure correspondence between individual selected sentences and specific parts in test photographs. A sentence can improve the collection of term features used in the score without being faithful to every photograph of that species. Captions guide relevance at the domain level, and the extracted sentences describe the class at the article level.

The reported averages make large and small changes easy to distinguish descriptively. The uncertainty information is thinner for comparisons involving automatic summaries. For example, the top-1 change from 10.18% to 10.23% on NAB SCE is small, and the standard deviation supplied for ZEST similarity is 0.174 on that split. The paper does not give the spread of the paired differences for that comparison. This leaves uncertainty about how reliably that small increase would recur across random initializations. The generalized results separately show a reduced area on SCS after adding VRS, which narrows any interpretation based on an across-the-board improvement claim.

Finally, the caption experiment shows that a small collection can suffice under the tested conditions. An average of caption similarities depends on the captions it averages, and the paper’s small-pool tests concern bird captions paired with a particular pretrained encoder. The CUB curve and the NAB example give evidence that exhaustive caption coverage can be unnecessary for this use. They leave open how sensitive a small pool would be to different choices of captions, different kinds of reference articles, or requirements to distinguish unfamiliar categories whose appearance language is much less like that of the captioned classes.

What came after

There is no documented follow-up to attribute to a later work here. The paper itself leaves a concrete question for subsequent research. Its human comparison suggests that more selective extraction can improve recognition when the test species come from groups held out of training, while the shared-category experiments show a continuing role for information outside an appearance summary. The authors conjecture that careful treatment of textual evidence could help other vision-and-language tasks. ZEST’s experiments establish the distinction for bird recognition by testing both how descriptions connect species and how their sentences convey the details that distinguish them.

Cite

Cite as Tzuf Paz-Argaman, Reut Tsarfaty, Gal Chechik and Yuval Atzmon. 2020. ZEST: Zero-shot Learning from Text Descriptions using Textual Similarity and Visual Summarization. Findings of the Association for Computational Linguistics: EMNLP 2020.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2020.findings-emnlp.50

@inproceedings{pazargaman2020zest,
  title = {{ZEST: Zero-shot Learning from Text Descriptions using Textual Similarity and Visual Summarization}},
  author = {Tzuf Paz-Argaman, Reut Tsarfaty, Gal Chechik and Yuval Atzmon},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2020},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.50},
  url = {https://doi.org/10.18653/v1/2020.findings-emnlp.50}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/argaman-2020-zest-zero-shot-learning-text/