Elamur Research

Segment-Level and Category-Oriented Network for Knowledge-Based Referring Expression Comprehension

Paper · 2023 · Yuqi Bu, Xin Wu, Liuwu Li et al.

Summary

A description can identify an object without ever naming it. If someone asks you to find something for sleeping that is resting on a sofa, the sofa tells you where to look, and the reference to sleeping suggests what to look for. A system that searches for background knowledge using the whole description can confuse those roles. It may find sentences about sofas because the query names one, even though a pillow is the object the speaker means. And even a sentence about pillows can mention a bed, introducing a location that was never part of the request.

Bu and colleagues propose SLCO, a network for knowledge-based referring expression comprehension. The task belongs to Vision & language. SLCO first estimates which words describe something that can be checked in the image and which words require background knowledge. It then uses the knowledge-bearing words to prompt a pretrained text predictor for possible object categories. A separate detector supplies a list of labels for objects likely to be present, which narrows the answers. Finally, SLCO combines the resulting categories with the visual clues in the original description and predicts a bounding box. A category such as pillow helps direct attention toward plausible objects. The location clue helps choose between individual pillows.

On the KB-Ref benchmark, SLCO achieved grounding accuracy of 32.15 on validation and 30.44 on test. VLTVG, the strongest comparison system, scored 29.23 and 28.96 on the same splits. A prediction counts as correct when its box overlaps the annotated box above an intersection-over-union threshold of 0.50. In the retrieval experiments, prompting with the detected knowledge segment put the reference category among the top candidates at Acc@3 of 65.53, compared with 35.63 for sentence similarity using the whole expression. Comparisons that changed the query or retrieval procedure separately support both parts of the design. In grounding, the reported comparisons also favor joining categories to the visual segment and processing candidate categories iteratively.

The results distinguish choosing a plausible type of object from finding the particular object the speaker intended. In a sample of 100 wrong predictions, the authors attributed 32% to difficulties distinguishing instances, including cases where SLCO had the correct category. They attributed another 34% to problems with the reference annotations. The benchmark experiments show where separating knowledge and visual clues helps, while the error analysis shows how much work remains once a useful category has been found.

Deep dive: Segment-Level and Category-Oriented Network for Knowledge-Based Referring Expression Comprehension

SLCO separates visual clues from clues that require outside knowledge, then uses object categories to locate the intended object in an image. · about 35 minutes to read

The problem and its context

An object can be described by what it does

Referring expression comprehension asks a system to find the object picked out by a description in an image. The description can use an object's appearance, its location, or its relationship to another object. The desired output is a bounding box around the intended instance. This is a form of visual grounding because the output assigns words to a region of an actual image. The paper places the task in the context of applications such as robotic manipulation and navigation, where a description has to resolve to something that can be located.

Knowledge-based referring expression comprehension extends the task to descriptions that rely on facts beyond what the image directly provides. A location or a color can frequently be checked by comparing visible objects. A purpose or a property such as what an object is made of can require additional knowledge. Even when the appearance of an object is recognizable, the connection between that object and its stated use may need to be supplied elsewhere. In the sofa example, a phrase about sleeping refers to an activity that need not be happening in the picture. Recognizing a pillow can make that phrase intelligible without the picture showing anyone asleep.

This creates a distinction between the object being described and the objects used to describe it. A sofa can be a reference point for locating a pillow. It can also be a plausible answer to a question about things used for sleeping. The intended interpretation depends on how the clues are combined. A category inferred from a function is a candidate for the object being sought, while the named sofa helps determine which candidate occupies the right place. This is why identifying the most conspicuous object name in the description is an unreliable way to decide what knowledge to acquire.

The authors report that most knowledge-based expressions in their analysis can be divided into material with these different roles. They call the parts that can be interpreted from the picture visual segments. The parts that require information beyond the picture are knowledge segments. Their definition is based on the tokens belonging to each role. It leaves room for a system to find relevant words in different positions, an important distinction from assuming that one role always precedes the other or starts at a fixed grammatical boundary.

How earlier systems connected words and boxes

The paper groups earlier grounding methods according to when they connect visual and textual information. Two-stage systems start with object detection and rank the proposed boxes using the description. This makes grounding a selection problem over a set of regions. The analysis can then concentrate on properties such as an object's appearance or its relationship to neighboring detections. One-stage systems combine features from the image and text and predict the coordinates directly. Methods in that group differ in how they align the two kinds of features, including recursive alignment and attention.

Ordinary referring expression comprehension offers mechanisms for matching words to visual features, but the paper identifies a separate need in KB-REC. The system has to acquire information that the image cannot supply directly and bring it into the grounding process. Wang and colleagues introduced KB-Ref and a two-stage system, ECIFA, to address that need. ECIFA searches an external collection of knowledge sentences for those most similar to the referring expression. It fuses the retrieved text with the expression and uses the combined information in ranking candidate objects.

In ECIFA, the unit of search and the unit of fusion are both sentences. This gives retrieval a complete expression to work with and provides grounding with the fuller text of what was found. It also means that the words that make a result easy to retrieve can be different from the words that make it useful for identifying the intended object. The authors use similarity bias for the case in which textual resemblance favors knowledge about the wrong entity. When the query includes a named landmark, retrieved sentences can echo that name strongly enough to crowd out facts about the unnamed target.

The sofa illustration shows why this is a problem even when the returned facts look relevant at first glance. A sentence connecting sofas with sleeping shares both the named object and the stated activity. It could be a reasonable result for a general search about what sofas are used for. The task here is to interpret a description in which the sofa provides a location for something else. A retrieval method that scores whole strings for similarity has to pull these roles apart indirectly, and the paper's example shows how it can favor the landmark instead.

The authors distinguish that retrieval error from interference at the point of fusion. A useful knowledge sentence may identify an object category and also contain details unrelated to the request. A sentence about a pillow may place it on a bed in the situation it describes. When the expression calls for something on a sofa, the bed is incidental. If both sources are passed forward as text, the grounding stage has to learn which description of location has authority. The wrong-category case and the irrelevant-detail case therefore occur at different points. Finding knowledge about the intended type of object addresses the former. Controlling what the grounding stage receives addresses the latter.

Why the answer to a prompt is a category

Earlier retrieval work, as the authors describe it, used matching and similarity measures before turning to prompting. A prompt frames the desired information as a missing completion. The system can then score possible answers using a pretrained predictor. The paper cites work on automatically finding effective prompts and on using mixtures of soft prompts. It describes the usual setup as one in which a relation and one of its arguments are supplied and the missing argument is sought. AutoPrompt and Learning How to Ask

A referring expression leaves an additional question open. Which part of what the speaker said should be used to request background knowledge? A location phrase can be essential to grounding and a poor choice for the retrieval query. SLCO addresses that selection before it builds the prompt. It then asks for the type of object that fits the remaining clue. This makes the retrieval output a small set of hypotheses about what the object might be.

The authors' rationale is that a category can carry the useful part of the background fact into the grounding stage. The link from sleeping to pillow matters because it gives the system a class of objects to consider. The wording of a source sentence about where a pillow is typically found serves a different purpose and can conflict with the image-specific description. Passing a category gives the grounding stage a way to use the association while leaving the location and other visual constraints to the expression and image. Multiple categories can still fit a single clue, so the method preserves a ranked set for the grounding stage to evaluate.

The method, step by step

SLCO uses the expression in several different forms. It begins with the full sequence of words and their contextual features. The detector estimates which parts need knowledge. Retrieval turns selected words into a prompt and returns possible category labels. Grounding builds category-conditioned versions of the visual description and uses them to refine image features. The final output consists of coordinates for a single object box.

From a referring expression to an object box

The steps in order.

From a referring expression to an object boxStep 1: Encode the image and full expression1. Encode the image and full expressionStep 2: Estimate visual and knowledge token scores2. Estimate visual and knowledge token scoresStep 3: Turn knowledge words into a prompt3. Turn knowledge words into a promptStep 4: Filter category completions using detected image labels4. Filter category completions using detected image labelsStep 5: Join ranked categories to the visual segment5. Join ranked categories to the visual segmentStep 6: Accumulate category evidence in visual features6. Accumulate category evidence in visual featuresStep 7: Decode the bounding box7. Decode the bounding box

Encoding the image and decomposing the expression

The image and expression enter separate encoders. The visual backbone is ResNet-101 initialized with weights from DETR. The resulting features represent image regions for the later attention operations. The authors use BERT to produce contextual text features for the expression. That encoding gives the segment detector a representation of each token in the company of the other tokens, before the detector begins its visual checks. Deep Residual Learning for Image Recognition, DETR, and BERT

The paper denotes the expression by x. In its initial definition, x contains n tokens, with xᵢ denoting the token at position i. The same x also denotes the encoded expression in the feature equations. The intended knowledge segment xₖₙ is initially defined as a subset of the expression's tokens. Later stages also use that label for quantities derived from the subset scores and for the selected wording used in a prompt. The difference matters because a soft feature representation and a string of selected words serve different purposes.

The detector first makes a succession of weighted views of the sentence. The authors call these subsentences. Their motivation is that matching a long description to image features all in one operation can be difficult. An iteration can emphasize some parts of the expression and produce a corresponding visual representation. The next iteration has access to those visual features and to the preceding scores. The detector later combines information from the successive views before it assigns the knowledge and visual scores.

x_sub(t) = s_sub(t) · x

Here x_sub(t) is the text feature representation for the subsentence at iteration t, and s_sub(t) gives the scores for emphasizing positions at that iteration. The symbol x denotes the encoded full expression. The dot denotes the feature multiplication by which the scores weight that expression. The subscript sub designates a quantity associated with a subsentence, and the parentheses indicate the iteration. The expression features remain the common input across iterations, while their weighting changes.

s_sub(t) = Conv(v_sub(t−1) · x · s_sub(t−1))

Here s_sub(t) is the updated score for subsentence positions, and Conv denotes a convolutional operation that produces it. The inputs to the product are v_sub(t−1), the visual representation from the preceding iteration, x, the encoded expression, and s_sub(t−1), the preceding subsentence score. The dots denote the successive feature products written by the authors. The index t−1 denotes the iteration immediately before t. The initial score is a matrix of ones, so the initial score itself does not favor particular positions.

This recurrence links the choice of emphasized words to what the preceding visual representation contains. A subsentence in this part of the network is a weighted feature representation. Its computation does not need to produce the same kind of boundary as a syntactic clause. As a result, this decomposition can support a later token-level judgment even if the informative words do not form a single grammatical constituent. A separate step selects words explicitly when SLCO needs text to put into the retrieval prompt.

For each weighted view of the expression, the visual stream is conditioned on that view. The conditioning uses FiLM, an approach that changes features through a learned scale and offset. The subsentence supplies the conditioning signal. Both transformations are based on its text features, allowing its wording to influence the image representation before the next subsentence update. FiLM

v_sub(t) = ReLU(v_sub(t−1) ⊙ Linear(x_sub(t)) + Linear(x_sub(t)))

Here v_sub(t) is the visual feature representation associated with the current subsentence. The preceding representation is v_sub(t−1), and x_sub(t) is the current subsentence's text representation. Each Linear denotes a learned linear projection of that text representation. The projection in the product supplies the scale, and the projection after the plus sign supplies the offset. The symbol ⊙ means element-wise multiplication, and + adds the offset to the scaled feature. ReLU is the rectified linear activation applied to the result. The index t identifies the current iteration, while t−1 identifies the previous one.

The two recurrence equations and the conditioning step describe an exchange between the streams. Previously conditioned image features help determine the next textual weighting. That weighting helps prepare the next image features. These operations prepare evidence for segment detection. At this point the system has yet to decide whether a word such as sofa names a visual reference point or belongs to the knowledge request.

Testing which words have visual support

After T iterations, where T is the total number of subsentence generation rounds, SLCO concatenates the textual outputs into x_sub and the corresponding visual outputs into v_sub. It then tests the text against the image using cross-modal attention. In this attention step, the text features determine which visual features to gather. A later projection uses the result to estimate which parts of the expression can be accounted for by visible content. This serves a different purpose from grounding attention that uses text to decide where the target object is.

x′_sub = σ(x_sub · v_subᵀ) · v_sub

Here x′_sub is the vision-dependent subsentence representation. The prime distinguishes it from x_sub, the concatenated text features before this operation. The quantity v_sub is the concatenated visual representation, and ᵀ marks its transpose in the compatibility product with x_sub. The notation σ means softmax, which turns compatibility scores into attention weights. The first dot forms those scores, and the second uses the weights to gather the visual values in v_sub. The result is indexed by the text queries while carrying evidence from the image.

The paper next uses the image-conditioned features to rescale the original expression representation, keeping a direct contribution from the original features. This gives the scoring head a representation that includes both the encoded text and information from the visual attention step.

xₖₙ = σ(Linear(x′_sub)) ⊙ x + x

Here xₖₙ is the paper's notation for the knowledge-related feature expression at this point. The quantity x′_sub is the vision-dependent output of the preceding equation, and Linear projects it into scores that σ, the softmax, normalizes. The symbol ⊙ applies the resulting weights element by element to x, the original encoded expression. The + x term adds that original feature representation back. The notation for xₖₙ is overloaded in the paper. This equation produces features, whereas the score and token-selection steps below give the labels used to distinguish the segments and the words used in retrieval.

The scoring head is a multilayer perceptron, or MLP, which is a learned stack of feature transformations. It produces scores for the portions of the sentence that are activated by visual context and for the portions that remain unactivated. The scores weight the sentence features for the two downstream roles. In the sentence about a pillow on a sofa, the network is meant to retain the spatial phrase as a visual constraint and treat the purpose as the basis for a knowledge query. This behavior depends on learned scores. The method does not assign those roles by searching for the word sofa or for a particular syntactic pattern at inference.

The paper also gives a complement relation for the two segment assignments. Read at the score level, it expresses the idea that greater membership in the knowledge segment leaves less membership in the visual segment.

xᵥᵢ = 1 − xₖₙ

In this relation xᵥᵢ denotes the visual assignment, and xₖₙ denotes the knowledge assignment. The constant 1 is the full assignment for a token, and subtraction gives the complementary visual assignment. The paper uses these same segment names for the weighted representations sent onward, so the complement concerns the assignment rather than subtraction of arbitrary encoded feature vectors.

Giving the detector a training signal

The segment detector learns under pseudo-supervision. A pseudo-annotation is a target obtained by a rule from information already available in the training data. Here the authors start with the corresponding reference knowledge for an expression. They extract substrings the expression shares with that knowledge. They also use guide phrases that introduce likely knowledge, such as cues for purpose or composition, and take words that follow those cues. They merge the words found by the two routes and map the result back to token positions in the expression.

Tokens selected this way receive a target of 1 for knowledge, and the remaining positions receive 0 for visual information. The knowledge scores are trained with mean squared error. This loss penalizes discrepancies between the predicted scores and the pseudo-annotations by squaring them and averaging. The authors introduce it because the separately encoded text and image features are difficult to align early in training. A target derived from reference knowledge gives the segment detector a direct signal at a stage when the grounding objective alone has yet to produce a reliable relationship between the two streams.

This training signal and the inference decision have different sources. Training can use overlaps with a reference fact already associated with an expression. At inference the network receives the expression and image, and its learned detector estimates the segment assignments. A phrase selected by the pseudo-label rule during training need not be selected by applying that same rule to a new expression. The aim is for the network to learn from those labels how to recognize the two roles, including when the knowledge clue occurs away from a common boundary.

Asking for the name of a plausible category

The retrieval module needs words for its prompt, so it converts the knowledge scores into a discrete selection. It keeps words whose scores exceed the median of the knowledge scores for the expression. The use of a median makes the selection depend on how individual positions compare with the other positions in the same description. The text formed from those words becomes the clue in the prompt. The soft features used by the network and the words kept for retrieval are thus two representations of the same role assignment.

The authors use two prompt patterns. They distinguish longer segments, which tend to be descriptive, from shorter ones that tend to express a similar object or a synonym. In the descriptive case, the category slot comes before wording that predicates the clue of the answer. In the shorter case, the missing category comes before a phrase that links it to the clue as a kind of something. Both patterns turn an expression fragment into a completion request with an answer slot for an object category.

The implementation uses the LAMA framework and uncased BERT large for this step. A separate Faster R-CNN detector, pretrained on Visual Genome, identifies possible object labels in the image. The retrieval scores are then restricted to labels supported by these detections. The detector is being used here to narrow the vocabulary of plausible completions. The bounding box ultimately returned by SLCO is produced later in the grounding network. Language Models as Knowledge Bases?, Faster R-CNN, and Visual Genome

ẑ = argmax(z ∈ Z) P(f_PLM(z) | x_prompt)

Here ẑ denotes the selected answer in the paper's maximization notation, and z is a candidate answer token from the candidate set Z. The function f_PLM is the pretrained masked-token predictor. The expression P(f_PLM(z) | x_prompt) is the paper's notation for the probability assigned to filling the answer slot with z given x_prompt, the completed prompt apart from that slot. The vertical bar means conditioning on the prompt. The operation argmax selects the candidate attaining the highest score. The prose generalizes this display to the top M candidates, with M denoting the number of ranked answers retained after filtering through the image labels. The implementation uses M = 3.

The image label filter makes the search conditional on what could be in the scene. A prompt about sleeping may call to mind objects absent from the picture. Filtering removes those candidates to the extent that the detected labels reflect what is present. It still leaves the grounding stage with the problem of choosing among plausible categories and among their instances. For instance, knowledge can make both pillows and sofas plausible, while the location in the original description determines which objects of those types deserve attention.

The authors also adapt the masked-token predictor to the knowledge sources used by KB-Ref. They take the knowledge sentences underlying the benchmark and mask their object categories during fine-tuning. In this procedure the predictor sees the surrounding description and is trained to recover the masked category. This brings the training task into line with the desired form of the retrieval output. It uses the benchmark's knowledge sentences to shape the predictor's answers, while the grounding stage still receives category labels. The authors draw inspiration from entity-level masking. ERNIE

Combining what the object might be with where to look

SLCO now has a visual segment and a ranked list of categories. It builds a sentence representation for each category by considering several placements. The category can go at the beginning, in the middle, or at the end of the visual segment. This accommodates the authors' observation that a category's position can affect how the sentence is interpreted. A single fixed placement could be suitable for one visual segment and awkward for another.

For the category at rank m, x_z(m) denotes the category features. The authors call the resulting representations y_beg(m), y_mid(m), and y_end(m), corresponding to the three insertion positions. Concatenation places those representations together, and a learned linear projection produces y_bme(m), the category-associated sentence feature for that rank. This operation prepares a representation for attention. It does not require the network to choose one of the placements as the best standalone sentence.

The grounding stage incorporates those sentence features into the image in rank order. This is where the authors use the ordering from retrieval. Each new candidate is processed with visual features that have already been updated by preceding candidates. The network can retain evidence from a high-ranked category as it considers the next one. That differs from computing every category's effect independently and deferring all interaction to a final merge.

The accumulation module has two parallel branches. The first tracks the relationship between category-associated sentences and visual features and uses it to make spatial weights. The second builds a refined visual representation from the sequence of updates. Both branches use attention, which lets an update depend on the compatibility between the visual features carried forward and the sentence at the current rank. For the first branch the paper gives the following equation.

u₁(m) = σ((u₁(m−1) · y_bme(m)ᵀ) / √dᵧ) · y_bme(m)

Here u₁(m) is the first branch's updated representation at category rank m, and u₁(m−1) is its representation at the preceding step. The subscript ₁ identifies the first branch. The quantity y_bme(m) is the sentence feature combining the category's possible placements. Its transpose is marked with ᵀ. The first dot forms a visual-to-text compatibility product, which is divided by √dᵧ, the square root of the dimension dᵧ of the category-associated sentence feature. The function σ is softmax over the attention scores. The final dot weights the sentence features using those scores.

The first branch's updates are also used to compute how well each category-associated sentence agrees with the visual features. The authors follow the verification scoring procedure used by VLTVG. After all M category steps, the resulting weights are added element by element to make sᵥᵢ, a category-conditioned visual weight. This aggregation collects evidence from the category-associated sentences after each has interacted with the visual features available at its step.

The second branch updates u₂(m) from the preceding representation u₂(m−1) and the current y_bme(m). Here the subscript ₂ identifies the second branch. When the candidate sequence is complete, the network concatenates the branch's outputs from the successive steps, transforms them with an MLP, and adds the result back to the original visual features. The combined representation is u′₂. It records the updates that were made as the candidates entered the network and also retains a path from the original features.

The branches meet in an operation that uses similarities within u′₂ and the category-conditioned visual weights to update the original image representation again.

vₖₙ = σ((u′₂ · u′₂ᵀ) / √dᵤ) · v ⊙ sᵥᵢ + v

Here vₖₙ denotes the updated visual features conditioned on the categories and segments. The quantity u′₂ is the second branch's combined output, with the prime marking the result after projection and addition. The transpose u′₂ᵀ lets the first dot compare positions in that representation. The compatibility scores are divided by √dᵤ, the square root of the dimension dᵤ of u′₂, and normalized using σ, the softmax. The next dot uses these weights with v, the original visual features. The element-wise multiplication ⊙ applies sᵥᵢ, the weights from the first branch. The last + v adds the original visual features to the update.

These operations can highlight a group of regions consistent with the candidate categories. The author’s example makes clear why this stage cannot finish the job by itself. A scene can contain more than one object of the same plausible type. The expression may therefore use one object as a landmark or specify a relationship that singles out an instance. The network carries the category-conditioned features into a decoder that can attend again to textual and visual details.

Predicting the box and training the network

The last stage is a variant of a Transformer and attention decoder. It has 6 layers with multi-head attention and point-wise fully connected transformations. Multi-head attention allows multiple attention operations to inspect the representations in parallel. A point-wise transformation processes each position's feature vector. In each layer, the authors use cross-modal attention in place of two self-attention operations. One direction uses visual queries and textual keys and values. The other uses textual queries and visual keys and values. A query determines what information to look for, a key helps decide how relevant each available position is, and a value supplies the features gathered from that position.

This bidirectional exchange gives the decoder a way to check visual candidates against the language after the categories have entered the representation. For example, it can use a positional phrase to favor the candidate in the specified place even when another region belongs to the same category. An MLP transforms the decoder's output into the four coordinates of the final box. The category candidates inform this prediction through the features they activate. The decoder makes the location decision.

The authors optimize the segment detector and grounding network with a joint objective. The segment side uses the squared error against the pseudo-annotations and a diversity loss adopted from earlier work on recursive grounding. The grounding side combines smooth L1 and generalized intersection over union. Smooth L1 penalizes discrepancies in box coordinates. Generalized intersection over union gives a geometric comparison of the predicted and reference boxes. Generalized Intersection Over Union

L = λ_seg L_seg + λ_div L_div + λ_l1 L_l1 + λ_giou L_giou

Here L is the joint loss. The term L_seg is the mean squared segment loss, and L_div is the diversity loss for segment detection. The term L_l1 denotes smooth L1 for box regression, and L_giou denotes the generalized intersection-over-union loss. Each λ is a weight multiplying the corresponding loss. The subscripts seg, div, l1, and giou identify the loss that each weight controls. The selected values are 10 for λ_seg, 0.125 for λ_div, 5 for λ_l1, and 2 for λ_giou. The authors use a grid search for the segment weights and follow a 5:2 weighting for the two grounding losses.

Training proceeds in stages. The authors first fine-tune the retrieval component on a 2080Ti GPU, then optimize the other modules together on two P100 GPUs. Images are resized to 640 in height and width, and expression length is capped at 40. They use AdamW with a batch size of 28 for 90 epochs. The initial learning rates are 10⁻⁵ for the feature encoders and 10⁻⁴ for the other modules. The encoder weights remain frozen for the first 10 epochs. The authors make the implementation available under the name SLCO.

Experiments and results

What KB-Ref measures

KB-Ref contains 43,284 referring expressions for objects in 16,917 Visual Genome images. The associated knowledge comes from Wikipedia, ConceptNet, and WebChild, and the benchmark represents that knowledge as sentences. The experiments use the official splits. At evaluation time, the system receives an image and an expression. The annotated object box is held for scoring.

The grounding metric is the fraction of examples whose predicted boxes have intersection over union greater than 0.50 with the reference boxes. Intersection over union divides the area shared by the two boxes by the area covered by either box. A prediction has to clear the same threshold regardless of which object category helped produce it. The metric therefore concerns the final localization for the whole expression. A system can retrieve the intended category and still lose credit by boxing the wrong instance or by drawing a box with insufficient overlap.

The retrieval evaluation measures a different prediction. The authors recover a reference category from KB-Ref's associated knowledge and ask whether it appears in the top M candidates. Acc@M is the fraction of examples for which it does. Acc@1 concerns the first answer, while Acc@2 and Acc@3 credit a correct category farther down the list as well. Those additional positions are relevant because the grounding module considers several alternatives. The paper's retrieval table gives these metrics without identifying the split in the table caption or discussion, so the retrieval values below are described as KB-Ref results without a validation or test label.

The grounding comparisons

The two-stage comparison includes LGRANs, which uses graph attention for object relationships, and MAttNet, which separates appearance, location, and relationships into modules. Both use candidate boxes from object detection. ECIFA is the comparison specifically designed for knowledge-based expressions. It retrieves sentences by cosine similarity to the expression and combines the retrieved text with the query through a stack of LSTMs. The two-stage systems in the comparison use a VGG-16 visual backbone and LSTM text processing.

The one-stage comparison covers several ways to align image and language features. LBYLNet uses landmark convolution, ReSC aligns features recursively, and BBA uses bottom-up and bidirectional alignment. Those systems use DarkNet-53 in the reported setup. TransVG uses a Transformer for grounding, and VLTVG extracts discriminative visual features conditioned on text. For those two systems and SLCO, the table identifies ResNet-101 with DETR and BERT. The authors train the ordinary grounding baselines on KB-Ref using their default implementations and ordinary referring expression training.

Grounding accuracy on the KB-Ref test split

SLCO has the highest reported test accuracy among the compared systems.

Grounding accuracy on the KB-Ref test splitLGRANs: 21.37LGRANs21.37MAttNet: 21.73MAttNet21.73ECIFA: 23.82ECIFA23.82LBYLNet: 22.41LBYLNet22.41ReSC: 26.88ReSC26.88BBA: 27.08BBA27.08TransVG: 24.53TransVG24.53VLTVG: 28.96VLTVG28.96SLCO (this paper): 30.44SLCO (this paper)30.44
The numbers
System or settingaccuracy %
LGRANs21.37
MAttNet21.73
ECIFA23.82
LBYLNet22.41
ReSC26.88
BBA27.08
TransVG24.53
VLTVG28.96
SLCO (this paper)30.44

SLCO also leads on the validation split, with grounding accuracy of 32.15. VLTVG is again the strongest comparison system, at 29.23. BBA obtains 28.28 on validation, ReSC 27.56, and TransVG 25.03. The authors report a maximum gain of 2.92% in the main comparison, corresponding to the validation lead over VLTVG on the grounding accuracy scale. On test, SLCO scores 30.44 and VLTVG scores 28.96. The validation and test results therefore show the same ordering at the top, with a smaller separation on test.

Among two-stage systems, ECIFA reaches 24.11 on validation and 23.82 on test, ahead of the two ordinary grounding systems in that group. LGRANs records 21.72 on validation and MAttNet 22.04. The authors interpret ECIFA's position within the group as evidence that access to external knowledge helps. Their interpretation of the one-stage comparisons is that the pretrained BERT text representations can provide implicit knowledge and that BERT-based systems generally do better than the one using an LSTM in this group. The comparison varies architectures and feature encoders as well as knowledge mechanisms. It gives the performance of each complete system under the reported setup. The component comparisons within SLCO are the more direct evidence about changes to its knowledge pipeline.

The authors report overall inference times of 0.117 seconds per sample for SLCO and 0.367 seconds for ECIFA. They also give a separate comparison of retrieval procedures, where prompt retrieval takes 0.020s per sample and cosine-similarity retrieval in ECIFA takes 1.400s under the settings for that comparison. These are measurements from two reported timing comparisons. The paper does not give a common timing breakdown that would allow the retrieval times to be interpreted as components of the reported overall times.

Seeing the stages work on individual examples

The qualitative comparison places the retrieved information alongside the boxes. In the examples involving a stove and a desk, ECIFA retrieves knowledge influenced by the named object in the expression. Such a name can be important as a visual landmark. Its role in the retrieval query can nonetheless lead the sentence matcher towards facts about the landmark. The paper shows ECIFA's top 3 displayed results from the 50 sentences it retrieves, with the category associated with each sentence. In the same examples, SLCO's selected knowledge words lead to categories that fit the intended object.

The authors show intermediate visual scores as well as the final boxes. In the stove example, the retrieved categories initially activate a number of plausible objects in the feature representation. The subsequent decoder uses the location relative to the stove, and another illustrated case uses the position relative to a man. The visualizations show how a response that covers several candidate regions can become more focused when the decoder uses the scene-specific constraints. The reference box and the two systems' predictions make the instance decision visible in a way that a retrieval hit alone cannot.

The examples illustrate both failure mechanisms that motivate the method. A sentence search can follow the wrong entity, and returned text can include unneeded material. The displayed successful predictions show a route around those problems. The aggregate retrieval and grounding measurements establish how the methods compare across the benchmark. The qualitative displays explain what the difference can look like for an individual description.

What the ablations show

Removing parts of the pipeline

The authors remove or replace each of SLCO's main modules and evaluate the resulting systems on KB-Ref. The full network has grounding accuracy of 32.15 on validation and 30.44 on test. Removing segment detection and its associated losses yields 29.73 on validation and 29.73 on test. The authors report an average decline of 1.57% across those splits. The comparison tests the detector together with its training signal. A separate experiment changes the way segments are chosen, which helps assess the value of the learned split itself.

To test the prompt retrieval module, the authors replace the returned categories with empty strings. Grounding accuracy falls to 30.15 on validation and 29.69 on test, with a reported average decline of 1.38%. The grounding architecture still has access to its pretrained text representations, so the authors describe this variant as using implicit knowledge alone. Its reported accuracy remains above VLTVG on both splits. The comparison within SLCO shows that the retrieved categories supply additional information beyond what its remaining features can provide.

The grounding removal also removes prompt retrieval, leaving the visual segment to guide grounding. The resulting scores are 29.70 on validation and 29.56 on test, and the authors report an average decline of 1.67%. This comparison tests the loss of the category retrieval and association pathway together. Its result supports the value of that pathway in the complete network. It leaves open the effect of removing only the grounding machinery while keeping equivalent access to the same retrieved categories.

All of these removals lower the reported test accuracy as well as validation accuracy. Their validation effects differ from their test effects. For instance, the test result without the detector is close to that of the variant with empty category strings, while the validation scores are more separated. The component results are therefore best read with the split attached. They provide evidence about usefulness in the trained system, with different comparisons addressing different parts of the proposed explanation.

Learning segment roles versus using a parse boundary

The segment detector is compared with a rule based on constituency parsing. A constituency parse groups words into nested phrases. The authors use the observation that knowledge often appears in a predicate or subordinate clause to motivate a simple boundary rule. They take the first half of the parsed expression as the visual segment and the second half as the knowledge segment. This gives a plausible alternative for descriptions where the visible referent or landmark is introduced early and the knowledge clue follows.

The parsing rule reaches KB-Ref retrieval Acc@1 of 44.82. The learned detector reaches 52.59. Grounding with the parse rule reaches 29.75 on validation and 28.82 on test, compared with 32.15 and 30.44 for the learned detector. The same change is associated with better performance at both the category prediction and final box stages. The comparison supports the authors' argument that the placement of knowledge-bearing words varies enough for a learned score over positions to help. It compares the detector with this particular parse-based rule, which assigns a fixed role to each side of its split.

Changing the query and the retrieval mechanism

The retrieval experiment varies both the wording passed into retrieval and the method that processes it. The authors compare a full expression with the detected knowledge segment. They make that comparison for cosine similarity as used by ECIFA and for prompt completion. This arrangement helps identify whether improvement comes from the shorter, targeted query or from the way the answer is obtained.

Knowledge retrieval Acc@3 on KB-Ref

Both retrieval methods benefit from using the knowledge segment, and prompting with that segment performs best.

Knowledge retrieval Acc@3 on KB-RefSimilarity with full expression: 35.63Similarity with full expression35.63Similarity with knowledge segment: 51.29Similarity with knowledge segment51.29Prompt with full expression: 61.34Prompt with full expression61.34Prompt with knowledge segment (this paper): 65.53Prompt with knowledge segment (thispaper)65.53
The numbers
System or settingAcc@3 %
Similarity with full expression35.63
Similarity with knowledge segment51.29
Prompt with full expression61.34
Prompt with knowledge segment (this paper)65.53

For cosine similarity, using the full expression gives Acc@1 of 26.40 and Acc@2 of 30.63. With the knowledge segment, these scores are 43.47 and 46.58. The fact that both settings use the same similarity mechanism is important. The retrieved category can improve even when the system continues to match against knowledge sentences. The result directly supports the claim that including the whole expression can steer retrieval away from the intended knowledge.

For prompting, the full expression gives Acc@1 of 45.48 and Acc@2 of 56.48. Changing the prompt to use the knowledge segment brings those scores to 52.59 and 61.85. Prompting is already ahead of similarity when each sees the full expression, and it also leads when both receive the segment. The results thus support an advantage for prompt completion under either form of input in this experiment. They also show that a prompt can benefit from removing words that have their main use later in visual grounding.

The comparisons are made against reference categories, even where the similarity procedure retrieves knowledge sentences on the way to that evaluation. A rise in Acc@3 means the desired label is present more often among the retained candidates. It says little by itself about whether all the other candidates are benign. That distinction becomes important when the authors vary the number of candidates used by grounding. The retrieval score credits the presence of the reference answer, while the box prediction can still be affected by the other suggestions.

Training the predictor to recover categories

The authors then hold the segment-and-prompt approach in place and compare approaches to adapting the pretrained text predictor. Without fine-tuning, retrieval reaches Acc@1 of 35.96, Acc@2 of 46.33, and Acc@3 of 52.42. Fine-tuning with random masking yields 48.08, 58.64, and 63.27 on the same metrics. With category masking, the corresponding scores are 52.59, 61.85, and 65.53.

This comparison separates exposure to the knowledge sentences from the choice of what the predictor learns to fill in. Random masking already improves on the result without fine-tuning. Purposefully masking the category improves on random masking at every reported cutoff. The difference supports matching the adaptation task to the retrieval task. When the output needed downstream is an object label, training on missing categories gives a predictor more practice making that kind of completion. The table measures category retrieval. The effect of category masking on box accuracy is not broken out separately in that comparison.

Testing what the grounding stage should receive

The grounding experiments vary the text paired with the same kind of category information. Giving the grounding stage the category plus the full expression yields 30.40 on validation and 29.38 on test. Giving it the category plus the visual segment yields 32.15 and 30.44. This is evidence for segmentation after retrieval as well as before it. Once categories have been proposed, the location and appearance clues in the visual segment can do the work of instance disambiguation with fewer competing textual details.

The authors interpret this result in terms of interference. The knowledge words helped elicit the category. Including those words again in the grounding text can give the grounding stage more features to reconcile with the image, even though the visual segment already covers the scene-specific constraints. The controlled comparison shows which input the reported grounding architecture uses more successfully. It does not require the knowledge segment to be irrelevant to the task. Its contribution has changed form by the time the categories reach the grounding network.

The paper also compares ways of handling multiple category-associated sentences. In two settings, each sentence attends to the visual features independently and the outputs are combined afterwards. One concatenates those outputs, and the other adds them. The proposed setting applies the attention operations iteratively, updating the visual features as it works through the ranked candidates.

Category association methods on KB-Ref test grounding accuracy

Iterative attention leads both methods that merge independently computed attention outputs.

Category association methods on KB-Ref test grounding accuracyConcatenation after attention: 29.23Concatenation after attention29.23Addition after attention: 29.73Addition after attention29.73Iterative attention (this paper): 30.44Iterative attention (this paper)30.44
The numbers
System or settingaccuracy %
Concatenation after attention29.23
Addition after attention29.73
Iterative attention (this paper)30.44

On validation, concatenation reaches 29.25, addition reaches 29.83, and iterative attention reaches 32.15. The ordering is the same on test. The authors' explanation is that rank-ordered accumulation gives the most probable candidate an opportunity to shape the visual features before later candidates are processed. The experiment establishes the comparative performance of these ways to fuse candidates. It does not trace how much each category contributes to the final box on every example.

The authors also vary how many categories reach the grounding stage. The best grounding performance in their comparison uses the top 3. With fewer candidates, the reference category is less likely to be available. With more candidates, the authors argue that additional alternatives can interfere with choosing the relevant category and object. This analysis gives a reason to evaluate shortlist size using the final box metric as well as retrieval coverage. Any additional label can affect localization, even if including it raises the chance that the shortlist contains the reference label.

Limitations

Limits identified by the authors

The authors randomly sampled 100 incorrect predictions and assigned error types. They attributed 32% to failures in grounding, particularly difficulty distinguishing objects of the same category when the category itself was known. This points to a limit on what better retrieval can accomplish for a system with the same grounding machinery. If the image contains several instances of the right category, the system still has to use the visual segment accurately and identify the one instance that fits. The authors call out the challenge of improving recognition in categories with long-tailed distributions.

Another 20% of the sampled errors was assigned to imprecise object detection, with small objects highlighted as especially difficult. The authors suggest improving the visual encoder and the loss used for localization. A box can fail the overlap criterion even when the predicted location is near the right object. For a small target, the representation and the precision of the box remain important even if the knowledge clue and the object category are understood.

The authors attributed 14% of the sampled errors to incorrect retrieval. Their stated direction for this problem is to extract more fine-grained information from the expression and connect it with the knowledge and image. A broad category can be compatible with a general clue while still missing the property that matters for the particular referent. The retrieval design reduces the amount of unrelated text the grounding stage receives, while the error analysis shows that the retained information can still be insufficient or incorrect.

Finally, the authors assigned 34% of the sampled errors to issues with the reference annotations and note that these issues may affect training. An annotated box is both a supervision target and the basis for deciding whether a prediction succeeds. An annotation problem can therefore impair learning or make the evaluation disagree with a reasonable localization. The error percentages describe the authors' sample of wrong outputs. They do not give rates for all benchmark examples.

Limits of the experimental setup

The experiments use official splits of one benchmark. The paper describes KB-Ref as the only available dataset for this task at the time. Its images, associated knowledge sources, and category labels define the conditions under which SLCO was tested. The retrieval component is adapted to KB-Ref's knowledge sources, and the label filter relies on detections from a system pretrained on Visual Genome, which also supplies the benchmark images. The results establish performance under this setup. They leave open how well the same combination would transfer to images, categories, or kinds of descriptive knowledge outside it.

There is a practical dependency between the prompt and the image label filter. The prompt can give a good score to a category, but that candidate needs a corresponding image label to survive filtering. The benefit of excluding implausible answers therefore depends on the quality and coverage of the detector's labels. The paper does not provide a separate breakdown of how often the reference category is lost at the filtering stage, as distinct from receiving a low prompt score. The reported retrieval scores reflect the resulting process as a whole.

Using an object category as the bridge between knowledge and grounding has a similar scope. It suits a clue whose useful implication is that the target belongs to a recognizable class. The experiments do not establish that one class label preserves everything needed from a clue whose significance depends on finer properties, a relationship, or several pieces of background information used together. Category-level retrieval is measured against benchmark reference categories, so the results give little direct evidence about the value of alternative categories that may also be plausible readings of the expression.

The segment detector's training targets are also approximate. Overlap with a reference fact can identify words that signal knowledge, but the quality of that cue depends on how the fact and expression are worded. The guide phrases provide another source of supervision for familiar constructions. The paper evaluates learned segmentation through retrieval and grounding comparisons with the parsing rule. It does not report a separate evaluation against manually verified token assignments that would show where the detector confuses knowledge and visual clues. The downstream gains support the practical division of roles, while leaving its token-level reliability less directly measured.

The main result tables provide point estimates. They give the scores obtained under the reported settings, with larger differences on validation than on test in some comparisons. The paper does not give variation across repeated runs or confidence intervals for those comparisons. The numerical ordering is clear in the tables. The stability of small differences, and the extent to which they would persist under another training run, remain unquantified.

The detection, retrieval, and grounding stages also have different definitions of success. Retrieval asks whether a single reference category is in the candidate list. Grounding asks whether the predicted box clears the overlap threshold. The study shows that changes which improve retrieval can support better grounding, and that the best shortlist for grounding has a finite size in the reported setting. It does not fully attribute wrong boxes to decisions at each intermediate stage. The sampled error analysis describes several common outcomes, while leaving room for errors that arise through interactions, such as an imperfect category shortlist making an already difficult instance choice harder.

What came after

No later citing studies are documented here, so there is no basis for attributing an extension, replication, or reuse of SLCO to another paper. The authors' own conclusion identifies finer-grained information in referring expressions as a direction for future research. Their error analysis gives that direction a concrete motivation. Some descriptions still lead to the wrong category, and even a correct category can leave several plausible objects in the image. Further work along the direction they describe would have to preserve enough detail to improve retrieval while also giving grounding the distinctions it needs between instances.

Cite

Cite as Yuqi Bu, Xin Wu, Liuwu Li, Yi Cai, Qiong Liu and Qingbao Huang. 2023. Segment-Level and Category-Oriented Network for Knowledge-Based Referring Expression Comprehension. Findings of the Association for Computational Linguistics: ACL 2023.

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

@inproceedings{bu2023segment,
  title = {{Segment-Level and Category-Oriented Network for Knowledge-Based Referring Expression Comprehension}},
  author = {Yuqi Bu, Xin Wu, Liuwu Li, Yi Cai, Qiong Liu and Qingbao Huang},
  booktitle = {Findings of the Association for Computational Linguistics: ACL 2023},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.557},
  url = {https://doi.org/10.18653/v1/2023.findings-acl.557}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bu-2023-segment-level-category-oriented-network/