Generating Semantically Precise Scene Graphs from Textual Descriptions for Improved Image Retrieval
Paper · 2015 · Sebastian Schuster, Ranjay Krishna, Angel Chang et al.
Summary
An image search can return the right objects and still miss the scene a person asked for. A search for a boy in a shirt decorated with an airplane might turn up a boy holding a toy airplane. Both pictures contain many of the same things, but the connection between those things determines which picture answers the query. The paper tackles this problem by translating a written description into a scene graph. The graph gives each mentioned object its own entry, attaches properties such as colors to the appropriate objects, and records directed relationships such as who is wearing what. The user writes a sentence, and the image retrieval system uses the graph to rank pictures.
The authors develop two parsers, one based on rules and the other on a classifier. Both start with the grammatical structure of the sentence and revise it to bring out information the scene graph needs, including what a pronoun refers to and when a plural noun denotes multiple objects. The rule-based parser looks for recurring grammatical patterns. The classifier-based parser learns from descriptions paired with graphs that people constructed while looking at the images. The same image ranker receives the graph whichever parser produced it, so the experiment tests how different ways of expressing the query affect retrieval.
On the held-out test set, both parsers reach 27.1% Recall@10, compared with 24.8% for the baseline that submits only objects and 33.4% when the ranker receives human-constructed graphs. The median rank of the first correct image is 20 for both full parsers and 25 for the object-only baseline. A separate score for agreement with human graphs favors the object-only baseline, even though its searches perform worse. The results give a concrete reason to evaluate the graphs in use. An accurately attached color or a well-chosen relationship can change the image ranking even when the graph still differs from the human annotation in other ways.
Some of the remaining errors require information beyond grammatical structure. A parser has to infer, for example, that a helmet matching a green shirt is green too. The human annotators also saw the images, so they could include details absent from the sentence. As a separate demonstration, the authors put the classifier-based parser into an existing system that builds three-dimensional scenes from text. It generated indoor scenes from written descriptions, showing that the same kind of graph could serve as input to another application. The paper evaluates the search application quantitatively and illustrates the graphics application with examples.
Deep dive: Generating Semantically Precise Scene Graphs from Textual Descriptions for Improved Image Retrieval
This paper turns written image descriptions into scene graphs and tests how objects, attributes and relations affect image search. · about 36 minutes to read
The problem and its context
What a detailed search query asks for
A person can describe a desired picture by naming its contents, specifying their properties, and explaining how they fit together. Some requests can be satisfied by the first of these alone. Others depend on all of them. The paper opens with results from a popular search engine for a description of a boy whose shirt bears an airplane design. A toy airplane can satisfy a search for the word airplane, and a shirt can satisfy the clothing term. For the actual request, though, the airplane has to be associated with the shirt in a particular way. A search method that treats the terms as independent clues has no direct way to express that requirement.
The problem also arises when all requested properties are present somewhere in a picture. Imagine searching for the airplane with colored stripes discussed later in the paper. The colors belong to the stripes, and the stripes belong to the airplane. A picture with colored markings elsewhere might contain evidence for several words in the description without depicting that arrangement. The search system needs to track which thing has which property, as well as the presence of the properties themselves. Descriptions can state these constraints economically because ordinary grammar already supplies ways to connect words and phrases.
The query can be much more specific than the caption an image might ordinarily receive. The authors point out that a caption writer decides which parts of a scene are worth mentioning. The design on somebody’s clothing might be incidental to that writer and decisive for the searcher. Even a perfectly accurate caption can therefore leave out the detail that distinguishes a useful result. Putting a detailed request into a structured form gives the searcher a way to state the distinction. The visual side still has to find evidence for it in the picture.
The authors describe a history in which early retrieval work relied on textual descriptions and later content-based approaches used features of the images themselves. Keyword search remained a common way to express the information need. The paper’s example concerns what that query interface conveys. Even when the image side can recognize an airplane, a boy, and a shirt, those recognitions need to be combined in accordance with the request. The paper studies the language component that supplies those instructions to an existing approach for visual ranking.
Why use a graph between the sentence and the image?
The paper discusses another approach in vision and language that places sentences and images in a shared numerical space. A system can compare a sentence representation with image representations and use the resulting similarities to retrieve pictures. Related work also used such representations to generate captions from images. Schuster and colleagues focus on the supervision available to those approaches. When image descriptions consist of individual captions, each caption generally covers a selection of the scene’s contents. Learning similarities from these pairs gives the system only the distinctions represented in those descriptions.
Approaches based on shared representations and the scene-graph pipeline also expose different information at the point where language hands off to vision. A scene graph spells out the objects, properties, and connections that will guide the search. Those entries can be inspected and passed to a separate component. It is possible to change the language analysis while keeping the visual ranker fixed, or to use the graph outside image search. The paper makes these capabilities concrete by connecting the parsers to an existing retrieval method and trying one of them in a graphics system.
The immediate starting point was the work of Johnson and colleagues. They obtained rich image annotations from crowdworkers and represented them as scene graphs. They showed that a partial graph could serve as a query for ranking images that had no scene-graph annotations available to the ranker. A partial graph can describe a small part of an image and leave the rest open. The inconvenience is that a searcher would have to enter the query as a graph. Schuster and colleagues preserve that structured interface between components and put ordinary text in front of it. Their main research question is whether the automatically produced query is useful enough for the visual ranker.
This divides a difficult task into decisions made at different stages. The language stage decides that a phrase describes a particular object, attaches its properties, and determines its connections to other objects. The visual stage looks for regions of the image where these claims could hold together. For example, the language stage can tell the visual system to look for a stripe belonging to an airplane. The visual system still has to judge which regions plausibly contain the aircraft and the marking. This division is why the experiments can compare several kinds of queries with the same image ranker.
Why start from grammar?
The project belongs to semantic parsing, where a sentence is turned into an explicit representation of its meaning for some task. A scene graph aims to represent the contents of the described scene. A grammatical analysis supplies useful clues about those contents because a verb’s dependencies frequently identify the entities taking part in an action, and a noun’s modifiers frequently express its properties. The connection is strong enough to exploit, though several stages are needed to get from grammatical dependents to object instances and scene relations.
The authors consider Abstract Meaning Representation as a possible starting point. That work represents sentence meaning with graphs, and earlier research had already developed ways to parse text into those graphs. The scene graph would still require a further conversion. At the time of the study, the authors judged dependency parsers to be a more reliable starting point for the task. Their method therefore takes a grammatical analysis and makes targeted changes for scene descriptions before extracting the final graph.
Earlier work had already put structured language analyses to use for visual tasks. The paper describes a rule-based system for producing scene templates, a dependency-based representation for image retrieval, and a system that transformed dependencies into graphs for video search. In the authors’ account, those approaches used restricted sets of relations and relied on rules tailored to their tasks. The classifier in this paper can learn relation labels from the annotations used for training. Its vocabulary is still determined by the training data. The difference is that the authors can introduce a relation through examples without writing a grammatical rule specifically for that label.
The method, step by step
From a sentence to a query the ranker can use
Consider a description of a man looking at his black watch. To represent the scene, the parser needs an entry for the man and another for the watch. Black is a property of the watch. Looking at is directed from the man to the watch, and the possessive gives a second connection between the same pair. The graph can express these facts independently. A single object can have several properties, and a single pair can participate in several relations.
The pipeline first analyzes the grammatical dependencies. A dependency is a labeled link from a governing word to a dependent word. A dependency analysis can show, for example, which noun is the subject of a verb or which noun an adjective modifies. The authors transform this analysis into an intermediate representation they call a semantic graph. Its nodes and edges still carry linguistic information. A scene graph is what comes out of the next step. It contains the selected object instances and their visual properties and relationships. The rule-based and classifier-based paths share the semantic graph and differ in how they turn it into the finished query.
From a written description to ranked images
The steps in order.
The paper released both scene graph parsers and their associated trained components. The image ranker used in the experiments is the authors’ reimplementation of Johnson and colleagues’ system. It consumes the same kind of graph whether it comes from the rule-based parser, the classifier-based parser, or a human annotator. The training procedure for the language classifiers is separate from the training procedure for that ranker.
What the graph contains
The paper starts with a set of available object classes, a set of relation types, and a set of attribute types. Its graph notation separates the objects from the connections among them.
G = (O, E)
G is the scene graph for the input sentence, which the authors denote by S. O is the set of objects mentioned in S, and E is the set of relationships between those objects. The parentheses group those sets into the representation of the graph.
O = {o₁, …, oₙ}
o₁ through oₙ denote the individual objects, and n is the number of objects in O. The braces indicate a set, and the ellipsis denotes the intervening members. Each object is an instance. Multiple instances can have the same class even when they participate in different relationships.
oᵢ = (cᵢ, Aᵢ)
i selects one object from O. cᵢ is its class, such as watch, and Aᵢ is its set of attributes, which in the watch example contains black. The class belongs to the vocabulary C, and the available attribute types come from A.
cᵢ ∈ C
∈ indicates membership. The class cᵢ of object oᵢ is one of the classes in C.
Aᵢ ⊆ A
⊆ indicates a subset. The attributes Aᵢ assigned to object oᵢ are drawn from A, and the subset may be empty. An attribute is attached to the instance it describes. Thus, two watch objects can carry different colors even though both have the same class.
E ⊆ O × R × O
R is the set of relation types, and × forms the set of all ordered triples from the listed sets. Each actual edge in E consists of a source object from O, a type from R, and a target object from O. The order identifies which object fills which role. The man is the source of the looking relation in the watch example, and the watch is the target. The graph can also include a separate possession edge with the same source and target. The inventories C, A, and R consist of labels found in the training data.
This definition also gives a way to see why a graph that lists only object classes can lose important distinctions. If the description mentions several objects of the same class, O can represent them as different instances. Aᵢ and E then say what makes each of those instances relevant. A query can ask for a red stripe and a blue stripe on the same aircraft without asserting that the two colors occur on the same stripe or that either is a property of the aircraft itself.
How the authors obtain sentence and graph pairs
The training data come from an annotation project using images in the overlap of YFCC100M and Microsoft COCO. The authors originally annotated 4,999 images. The work was done in two passes on Amazon Mechanical Turk. Dividing the work this way helped the authors gather descriptions of different parts of each picture and gave them a record of which part of a finished graph belonged with each sentence.
In the first pass, a worker wrote a sentence about the picture or some part of it. Workers could see descriptions already submitted for that picture and were asked to describe something new. The authors also checked each incoming sentence against the earlier ones using a threshold on the BLEU score. Here BLEU served as a check on overlap in wording during collection. The group of descriptions for an image could cover different objects or different aspects of the same objects, depending on what the workers chose to report.
In the second pass, a worker saw an image together with one of its descriptions. The worker drew boxes around the mentioned objects and supplied their properties and relationships. The result was a partial scene graph associated with the sentence. Combining the partial graphs gave a more extensive graph for the whole image. The data therefore connect sentences to graph fragments and objects to image regions. Those connections serve different purposes in the pipeline. The sentence and graph pairs teach the language component, and the human-annotated images provide supervision for the visual ranker.
Workers supplied their own labels. The authors normalized those labels before training. They stripped articles from the ends of labels and used lemmatization to put their words into base forms. A coordinated color label such as red and green was divided into separate attributes. The normalized graph can then represent both properties explicitly, which also increases the number of recorded attribute instances in some cases.
The authors next removed classes or types with fewer than 30 occurrences in the full dataset. They give two reasons. A visual system needs repeated examples to learn to recognize a class or type, and some of the rare labels reflect mistakes or confusion about the annotation task. If an element in a sentence graph fell below the threshold, the whole sentence and graph pair was removed. The training procedure treats a surviving annotation as a complete account of the sentence. Keeping a graph after deleting a property or relationship would create an example in which an expressed fact appears unlabeled. If filtering removed all the descriptions of an image, the image was dropped as well.
The counts show how much this choice reshaped the vocabulary. The raw annotations had 18,515 object classes, 7,348 attribute types, and 9,274 relation types. Normalization reduced these inventories to 15,734 object classes, 6,442 attribute types, and 7,507 relation types. Filtering then brought them to 798, 277, and 131, respectively. The processed corpus still had 4,999 images and 88,188 sentences before filtering. The filtered corpus had 4,524 images and 50,448 sentences. The paper reports discarding around 9% of its images, alongside a drop of 30-45% in the average amounts of object, attribute, and relation annotation per image. The final corpus gives the parsers repeated examples in a substantially more restricted vocabulary.
How the grammatical analysis is prepared
The pipeline starts with the enhanced output of Stanford Parser v3.5.2, using an analysis based on Universal Dependencies. The authors augmented the dependency parser’s training material with the Brown corpus because the phrasing of image descriptions frequently differs from the newswire sentences on which such a parser can be trained. The enhanced analysis is still organized around grammatical structure. The added transformations address cases where that structure gives an inconvenient account of the objects or their connections.
The first transformation handles phrases that express quantity through nouns with little meaning of their own. In a phrase such as a lot of cars, the scene contains cars. It is that noun that needs to take part in relations expressed elsewhere in the sentence. The authors use a manually assembled inventory of such expressions. They reorganize the words within the quantity expression so that its first word heads the others, and make the resulting expression depend on the noun phrase that names the things being counted. For similar phrasing with both, this puts the noun for the objects in the same central position whether or not the description includes of the. Rules that look for the subject or a classifier that inspects a dependency path can then reach the object more directly.
The next transformation performs coreference resolution within the sentence. In a description of a bed with a pillow on it, the pronoun identifies the bed as the object that supports the pillow. Resolving the pronoun gives the later stages a connection between those scene objects. The authors found that a document-level system by Lee and colleagues resolved pronouns too conservatively for this task. They adapted the opening rules of the Hobbs algorithm to operate over dependencies and look for an antecedent within the description. The resulting semantic graph lets the antecedent stand in for the pronoun. The classifier’s lexical features also account for the possibility that the same entity is then associated with several positions in the sentence.
The final transformation handles plural nouns. The graph represents instances, so a plural word can require several entries even though it occurs only once in the sentence. The authors expand nodes according to their numeric modifiers and cap the number of copies per node at 20, a choice tied to the quantities observed in the corpus. For a plural without a numeric modifier, they make one copy of the original node. The method therefore supplies multiple instances without needing an explicit count for every plural mention.
Plurality also affects the connections among instances. Men wearing jeans ordinarily call for separate pairings of a person with his clothing. Men carrying a piano can be understood as acting together on the same piano. The authors describe this as a distinction between distributive and collective readings. They use the distributive reading, which they found more common in practice. The riding example in the paper illustrates how the transformations work together. The quantity phrase is reorganized so that the men take the subject role, the possessive pronoun is resolved, and nodes associated with the riders, action, and horses are copied. The later rules can match the corresponding rider and horse in each branch.
How the rule-based parser reads the semantic graph
The rule-based parser uses nine patterns written as Semgrex expressions. These expressions match configurations of words and labeled dependencies. The patterns cover adjectival modification, subject and predicate constructions with and without objects, clauses connected by a copula, prepositional phrases, possession, passives, and clauses that modify nouns. Each successful match identifies the pieces that should become objects, attributes, or relations. An adjective attached to a noun can contribute a property of the object named by that noun.
The riding example shows why a rule can work from the reorganized graph. A rule for a subject, predicate, and object finds the man node attached as subject of the riding verb and the horse node attached as its object. It finds the corresponding pattern on the copied nodes as well. The rule generates a riding relation for each of the matched man and horse pairs. A possessive pattern contributes a further relation to each pair. For possession, the authors supply the label have. The other patterns obtain their graph labels from words that occur in the semantic graph.
This approach ties extraction decisions to identifiable grammatical structures. In the riding example, the direction of the edge follows the grammatical roles, and the additional edge for possession follows a different dependency. A single pair can receive both. The output also depends on the transformations that happened earlier. A rule can find the rider in the intended role because the quantity phrase was reanalyzed and can connect the horses to the riders because the possessive was resolved.
How the classifiers choose objects, properties, and relations
The classifier-based parser works in two stages. The first extracts potential objects and properties from the semantic graph. It takes nouns as candidate objects and adjectives and intransitive verbs as candidate attributes. An intransitive verb is one used without a direct object. It can describe what an entity is doing or the state it is in, which may be useful as a property for matching a scene. These are candidate roles. The parser still has to map the words to usable labels and decide whether each proposed property belongs to an object.
For each candidate, the first classifier chooses a class or type from the known vocabulary. It is a maximum entropy classifier, which assigns probabilities to possible labels using weighted features. Its L₂ regularization discourages excessively large feature weights. It uses the original word, its lemma, and its 100-dimensional GloVe vector. A word vector represents a word by numerical coordinates, allowing words with related patterns of usage to provide similar evidence. The original word and the lemma give the classifier access to the surface wording and its normalized form as well. Projecting candidate words onto known labels matters because the visual ranker can use only the classes and types it was trained to recognize.
The second classifier decides which connections to include. It operates on ordered pairs.
(x₁, x₂)
x₁ is a candidate object, and x₂ is either another candidate object or a candidate attribute. The paper calls the classifier’s output y. It may be a relation type observed during training, IS for a property attached to the first object, or NONE when there is no connection to record. An IS prediction fills in the attribute set of an object in the finished graph. An object relation becomes a directed edge.
The classifier examines a restricted set of pairs. The authors found that connected items typically occupy the same part of the grammatical structure. They operationalize this observation using the lowest common ancestor, the shared governing node nearest to the items in the dependency structure. They consider a pair if that ancestor is one of the endpoints or if its word occurs between them. This limits how many pairs the classifier evaluates and is intended to avoid unnecessary relation predictions across different parts of the sentence.
For each retained pair, the classifier uses information about the endpoints, the words between them, and the dependencies that join them. For the endpoints it sees the original words, lemmas, and predicted labels. For the intervening positions it uses the words and their lemmas. When pronoun resolution associates an endpoint with more than one place in the sentence, the features are taken between the closest mentions of the two endpoints. For grammatical evidence, the classifier joins the dependency labels on the shortest path connecting the endpoints. Hence, it can use both the words lying between two mentions and the grammatical route that links them.
By default the classifier keeps an object if it has a property or participates in a relation. The intent is to exclude abstract noun candidates such as setting that often have no role in the scene. In around 30% of development sentences, however, the parser extracted no relation or attribute at all. Applying the inclusion rule in those cases would yield an empty graph. The implementation instead falls back to all candidate objects when the graph would be empty. A query can therefore retain some searchable content even when the classifier finds no structure to add.
How sentence words are matched to training labels
The annotations identify graph objects and properties but leave their correspondence to individual words implicit. The authors infer these alignments from each sentence and its graph. They extract the same kinds of candidates used at prediction time and then try to find a candidate for each annotated object or property involved in a training pair or triple. The relation type comes from the annotation. The alignment stage determines which sentence words should serve as the endpoints or the property mention for that training example.
The matching procedure begins with exact agreement between the label and a candidate word or lemma. It then allows an edit distance of two, which tolerates small changes in the string. Finally, it compares 100-dimensional GloVe vectors using Euclidean distance and takes the candidate with the closest vector. For this last step it checks the other words in the sentence as well. If the closest word lies outside the candidate set, the example is discarded. This gives the procedure a way to avoid forcing a match onto an eligible word when another part of the sentence is a better lexical match. The check is especially relevant because annotators sometimes recorded objects absent from the description.
The first classifier is trained on the links from words to object or attribute labels. The second uses complete aligned object–relation–object triples and object–property examples treated as triples with IS as the link. These aligned examples supply the positive cases. A candidate pair with no connection in the graph can supply a negative case labeled NONE. The authors sample from the negative cases to give the relation classifier equal numbers of positive and negative training examples. This part of the training depends on the decision to treat the retained sentence annotations as complete. An unmarked pair can be taken as negative under that assumption.
How the query becomes an image ranking
The ranker first finds possible object regions in each image. It then uses a conditional random field, a probabilistic structure that scores a joint assignment of the graph’s objects to image regions. The score takes account of the classes, properties, and relations. The connections among the assignments reflect proximity in the image. For a query with a stripe on an airplane, the region that looks like a stripe and the region that looks like an airplane have to work together as a plausible grounding of the edge.
For ranking purposes, the likelihood of grounding the query in a picture is approximated by the likelihood of its best assignment. A graph containing only objects still gives the ranker visual class evidence. Adding colors and relations gives it additional evidence about which assignments satisfy the request. The same mechanism can put a picture lower in the list if a predicted property or relationship is wrong. The experiments measure the net effect of giving it those richer automatically generated graphs.
Experiments and results
Splits and comparison systems
The split is by image. The training set contains 3,614 images and 40,315 sentences, with 38,617 annotated relation instances and 37,580 attribute instances. The development set contains 454 images and 4,953 sentences, with 4,826 relation instances and 4,644 attribute instances. The held-out test set contains 456 images and 5,180 sentences, with 4,963 relation instances and 4,588 attribute instances. The instance counts refer to occurrences of relations or properties, whereas the earlier vocabulary counts refer to distinct labels. The authors trained the visual ranker using the human-constructed graphs in the training split.
The nearest-neighbor baseline represents a sentence by the frequencies of its terms, finds the closest description in the training data under that representation, and returns the graph already associated with that description. It can return attributes and relationships if they are present in the borrowed graph. Its ability to answer a new request depends on finding a training sentence whose graph is appropriate as a whole. For a detailed query, a sentence with similar words can still have a different arrangement of objects or properties.
The object-only baseline shares more of the full parser’s machinery. It uses the semantic graph processing and the learned object extraction stage, and it returns all candidate objects. This gives it normalized object labels and the effects of the shared grammatical transformations. It submits no attributes or relationships. The comparison with the full parsers tests the overall effect of building a structured query beyond object extraction. The full classifier also applies its object retention policy, so the baseline and the full parser can differ in which objects survive.
The human-graph condition uses the graph annotated for the sentence as the query. The authors call this the oracle. It answers a practical question about the size of the retrieval improvement available when the query is supplied by a human annotation rather than a parser. The images are ranked by the same retrieval system, so the oracle can still miss relevant images. It also has access to query details that annotators could obtain by looking at the source picture.
How the scores are defined
Each test description gives rise to a ranking over all the images in the test split. The set of correct pictures is defined from the human graph of the query.
I = {i₁, …, iₙ}
I is the set of relevant images for the current description. i₁ through iₙ denote its members, n counts those members, and the ellipsis stands for any intervening members. The authors write Gₕ for the human-constructed query graph, with h denoting the human annotation. An image enters I when its full annotated graph contains Gₕ as a subgraph. The picture may contain more than the requested scene fragment, so additional annotated content does not remove it from the relevant set.
The authors use the ranks of the relevant images to compute Recall@5 and Recall@10. These cutoffs capture how much of the relevant set appears in the early results. They also report the median rank of the first correct image, for which a lower value is better. The measures answer related questions. Recall gives credit for retrieving relevant pictures within the chosen result window. First-correct rank concerns how far a reader typically goes down the list before reaching any relevant image. The authors observed unstable Recall@1 and reported the longer cutoffs.
The separate intrinsic measure is Smatch F1. The authors adopted it because scene graphs and Abstract Meaning Representation graphs both encode instances, attributes, and relations. Smatch compares the generated graph with the graph constructed by annotators. The comparison can be run without ranking candidate images, which makes it attractive during parser development. Its reference is the annotation itself, whereas retrieval measures the consequences of giving that graph to the visual ranker.
Held-out rankings
Recall@10 by query method on the held-out image retrieval test set
Both full parsers improve on the object-only baseline and tie each other below the human-graph condition.
The numbers
| System or setting | Recall@10 % |
|---|---|
| Nearest neighbor | 2.3 |
| Object only | 24.8 |
| Rule-based parser (this paper) | 27.1 |
| Classifier-based parser | 27.1 |
| Human-constructed graph | 33.4 |
Both full parsers reach 27.1% Recall@10 on the held-out test set. This is the main result behind the paper’s claim for graph queries that include attributes and relations. The object-only baseline reaches 24.8%, and using the human graph raises Recall@10 to 33.4%. The nearest-neighbor baseline reaches 2.3%. The strong object-only result shows how much the visual ranker can already accomplish with recognized object classes. The full graphs add evidence that improves the ranking within the same evaluation.
At the shorter cutoff, the test Recall@5 is 13.5% for the rule-based parser and 13.8% for the classifier-based parser. The object-only baseline reaches 12.6%, the nearest-neighbor baseline 1.1%, and the human-graph condition 16.6%. The test median rank of the first correct result is 20 for both full parsers, 25 for object only, and 205 for nearest neighbor. The paper gives no median rank for the oracle in this comparison. Together, the reported metrics show that richer automatic queries retrieve more relevant images near the top and bring the first relevant result higher in the list.
The airplane-and-stripes example explains what the aggregate scores can look like for a single query. The object-only system’s first results tend to favor stripe matches without reliably finding an airplane with the specified markings. The classifier’s graph attaches the colors to their respective stripe objects and connects those objects to the airplane. The resulting ranking puts the two airplanes with the requested blue and red stripes at the top. The authors use this example to show that the visual ranker can act on property and relation information. The overall results measure the benefit across descriptions where those constraints vary in how important or recognizable they are.
Development rankings
The same broad ordering appears on the development split. The classifier-based parser scores 16.7% Recall@5 and 32.9% Recall@10, with a median first-correct rank of 16. The rule-based parser scores 16.4% Recall@5 and 31.6% Recall@10, with a median rank of 17. The object-only approach obtains 15.0% Recall@5 and 29.3% Recall@10, with a median rank of 20. Nearest neighbor has 1.2% Recall@5 and 2.3% Recall@10, with a median rank of 206. The human-graph query reaches 19.4% Recall@5 and 39.8% Recall@10. As on the test set, the paper leaves the oracle median rank blank.
The classifier-based parser has a small advantage over the rules in all the reported development retrieval measures. On the held-out split, the parsers tie for Recall@10 and median rank, with a small difference in Recall@5. The useful comparison is therefore the consistent gain by both full parsers over the baselines. The authors see little separation between the full parsers as retrieval query generators, even though they find some differences in the kinds of structures each extracts.
Agreement with the human graphs
Smatch F1 by parser on the held-out sentence-to-scene-graph test set
The object-only baseline has the highest graph agreement even though its retrieval is weaker than that of either full parser.
The numbers
| System or setting | Smatch F1 % |
|---|---|
| Nearest neighbor | 32 |
| Object only | 48 |
| Rule-based parser | 44 |
| Classifier-based parser (this paper) | 47 |
The test Smatch F1 values are 32% for nearest neighbor, 48% for object only, 44% for the rule-based parser, and 47% for the classifier-based parser. On development, the values are 32%, 48%, 43%, and 47% for those same systems. The object-only approach has the strongest intrinsic score on both splits. Its advantage on graph agreement goes together with a disadvantage on every reported retrieval measure. The authors conclude that Smatch F1 has no strong correspondence with retrieval performance in these comparisons. A score that helps assess closeness to the annotation cannot automatically stand in for a score that measures the quality of the image ranking.
A check against the original retrieval system
The paper also checks the reimplementation on the data originally used by Johnson and colleagues. On that original evaluation, Johnson and colleagues’ system reports 30.3% Recall@5, 47.9% Recall@10, and a median rank of 11. Schuster and colleagues’ reimplementation reports 27.6% Recall@5, 45.6% Recall@10, and a median rank of 12 on the same data. These values are from the original authors’ dataset. They provide a check on whether the reimplementation behaves similarly under those conditions.
The paper offers two explanations for the lower oracle recall on its own dataset. Its annotations cover a more diverse set of classes, attributes, and relationships. Its evaluation also includes all queries, whereas the earlier work used common queries with at least five relevant results. The check shows that the reimplementation can approach the earlier system’s performance under a shared protocol. The paper does not isolate the individual effects of the changed query selection and the changed diversity of the annotations.
What the ablations show
What is gained when a query describes a scene
The paper reports no systematic ablation of individual graph components or parser features. It does offer an object-only comparison, a separate evaluation of pronoun resolution, a comparison between the rules and classifiers, and qualitative analyses of the graphs and the resulting rankings.
The object-only baseline is the closest comparison for testing the value of graph structure. The visual ranker is held fixed, and the baseline benefits from the learned object extractor and shared semantic graph processing. It gives the ranker a reasonable account of which objects occur in the description. When the full parsers improve recall and first-correct rank, that shows that their extra query structure is useful under this retrieval setup. The nearest-neighbor baseline establishes a different point. Returning a complete graph from a lexically similar training sentence is much weaker than building a new graph around the objects in the query.
The full structures change several things at once. The colored-stripe example depends on both the color attributes and the relationships linking the stripes to the aircraft. The paper does not test queries with the colors preserved and the relationships removed, or the converse. It also does not hold every object instance fixed across the object-only baseline and the full classifier. As a result, the comparison supports the structured query as a whole. It leaves open how much of the gain comes from object selection, how much comes from properties, and how much comes from relations.
The example also shows why a graph can improve retrieval with a few consequential changes. If a baseline already captures the aircraft and both stripes, it still leaves the ranker to decide how their appearances might fit the request. Attaching each color and specifying the whole to which the stripes belong changes the region assignments that count as good matches. A small part of the graph can therefore have an outsized effect on which pictures appear first. Smatch F1 registers overall agreement with a reference graph and does not measure that effect directly.
What the pronoun comparison measures
The pronoun resolver was evaluated on 200 randomly chosen image descriptions that contain pronouns. The sentence-level resolver achieved 88.5% accuracy, and the document-level system by Lee and colleagues achieved 52.8% accuracy on those descriptions. The designers had observed that the latter frequently declined to resolve pronouns in this setting. A method aimed at finding antecedents within a short scene description handles many more of the references in this evaluation.
This test isolates a language-processing decision more directly than the retrieval comparisons do. It shows how well each resolver identifies a referent on the selected descriptions. It does not report the retrieval gain attributable to replacing one resolver with the other. That would require running the full ranking pipeline with alternative pronoun analyses or disabling the transformation while holding other inputs constant. The available result supports the choice of resolver for pronoun-containing descriptions, and the bed-and-pillow example explains what relation would otherwise be hard to express.
Where the parsers behave differently
The qualitative comparison gives some insight into why similar retrieval totals can accompany different graphs. The classifier can learn that an adjectival modifier such as several should not become an object property. It can also learn a pattern in which a description of a shirt as looking dirty supports assigning dirty as the shirt’s property in the depicted scene. These decisions depend on how examples are annotated and on the combination of words and grammatical paths the classifier sees.
The authors found the rules more consistent in extracting relations. The classifier more often produced a result containing only objects. The fallback in the classifier preserves those objects when no properties or relations survive, which keeps such cases usable as searches. The aggregate results do not reveal whether the rules and classifier typically succeed on the same queries. The qualitative observations establish that the two routes can arrive at similar retrieval scores through different extraction behavior.
What the transfer demonstration establishes
The authors also replace the original parser in an existing system for generating three-dimensional scenes with their classifier-based parser. They use it without further modifications and generate scenes for several indoor descriptions. The illustrations include a wooden desk supporting a lamp with red and green coloring and a desk with a notepad on it. In these examples the graph carries the objects, properties, and placement relationships needed by another component.
The authors judge the scenes roughly comparable to those from the original parser. The paper provides examples and a qualitative impression, with no scored comparison of the graphics outputs. The demonstration establishes that the parser can be used at a second interface that accepts structured descriptions of scenes. The image retrieval experiments remain the basis for judging the parser’s effectiveness quantitatively.
Limitations
Limits the authors identify
The annotations for a sentence were written with the image in view. The parsers receive only the sentence at query time. An annotator can see a property or relation and add it even when the writer left it implicit or never expressed it. That gives the human graph access to more information than an automatic parser can always recover. It affects the intrinsic comparison and the construction of the relevant image set as well as the oracle query. A graph that represents the words accurately may still differ from a graph informed by the pixels.
The authors identify errors that require background knowledge. A person described as being in black is ordinarily understood to wear black clothing, even when the clothing is not named. A helmet said to match a green shirt can be understood to share its color. The parser has to infer both the property and its attachment. In the dress example, polka dots describe a pattern of the fabric. The parsers tend to interpret this wording as connections between a dress and several dot objects. The intended representation has a patterned dress as the object and the pattern as a property. These examples expose a distinction between following the grammatical form and deciding what belongs in a visual representation.
Mistakes in dependency analysis are another source of errors for both systems. The pattern rules act on the links in the analysis, and the relation classifier uses those links both to select candidate pairs and to form features. An error can change which candidates are compared or which dependency path is offered as evidence. The authors report that more varied training material for the dependency parser helped, with residual errors still passing through to the scene graphs.
Plural descriptions impose a limitation at the level of the representation itself. The authors choose a distributive interpretation and model separate instances through copying. They recognize that some activities instead involve a group acting together and that selecting a reading can require knowledge of the scene. The cap on copying and the default for unnumbered plurals are practical choices for this dataset. They give the parser a usable representation in common cases without resolving the general question of how many objects an ambiguous description denotes.
Limits of the evaluation setup
The test reflects work within the corpus’s filtered vocabulary. Classes and types need enough occurrences to survive, and a description is removed if any of its graph labels is discarded. The retained descriptions give good conditions for testing whether the same kinds of objects and graph relations can be recombined in new sentences about held-out images. The results do not quantify accuracy for a new visual class, an uncommon relation, or a sentence containing an excluded label. The classifier can learn different relation inventories when supplied with labeled examples, and the ranker requires training evidence for the labels it uses.
The relevance criterion is defined through the assembled annotations. A picture is counted as relevant when the query’s human graph occurs within its full graph. This supplies a consistent way to judge the rankings and allows more than one correct picture. It also makes relevance depend on what the crowdworkers recorded in that picture. If a scene satisfies a description but the relevant details never entered its annotation, the subgraph test supplies no match. The experiment therefore measures search against the annotation-defined task. It does not separately measure perceived relevance through new human judgments of the returned pictures.
The language and visual components can each affect retrieval. A correct graph can be difficult to ground in the available regions, and an imperfect graph can still retrieve a correct result if it includes the most distinctive property. The oracle comparison controls which ranker is used and gives a measure of what the human queries achieve within that system. It does not show how much of the remaining error would be fixed by better scene parsing alone across other rankers or datasets. Even the human queries leave much of the relevant set outside the early ranks in this evaluation.
Finally, the comparison centers on individual descriptions, with partial annotations later assembled into larger image graphs. A person can use a detailed sentence to express a particular scene fragment, which is the problem the experiments address. The paper gives no evaluation of paragraph-length requests, how references would be tracked across sentences, or whether the same ranking gains hold with long descriptions containing many intertwined constraints. Its graphics examples likewise show that the output can be consumed for another purpose, without establishing comparative quality across a collection of generated scenes.
What came after
Later work citing the paper spans image annotation, caption evaluation, language analysis, and structured representations of scenes and diagrams. The documented connections establish where the paper was cited. The titles identify the research task in each case. For several works, that is enough to explain how their subject relates to scene-graph parsing, while leaving the exact method of reuse unspecified.
Visual annotation and caption evaluation
Visual Genome takes up the problem of connecting vision and language through dense annotations collected from crowdworkers. That puts it alongside the earlier paper’s data collection, where several people described different aspects of an image and individual annotations were assembled into more extensive representations. The two projects can be related through the annotation gap that motivates the retrieval study. A single sentence may mention only a small part of a picture, while several descriptions and their associated annotations can cover more of its contents. The citation links the earlier work to that broader annotation effort. Visual Genome
SPICE addresses caption evaluation through semantic propositions. Its task connects to a particular issue raised by the retrieval experiments. A description can be assessed in terms of the information it expresses about a scene, including who participates in a relationship and which object has a property. Schuster and colleagues turn that information into a query for finding images. SPICE’s title identifies evaluation of the caption as the goal, so the semantic content serves a different purpose. The citation records the connection between those tasks without specifying which parts of the earlier parser were used. SPICE
The survey of deep learning for image captioning brings the paper into a review of work on describing images. Captioning and the retrieval task start from opposite sides of the image–text pair. In the earlier paper, a description is already available and the system has to recover the visual constraints it contains. In captioning, the image is available and the caption has to express some of its content. The choice of what to say about the picture matters to both, since a property that a caption omits may be exactly what a reader wants to search for. A Comprehensive Survey of Deep Learning for Image Captioning
The survey of text generation evaluation cites the paper in a broader evaluation context. The retrieval study contains both a direct comparison to human graphs and a measurement of how those graphs perform in an application. The scores order the systems differently. That situation is relevant to evaluation of generated descriptions because matching a reference and providing the information needed for a task are distinct measurements. The citation identifies a connection to the evaluation literature, with the survey’s specific treatment of the comparison left unspecified. Evaluation of Text Generation
Language analysis and structured visual meaning
Enhanced English Universal Dependencies concerns improvements to the grammatical representation used for language understanding. The earlier paper already takes enhanced dependencies as its starting point and demonstrates what further transformations a visual task can need. Quantity expressions can put a word in a prominent grammatical position even though another word names the thing in the scene. Pronouns can put a grammatical argument at one position while its intended object is introduced elsewhere. The citation connects that use of dependencies to later work on the representation itself. Enhanced English Universal Dependencies
The Neuro-Symbolic Concept Learner addresses the interpretation of scenes, words, and sentences from natural supervision. Its subject is related to the earlier paper’s effort to connect language to identifiable entities and their properties in a scene. The earlier parser learns from descriptions explicitly paired with human-constructed graph annotations, then passes its graph to a separate visual ranker. The later work’s title places its emphasis on learning concepts and interpretation from natural supervision. The citation establishes the relationship without identifying a shared training procedure or component. The Neuro-Symbolic Concept Learner
SciFlow-Bench addresses structure-aware evaluation for generated scientific diagrams through inverse parsing. A scientific diagram and a photograph are different visual artifacts, but both tasks separate the elements present from the organization that makes them meaningful. In the scene-graph paper, a structured description is supplied before retrieval or scene generation. The later benchmark’s title places parsing on the evaluation side, where the structure of a generated diagram is the subject of the assessment. The citation connects the scene-graph paper’s concern with explicit visual relations to that later evaluation setting. SciFlow-Bench
Cite
Cite as Sebastian Schuster, Ranjay Krishna, Angel Chang, Li Fei-Fei and Christopher D. Manning. 2015. Generating Semantically Precise Scene Graphs from Textual Descriptions for Improved Image Retrieval. Proceedings of the Fourth Workshop on Vision and Language.
@inproceedings{schuster2015generating,
title = {{Generating Semantically Precise Scene Graphs from Textual Descriptions for Improved Image Retrieval}},
author = {Sebastian Schuster, Ranjay Krishna, Angel Chang, Li Fei-Fei and Christopher D. Manning},
booktitle = {Proceedings of the Fourth Workshop on Vision and Language},
year = {2015},
doi = {10.18653/v1/w15-2812},
url = {https://doi.org/10.18653/v1/w15-2812}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/schuster-2015-generating-semantically-precise-scene-graphs/