Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers
Paper · 2021 · Hila Chefer, Shir Gur and Lior Wolf
Summary
When a system answers a question about a photograph, it can draw on the wording of the question, the image, or information exchanged between them. An attention map from a single layer shows which positions that layer connects, but those positions may already carry information from elsewhere. The paper asks how to trace those successive exchanges back to the words and image regions that support a particular answer. It addresses the same problem for object detection, where a query in a decoder gathers evidence from an encoded image. Both problems arise in the Transformer and attention setting, where information can pass between positions repeatedly before the system makes a prediction.
The authors build an explanation by maintaining matrices that trace each current token back to input tokens. A token is a unit the network processes, such as a position in the question or a representation of an image region. When the streams are separate, the method tracks relevance within each stream and in each direction between them. At each attention layer it weights the attention connections by their gradients for the chosen output score, keeps the positive products, and updates the accumulated relevance. This makes it possible to follow image information that first enters a text token and later reaches the position used to answer the question. The same procedure can follow links within a single sequence containing both text and image tokens, or links from an object query to the image it reads.
The authors test the resulting rankings on visual question answering by removing tokens in order of estimated relevance. On the VQA validation sample, LXMERT retains much of its answering accuracy when the proposed explanation guides the removal of more than 80% of the image tokens from lowest relevance upward. Removing the highest-ranked regions first makes accuracy fall steeply. The advantage is clearest for the image side of LXMERT, where evidence must cross from image to text. Results on the text side and on the image-only ViT-Base are closer to those of the strongest earlier attribution method. The VisualBERT tests also yield broadly similar results to that baseline, with a clearer advantage in some text perturbations.
For DETR, the authors turn relevance for each accepted detection into a foreground mask and compare it with object masks on the MSCOCO validation split. The proposed method leads the adapted baselines under the paper’s weakly supervised evaluation. The score differences are largest in settings that need explicit propagation across streams. Where self-attention dominates, the authors’ simpler procedure often gives results close to those of a more involved approach based on layer-wise relevance propagation.
Deep dive: Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers
The paper traces attention across layers to explain which words and image regions support a Transformer answer or object detection. · about 34 minutes to read
The problem and its context
A prediction can depend on several attention layers
A heatmap can help a reader ask a concrete question about a visual prediction. Which parts of the image support this answer? Does a detected object receive evidence from the area the detector marks? A visual question adds a second kind of evidence. Some words specify what the system should look for, while image regions supply information about the particular scene. An explanation in this vision and language setting needs a way to express relevance for each kind of input and to account for the links between them.
Attention is a natural place to look. At one layer, attention weights describe how a position combines information from a set of available positions. An individual position at that layer, however, can already contain a mixture built by earlier layers. Consider a question position that has received information from the image. A later layer may pass its representation to another question position through text self-attention. The later attention map records a text-to-text connection. To trace its contribution to the picture, an explanation has to remember what the first question position received before the later connection was formed.
The prediction being explained also matters. A network may consider several possible answers on the same image and question. An explanation of a selected answer is tied to its score, so a connection matters in part because of how that score responds to it. A heatmap can instead describe what the network attends to for the input as a whole, without selecting an answer. The paper belongs to the class-dependent side of this distinction in interpretability. Its explanations are built for the score of an answer, an image class, or a detection that the analyst selects.
How the architecture changes the explanation
The paper describes several ways to combine an image with text. VisualBERT and Oscar put representations of both kinds of input into a shared sequence. Self-attention operates on that sequence, making cross-modal connections possible inside the same matrix as connections between words or between regions. The word self refers to where the queries, keys, and values come from. A single sequence can represent quite different kinds of input.
LXMERT and ViLBERT illustrate another arrangement. They retain separate streams and use co-attention to read from one stream while updating the other. A word can read image features, and an image feature can read word features. The attention maps for these operations have different meanings and can have different dimensions. The word-to-image operation has a row for each word position and a column for each image position. The reverse operation has a row for each image position and a column for each word position. Treating the two as interchangeable would lose the distinction between the position being updated and the positions it reads.
The introduction gives other examples to illustrate why a general explanation procedure would be useful. It describes work by Radford and colleagues in which image and text are encoded separately and their representations are brought together through a symmetric contrastive objective. The work by Ramesh and colleagues mentioned in the paper places a quantized image representation after the text tokens and uses a Transformer to generate images from descriptions. The examples establish the variety of ways in which image and text can interact. The authors’ tests concentrate on architectures where the explanation can track the relevant connections through attention layers.
Encoder–decoder systems introduce another arrangement. The encoder processes the input, and the decoder has positions of its own that can consult the encoded representation. In an object detector such as DETR, these positions are object queries. A prediction comes from a particular query, so the useful explanation traces that query back to locations in the image. The architecture also gives this exchange a direction. The decoder reads the encoder’s representation, while the encoder’s attention operates on its image inputs. The paper cites detection, segmentation, and machine translation as settings where this broad architectural pattern matters.
What earlier explanation methods could trace
The authors situate their approach alongside several ways of interpreting a visual network. Saliency methods produce a map of influential locations. Other approaches look at internal activations, change parts of the input and observe the effect, or estimate contributions through Shapley values. The paper also discusses backward attribution, where a relevance score assigned to the output is distributed through the layers. Layer-wise relevance propagation, abbreviated LRP, is a prominent example. Its underlying idea is to redistribute relevance while preserving the total under its propagation rules. The authors distinguish class-specific extensions from methods that provide an explanation independent of the selected label.
Gradients give another way to connect an explanation to a decision. A gradient describes the local response of a score to changes in an intermediate quantity. Grad-CAM, as described in the paper, uses class-dependent gradients together with features from a late layer to localize evidence for a prediction. It supplies a precedent for using a gradient to distinguish connections or features according to the output being explained. Its adaptation in the experiments works on attention heads at a late layer.
A straightforward Transformer explanation can use the last attention map. Its entries are easy to display, but the map describes a single stage of mixing. The authors also point out that attention weights come from queries and keys, while the value vectors carry the material that is actually combined. A conspicuous attention weight therefore gives only part of the computation behind the prediction. Work by Voita and colleagues, as described by the authors, used LRP to investigate how much different heads contribute. That analysis addressed the heads themselves and stopped short of producing an input heatmap.
Quantifying Attention Flow in Transformers addressed the problem of multiple layers. Attention rollout combines weights over successive layers so that a position can be linked to earlier positions through intermediate ones. Attention flow formulates the tracing problem as a maximum-flow calculation on a graph of attention links. The paper notes that the flow computation is expensive for large evaluations. It also points to a problem with unsigned rollout: a chain of strong attention weights can accumulate relevance even when some of its connections work against the selected output.
The closest predecessor is the earlier Transformer attribution method of Chefer and colleagues. It traces information back through the network using LRP and combines information from self-attention heads with output gradients. The present paper retains the idea of weighting attention connections for a target output and composing them across layers. Its new question is what the composition should look like when a position can carry information across streams and, in a network with reciprocal co-attention, carry it back again.
The method, step by step
Follow the information carried by each token
Imagine starting with a question and a set of image regions. Before an attention layer mixes them, each input position represents itself for the purposes of attribution. As the question positions attend to one another, each can acquire a mixture of earlier question information. Once a question position reads from the image, it can carry image information as well. The explanation keeps track of both kinds of origin. By the time the network answers, the position used to compute the answer has a record of the input positions that reached it through the attention updates.
The record is a matrix. Its row identifies a current position whose representation is being traced. Its column identifies an input position to which the method assigns relevance. With separate text and image streams, a text row can be traced to text columns in one matrix and image columns in another. Image rows have the same two kinds of origin. The authors use a separate matrix for each combination because every new attention layer changes a particular set of rows, and the information those rows already contain can come from either input.
The method uses a pretrained network and the input whose prediction is to be explained. A forward pass supplies attention tensors, with a separate map for each head in each layer. Differentiation of a selected output score supplies the corresponding attention gradients. The relevance calculation then processes the layers in forward order so that each update can use the accumulated history available at that point. Applying the explanation procedure calls for attention hooks that expose the needed tensors and gradients. It introduces no separately trained explanation component. The authors’ code includes notebooks for LXMERT and DETR, and the LXMERT notebook also accepts a freely phrased question.
From a selected prediction to input relevance
The steps in order.
Set up the relevance matrices
The paper uses text and image to establish the notation. Within each stream, the starting state is an identity matrix, which gives each position a link to itself. Across streams, the starting state is a zero matrix, since these relevance records describe connections introduced by the attention operations that follow.
R[i,i] = I[i×i]
Here R[i,i] is the matrix of relevance from original image positions to current image positions, and i stands for the image stream and its token count. I[i×i] is the identity matrix with image positions on both axes. Its diagonal entries are one and its other entries are zero. In the size expression, × separates the row and column dimensions.
R[t,t] = I[t×t]
Here R[t,t] links current text positions to original text positions. t names the text stream and its token count. I[t×t] is the identity of that size, with one on the diagonal and zero elsewhere.
R[i,t] = 0[i×t]
Here R[i,t] has current image positions as rows and original text positions as columns. 0[i×t] gives it a zero entry for every such pair. Image and text can have different token counts, so this cross-stream matrix can be rectangular.
R[t,i] = 0[t×i]
Here R[t,i] uses current text positions as rows and original image positions as columns. 0[t×i] is the zero matrix with those dimensions. Its scores will eventually support an explanation of an answer computed at a text position in an architecture such as LXMERT.
Convert a layer’s attention into evidence for an output
Within an attention head, a query represents a position being updated. A key represents a position that the query can consult. The match between query and key determines the attention weight, and a value vector supplies the information associated with the key position. With multiple heads, the network computes several such patterns for the same layer.
A = softmax((Q · Kᵀ) / √dₕ)
A is the attention tensor. Q holds the queries, K holds the keys, and Kᵀ transposes the position and feature axes of the keys within each head. The centered dot means matrix multiplication. dₕ is the embedding dimension for a head. The slash divides the query–key products by its square root, denoted by √, and softmax normalizes the scores across the key positions for each query. If h denotes the head count, s the number of query positions, and q the number of key positions, A has axes of sizes h, s, and q. The last dimension of Q and K is dₕ, with s positions in Q and q in K.
O = A · V
O is the output of attention and V contains the value vectors, one per key position in each head. A supplies the weights, and the centered dot multiplies each head’s attention map by its values. The result has a vector of dimension dₕ for every query position in every head. In self-attention, the queries, keys, and values are projections of the same sequence. In co-attention, the queries come from the stream being updated, and both keys and values come from the context stream.
A large entry in A says that a query puts weight on a particular value. To estimate whether the connection supports the selected prediction, the method also asks how the output score responds to that entry. The operation is at the level of individual connections. Different entries in one head can receive different gradient weights, even when they belong to the same query.
∇A = ∂yₜ / ∂A
∇A is the gradient array corresponding to attention tensor A. The partial derivative, written with ∂, is taken for the output score yₜ with respect to each attention entry. The subscript t in yₜ identifies the target output here. It serves a different purpose from the stream label t used for text.
Ā = Eₕ((∇A ⊙ A)⁺)
Ā is the attention map used for the relevance update. ∇A and A are the gradient and attention arrays for the layer. ⊙ multiplies corresponding entries, and the superscript ⁺ keeps positive products while replacing negative products with zero. Eₕ averages the resulting arrays over the h heads. This leaves a map with query positions as rows and key positions as columns.
The order of these operations matters. The method selects positive contributions inside each head before averaging. A negative product in one head therefore cannot cancel a positive product from another during the average. This is an attribution choice that emphasizes support for the target. The entries in Ā also need not sum to one along a row. The attention scores started with that property after softmax, but gradient weighting and selection change their scale.
Accumulate relevance within a stream
For the rest of the update rules, s names the stream whose positions are being updated, and q names the other stream when one is present. In self-attention, both sides of the layer’s attention map are positions in s. Applying this map to the existing within-stream relevance gives an estimate of the additional information arriving through the layer. The existing record is then added to that result. This addition represents the residual connection, through which the position also carries forward its earlier representation.
R[s,s] ← R[s,s] + Ā · R[s,s]
R[s,s] traces current positions in s back to the original positions in s. Ā is the square gradient-weighted self-attention map on that stream. The centered dot is matrix multiplication, and + adds the existing and newly calculated relevance matrices. The arrow means that the right-hand side uses the record available before the update and replaces the record on the left with the result.
The multiplication follows the intermediate positions. A query assigns weight to another position at this layer, and that position’s row in the old relevance matrix describes its links to the input. The product combines them. The same calculation can carry material that originally came from the other stream. After an earlier co-attention layer, a question token can hold information about image regions. A later text self-attention layer can distribute that information without making a new direct connection to the image.
R[s,q] ← R[s,q] + Ā · R[s,q]
R[s,q] has current positions in s as rows and original positions in q as columns. Ā still has s positions on both axes because the operation is self-attention in s. The product, shown by the centered dot, mixes the rows of the existing R[s,q]. The + and the update arrow retain the earlier entries as well as adding what is carried through the new layer. If the cross-stream record is still zero, a self-attention operation of this kind leaves it zero.
These two updates apply to the same layer. Which origins a position carries depends on the history already stored in the matrices. An implementation can determine the update from the streams the layer reads and writes rather than from the names of the modalities. The text self-attention rule, for example, uses the same construction as the image self-attention rule with the stream labels exchanged.
Prepare the within-stream histories for co-attention
Before co-attention updates the cross-stream record, the authors transform the within-stream records on both sides. Each contains the initial identity plus contributions acquired during propagation. The gradient-weighted updates can make the accumulated contributions small relative to the unit value from the identity. The authors want a token’s initial self-link and its accumulated context to have equal weight in the normalized record used for this calculation.
R̂[x,x] = R[x,x] − I[x×x]
x is either stream involved in the co-attention operation. R[x,x] is its current within-stream relevance matrix. I[x×x] is its starting identity matrix, and − subtracts that identity entry by entry. The result, R̂[x,x], isolates the accumulated part. It may itself contain diagonal entries due to attention, since the operation removes the starting identity only.
Ŝ[x,x]ₘ,ₙ = ∑ₖ₌₁…|x| R̂[x,x]ₘ,ₖ
Ŝ[x,x]ₘ,ₙ is the normalizing entry for row m and column n. R̂[x,x]ₘ,ₖ is the accumulated relevance at row m, column k. The summation sign ∑ adds across all columns, from the first position through |x|, the number of positions in x. The result depends on the row m and is copied to every column n in that row.
R̄[x,x] = R̂[x,x] / Ŝ[x,x] + I[x×x]
R̄[x,x] is the normalized matrix used for the next cross-stream calculation. / means entrywise division of the accumulated relevance R̂[x,x] by the row sums assembled in Ŝ[x,x]. This gives the accumulated part of a row a sum of one wherever the denominator is non-zero. + then restores the identity I[x×x]. The update uses this normalized version for co-attention while keeping the running relevance matrices available for later layers.
Subtracting the identity before division preserves the distinction the normalization is meant to capture. If the sum had included the initial self-link, a row with very small accumulated entries could still be dominated by that self-link after division. In the published construction, the accumulated part is first put on its own scale. This gives self-attention history a defined weight when it is combined with cross-stream attention.
Follow co-attention in the direction it reads
Consider a text stream that reads the image stream. The layer’s weighted co-attention map attaches a text query to image keys. The relevance update also has histories for the text positions and image positions involved in that operation. The paper composes the layer map with those histories to estimate the added cross-stream relevance.
R[s,q] ← R[s,q] + (R̄[s,s])ᵀ · Ā · R̄[q,q]
s names the query stream being updated and q names the context stream being read. R[s,q] links current positions in s to original positions in q. R̄[s,s] and R̄[q,q] are the normalized within-stream records. The superscript ᵀ transposes the query-stream record. Ā is the weighted co-attention map with s rows and q columns. The centered dots denote matrix products, and the update arrow replaces the old cross-stream record with the old record plus the new term.
Reading the multiplication from the middle, the attention map connects query and context positions at this layer. The multiplication on the right spreads the contribution of a context position according to its links to original positions in its own stream. The transposed query-stream history on the left mixes the rows according to the previously accumulated relationships among the query positions. The full product has the same row and column dimensions as R[s,q], so it can be added to relevance already present from earlier layers.
A cross-stream operation can also bring information back to the stream it came from. An image representation may already carry information from text because image positions read the text in an earlier co-attention layer. When a text position subsequently reads that image representation, this can add relevance to the original text inputs. The separate rule for this case uses the record that traces the context stream back to the query stream.
R[s,s] ← R[s,s] + Ā · R[q,s]
R[s,s] is the running within-stream record for s. Ā links positions in s to positions in q, and R[q,s] traces those context positions back to the original inputs in s. Multiplication with the centered dot follows that return path. The + and update arrow add its contribution to the prior within-stream record. For the opposite direction of co-attention, the streams exchange roles.
This rule also clarifies why separate matrices are needed even when the output uses a single classification position. The within-text record may acquire a contribution through the image stream. The cross-stream record may acquire one through a later text-only layer. The indexes on a relevance matrix identify where the information started and where it ended up. The attention layer responsible for the most recent update need not have the same pair of indexes.
Read the relevance at the position that supplies the prediction
In a classifier that uses a classification token, written [CLS], that token’s final representation supplies the decision. The authors read the corresponding row of the relevance matrix. With text and image in separate streams and [CLS] at the beginning of the text stream, its row in R[t,t] supplies relevance for the question positions. Its row in R[t,i] supplies relevance for the visual positions. Both rows are calculated using gradients for the same output score. The selection of a row locates the prediction in the network, while the selection of a score determines what that prediction is being explained for.
In VisualBERT, text and image representations are joined in a sequence with a separator token, [SEP]. A single square relevance matrix covers the sequence. The self-attention update for a within-stream record is enough to propagate relevance because the sequence already contains both kinds of position. When the classification row is read, the positions associated with the image and with the question supply the respective scores. The computation treats them jointly, while the visualization can display them separately.
In LXMERT, the relevant position is again a classification token in the text stream. The difference lies in how evidence reaches that position. The separate streams require the two within-stream and two cross-stream matrices. Self-attention and co-attention activate different updates as the network runs. Reading the classification row of the image relevance matrix depends on the entire sequence of operations through which image material reaches the text position.
In an encoder–decoder architecture, the authors write e for the encoder positions and d for the decoder positions. The encoder self-attention layers build R[e,e]. The decoder self-attention layers update R[d,d] and propagate encoder relevance already present in R[d,e]. When the decoder reads the encoder, the cross-stream rule uses R[d,d] and R[e,e] in their normalized forms to add to R[d,e]. The path from decoder inputs into encoder representations is absent in this architecture, so there is no R[e,d] to supply a return-path update.
For object detection, the index of the relevant row comes from the object query instead of a classification token shared across the image. A query that yields a detection has a corresponding row in R[d,e]. The columns of that row are the encoded image positions. Reading another query’s row gives an explanation for another detection in the same image, even though the encoder representation used by the queries is shared. This gives the authors a spatial relevance map for each accepted prediction.
Experiments and results
What the baselines preserve
The comparison methods differ in how much of the attention history they use and whether they condition it on a particular score. The raw attention baseline uses the final map for the relevant attention type. For the last text self-attention layer, for instance, it treats that layer’s text attention map directly as text relevance.
R[t,t] = A[t,t]
R[t,t] is the baseline relevance map between text positions, and A[t,t] is the final text self-attention map used by the baseline. The equality means that the map itself supplies the relevance values. Earlier attention layers do not enter this calculation.
Rollout follows attention across self-attention layers. To give it a cross-stream comparison, the authors combine the rollout histories with the last co-attention map between the relevant streams. The operation resembles the proposed cross-stream update in putting a self-attention history on each side of a cross-attention map.
R[s,q] = (R[s,s])ᵀ · Ā · R[q,q]
R[s,q] is the baseline cross-stream relevance from context stream q to query stream s. R[s,s] and R[q,q] are the within-stream maps computed by rollout. Here Ā denotes the final co-attention map in the baseline adaptation. ᵀ transposes the map for s, and the centered dots denote matrix multiplication. The formula defines the baseline’s cross-stream map in one calculation. The proposed method accumulates additional terms as it encounters successive co-attention layers.
The Grad-CAM baseline applies the gradient-based visualization to the heads of the last attention layer. Partial LRP also uses the last attention layer, but uses LRP relevance to combine its heads. These baselines test whether choosing or weighting a late map can produce a good explanation without accumulating relationships through the full sequence of layers in the same manner as the proposal.
The earlier Transformer attribution method offers the closest comparison because it already propagates relevance through self-attention layers. It weights the attention gradient by relevance values obtained from LRP. For the adapted comparison on layers that use co-attention, the authors take the last attention map of the relevant type and combine its heads using this weighting.
Ā = Eₕ((∇A ⊙ R[A])⁺)
Ā is the head-combined map for the attribution baseline. Eₕ averages over the heads, ∇A is the attention gradient for the selected score, and R[A] is the LRP relevance array attributed to the attention tensor A. ⊙ multiplies the gradient and relevance entry by entry. The superscript ⁺ retains the positive products. The proposed method uses raw attention entries in the position occupied here by R[A]. The authors note that obtaining the LRP array requires custom implementations across the network’s layers, while their procedure can get its inputs from the attention modules.
Visual question answering through token removal
The first test asks how accurately the explanations rank question tokens and image regions. The authors use pretrained VisualBERT and LXMERT and draw 10,000 random examples from the VQA validation set. For each example, they obtain relevance scores and remove tokens from one modality in stages. They measure mean top-1 answer accuracy as removal proceeds. Top-1 refers to the network’s highest-ranked answer after the corresponding intervention. Each experiment changes the inputs that the answering network sees and compares what happens under different relevance rankings.
In positive perturbation, the tokens with the highest estimated relevance go first. If those tokens carry evidence important to accurate answering, an explanation that places them early produces a steep drop in accuracy. The area under the resulting accuracy curve, or AUC, is then smaller. In negative perturbation, the tokens judged least relevant go first. A good ordering keeps important evidence available until later, yielding a larger area under the curve. The two protocols examine complementary parts of a ranking. Putting strong evidence first is valuable in one test, while reliably placing weak evidence at the other end is valuable in the other.
Image and text are perturbed separately. The authors report that accuracy stays above 0% even when 100% of the tokens of the tested modality have been removed in the VQA perturbation tests. The intact modality can still support some answers. As a consequence, the shape of the curve while removal is in progress is central to the comparison. The last point describes what remains possible with the other modality, whereas the earlier points reveal which ordering removes useful evidence sooner.
For LXMERT’s image perturbation, the proposed method has the largest negative-perturbation area by what the authors describe as a substantial margin. Much of the accuracy remains after removal of more than 80% of image tokens in ascending order of relevance. In the opposite order, accuracy falls sharply and the area is low. The agreement between the two removal directions supports the interpretation that the method puts high-value regions near the top while placing many dispensable regions near the bottom. This is the task where the final text classification position has to be linked to the image through co-attention.
The LXMERT text experiment yields a different comparison. The proposed method and the earlier Transformer attribution method behave similarly, while the other baselines trail them. The explanation for this pattern offered by the authors is architectural. Text relevance is read from the within-text matrix, whose dominant update is the self-attention operation shared by both attribution procedures. Their handling of head weights is different, but the major propagation operation for this output is much the same.
The visual examples are consistent with this distinction. The authors display question relevance by shading the text and image relevance by scaling the displayed regions according to their scores. They show cases with affirmative and negative answers. In the direct comparison against Transformer attribution, the two procedures tend to highlight similar parts of the question. The proposed procedure tends to concentrate the visual explanation on fewer, more relevant regions. These examples give a spatial interpretation to the ranking result: many regions can be discarded first when the method has isolated the strongest evidence.
VisualBERT provides a comparison in which text and image can interact through a shared self-attention matrix. The authors report that the proposed method generally leads the baselines in the positive and negative text and image perturbations. Its closest competitor is again Transformer attribution. The two can be close, though the authors describe a more marked advantage for the proposed procedure in some text perturbations. The VisualBERT comparison shows that the method can handle mixed visual and textual inputs even when there is no separate co-attention update. In this architecture, the comparison against the earlier attribution procedure primarily tests whether head aggregation needs the LRP relevance array.
From a DETR heatmap to a segmentation mask
The detection experiment evaluates a spatial explanation at the level of an individual object. The authors use a pretrained detector with a ResNet-50 backbone pretrained on ImageNet and a detection system trained on MSCOCO. The experimental discussion calls the detector DETR, and the weakly supervised segmentation caption identifies the detector with the Deformable DETR citation. The relevant training distinction is that the system learned object classes and bounding boxes. The masks evaluated in this experiment come from the explanations of its detections.
The evaluation uses 5,000 samples from the MSCOCO validation set. The authors select queries whose classification probability is higher than 50%. For each retained query, the image relevance row gives a heatmap over the encoded image features. Each attribution method supplies such a map for the same task. The test asks whether the map can be turned into a foreground mask that overlaps the annotated object for the detection.
The conversion begins with Otsu thresholding, a procedure that chooses a threshold from the distribution of values in the map. This separates the likely foreground from the background. The segmentation evaluation code resizes the thresholded map to the target mask size, applies the sigmoid and positive-value selection described in the appendix, and resizes the resulting map to the dimensions of the original image. This makes a set of relevance values over encoded positions comparable with a segmentation annotation in image coordinates.
The benchmark measures overlap using intersection over union, or IoU. It compares the area shared by a predicted region and its reference with the total area covered by either. Under an IoU criterion, an overlap must meet the chosen threshold for the prediction to count as a match. The authors relax the minimum from 0.5 to 0.2 for the segmentation evaluation. They cite the quality of the starting detection, fragmented masks, and holes introduced by thresholding as reasons for using the more permissive criterion. The chart shows the explicit settings for that evaluation.
Minimum IoU settings for mask evaluation on the MSCOCO validation set
The paper evaluates the relevance-derived masks with a more permissive overlap requirement.
The numbers
| System or setting | minimum IoU |
|---|---|
| Original MSCOCO minimum | 0.5 |
| Paper’s weakly supervised segmentation setting (this paper) | 0.2 |
The lower value in the chart makes the matching rule more permissive. It is an evaluation setting. The performance measures in the paper’s segmentation comparison are average precision and average recall, for which higher values are preferable. Precision concerns how often reported detections or masks match a reference, while recall concerns how much of the reference set is recovered. The paper separates the detector’s bounding-box scores from the segmentation scores of the attribution methods and discusses their relationship across the subsets it evaluates. It omits the small-object results.
The authors report a large advantage over the other explainers on the weakly supervised segmentation comparison. They also observe that the strength of the bounding-box detections is related to the strength of the masks. The detector supplies the query and the class being explained, so a good attribution can still produce a poor object mask if its underlying detection is poor. Example masks make the spatial distinction visible. The paper includes instances such as a remote, a cat, and skis, as well as detections whose boxes cover almost the entire image. In a case with a very broad box, a heatmap that follows the object can carry much more localization detail than the box itself supplies.
The authors also report that at a stricter overlap criterion the baselines score only slightly above chance, and their method scores 2-3 times better than chance. That statement concerns the stricter MSCOCO segmentation evaluation. It is a comparison with chance under the stricter criterion, instead of a multiplier for each baseline or an estimate of the method’s usual margin on the more permissive evaluation.
A check on single-stream image classification
The ViT-Base experiment gives the earlier methods a comparison in the kind of setting they were designed for. The input is an image, the prediction is an image class, and the encoder uses self-attention. On the ImageNet validation set, the authors evaluate both positive and negative perturbation. They present the AUC comparisons for explanations based on the predicted class and for explanations based on the target class. The relevant direction of improvement remains lower AUC when removing the most relevant positions first and higher AUC when removing the least relevant first.
The proposed explanation and the earlier Transformer attribution method yield very similar results in this case. Both use the self-attention propagation rule, with their principal difference being whether the head calculation uses attention entries directly or relevance values obtained through LRP. The small differences here support the authors’ claim that the simpler head calculation can be competitive, even in the single-stream setting where the LRP-based method is particularly applicable.
The authors also find that perturbations perform better with gradients computed for the target class than with gradients computed for the predicted class. These classes can differ, and the two experiments ask different questions of the same image. One explains the answer the network selected. The other asks for evidence relevant to the target label. A change in the perturbation behavior when the gradient target changes is evidence that the explanation responds to the class being examined.
What the ablations show
Normalization matters more in the detector
The authors compare the full method with versions that alter normalization, accumulation, and the use of self-attention history in cross-stream updates. The main ablations are on LXMERT and DETR. Those experiments use distinct streams and therefore give a direct test of the additions that go beyond self-attention rollout. The VisualBERT and ViT-Base comparisons address the simpler head-weighting question in architectures that use a shared or single stream.
The normalization ablation removes the rescaling of the within-stream relevance supplied to the co-attention rule. The full rule separates the initial identity from the accumulated record, rescales the accumulated part by row, and restores the identity before composing the cross-stream relevance. Removing normalization tests whether that redistribution of weight improves the resulting map. It should have its clearest effect where the output requires the cross-stream relevance matrix, which is the case for LXMERT image relevance and DETR’s query-to-image relevance.
For DETR, the authors report a sizeable drop when normalization is removed. They also report that the resulting variant still outperforms the competing explainers by a substantial margin. This establishes two things within the detector evaluation. The normalization improves the full procedure, and explicit cross-stream propagation retains much of its value even without that particular rescaling. On LXMERT’s image perturbation, by comparison, the authors describe the differences caused by this ablation as relatively mild.
Carrying the old relevance forward
Another ablation changes all the accumulation rules so that only the newly computed term is kept at each update. The full method adds the new term to the existing record as its representation of the residual path. In the ablated method the operation can still compose the weighted attention map with an earlier record, but earlier relevance must survive through the new calculation. It no longer has a direct additive route from one update to the next.
R[s,s] ← Ā · R[s,s]
R[s,s] is the within-stream relevance in stream s, Ā is the weighted self-attention map, and the centered dot denotes matrix multiplication. The arrow replaces the old matrix by the product alone. This is the example the paper gives for the self-attention rule. The corresponding change in the other rules likewise drops the addition of the prior matrix.
The DETR ablations show that this version performs appreciably worse than the full construction. The comparison tests a broader change than the normalization ablation. It changes the way relevance survives at every affected layer, including both single-stream and cross-stream updates. Its effect therefore supports the design choice of carrying old and newly formed paths together. The experiment does not isolate which individual residual addition contributes most to that effect.
What earlier self-attention contributes to co-attention
The last main ablation leaves accumulation in place but reduces the new cross-stream contribution to the current weighted attention map. It removes the normalized within-stream histories on both sides of the multiplication. This asks whether adding the layer’s direct cross-stream links is sufficient or whether the earlier mixing of the positions involved improves the explanation.
R[s,q] ← R[s,q] + Ā
R[s,q] is the running relevance from original positions in the context stream q to current positions in the query stream s. Ā is the current gradient-weighted co-attention map between those streams. The arrow and + preserve the old matrix while adding the new map. Other updates still apply in this ablation. The change concerns how a co-attention layer contributes to the cross-stream record.
Removing these histories reduces DETR segmentation performance by a sizeable amount. As with the normalization ablation, the result still exceeds the baseline methods by a substantial margin according to the authors. Adding cross-stream relevance through the network already helps. Incorporating the within-stream relationships around each exchange further improves the spatial maps used in the segmentation test.
The LXMERT image perturbation differences are relatively mild for this ablation and for the removal of normalization. The authors suggest that the input representation helps explain the difference. LXMERT uses 36 image regions after non-maximum suppression, a procedure that reduces redundant overlapping candidates. In the authors’ account, the full method and these variants often choose the same top-ranked region, which can already suffice for answering. A perturbation curve can therefore remain similar even if the methods distribute relevance differently among less important regions. The region explanation is an interpretation of the observed comparison. The experiments do not directly vary the region set to test it.
Adding LRP back into the proposed method
The supplement applies the LRP-based head calculation inside the new propagation procedure and reruns the LXMERT perturbation tests. This puts the head-weighting choice under a more direct comparison than replacing the whole explanation method. The cross-stream and self-attention updates of the proposal are still used. The head calculation now combines the gradient with R[A], the relevance attributed through LRP, in place of the corresponding raw attention entries.
For image perturbations, both versions substantially outperform the baselines. The authors report a small decline when LRP is added. For the text perturbations the choice has little effect, and the results are close to those for the earlier Transformer attribution method. These observations tie the large LXMERT image improvement to the propagation rules that handle exchanges between streams. The simpler head calculation retains that advantage with much less need for custom layer implementation.
The comparisons also explain why the paper’s largest gains and its strongest simplification claim occur in different parts of the evaluation. In the detector and in LXMERT image explanations, the propagation path itself is a major variable. In image-only classification and in the shared-sequence case, the methods already have similar paths available and differ mainly in the head calculation. Similar results in those cases support using the simpler calculation, while the cross-stream results supply the evidence for extending the propagation rules.
Limitations
Limits the authors identify
The authors point out that removing a modality in the VQA tests leaves the other modality available. A system can still answer some questions using the intact input, so even exhaustive removal on one side gives a test of partial dependence. The image ranking is evaluated in the presence of the question, and the question ranking is evaluated in the presence of the image. The experiment describes how a network behaves under those specific interventions.
For detection, the authors emphasize that valid segmentation depends on the quality of the underlying prediction. The explanation is tied to an accepted object query and its associated detection. A weak box or an incorrect detection can undermine the resulting mask. The heatmaps also tend to produce disconnected regions, and thresholding can leave gaps inside an object. Both issues help explain why the study uses the more permissive IoU setting and leaves out the small-object results. Its mask scores describe the performance of attribution maps under that evaluation protocol.
The authors present the method as applicable to the attention architectures they discuss and suggest that it can extend to more than two modalities. Their concrete rules are illustrated for two streams, and the experiments cover selected image and text tasks and a visual encoder–decoder detector. The paper mentions settings such as translation and image generation to motivate the need for general explanations. It supplies no corresponding evaluation of token generation or translation outputs.
What the evaluation leaves open
The perturbation test measures the consequences of removing tokens in a particular order. Mean top-1 accuracy aggregates effects over examples and records whether the highest-ranked answer is correct. A removal can substantially change a class score while leaving the winning answer unchanged. Deleting several tokens can also change the context in which the remaining tokens are processed. A good area under the curve therefore establishes that an ordering is effective for the given intervention. Claims about every token’s individual effect, or about how tokens jointly support a prediction, would need additional evidence.
The method gives a score-specific view of positive support. Gradient weighting uses local derivatives at the original computation, and the positive-part operation removes negative products. A low displayed value can therefore arise from little positive sensitivity or from a connection whose first-order effect goes against the chosen output. The method also adds relevance along residual paths and normalizes within-stream matrices for cross-attention. These operations produce practical ranking scores. They do not provide a conservation result that partitions the selected output score into measured contributions from the input.
The normalization formula leaves a practical edge case unresolved in its written form. If a row has no accumulated relevance beyond the identity, subtracting the identity leaves a zero row, and the row sum used as a divisor is zero. The authors explain the intended balance between the identity and accumulated context, but give no convention in that equation for division in this case. A reader interpreting the formula needs to distinguish the stated rule from any implementation convention that handles an empty row.
The mask evaluation combines several steps. The detector supplies an object hypothesis, the attribution method ranks image locations, and the thresholding and resizing procedure converts the result into an evaluated mask. An improvement in mask precision or recall shows better performance for that combination under the shared protocol. It cannot by itself show which part of the attribution corresponds to the detector’s complete reasoning, or establish the performance of a system trained directly to segment objects. The exclusion of small objects further limits how far the result can be generalized across the benchmark.
Finally, the cross-stream gains are measured against adaptations of methods devised mainly for self-attention. Some of those adaptations use only the last cross-stream map. They are useful comparisons because they show what happens when an earlier explanation method is carried over to the new architecture. The margin measures the proposed method against those specific adaptations. The different results on DETR and LXMERT also leave an open question about how much of the gain comes from stream size, the way image regions are selected, or the difference between localizing an object and preserving an answer.
What came after
No later work is documented here that establishes how another study adopted, extended, or tested the paper’s method.
Cite
Cite as Hila Chefer, Shir Gur and Lior Wolf. 2021. Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers. IEEE/CVF International Conference on Computer Vision (ICCV).
@inproceedings{chefer2021generic,
title = {{Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers}},
author = {Hila Chefer, Shir Gur and Lior Wolf},
booktitle = {IEEE/CVF International Conference on Computer Vision (ICCV)},
year = {2021},
doi = {10.1109/iccv48922.2021.00045},
eprint = {2103.15679},
archivePrefix = {arXiv},
url = {https://doi.org/10.1109/iccv48922.2021.00045}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/chefer-2021-generic-attention-model-explainability-interpreting/
References
- Samira Abnar and Willem Zuidema. Quantifying attention flow in transformers. arXiv preprint arXiv:2005.00928, 2020. our card
- Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C. Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), December 2015. our card
- Sebastian Bach, Alexander Binder, Grégoire Montavon, Frederick Klauschen, Klaus-Robert Müller, and Wojciech Samek. On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation. PloS one, 10(7):e0130140, 2015. OpenAlex ↗ · Scholar ↗
- Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. arXiv preprint arXiv:2005.12872, 2020. our card
- Hila Chefer, Shir Gur, and Lior Wolf. Transformer interpretability beyond attention visualization. arXiv preprint arXiv:2012.09838, 2020. OpenAlex ↗ · Scholar ↗
- Jianbo Chen, Le Song, Martin J. Wainwright, and Michael I. Jordan. L-shapley and c-shapley: Efficient model interpretation for structured data. In International Conference on Learning Representations, 2019. OpenAlex ↗ · Scholar ↗
- Mark Chen, Alec Radford, Rewon Child, Jeff Wu, Heewoo Jun, Prafulla Dhariwal, David Luan, and Ilya Sutskever. Generative pretraining from pixels. In Proceedings of the 37th International Conference on Machine Learning, volume 1, 2020. OpenAlex ↗ · Scholar ↗
- Piotr Dabkowski and Yarin Gal. Real time image saliency for black box classifiers. In Advances in Neural Information Processing Systems, pages 6970–6979, 2017. OpenAlex ↗ · Scholar ↗
- Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. our card
- Dumitru Erhan, Yoshua Bengio, Aaron Courville, and Pascal Vincent. Visualizing higher-layer features of a deep network. University of Montreal, 1341(3):1, 2009. OpenAlex ↗ · Scholar ↗
- Ruth Fong, Mandela Patrick, and Andrea Vedaldi. Understanding deep networks via extremal perturbations and smooth masks. In Proceedings of the IEEE International Conference on Computer Vision, pages 2950–2958, 2019. OpenAlex ↗ · Scholar ↗
- Ruth C Fong and Andrea Vedaldi. Interpretable explanations of black boxes by meaningful perturbation. In Proceedings of the IEEE International Conference on Computer Vision, pages 3429–3437, 2017. OpenAlex ↗ · Scholar ↗
- Jindong Gu, Yinchong Yang, and Volker Tresp. Understanding individual decisions of cnns via contrastive backpropagation. In Asian Conference on Computer Vision, pages 119–134. Springer, 2018. OpenAlex ↗ · Scholar ↗
- Shir Gur, Ameen Ali, and Lior Wolf. Visualization of supervised and self-supervised neural networks via attribution guided factorization. In AAAI, 2021. OpenAlex ↗ · Scholar ↗
- Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770–778, 2016. our card
- Brian Kenji Iwana, Ryohei Kuroki, and Seiichi Uchida. Explaining convolutional neural networks using softmax gradient layer-wise relevance propagation. arXiv preprint arXiv:1908.04351, 2019. OpenAlex ↗ · Scholar ↗
- Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov, and Luke Zettlemoyer. Bart: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. arXiv preprint arXiv:1910.13461, 2019. our card
- Liunian Harold Li, Mark Yatskar, Da Yin, Cho-Jui Hsieh, and Kai-Wei Chang. Visualbert: A simple and performant baseline for vision and language. arXiv preprint arXiv:1908.03557, 2019. our card
- Xiujun Li, Xi Yin, Chunyuan Li, Pengchuan Zhang, Xiaowei Hu, Lei Zhang, Lijuan Wang, Houdong Hu, Li Dong, Furu Wei, et al. Oscar: Object-semantics aligned pre-training for vision-language tasks. In European Conference on Computer Vision, pages 121–137. Springer, 2020. our card
- Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740–755. Springer, 2014. our card
- Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. In Advances in Neural Information Processing Systems, pages 13–23, 2019. our card
- Scott M Lundberg and Su-In Lee. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems, pages 4765–4774, 2017. our card
- Aravindh Mahendran and Andrea Vedaldi. Visualizing deep convolutional neural networks using natural pre-images. International Journal of Computer Vision, 120(3):233–255, 2016. OpenAlex ↗ · Scholar ↗
- Grégoire Montavon, Sebastian Lapuschkin, Alexander Binder, Wojciech Samek, and Klaus-Robert Müller. Explaining nonlinear classification decisions with deep taylor decomposition. Pattern Recognition, 65:211–222, 2017. OpenAlex ↗ · Scholar ↗
- Woo-Jeoung Nam, Shir Gur, Jaesik Choi, Lior Wolf, and Seong-Whan Lee. Relative attributing propagation: Interpreting the comparative contributions of individual units in deep neural networks. arXiv preprint arXiv:1904.00605, 2019. OpenAlex ↗ · Scholar ↗
- Nobuyuki Otsu. A threshold selection method from gray-level histograms. IEEE transactions on systems, man, and cybernetics, 9(1):62–66, 1979. OpenAlex ↗ · Scholar ↗
- Matthieu Paul, Martin Danelljan, Luc Van Gool, and Radu Timofte. Local memory attention for fast video semantic segmentation. arXiv preprint arXiv:2101.01715, 2021. OpenAlex ↗ · Scholar ↗
- Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. arXiv preprint arXiv:2103.00020, 2021. our card
- Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683, 2019. our card
- Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. arXiv preprint arXiv:2102.12092, 2021. our card
- Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International journal of computer vision, 115(3):211–252, 2015. our card
- Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE international conference on computer vision, pages 618–626, 2017. our card
- Avanti Shrikumar, Peyton Greenside, and Anshul Kundaje. Learning important features through propagating activation differences. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 3145–3153. JMLR. org, 2017. our card
- Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv preprint arXiv:1312.6034, 2013. our card
- Daniel Smilkov, Nikhil Thorat, Been Kim, Fernanda Viégas, and Martin Wattenberg. Smoothgrad: removing noise by adding noise. arXiv preprint arXiv:1706.03825, 2017. OpenAlex ↗ · Scholar ↗
- Suraj Srinivas and François Fleuret. Full-gradient representation for neural network visualization. In Advances in Neural Information Processing Systems, pages 4126–4135, 2019. OpenAlex ↗ · Scholar ↗
- Mukund Sundararajan, Ankur Taly, and Qiqi Yan. Axiomatic attribution for deep networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 3319–3328. JMLR. org, 2017. OpenAlex ↗ · Scholar ↗
- Hao Tan and Mohit Bansal. Lxmert: Learning cross-modality encoder representations from transformers. arXiv preprint arXiv:1908.07490, 2019. our card
- Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. arXiv preprint arXiv:2012.12877, 2020. our card
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998–6008, 2017. our card
- Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov. Analyzing multi-head self-attention: Specialized heads do the heavy lifting, the rest can be pruned. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5797–5808, 2019. our card
- Huiyu Wang, Yukun Zhu, Hartwig Adam, Alan Yuille, and Liang-Chieh Chen. Max-deeplab: End-to-end panoptic segmentation with mask transformers. arXiv preprint arXiv:2012.00759, 2020. OpenAlex ↗ · Scholar ↗
- Yuqing Wang, Zhaoliang Xu, Xinlong Wang, Chunhua Shen, Baoshan Cheng, Hao Shen, and Huaxia Xia. End-to-end video instance segmentation with transformers. arXiv preprint arXiv:2011.14503, 2020. OpenAlex ↗ · Scholar ↗
- Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In European conference on computer vision, pages 818–833. Springer, 2014. our card
- Jianming Zhang, Sarah Adel Bargal, Zhe Lin, Jonathan Brandt, Xiaohui Shen, and Stan Sclaroff. Top-down neural attention by excitation backprop. International Journal of Computer Vision, 126(10):1084–1102, 2018. OpenAlex ↗ · Scholar ↗
- Sixiao Zheng, Jiachen Lu, Hengshuang Zhao, Xiatian Zhu, Zekun Luo, Yabiao Wang, Yanwei Fu, Jianfeng Feng, Tao Xiang, Philip HS Torr, et al. Rethinking semantic segmentation from a sequence-to-sequence perspective with transformers. arXiv preprint arXiv:2012.15840, 2020. OpenAlex ↗ · Scholar ↗
- Bolei Zhou, David Bau, Aude Oliva, and Antonio Torralba. Interpreting deep visual representations via network dissection. IEEE transactions on pattern analysis and machine intelligence, 2018. OpenAlex ↗ · Scholar ↗
- Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2921–2929, 2016. OpenAlex ↗ · Scholar ↗
- Xizhou Zhu, Weijie Su, Lewei Lu, Bin Li, Xiaogang Wang, and Jifeng Dai. Deformable {detr}: Deformable transformers for end-to-end object detection. In International Conference on Learning Representations, 2021. OpenAlex ↗ · Scholar ↗